Skip to content

Commit 163283c

Browse files
committed
ci: Generate code
1 parent a8aa036 commit 163283c

File tree

5 files changed

+652
-10
lines changed

5 files changed

+652
-10
lines changed

output/csharp/src/Seam/Api/AccessGrants.cs

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,197 @@ await GetAsync(
574574
);
575575
}
576576

577+
[DataContract(Name = "getRelatedRequest_request")]
578+
public class GetRelatedRequest
579+
{
580+
[JsonConstructorAttribute]
581+
protected GetRelatedRequest() { }
582+
583+
public GetRelatedRequest(
584+
List<string> accessGrantIds = default,
585+
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
586+
List<GetRelatedRequest.IncludeEnum>? include = default
587+
)
588+
{
589+
AccessGrantIds = accessGrantIds;
590+
Exclude = exclude;
591+
Include = include;
592+
}
593+
594+
[JsonConverter(typeof(SafeStringEnumConverter))]
595+
public enum ExcludeEnum
596+
{
597+
[EnumMember(Value = "unrecognized")]
598+
Unrecognized = 0,
599+
600+
[EnumMember(Value = "spaces")]
601+
Spaces = 1,
602+
603+
[EnumMember(Value = "devices")]
604+
Devices = 2,
605+
606+
[EnumMember(Value = "acs_entrances")]
607+
AcsEntrances = 3,
608+
609+
[EnumMember(Value = "connected_accounts")]
610+
ConnectedAccounts = 4,
611+
612+
[EnumMember(Value = "acs_systems")]
613+
AcsSystems = 5,
614+
615+
[EnumMember(Value = "user_identity")]
616+
UserIdentity = 6,
617+
618+
[EnumMember(Value = "acs_access_groups")]
619+
AcsAccessGroups = 7,
620+
}
621+
622+
[JsonConverter(typeof(SafeStringEnumConverter))]
623+
public enum IncludeEnum
624+
{
625+
[EnumMember(Value = "unrecognized")]
626+
Unrecognized = 0,
627+
628+
[EnumMember(Value = "spaces")]
629+
Spaces = 1,
630+
631+
[EnumMember(Value = "devices")]
632+
Devices = 2,
633+
634+
[EnumMember(Value = "acs_entrances")]
635+
AcsEntrances = 3,
636+
637+
[EnumMember(Value = "connected_accounts")]
638+
ConnectedAccounts = 4,
639+
640+
[EnumMember(Value = "acs_systems")]
641+
AcsSystems = 5,
642+
643+
[EnumMember(Value = "user_identity")]
644+
UserIdentity = 6,
645+
646+
[EnumMember(Value = "acs_access_groups")]
647+
AcsAccessGroups = 7,
648+
}
649+
650+
[DataMember(Name = "access_grant_ids", IsRequired = true, EmitDefaultValue = false)]
651+
public List<string> AccessGrantIds { get; set; }
652+
653+
[DataMember(Name = "exclude", IsRequired = false, EmitDefaultValue = false)]
654+
public List<GetRelatedRequest.ExcludeEnum>? Exclude { get; set; }
655+
656+
[DataMember(Name = "include", IsRequired = false, EmitDefaultValue = false)]
657+
public List<GetRelatedRequest.IncludeEnum>? Include { get; set; }
658+
659+
public override string ToString()
660+
{
661+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
662+
663+
StringWriter stringWriter = new StringWriter(
664+
new StringBuilder(256),
665+
System.Globalization.CultureInfo.InvariantCulture
666+
);
667+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
668+
{
669+
jsonTextWriter.IndentChar = ' ';
670+
jsonTextWriter.Indentation = 2;
671+
jsonTextWriter.Formatting = Formatting.Indented;
672+
jsonSerializer.Serialize(jsonTextWriter, this, null);
673+
}
674+
675+
return stringWriter.ToString();
676+
}
677+
}
678+
679+
[DataContract(Name = "getRelatedResponse_response")]
680+
public class GetRelatedResponse
681+
{
682+
[JsonConstructorAttribute]
683+
protected GetRelatedResponse() { }
684+
685+
public GetRelatedResponse(Batch batch = default)
686+
{
687+
Batch = batch;
688+
}
689+
690+
[DataMember(Name = "batch", IsRequired = false, EmitDefaultValue = false)]
691+
public Batch Batch { get; set; }
692+
693+
public override string ToString()
694+
{
695+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
696+
697+
StringWriter stringWriter = new StringWriter(
698+
new StringBuilder(256),
699+
System.Globalization.CultureInfo.InvariantCulture
700+
);
701+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
702+
{
703+
jsonTextWriter.IndentChar = ' ';
704+
jsonTextWriter.Indentation = 2;
705+
jsonTextWriter.Formatting = Formatting.Indented;
706+
jsonSerializer.Serialize(jsonTextWriter, this, null);
707+
}
708+
709+
return stringWriter.ToString();
710+
}
711+
}
712+
713+
public Batch GetRelated(GetRelatedRequest request)
714+
{
715+
var requestOptions = new RequestOptions();
716+
requestOptions.Data = request;
717+
return _seam
718+
.Post<GetRelatedResponse>("/access_grants/get_related", requestOptions)
719+
.Data.Batch;
720+
}
721+
722+
public Batch GetRelated(
723+
List<string> accessGrantIds = default,
724+
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
725+
List<GetRelatedRequest.IncludeEnum>? include = default
726+
)
727+
{
728+
return GetRelated(
729+
new GetRelatedRequest(
730+
accessGrantIds: accessGrantIds,
731+
exclude: exclude,
732+
include: include
733+
)
734+
);
735+
}
736+
737+
public async Task<Batch> GetRelatedAsync(GetRelatedRequest request)
738+
{
739+
var requestOptions = new RequestOptions();
740+
requestOptions.Data = request;
741+
return (
742+
await _seam.PostAsync<GetRelatedResponse>(
743+
"/access_grants/get_related",
744+
requestOptions
745+
)
746+
)
747+
.Data
748+
.Batch;
749+
}
750+
751+
public async Task<Batch> GetRelatedAsync(
752+
List<string> accessGrantIds = default,
753+
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
754+
List<GetRelatedRequest.IncludeEnum>? include = default
755+
)
756+
{
757+
return (
758+
await GetRelatedAsync(
759+
new GetRelatedRequest(
760+
accessGrantIds: accessGrantIds,
761+
exclude: exclude,
762+
include: include
763+
)
764+
)
765+
);
766+
}
767+
577768
[DataContract(Name = "listRequest_request")]
578769
public class ListRequest
579770
{

output/csharp/src/Seam/Api/AccessMethods.cs

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,197 @@ public async Task<AccessMethod> GetAsync(string accessMethodId = default)
279279
return (await GetAsync(new GetRequest(accessMethodId: accessMethodId)));
280280
}
281281

