Skip to content

Commit 58c65f1

Browse files
chore(api): update composite API spec
1 parent 159c287 commit 58c65f1

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1902
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1d690e35246e392197c60dd7b9c3ece69bb0e84a83bdfa349f809de1524a1458.yml
3-
openapi_spec_hash: 15013e32424c98cb7def6b652c61d05e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-45cc1044f65226c9103ee86d741e6b648e01975f1f6433f30c005a62f5e2895d.yml
3+
openapi_spec_hash: 54339a8f81a58d4e5de5bbc2fa188bdf
44
config_hash: c3197a7cf9595a0f252f8810e74954ef

resource_sharing/recipient.go

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,9 @@ type RecipientNewResponse struct {
152152
// When the share was created.
153153
Created time.Time `json:"created,required" format:"date-time"`
154154
// When the share was modified.
155-
Modified time.Time `json:"modified,required" format:"date-time"`
156-
// Share Recipient status message.
157-
StatusMessage string `json:"status_message,required"`
158-
Resources []RecipientNewResponseResource `json:"resources"`
159-
JSON recipientNewResponseJSON `json:"-"`
155+
Modified time.Time `json:"modified,required" format:"date-time"`
156+
Resources []RecipientNewResponseResource `json:"resources"`
157+
JSON recipientNewResponseJSON `json:"-"`
160158
}
161159

