Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
191 changes: 191 additions & 0 deletions output/csharp/src/Seam/Api/AccessGrants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,197 @@
);
}

[DataContract(Name = "getRelatedRequest_request")]
public class GetRelatedRequest
{
[JsonConstructorAttribute]
protected GetRelatedRequest() { }

public GetRelatedRequest(
List<string> accessGrantIds = default,
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
List<GetRelatedRequest.IncludeEnum>? include = default
)
{
AccessGrantIds = accessGrantIds;
Exclude = exclude;
Include = include;
}

[JsonConverter(typeof(SafeStringEnumConverter))]
public enum ExcludeEnum
{
[EnumMember(Value = "unrecognized")]
Unrecognized = 0,

[EnumMember(Value = "spaces")]
Spaces = 1,

[EnumMember(Value = "devices")]
Devices = 2,

[EnumMember(Value = "acs_entrances")]
AcsEntrances = 3,

[EnumMember(Value = "connected_accounts")]
ConnectedAccounts = 4,

[EnumMember(Value = "acs_systems")]
AcsSystems = 5,

[EnumMember(Value = "user_identity")]
UserIdentity = 6,

[EnumMember(Value = "acs_access_groups")]
AcsAccessGroups = 7,
}

[JsonConverter(typeof(SafeStringEnumConverter))]
public enum IncludeEnum
{
[EnumMember(Value = "unrecognized")]
Unrecognized = 0,

[EnumMember(Value = "spaces")]
Spaces = 1,

[EnumMember(Value = "devices")]
Devices = 2,

[EnumMember(Value = "acs_entrances")]
AcsEntrances = 3,

[EnumMember(Value = "connected_accounts")]
ConnectedAccounts = 4,

[EnumMember(Value = "acs_systems")]
AcsSystems = 5,

[EnumMember(Value = "user_identity")]
UserIdentity = 6,

[EnumMember(Value = "acs_access_groups")]
AcsAccessGroups = 7,
}

[DataMember(Name = "access_grant_ids", IsRequired = true, EmitDefaultValue = false)]
public List<string> AccessGrantIds { get; set; }

[DataMember(Name = "exclude", IsRequired = false, EmitDefaultValue = false)]
public List<GetRelatedRequest.ExcludeEnum>? Exclude { get; set; }

[DataMember(Name = "include", IsRequired = false, EmitDefaultValue = false)]
public List<GetRelatedRequest.IncludeEnum>? Include { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}

[DataContract(Name = "getRelatedResponse_response")]
public class GetRelatedResponse
{
[JsonConstructorAttribute]
protected GetRelatedResponse() { }

public GetRelatedResponse(Batch batch = default)

Check failure on line 685 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v18 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 685 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v16 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)
{
Batch = batch;
}

[DataMember(Name = "batch", IsRequired = false, EmitDefaultValue = false)]
public Batch Batch { get; set; }

Check failure on line 691 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v18 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 691 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v16 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}

public Batch GetRelated(GetRelatedRequest request)

Check failure on line 713 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v18 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 713 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v16 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)
{
var requestOptions = new RequestOptions();
requestOptions.Data = request;
return _seam
.Post<GetRelatedResponse>("/access_grants/get_related", requestOptions)
.Data.Batch;
}

public Batch GetRelated(

Check failure on line 722 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v18 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 722 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v16 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)
List<string> accessGrantIds = default,
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
List<GetRelatedRequest.IncludeEnum>? include = default
)
{
return GetRelated(
new GetRelatedRequest(
accessGrantIds: accessGrantIds,
exclude: exclude,
include: include
)
);
}

public async Task<Batch> GetRelatedAsync(GetRelatedRequest request)

Check failure on line 737 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v18 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 737 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v16 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)
{
var requestOptions = new RequestOptions();
requestOptions.Data = request;
return (
await _seam.PostAsync<GetRelatedResponse>(
"/access_grants/get_related",
requestOptions
)
)
.Data
.Batch;
}

public async Task<Batch> GetRelatedAsync(

Check failure on line 751 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v18 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 751 in output/csharp/src/Seam/Api/AccessGrants.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v16 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)
List<string> accessGrantIds = default,
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
List<GetRelatedRequest.IncludeEnum>? include = default
)
{
return (
await GetRelatedAsync(
new GetRelatedRequest(
accessGrantIds: accessGrantIds,
exclude: exclude,
include: include
)
)
);
}

[DataContract(Name = "listRequest_request")]
public class ListRequest
{
Expand Down
191 changes: 191 additions & 0 deletions output/csharp/src/Seam/Api/AccessMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,197 @@
return (await GetAsync(new GetRequest(accessMethodId: accessMethodId)));
}

