@@ -39,7 +39,7 @@ func NewAccessGroupService(opts ...option.RequestOption) (r *AccessGroupService)
39
39
}
40
40
41
41
// Creates a new Access group.
42
- func (r * AccessGroupService ) New (ctx context.Context , params AccessGroupNewParams , opts ... option.RequestOption ) (res * ZeroTrustGroup , err error ) {
42
+ func (r * AccessGroupService ) New (ctx context.Context , params AccessGroupNewParams , opts ... option.RequestOption ) (res * AccessGroupNewResponse , err error ) {
43
43
var env AccessGroupNewResponseEnvelope
44
44
opts = append (r .Options [:], opts ... )
45
45
var accountOrZone string
@@ -70,7 +70,7 @@ func (r *AccessGroupService) New(ctx context.Context, params AccessGroupNewParam
70
70
}
71
71
72
72
// Updates a configured Access group.
73
- func (r * AccessGroupService ) Update (ctx context.Context , groupID string , params AccessGroupUpdateParams , opts ... option.RequestOption ) (res * ZeroTrustGroup , err error ) {
73
+ func (r * AccessGroupService ) Update (ctx context.Context , groupID string , params AccessGroupUpdateParams , opts ... option.RequestOption ) (res * AccessGroupUpdateResponse , err error ) {
74
74
var env AccessGroupUpdateResponseEnvelope
75
75
opts = append (r .Options [:], opts ... )
76
76
var accountOrZone string
@@ -105,7 +105,7 @@ func (r *AccessGroupService) Update(ctx context.Context, groupID string, params
105
105
}
106
106
107
107
// Lists all Access groups.
108
- func (r * AccessGroupService ) List (ctx context.Context , params AccessGroupListParams , opts ... option.RequestOption ) (res * pagination.SinglePage [ZeroTrustGroup ], err error ) {
108
+ func (r * AccessGroupService ) List (ctx context.Context , params AccessGroupListParams , opts ... option.RequestOption ) (res * pagination.SinglePage [AccessGroupListResponse ], err error ) {
109
109
var raw * http.Response
110
110
opts = append (r .Options [:], opts ... )
111
111
opts = append ([]option.RequestOption {option .WithResponseInto (& raw )}, opts ... )
@@ -141,7 +141,7 @@ func (r *AccessGroupService) List(ctx context.Context, params AccessGroupListPar
141
141
}
142
142
143
143
// Lists all Access groups.
144
- func (r * AccessGroupService ) ListAutoPaging (ctx context.Context , params AccessGroupListParams , opts ... option.RequestOption ) * pagination.SinglePageAutoPager [ZeroTrustGroup ] {
144
+ func (r * AccessGroupService ) ListAutoPaging (ctx context.Context , params AccessGroupListParams , opts ... option.RequestOption ) * pagination.SinglePageAutoPager [AccessGroupListResponse ] {
145
145
return pagination .NewSinglePageAutoPager (r .List (ctx , params , opts ... ))
146
146
}
147
147
@@ -181,7 +181,7 @@ func (r *AccessGroupService) Delete(ctx context.Context, groupID string, body Ac
181
181
}
182
182
183
183
// Fetches a single Access group.
184
- func (r * AccessGroupService ) Get (ctx context.Context , groupID string , query AccessGroupGetParams , opts ... option.RequestOption ) (res * ZeroTrustGroup , err error ) {
184
+ func (r * AccessGroupService ) Get (ctx context.Context , groupID string , query AccessGroupGetParams , opts ... option.RequestOption ) (res * AccessGroupGetResponse , err error ) {
185
185
var env AccessGroupGetResponseEnvelope
186
186
opts = append (r .Options [:], opts ... )
187
187
var accountOrZone string
@@ -215,7 +215,7 @@ func (r *AccessGroupService) Get(ctx context.Context, groupID string, query Acce
215
215
return
216
216
}
217
217
218
- type ZeroTrustGroup struct {
218
+ type AccessGroupNewResponse struct {
219
219
// UUID
220
220
ID string `json:"id"`
221
221
CreatedAt time.Time `json:"created_at" format:"date-time"`
@@ -232,13 +232,14 @@ type ZeroTrustGroup struct {
232
232
Name string `json:"name"`
233
233
// Rules evaluated with an AND logical operator. To match a policy, a user must
234
234
// meet all of the Require rules.
235
- Require []AccessRule `json:"require"`
236
- UpdatedAt time.Time `json:"updated_at" format:"date-time"`
237
- JSON zeroTrustGroupJSON `json:"-"`
235
+ Require []AccessRule `json:"require"`
236
+ UpdatedAt time.Time `json:"updated_at" format:"date-time"`
237
+ JSON accessGroupNewResponseJSON `json:"-"`
238
238
}
239
239
240
- // zeroTrustGroupJSON contains the JSON metadata for the struct [ZeroTrustGroup]
241
- type zeroTrustGroupJSON struct {
240
+ // accessGroupNewResponseJSON contains the JSON metadata for the struct
241
+ // [AccessGroupNewResponse]
242
+ type accessGroupNewResponseJSON struct {
242
243
ID apijson.Field
243
244
CreatedAt apijson.Field
244
245
Exclude apijson.Field
@@ -251,11 +252,101 @@ type zeroTrustGroupJSON struct {
251
252
ExtraFields map [string ]apijson.Field
252
253
}
253
254
254
- func (r * ZeroTrustGroup ) UnmarshalJSON (data []byte ) (err error ) {
255
+ func (r * AccessGroupNewResponse ) UnmarshalJSON (data []byte ) (err error ) {
255
256
return apijson .UnmarshalRoot (data , r )
256
257
}
257
258
258
- func (r zeroTrustGroupJSON ) RawJSON () string {
259
+ func (r accessGroupNewResponseJSON ) RawJSON () string {
260
+ return r .raw
261
+ }
262
+
263
+ type AccessGroupUpdateResponse struct {
264
+ // UUID
265
+ ID string `json:"id"`
266
+ CreatedAt time.Time `json:"created_at" format:"date-time"`
267
+ // Rules evaluated with a NOT logical operator. To match a policy, a user cannot
268
+ // meet any of the Exclude rules.
269
+ Exclude []AccessRule `json:"exclude"`
270
+ // Rules evaluated with an OR logical operator. A user needs to meet only one of
271
+ // the Include rules.
272
+ Include []AccessRule `json:"include"`
273
+ // Rules evaluated with an AND logical operator. To match a policy, a user must
274
+ // meet all of the Require rules.
275
+ IsDefault []AccessRule `json:"is_default"`
276
+ // The name of the Access group.
277
+ Name string `json:"name"`
278
+ // Rules evaluated with an AND logical operator. To match a policy, a user must
279
+ // meet all of the Require rules.
280
+ Require []AccessRule `json:"require"`
281
+ UpdatedAt time.Time `json:"updated_at" format:"date-time"`
282
+ JSON accessGroupUpdateResponseJSON `json:"-"`
283
+ }
284
+
285
+ // accessGroupUpdateResponseJSON contains the JSON metadata for the struct
286
+ // [AccessGroupUpdateResponse]
287
+ type accessGroupUpdateResponseJSON struct {
288
+ ID apijson.Field
289
+ CreatedAt apijson.Field
290
+ Exclude apijson.Field
291
+ Include apijson.Field
292
+ IsDefault apijson.Field
293
+ Name apijson.Field
294
+ Require apijson.Field
295
+ UpdatedAt apijson.Field
296
+ raw string
297
+ ExtraFields map [string ]apijson.Field
298
+ }
299
+
300
+ func (r * AccessGroupUpdateResponse ) UnmarshalJSON (data []byte ) (err error ) {
301
+ return apijson .UnmarshalRoot (data , r )
302
+ }
303
+
304
+ func (r accessGroupUpdateResponseJSON ) RawJSON () string {
305
+ return r .raw
306
+ }
307
+
308
+ type AccessGroupListResponse struct {
309
+ // UUID
310
+ ID string `json:"id"`
311
+ CreatedAt time.Time `json:"created_at" format:"date-time"`
312
+ // Rules evaluated with a NOT logical operator. To match a policy, a user cannot
313
+ // meet any of the Exclude rules.
314
+ Exclude []AccessRule `json:"exclude"`
315
+ // Rules evaluated with an OR logical operator. A user needs to meet only one of
316
+ // the Include rules.
317
+ Include []AccessRule `json:"include"`
318
+ // Rules evaluated with an AND logical operator. To match a policy, a user must
319
+ // meet all of the Require rules.
320
+ IsDefault []AccessRule `json:"is_default"`
321
+ // The name of the Access group.
322
+ Name string `json:"name"`
323
+ // Rules evaluated with an AND logical operator. To match a policy, a user must
324
+ // meet all of the Require rules.
325
+ Require []AccessRule `json:"require"`
326
+ UpdatedAt time.Time `json:"updated_at" format:"date-time"`
327
+ JSON accessGroupListResponseJSON `json:"-"`
328
+ }
329
+
330
+ // accessGroupListResponseJSON contains the JSON metadata for the struct
331
+ // [AccessGroupListResponse]
332
+ type accessGroupListResponseJSON struct {
333
+ ID apijson.Field
334
+ CreatedAt apijson.Field
335
+ Exclude apijson.Field
336
+ Include apijson.Field
337
+ IsDefault apijson.Field
338
+ Name apijson.Field
339
+ Require apijson.Field
340
+ UpdatedAt apijson.Field
341
+ raw string
342
+ ExtraFields map [string ]apijson.Field
343
+ }
344
+
345
+ func (r * AccessGroupListResponse ) UnmarshalJSON (data []byte ) (err error ) {
346
+ return apijson .UnmarshalRoot (data , r )
347
+ }
348
+
349
+ func (r accessGroupListResponseJSON ) RawJSON () string {
259
350
return r .raw
260
351
}
261
352
@@ -281,6 +372,51 @@ func (r accessGroupDeleteResponseJSON) RawJSON() string {
281
372
return r .raw
282
373
}
283
374
375
+ type AccessGroupGetResponse struct {
376
+ // UUID
377
+ ID string `json:"id"`
378
+ CreatedAt time.Time `json:"created_at" format:"date-time"`
379
+ // Rules evaluated with a NOT logical operator. To match a policy, a user cannot
380
+ // meet any of the Exclude rules.
381
+ Exclude []AccessRule `json:"exclude"`
382
+ // Rules evaluated with an OR logical operator. A user needs to meet only one of
383
+ // the Include rules.
384
+ Include []AccessRule `json:"include"`
385
+ // Rules evaluated with an AND logical operator. To match a policy, a user must
386
+ // meet all of the Require rules.
387
+ IsDefault []AccessRule `json:"is_default"`
388
+ // The name of the Access group.
389
+ Name string `json:"name"`
390
+ // Rules evaluated with an AND logical operator. To match a policy, a user must
391
+ // meet all of the Require rules.
392
+ Require []AccessRule `json:"require"`
393
+ UpdatedAt time.Time `json:"updated_at" format:"date-time"`
394
+ JSON accessGroupGetResponseJSON `json:"-"`
395
+ }
396
+
397
+ // accessGroupGetResponseJSON contains the JSON metadata for the struct
398
+ // [AccessGroupGetResponse]
399
+ type accessGroupGetResponseJSON struct {
400
+ ID apijson.Field
401
+ CreatedAt apijson.Field
402
+ Exclude apijson.Field
403
+ Include apijson.Field
404
+ IsDefault apijson.Field
405
+ Name apijson.Field
406
+ Require apijson.Field
407
+ UpdatedAt apijson.Field
408
+ raw string
409
+ ExtraFields map [string ]apijson.Field
410
+ }
411
+
412
+ func (r * AccessGroupGetResponse ) UnmarshalJSON (data []byte ) (err error ) {
413
+ return apijson .UnmarshalRoot (data , r )
414
+ }
415
+
416
+ func (r accessGroupGetResponseJSON ) RawJSON () string {
417
+ return r .raw
418
+ }
419
+
284
420
type AccessGroupNewParams struct {
285
421
// Rules evaluated with an OR logical operator. A user needs to meet only one of
286
422
// the Include rules.
@@ -310,7 +446,7 @@ type AccessGroupNewResponseEnvelope struct {
310
446
Messages []shared.ResponseInfo `json:"messages,required"`
311
447
// Whether the API call was successful
312
448
Success AccessGroupNewResponseEnvelopeSuccess `json:"success,required"`
313
- Result ZeroTrustGroup `json:"result"`
449
+ Result AccessGroupNewResponse `json:"result"`
314
450
JSON accessGroupNewResponseEnvelopeJSON `json:"-"`
315
451
}
316
452
@@ -377,7 +513,7 @@ type AccessGroupUpdateResponseEnvelope struct {
377
513
Messages []shared.ResponseInfo `json:"messages,required"`
378
514
// Whether the API call was successful
379
515
Success AccessGroupUpdateResponseEnvelopeSuccess `json:"success,required"`
380
- Result ZeroTrustGroup `json:"result"`
516
+ Result AccessGroupUpdateResponse `json:"result"`
381
517
JSON accessGroupUpdateResponseEnvelopeJSON `json:"-"`
382
518
}
383
519
@@ -496,7 +632,7 @@ type AccessGroupGetResponseEnvelope struct {
496
632
Messages []shared.ResponseInfo `json:"messages,required"`
497
633
// Whether the API call was successful
498
634
Success AccessGroupGetResponseEnvelopeSuccess `json:"success,required"`
499
- Result ZeroTrustGroup `json:"result"`
635
+ Result AccessGroupGetResponse `json:"result"`
500
636
JSON accessGroupGetResponseEnvelopeJSON `json:"-"`
501
637
}
502
638
0 commit comments