@@ -27,6 +27,7 @@ protected CreateRequest() { }
27
27
public CreateRequest (
28
28
string ? userIdentityId = default ,
29
29
CreateRequestUserIdentity ? userIdentity = default ,
30
+ string ? accessGrantKey = default ,
30
31
List < string > ? acsEntranceIds = default ,
31
32
List < string > ? deviceIds = default ,
32
33
string ? endsAt = default ,
@@ -39,6 +40,7 @@ public CreateRequest(
39
40
{
40
41
UserIdentityId = userIdentityId ;
41
42
UserIdentity = userIdentity ;
43
+ AccessGrantKey = accessGrantKey ;
42
44
AcsEntranceIds = acsEntranceIds ;
43
45
DeviceIds = deviceIds ;
44
46
EndsAt = endsAt ;
@@ -55,6 +57,9 @@ public CreateRequest(
55
57
[ DataMember ( Name = "user_identity" , IsRequired = false , EmitDefaultValue = false ) ]
56
58
public CreateRequestUserIdentity ? UserIdentity { get ; set ; }
57
59
60
+ [ DataMember ( Name = "access_grant_key" , IsRequired = false , EmitDefaultValue = false ) ]
61
+ public string ? AccessGrantKey { get ; set ; }
62
+
58
63
[ DataMember ( Name = "acs_entrance_ids" , IsRequired = false , EmitDefaultValue = false ) ]
59
64
public List < string > ? AcsEntranceIds { get ; set ; }
60
65
@@ -293,6 +298,7 @@ public AccessGrant Create(CreateRequest request)
293
298
public AccessGrant Create (
294
299
string ? userIdentityId = default ,
295
300
CreateRequestUserIdentity ? userIdentity = default ,
301
+ string ? accessGrantKey = default ,
296
302
List < string > ? acsEntranceIds = default ,
297
303
List < string > ? deviceIds = default ,
298
304
string ? endsAt = default ,
@@ -307,6 +313,7 @@ public AccessGrant Create(
307
313
new CreateRequest (
308
314
userIdentityId : userIdentityId ,
309
315
userIdentity : userIdentity ,
316
+ accessGrantKey : accessGrantKey ,
310
317
acsEntranceIds : acsEntranceIds ,
311
318
deviceIds : deviceIds ,
312
319
endsAt : endsAt ,
@@ -331,6 +338,7 @@ public async Task<AccessGrant> CreateAsync(CreateRequest request)
331
338
public async Task < AccessGrant > CreateAsync (
332
339
string ? userIdentityId = default ,
333
340
CreateRequestUserIdentity ? userIdentity = default ,
341
+ string ? accessGrantKey = default ,
334
342
List < string > ? acsEntranceIds = default ,
335
343
List < string > ? deviceIds = default ,
336
344
string ? endsAt = default ,
@@ -346,6 +354,7 @@ await CreateAsync(
346
354
new CreateRequest (
347
355
userIdentityId : userIdentityId ,
348
356
userIdentity : userIdentity ,
357
+ accessGrantKey : accessGrantKey ,
349
358
acsEntranceIds : acsEntranceIds ,
350
359
deviceIds : deviceIds ,
351
360
endsAt : endsAt ,
@@ -423,13 +432,17 @@ public class GetRequest
423
432
[ JsonConstructorAttribute ]
424
433
protected GetRequest ( ) { }
425
434
426
- public GetRequest ( string accessGrantId = default )
435
+ public GetRequest ( string ? accessGrantId = default , string ? accessGrantKey = default )
427
436
{
428
437
AccessGrantId = accessGrantId ;
438
+ AccessGrantKey = accessGrantKey ;
429
439
}
430
440
431
- [ DataMember ( Name = "access_grant_id" , IsRequired = true , EmitDefaultValue = false ) ]
432
- public string AccessGrantId { get ; set ; }
441
+ [ DataMember ( Name = "access_grant_id" , IsRequired = false , EmitDefaultValue = false ) ]
442
+ public string ? AccessGrantId { get ; set ; }
443
+
444
+ [ DataMember ( Name = "access_grant_key" , IsRequired = false , EmitDefaultValue = false ) ]
445
+ public string ? AccessGrantKey { get ; set ; }
433
446
434
447
public override string ToString ( )
435
448
{
@@ -492,9 +505,11 @@ public AccessGrant Get(GetRequest request)
492
505
return _seam . Post < GetResponse > ( "/access_grants/get" , requestOptions ) . Data . AccessGrant ;
493
506
}
494
507
495
- public AccessGrant Get ( string accessGrantId = default )
508
+ public AccessGrant Get ( string ? accessGrantId = default , string ? accessGrantKey = default )
496
509
{
497
- return Get ( new GetRequest ( accessGrantId : accessGrantId ) ) ;
510
+ return Get (
511
+ new GetRequest ( accessGrantId : accessGrantId , accessGrantKey : accessGrantKey )
512
+ ) ;
498
513
}
499
514
500
515
public async Task < AccessGrant > GetAsync ( GetRequest request )
@@ -506,9 +521,16 @@ public async Task<AccessGrant> GetAsync(GetRequest request)
506
521
. AccessGrant ;
507
522
}
508
523
509
- public async Task < AccessGrant > GetAsync ( string accessGrantId = default )
524
+ public async Task < AccessGrant > GetAsync (
525
+ string ? accessGrantId = default ,
526
+ string ? accessGrantKey = default
527
+ )
510
528
{
511
- return ( await GetAsync ( new GetRequest ( accessGrantId : accessGrantId ) ) ) ;
529
+ return (
530
+ await GetAsync (
531
+ new GetRequest ( accessGrantId : accessGrantId , accessGrantKey : accessGrantKey )
532
+ )
533
+ ) ;
512
534
}
513
535
514
536
[ DataContract ( Name = "listRequest_request" ) ]
@@ -518,20 +540,25 @@ public class ListRequest
518
540
protected ListRequest ( ) { }
519
541
520
542
public ListRequest (
543
+ string ? accessGrantKey = default ,
521
544
string ? acsEntranceId = default ,
522
545
string ? acsSystemId = default ,
523
546
string ? locationId = default ,
524
547
string ? spaceId = default ,
525
548
string ? userIdentityId = default
526
549
)
527
550
{
551
+ AccessGrantKey = accessGrantKey ;
528
552
AcsEntranceId = acsEntranceId ;
529
553
AcsSystemId = acsSystemId ;
530
554
LocationId = locationId ;
531
555
SpaceId = spaceId ;
532
556
UserIdentityId = userIdentityId ;
533
557
}
534
558
559
+ [ DataMember ( Name = "access_grant_key" , IsRequired = false , EmitDefaultValue = false ) ]
560
+ public string ? AccessGrantKey { get ; set ; }
561
+
535
562
[ DataMember ( Name = "acs_entrance_id" , IsRequired = false , EmitDefaultValue = false ) ]
536
563
public string ? AcsEntranceId { get ; set ; }
537
564
@@ -611,6 +638,7 @@ public List<AccessGrant> List(ListRequest request)
611
638
}
612
639
613
640
public List < AccessGrant > List (
641
+ string ? accessGrantKey = default ,
614
642
string ? acsEntranceId = default ,
615
643
string ? acsSystemId = default ,
616
644
string ? locationId = default ,
@@ -620,6 +648,7 @@ public List<AccessGrant> List(
620
648
{
621
649
return List (
622
650
new ListRequest (
651
+ accessGrantKey : accessGrantKey ,
623
652
acsEntranceId : acsEntranceId ,
624
653
acsSystemId : acsSystemId ,
625
654
locationId : locationId ,
@@ -639,6 +668,7 @@ public async Task<List<AccessGrant>> ListAsync(ListRequest request)
639
668
}
640
669
641
670
public async Task < List < AccessGrant > > ListAsync (
671
+ string ? accessGrantKey = default ,
642
672
string ? acsEntranceId = default ,
643
673
string ? acsSystemId = default ,
644
674
string ? locationId = default ,
@@ -649,6 +679,7 @@ public async Task<List<AccessGrant>> ListAsync(
649
679
return (
650
680
await ListAsync (
651
681
new ListRequest (
682
+ accessGrantKey : accessGrantKey ,
652
683
acsEntranceId : acsEntranceId ,
653
684
acsSystemId : acsSystemId ,
654
685
locationId : locationId ,
0 commit comments