@@ -28,13 +28,6 @@ func newACLs(sdkConfig sdkConfiguration) *ACLs {
28
28
// ListACL - List all ACLs
29
29
// List all ACLs
30
30
func (s * ACLs ) ListACL (ctx context.Context , request operations.ListACLRequest , opts ... operations.Option ) (* operations.ListACLResponse , error ) {
31
- hookCtx := hooks.HookContext {
32
- Context : ctx ,
33
- OperationID : "list-acl" ,
34
- OAuth2Scopes : []string {},
35
- SecuritySource : s .sdkConfiguration .Security ,
36
- }
37
-
38
31
o := operations.Options {}
39
32
supportedOptions := []string {
40
33
operations .SupportedOptionRetries ,
@@ -58,6 +51,14 @@ func (s *ACLs) ListACL(ctx context.Context, request operations.ListACLRequest, o
58
51
return nil , fmt .Errorf ("error generating URL: %w" , err )
59
52
}
60
53
54
+ hookCtx := hooks.HookContext {
55
+ BaseURL : baseURL ,
56
+ Context : ctx ,
57
+ OperationID : "list-acl" ,
58
+ OAuth2Scopes : []string {},
59
+ SecuritySource : s .sdkConfiguration .Security ,
60
+ }
61
+
61
62
timeout := o .Timeout
62
63
if timeout == nil {
63
64
timeout = s .sdkConfiguration .Timeout
@@ -253,13 +254,6 @@ func (s *ACLs) ListACL(ctx context.Context, request operations.ListACLRequest, o
253
254
// GetACL - Fetch an ACL
254
255
// Get an ACL using ID.
255
256
func (s * ACLs ) GetACL (ctx context.Context , aclID string , controlPlaneID string , opts ... operations.Option ) (* operations.GetACLResponse , error ) {
256
- hookCtx := hooks.HookContext {
257
- Context : ctx ,
258
- OperationID : "get-acl" ,
259
- OAuth2Scopes : []string {},
260
- SecuritySource : s .sdkConfiguration .Security ,
261
- }
262
-
263
257
request := operations.GetACLRequest {
264
258
ACLID : aclID ,
265
259
ControlPlaneID : controlPlaneID ,
@@ -288,6 +282,14 @@ func (s *ACLs) GetACL(ctx context.Context, aclID string, controlPlaneID string,
288
282
return nil , fmt .Errorf ("error generating URL: %w" , err )
289
283
}
290
284
285
+ hookCtx := hooks.HookContext {
286
+ BaseURL : baseURL ,
287
+ Context : ctx ,
288
+ OperationID : "get-acl" ,
289
+ OAuth2Scopes : []string {},
290
+ SecuritySource : s .sdkConfiguration .Security ,
291
+ }
292
+
291
293
timeout := o .Timeout
292
294
if timeout == nil {
293
295
timeout = s .sdkConfiguration .Timeout
@@ -481,13 +483,6 @@ func (s *ACLs) GetACL(ctx context.Context, aclID string, controlPlaneID string,
481
483
// ListACLWithConsumer - List all ACLs associated with a Consumer
482
484
// List all ACLs associated with a Consumer
483
485
func (s * ACLs ) ListACLWithConsumer (ctx context.Context , request operations.ListACLWithConsumerRequest , opts ... operations.Option ) (* operations.ListACLWithConsumerResponse , error ) {
484
- hookCtx := hooks.HookContext {
485
- Context : ctx ,
486
- OperationID : "list-acl-with-consumer" ,
487
- OAuth2Scopes : []string {},
488
- SecuritySource : s .sdkConfiguration .Security ,
489
- }
490
-
491
486
o := operations.Options {}
492
487
supportedOptions := []string {
493
488
operations .SupportedOptionRetries ,
@@ -511,6 +506,14 @@ func (s *ACLs) ListACLWithConsumer(ctx context.Context, request operations.ListA
511
506
return nil , fmt .Errorf ("error generating URL: %w" , err )
512
507
}
513
508
509
+ hookCtx := hooks.HookContext {
510
+ BaseURL : baseURL ,
511
+ Context : ctx ,
512
+ OperationID : "list-acl-with-consumer" ,
513
+ OAuth2Scopes : []string {},
514
+ SecuritySource : s .sdkConfiguration .Security ,
515
+ }
516
+
514
517
timeout := o .Timeout
515
518
if timeout == nil {
516
519
timeout = s .sdkConfiguration .Timeout
@@ -685,13 +688,6 @@ func (s *ACLs) ListACLWithConsumer(ctx context.Context, request operations.ListA
685
688
// CreateACLWithConsumer - Create a new ACL associated with a Consumer
686
689
// Create a new ACL associated with a Consumer
687
690
func (s * ACLs ) CreateACLWithConsumer (ctx context.Context , request operations.CreateACLWithConsumerRequest , opts ... operations.Option ) (* operations.CreateACLWithConsumerResponse , error ) {
688
- hookCtx := hooks.HookContext {
689
- Context : ctx ,
690
- OperationID : "create-acl-with-consumer" ,
691
- OAuth2Scopes : []string {},
692
- SecuritySource : s .sdkConfiguration .Security ,
693
- }
694
-
695
691
o := operations.Options {}
696
692
supportedOptions := []string {
697
693
operations .SupportedOptionRetries ,
@@ -715,6 +711,13 @@ func (s *ACLs) CreateACLWithConsumer(ctx context.Context, request operations.Cre
715
711
return nil , fmt .Errorf ("error generating URL: %w" , err )
716
712
}
717
713
714
+ hookCtx := hooks.HookContext {
715
+ BaseURL : baseURL ,
716
+ Context : ctx ,
717
+ OperationID : "create-acl-with-consumer" ,
718
+ OAuth2Scopes : []string {},
719
+ SecuritySource : s .sdkConfiguration .Security ,
720
+ }
718
721
bodyReader , reqContentType , err := utils .SerializeRequestBody (ctx , request , false , false , "ACLWithoutParents" , "json" , `request:"mediaType=application/json"` )
719
722
if err != nil {
720
723
return nil , err
@@ -893,13 +896,6 @@ func (s *ACLs) CreateACLWithConsumer(ctx context.Context, request operations.Cre
893
896
// DeleteACLWithConsumer - Delete a an ACL associated with a Consumer
894
897
// Delete a an ACL associated with a Consumer using ID.
895
898
func (s * ACLs ) DeleteACLWithConsumer (ctx context.Context , request operations.DeleteACLWithConsumerRequest , opts ... operations.Option ) (* operations.DeleteACLWithConsumerResponse , error ) {
896
- hookCtx := hooks.HookContext {
897
- Context : ctx ,
898
- OperationID : "delete-acl-with-consumer" ,
899
- OAuth2Scopes : []string {},
900
- SecuritySource : s .sdkConfiguration .Security ,
901
- }
902
-
903
899
o := operations.Options {}
904
900
supportedOptions := []string {
905
901
operations .SupportedOptionRetries ,
@@ -923,6 +919,14 @@ func (s *ACLs) DeleteACLWithConsumer(ctx context.Context, request operations.Del
923
919
return nil , fmt .Errorf ("error generating URL: %w" , err )
924
920
}
925
921
922
+ hookCtx := hooks.HookContext {
923
+ BaseURL : baseURL ,
924
+ Context : ctx ,
925
+ OperationID : "delete-acl-with-consumer" ,
926
+ OAuth2Scopes : []string {},
927
+ SecuritySource : s .sdkConfiguration .Security ,
928
+ }
929
+
926
930
timeout := o .Timeout
927
931
if timeout == nil {
928
932
timeout = s .sdkConfiguration .Timeout
@@ -1073,13 +1077,6 @@ func (s *ACLs) DeleteACLWithConsumer(ctx context.Context, request operations.Del
1073
1077
// GetACLWithConsumer - Fetch an ACL associated with a Consumer
1074
1078
// Get an ACL associated with a Consumer using ID.
1075
1079
func (s * ACLs ) GetACLWithConsumer (ctx context.Context , request operations.GetACLWithConsumerRequest , opts ... operations.Option ) (* operations.GetACLWithConsumerResponse , error ) {
1076
- hookCtx := hooks.HookContext {
1077
- Context : ctx ,
1078
- OperationID : "get-acl-with-consumer" ,
1079
- OAuth2Scopes : []string {},
1080
- SecuritySource : s .sdkConfiguration .Security ,
1081
- }
1082
-
1083
1080
o := operations.Options {}
1084
1081
supportedOptions := []string {
1085
1082
operations .SupportedOptionRetries ,
@@ -1103,6 +1100,14 @@ func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACL
1103
1100
return nil , fmt .Errorf ("error generating URL: %w" , err )
1104
1101
}
1105
1102
1103
+ hookCtx := hooks.HookContext {
1104
+ BaseURL : baseURL ,
1105
+ Context : ctx ,
1106
+ OperationID : "get-acl-with-consumer" ,
1107
+ OAuth2Scopes : []string {},
1108
+ SecuritySource : s .sdkConfiguration .Security ,
1109
+ }
1110
+
1106
1111
timeout := o .Timeout
1107
1112
if timeout == nil {
1108
1113
timeout = s .sdkConfiguration .Timeout
@@ -1275,13 +1280,6 @@ func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACL
1275
1280
// UpsertACLWithConsumer - Upsert an ACL associated with a Consumer
1276
1281
// Create or Update an ACL associated with a Consumer using ID.
1277
1282
func (s * ACLs ) UpsertACLWithConsumer (ctx context.Context , request operations.UpsertACLWithConsumerRequest , opts ... operations.Option ) (* operations.UpsertACLWithConsumerResponse , error ) {
1278
- hookCtx := hooks.HookContext {
1279
- Context : ctx ,
1280
- OperationID : "upsert-acl-with-consumer" ,
1281
- OAuth2Scopes : []string {},
1282
- SecuritySource : s .sdkConfiguration .Security ,
1283
- }
1284
-
1285
1283
o := operations.Options {}
1286
1284
supportedOptions := []string {
1287
1285
operations .SupportedOptionRetries ,
@@ -1305,6 +1303,13 @@ func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.Ups
1305
1303
return nil , fmt .Errorf ("error generating URL: %w" , err )
1306
1304
}
1307
1305
1306
+ hookCtx := hooks.HookContext {
1307
+ BaseURL : baseURL ,
1308
+ Context : ctx ,
1309
+ OperationID : "upsert-acl-with-consumer" ,
1310
+ OAuth2Scopes : []string {},
1311
+ SecuritySource : s .sdkConfiguration .Security ,
1312
+ }
1308
1313
bodyReader , reqContentType , err := utils .SerializeRequestBody (ctx , request , false , false , "ACLWithoutParents" , "json" , `request:"mediaType=application/json"` )
1309
1314
if err != nil {
1310
1315
return nil , err
0 commit comments