Skip to content

Commit

Permalink
Complete the renames.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Oct 8, 2024
1 parent 3f82a6f commit 1f15dc9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This is the changelog for [Authress SDK](readme.md).
* `ApiBasePath` has been renamed to `AuthressApiUrl`.
* `HttpClientSettings` Has been removed in favor of `AuthressSettings` Class.
* [Breaking] `UserPermissions.GetUserResources()` no longer returns the property `AccessToAllSubResources`. When a user only has access to parent resources, the list will always be empty unless the `CollectionConfigurationEnum` property is specified.
* [Breaking] Renamed `AccessRecordStatements` and other models that end with `S` but aren't actually plural to be `AccessRecordStatement` (without the `S`).

## 1.5 ##
* Fix `DateTimeOffset` type assignments, properties that were incorrectly defined as `DateTime` are now correctly `DateTimeOffsets`.
Expand Down
2 changes: 1 addition & 1 deletion src/Authress.SDK/Api/ResourcePermissionsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Authress.SDK
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public partial class AuthressClient : IResourcePermissionsApi
internal partial class AuthressClient : IResourcePermissionsApi
{
/// <summary>
/// List resource configurations Permissions can be set globally at a resource level. Lists any resources with a globally set resource policy
Expand Down
6 changes: 3 additions & 3 deletions src/Authress.SDK/Model/AccessRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public enum StatusEnum
/// <value>The list of users this record applies to</value>
[DataMember(Name = "users", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "users")]
public List<AccessRecordUsers> Users { get; set; }
public List<AccessRecordUser> Users { get; set; }

/// <summary>
/// The list of groups this record applies to. Users in these groups will be receive access to the resources listed.
Expand All @@ -81,15 +81,15 @@ public enum StatusEnum
/// <value>The list of admin that can edit this record even if they do not have global record edit permissions.</value>
[DataMember(Name = "admins", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "admins")]
public List<AccessRecordUsers> Admins { get; set; }
public List<AccessRecordUser> Admins { get; set; }

/// <summary>
/// A list of statements which match roles to resources. Users in this record have all statements apply to them
/// </summary>
/// <value>A list of statements which match roles to resources. Users in this record have all statements apply to them</value>
[DataMember(Name = "statements", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "statements")]
public List<AccessRecordStatements> Statements { get; set; }
public List<AccessRecordStatement> Statements { get; set; }

/// <summary>
/// Gets or Sets Links
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Authress.SDK.DTO
///
/// </summary>
[DataContract]
public class AccessRecordStatements
public class AccessRecordStatement
{
/// <summary>
/// Gets or Sets Roles
Expand All @@ -30,7 +30,7 @@ public class AccessRecordStatements
/// <value>The list of users this record statement applies to</value>
[DataMember(Name = "users", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "users")]
public List<AccessRecordUsers> Users { get; set; }
public List<AccessRecordUser> Users { get; set; }

/// <summary>
/// The list of groups this record statement applies to. Users in these groups will be receive access to the resources listed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Authress.SDK.DTO
///
/// </summary>
[DataContract]
public class AccessRecordUsers
public class AccessRecordUser
{
/// <summary>
/// Gets or Sets UserId
Expand Down
4 changes: 2 additions & 2 deletions src/Authress.SDK/Model/AccessTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ public class AccessTemplate
/// </summary>
/// <value>The list of users the access applies to</value>
[DataMember(Name="users", EmitDefaultValue=false)]
public List<AccessRecordUsers> Users { get; set; }
public List<AccessRecordUser> Users { get; set; }

/// <summary>
/// A list of statements which match roles to resources. Users here will have all statements apply to them
/// </summary>
/// <value>A list of statements which match roles to resources. Users here will have all statements apply to them</value>
[DataMember(Name="statements", EmitDefaultValue=false)]
public List<AccessRecordStatements> Statements { get; set; }
public List<AccessRecordStatement> Statements { get; set; }
}
}
4 changes: 2 additions & 2 deletions src/Authress.SDK/Model/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ public class Group
/// <value>The list of users in this group</value>
[DataMember(Name="users", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "users")]
public List<AccessRecordUsers> Users { get; set; }
public List<AccessRecordUser> Users { get; set; }

/// <summary>
/// The list of admins that can edit this record even if they do not have global record edit permissions.
/// </summary>
/// <value>The list of admins that can edit this record even if they do not have global record edit permissions.</value>
[DataMember(Name="admins", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "admins")]
public List<AccessRecordUsers> Admins { get; set; }
public List<AccessRecordUser> Admins { get; set; }

/// <summary>
/// Gets or Sets Links
Expand Down

0 comments on commit 1f15dc9

Please sign in to comment.