162160
// recipientNewResponseJSON contains the JSON metadata for the struct
@@ -167,7 +165,6 @@ type recipientNewResponseJSON struct {
167165
AssociationStatus apijson.Field
168166
Created apijson.Field
169167
Modified apijson.Field
170-
StatusMessage apijson.Field
171168
Resources apijson.Field
172169
raw string
173170
ExtraFields map[string]apijson.Field
@@ -205,8 +202,10 @@ type RecipientNewResponseResource struct {
205202
// Share Resource identifier.
206203
ResourceID string `json:"resource_id,required"`
207204
// Resource Version.
208-
ResourceVersion int64 `json:"resource_version,required"`
209-
JSON recipientNewResponseResourceJSON `json:"-"`
205+
ResourceVersion int64 `json:"resource_version,required"`
206+
// Whether the error is terminal or will be continually retried.
207+
Terminal bool `json:"terminal,required"`
208+
JSON recipientNewResponseResourceJSON `json:"-"`
210209
}
211210

212211
// recipientNewResponseResourceJSON contains the JSON metadata for the struct
@@ -215,6 +214,7 @@ type recipientNewResponseResourceJSON struct {
215214
Error apijson.Field
216215
ResourceID apijson.Field
217216
ResourceVersion apijson.Field
217+
Terminal apijson.Field
218218
raw string
219219
ExtraFields map[string]apijson.Field
220220
}
@@ -237,11 +237,9 @@ type RecipientListResponse struct {
237237
// When the share was created.
238238
Created time.Time `json:"created,required" format:"date-time"`
239239
// When the share was modified.
240-
Modified time.Time `json:"modified,required" format:"date-time"`
241-
// Share Recipient status message.
242-
StatusMessage string `json:"status_message,required"`
243-
Resources []RecipientListResponseResource `json:"resources"`
244-
JSON recipientListResponseJSON `json:"-"`
240+
Modified time.Time `json:"modified,required" format:"date-time"`
241+
Resources []RecipientListResponseResource `json:"resources"`
242+
JSON recipientListResponseJSON `json:"-"`
245243
}
246244

247245
// recipientListResponseJSON contains the JSON metadata for the struct
@@ -252,7 +250,6 @@ type recipientListResponseJSON struct {
252250
AssociationStatus apijson.Field
253251
Created apijson.Field
254252
Modified apijson.Field
255-
StatusMessage apijson.Field
256253
Resources apijson.Field
257254
raw string
258255
ExtraFields map[string]apijson.Field
@@ -290,8 +287,10 @@ type RecipientListResponseResource struct {
290287
// Share Resource identifier.
291288
ResourceID string `json:"resource_id,required"`
292289
// Resource Version.
293-
ResourceVersion int64 `json:"resource_version,required"`
294-
JSON recipientListResponseResourceJSON `json:"-"`
290+
ResourceVersion int64 `json:"resource_version,required"`
291+
// Whether the error is terminal or will be continually retried.
292+
Terminal bool `json:"terminal,required"`
293+
JSON recipientListResponseResourceJSON `json:"-"`
295294
}
296295

297296
// recipientListResponseResourceJSON contains the JSON metadata for the struct
@@ -300,6 +299,7 @@ type recipientListResponseResourceJSON struct {
300299
Error apijson.Field
301300
ResourceID apijson.Field
302301
ResourceVersion apijson.Field
302+
Terminal apijson.Field
303303
raw string
304304
ExtraFields map[string]apijson.Field
305305
}
@@ -322,11 +322,9 @@ type RecipientDeleteResponse struct {
322322
// When the share was created.
323323
Created time.Time `json:"created,required" format:"date-time"`
324324
// When the share was modified.
325-
Modified time.Time `json:"modified,required" format:"date-time"`
326-
// Share Recipient status message.
327-
StatusMessage string `json:"status_message,required"`
328-
Resources []RecipientDeleteResponseResource `json:"resources"`
329-
JSON recipientDeleteResponseJSON `json:"-"`
325+
Modified time.Time `json:"modified,required" format:"date-time"`
326+
Resources []RecipientDeleteResponseResource `json:"resources"`
327+
JSON recipientDeleteResponseJSON `json:"-"`
330328
}
331329

332330
// recipientDeleteResponseJSON contains the JSON metadata for the struct
@@ -337,7 +335,6 @@ type recipientDeleteResponseJSON struct {
337335
AssociationStatus apijson.Field
338336
Created apijson.Field
339337
Modified apijson.Field
340-
StatusMessage apijson.Field
341338
Resources apijson.Field
342339
raw string
343340
ExtraFields map[string]apijson.Field
@@ -375,8 +372,10 @@ type RecipientDeleteResponseResource struct {
375372
// Share Resource identifier.
376373
ResourceID string `json:"resource_id,required"`
377374
// Resource Version.
378-
ResourceVersion int64 `json:"resource_version,required"`
379-
JSON recipientDeleteResponseResourceJSON `json:"-"`
375+
ResourceVersion int64 `json:"resource_version,required"`
376+
// Whether the error is terminal or will be continually retried.
377+
Terminal bool `json:"terminal,required"`
378+
JSON recipientDeleteResponseResourceJSON `json:"-"`
380379
}
381380

382381
// recipientDeleteResponseResourceJSON contains the JSON metadata for the struct
@@ -385,6 +384,7 @@ type recipientDeleteResponseResourceJSON struct {
385384
Error apijson.Field
386385
ResourceID apijson.Field
387386
ResourceVersion apijson.Field
387+
Terminal apijson.Field
388388
raw string
389389
ExtraFields map[string]apijson.Field
390390
}
@@ -407,11 +407,9 @@ type RecipientGetResponse struct {
407407
// When the share was created.
408408
Created time.Time `json:"created,required" format:"date-time"`
409409
// When the share was modified.
410-
Modified time.Time `json:"modified,required" format:"date-time"`
411-
// Share Recipient status message.
412-
StatusMessage string `json:"status_message,required"`
413-
Resources []RecipientGetResponseResource `json:"resources"`
414-
JSON recipientGetResponseJSON `json:"-"`
410+
Modified time.Time `json:"modified,required" format:"date-time"`
411+
Resources []RecipientGetResponseResource `json:"resources"`
412+
JSON recipientGetResponseJSON `json:"-"`
415413
}
416414

417415
// recipientGetResponseJSON contains the JSON metadata for the struct
@@ -422,7 +420,6 @@ type recipientGetResponseJSON struct {
422420
AssociationStatus apijson.Field
423421
Created apijson.Field
424422
Modified apijson.Field
425-
StatusMessage apijson.Field
426423
Resources apijson.Field
427424
raw string
428425
ExtraFields map[string]apijson.Field
@@ -460,8 +457,10 @@ type RecipientGetResponseResource struct {
460457
// Share Resource identifier.
461458
ResourceID string `json:"resource_id,required"`
462459
// Resource Version.
463-
ResourceVersion int64 `json:"resource_version,required"`
464-
JSON recipientGetResponseResourceJSON `json:"-"`
460+
ResourceVersion int64 `json:"resource_version,required"`
461+
// Whether the error is terminal or will be continually retried.
462+
Terminal bool `json:"terminal,required"`
463+
JSON recipientGetResponseResourceJSON `json:"-"`
465464
}
466465

467466
// recipientGetResponseResourceJSON contains the JSON metadata for the struct
@@ -470,6 +469,7 @@ type recipientGetResponseResourceJSON struct {
470469
Error apijson.Field
471470
ResourceID apijson.Field
472471
ResourceVersion apijson.Field
472+
Terminal apijson.Field
473473
raw string
474474
ExtraFields map[string]apijson.Field
475475
}

0 commit comments

Comments
 (0)