282+
[DataContract(Name = "getRelatedRequest_request")]
283+
public class GetRelatedRequest
284+
{
285+
[JsonConstructorAttribute]
286+
protected GetRelatedRequest() { }
287+
288+
public GetRelatedRequest(
289+
List<string> accessMethodIds = default,
290+
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
291+
List<GetRelatedRequest.IncludeEnum>? include = default
292+
)
293+
{
294+
AccessMethodIds = accessMethodIds;
295+
Exclude = exclude;
296+
Include = include;
297+
}
298+
299+
[JsonConverter(typeof(SafeStringEnumConverter))]
300+
public enum ExcludeEnum
301+
{
302+
[EnumMember(Value = "unrecognized")]
303+
Unrecognized = 0,
304+
305+
[EnumMember(Value = "spaces")]
306+
Spaces = 1,
307+
308+
[EnumMember(Value = "devices")]
309+
Devices = 2,
310+
311+
[EnumMember(Value = "acs_entrances")]
312+
AcsEntrances = 3,
313+
314+
[EnumMember(Value = "access_grants")]
315+
AccessGrants = 4,
316+
317+
[EnumMember(Value = "access_methods")]
318+
AccessMethods = 5,
319+
320+
[EnumMember(Value = "instant_keys")]
321+
InstantKeys = 6,
322+
323+
[EnumMember(Value = "client_sessions")]
324+
ClientSessions = 7,
325+
}
326+
327+
[JsonConverter(typeof(SafeStringEnumConverter))]
328+
public enum IncludeEnum
329+
{
330+
[EnumMember(Value = "unrecognized")]
331+
Unrecognized = 0,
332+
333+
[EnumMember(Value = "spaces")]
334+
Spaces = 1,
335+
336+
[EnumMember(Value = "devices")]
337+
Devices = 2,
338+
339+
[EnumMember(Value = "acs_entrances")]
340+
AcsEntrances = 3,
341+
342+
[EnumMember(Value = "access_grants")]
343+
AccessGrants = 4,
344+
345+
[EnumMember(Value = "access_methods")]
346+
AccessMethods = 5,
347+
348+
[EnumMember(Value = "instant_keys")]
349+
InstantKeys = 6,
350+
351+
[EnumMember(Value = "client_sessions")]
352+
ClientSessions = 7,
353+
}
354+
355+
[DataMember(Name = "access_method_ids", IsRequired = true, EmitDefaultValue = false)]
356+
public List<string> AccessMethodIds { get; set; }
357+
358+
[DataMember(Name = "exclude", IsRequired = false, EmitDefaultValue = false)]
359+
public List<GetRelatedRequest.ExcludeEnum>? Exclude { get; set; }
360+
361+
[DataMember(Name = "include", IsRequired = false, EmitDefaultValue = false)]
362+
public List<GetRelatedRequest.IncludeEnum>? Include { get; set; }
363+
364+
public override string ToString()
365+
{
366+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
367+
368+
StringWriter stringWriter = new StringWriter(
369+
new StringBuilder(256),
370+
System.Globalization.CultureInfo.InvariantCulture
371+
);
372+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
373+
{
374+
jsonTextWriter.IndentChar = ' ';
375+
jsonTextWriter.Indentation = 2;
376+
jsonTextWriter.Formatting = Formatting.Indented;
377+
jsonSerializer.Serialize(jsonTextWriter, this, null);
378+
}
379+
380+
return stringWriter.ToString();
381+
}
382+
}
383+
384+
[DataContract(Name = "getRelatedResponse_response")]
385+
public class GetRelatedResponse
386+
{
387+
[JsonConstructorAttribute]
388+
protected GetRelatedResponse() { }
389+
390+
public GetRelatedResponse(Batch batch = default)
391+
{
392+
Batch = batch;
393+
}
394+
395+
[DataMember(Name = "batch", IsRequired = false, EmitDefaultValue = false)]
396+
public Batch Batch { get; set; }
397+
398+
public override string ToString()
399+
{
400+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
401+
402+
StringWriter stringWriter = new StringWriter(
403+
new StringBuilder(256),
404+
System.Globalization.CultureInfo.InvariantCulture
405+
);
406+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
407+
{
408+
jsonTextWriter.IndentChar = ' ';
409+
jsonTextWriter.Indentation = 2;
410+
jsonTextWriter.Formatting = Formatting.Indented;
411+
jsonSerializer.Serialize(jsonTextWriter, this, null);
412+
}
413+
414+
return stringWriter.ToString();
415+
}
416+
}
417+
418+
public Batch GetRelated(GetRelatedRequest request)
419+
{
420+
var requestOptions = new RequestOptions();
421+
requestOptions.Data = request;
422+
return _seam
423+
.Post<GetRelatedResponse>("/access_methods/get_related", requestOptions)
424+
.Data.Batch;
425+
}
426+
427+
public Batch GetRelated(
428+
List<string> accessMethodIds = default,
429+
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
430+
List<GetRelatedRequest.IncludeEnum>? include = default
431+
)
432+
{
433+
return GetRelated(
434+
new GetRelatedRequest(
435+
accessMethodIds: accessMethodIds,
436+
exclude: exclude,
437+
include: include
438+
)
439+
);
440+
}
441+
442+
public async Task<Batch> GetRelatedAsync(GetRelatedRequest request)
443+
{
444+
var requestOptions = new RequestOptions();
445+
requestOptions.Data = request;
446+
return (
447+
await _seam.PostAsync<GetRelatedResponse>(
448+
"/access_methods/get_related",
449+
requestOptions
450+
)
451+
)
452+
.Data
453+
.Batch;
454+
}
455+
456+
public async Task<Batch> GetRelatedAsync(
457+
List<string> accessMethodIds = default,
458+
List<GetRelatedRequest.ExcludeEnum>? exclude = default,
459+
List<GetRelatedRequest.IncludeEnum>? include = default
460+
)
461+
{
462+
return (
463+
await GetRelatedAsync(
464+
new GetRelatedRequest(
465+
accessMethodIds: accessMethodIds,
466+
exclude: exclude,
467+
include: include
468+
)
469+
)
470+
);
471+
}
472+
282473
[DataContract(Name = "listRequest_request")]
283474
public class ListRequest
284475
{

0 commit comments

Comments
 (0)