[DataContract(Name = "getRelatedRequest_request")]
public class GetRelatedRequest
{
[JsonConstructorAttribute]
protected GetRelatedRequest() { }

public GetRelatedRequest(
List<string> accessMethodIds = default,
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
List<GetRelatedRequest.IncludeEnum>? include = default
)
{
AccessMethodIds = accessMethodIds;
Exclude = exclude;
Include = include;
}

[JsonConverter(typeof(SafeStringEnumConverter))]
public enum ExcludeEnum
{
[EnumMember(Value = "unrecognized")]
Unrecognized = 0,

[EnumMember(Value = "spaces")]
Spaces = 1,

[EnumMember(Value = "devices")]
Devices = 2,

[EnumMember(Value = "acs_entrances")]
AcsEntrances = 3,

[EnumMember(Value = "access_grants")]
AccessGrants = 4,

[EnumMember(Value = "access_methods")]
AccessMethods = 5,

[EnumMember(Value = "instant_keys")]
InstantKeys = 6,

[EnumMember(Value = "client_sessions")]
ClientSessions = 7,
}

[JsonConverter(typeof(SafeStringEnumConverter))]
public enum IncludeEnum
{
[EnumMember(Value = "unrecognized")]
Unrecognized = 0,

[EnumMember(Value = "spaces")]
Spaces = 1,

[EnumMember(Value = "devices")]
Devices = 2,

[EnumMember(Value = "acs_entrances")]
AcsEntrances = 3,

[EnumMember(Value = "access_grants")]
AccessGrants = 4,

[EnumMember(Value = "access_methods")]
AccessMethods = 5,

[EnumMember(Value = "instant_keys")]
InstantKeys = 6,

[EnumMember(Value = "client_sessions")]
ClientSessions = 7,
}

[DataMember(Name = "access_method_ids", IsRequired = true, EmitDefaultValue = false)]
public List<string> AccessMethodIds { get; set; }

[DataMember(Name = "exclude", IsRequired = false, EmitDefaultValue = false)]
public List<GetRelatedRequest.ExcludeEnum>? Exclude { get; set; }

[DataMember(Name = "include", IsRequired = false, EmitDefaultValue = false)]
public List<GetRelatedRequest.IncludeEnum>? Include { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}

[DataContract(Name = "getRelatedResponse_response")]
public class GetRelatedResponse
{
[JsonConstructorAttribute]
protected GetRelatedResponse() { }

public GetRelatedResponse(Batch batch = default)
{
Batch = batch;
}

[DataMember(Name = "batch", IsRequired = false, EmitDefaultValue = false)]
public Batch Batch { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}

public Batch GetRelated(GetRelatedRequest request)

Check failure on line 418 in output/csharp/src/Seam/Api/AccessMethods.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v18 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 418 in output/csharp/src/Seam/Api/AccessMethods.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v16 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)
{
var requestOptions = new RequestOptions();
requestOptions.Data = request;
return _seam
.Post<GetRelatedResponse>("/access_methods/get_related", requestOptions)
.Data.Batch;
}

public Batch GetRelated(

Check failure on line 427 in output/csharp/src/Seam/Api/AccessMethods.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v18 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 427 in output/csharp/src/Seam/Api/AccessMethods.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v16 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)
List<string> accessMethodIds = default,
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
List<GetRelatedRequest.IncludeEnum>? include = default
)
{
return GetRelated(
new GetRelatedRequest(
accessMethodIds: accessMethodIds,
exclude: exclude,
include: include
)
);
}

public async Task<Batch> GetRelatedAsync(GetRelatedRequest request)

Check failure on line 442 in output/csharp/src/Seam/Api/AccessMethods.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v18 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 442 in output/csharp/src/Seam/Api/AccessMethods.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v16 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)
{
var requestOptions = new RequestOptions();
requestOptions.Data = request;
return (
await _seam.PostAsync<GetRelatedResponse>(
"/access_methods/get_related",
requestOptions
)
)
.Data
.Batch;
}

public async Task<Batch> GetRelatedAsync(

Check failure on line 456 in output/csharp/src/Seam/Api/AccessMethods.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v18 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 456 in output/csharp/src/Seam/Api/AccessMethods.cs

View workflow job for this annotation

GitHub Actions / Test (Node.js v16 on Linux)

The type or namespace name 'Batch' could not be found (are you missing a using directive or an assembly reference?)
List<string> accessMethodIds = default,
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
List<GetRelatedRequest.IncludeEnum>? include = default
)
{
return (
await GetRelatedAsync(
new GetRelatedRequest(
accessMethodIds: accessMethodIds,
exclude: exclude,
include: include
)
)
);
}

[DataContract(Name = "listRequest_request")]
public class ListRequest
{
Expand Down
Loading