Skip to content

Commit ad31e1a

Browse files
yoshi-automationfeywind
authored andcommitted
feat(retail): update the API
#### retail:v2alpha The following keys were added: - resources.projects.resources.locations.resources.catalogs.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.projects.resources.locations.resources.catalogs.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.projects.resources.locations.resources.catalogs.resources.operations.methods.list.parameters.returnPartialSuccess.type - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.type - resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.type - schemas.GoogleLongrunningListOperationsResponse.properties.unreachable.description - schemas.GoogleLongrunningListOperationsResponse.properties.unreachable.items.type - schemas.GoogleLongrunningListOperationsResponse.properties.unreachable.type #### retail:v2beta The following keys were added: - resources.projects.resources.locations.resources.catalogs.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.projects.resources.locations.resources.catalogs.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.projects.resources.locations.resources.catalogs.resources.operations.methods.list.parameters.returnPartialSuccess.type - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.type - resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.type - schemas.GoogleLongrunningListOperationsResponse.properties.unreachable.description - schemas.GoogleLongrunningListOperationsResponse.properties.unreachable.items.type - schemas.GoogleLongrunningListOperationsResponse.properties.unreachable.type #### retail:v2 The following keys were added: - resources.projects.resources.locations.resources.catalogs.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.projects.resources.locations.resources.catalogs.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.projects.resources.locations.resources.catalogs.resources.operations.methods.list.parameters.returnPartialSuccess.type - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.type - resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.type - schemas.GoogleLongrunningListOperationsResponse.properties.unreachable.description - schemas.GoogleLongrunningListOperationsResponse.properties.unreachable.items.type - schemas.GoogleLongrunningListOperationsResponse.properties.unreachable.type
1 parent aa144d1 commit ad31e1a

File tree

6 files changed

+153
-12
lines changed

6 files changed

+153
-12
lines changed

discovery/retail-v2.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,11 @@
16451645
"description": "The standard list page token.",
16461646
"location": "query",
16471647
"type": "string"
1648+
},
1649+
"returnPartialSuccess": {
1650+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
1651+
"location": "query",
1652+
"type": "boolean"
16481653
}
16491654
},
16501655
"path": "v2/{+name}/operations",
@@ -2251,6 +2256,11 @@
22512256
"description": "The standard list page token.",
22522257
"location": "query",
22532258
"type": "string"
2259+
},
2260+
"returnPartialSuccess": {
2261+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
2262+
"location": "query",
2263+
"type": "boolean"
22542264
}
22552265
},
22562266
"path": "v2/{+name}/operations",
@@ -2323,6 +2333,11 @@
23232333
"description": "The standard list page token.",
23242334
"location": "query",
23252335
"type": "string"
2336+
},
2337+
"returnPartialSuccess": {
2338+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
2339+
"location": "query",
2340+
"type": "boolean"
23262341
}
23272342
},
23282343
"path": "v2/{+name}/operations",
@@ -2338,7 +2353,7 @@
23382353
}
23392354
}
23402355
},
2341-
"revision": "20250911",
2356+
"revision": "20251002",
23422357
"rootUrl": "https://retail.googleapis.com/",
23432358
"schemas": {
23442359
"GoogleApiHttpBody": {
@@ -8316,6 +8331,13 @@
83168331
"$ref": "GoogleLongrunningOperation"
83178332
},
83188333
"type": "array"
8334+
},
8335+
"unreachable": {
8336+
"description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.",
8337+
"items": {
8338+
"type": "string"
8339+
},
8340+
"type": "array"
83198341
}
83208342
},
83218343
"type": "object"

discovery/retail-v2alpha.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2106,6 +2106,11 @@
21062106
"description": "The standard list page token.",
21072107
"location": "query",
21082108
"type": "string"
2109+
},
2110+
"returnPartialSuccess": {
2111+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
2112+
"location": "query",
2113+
"type": "boolean"
21092114
}
21102115
},
21112116
"path": "v2alpha/{+name}/operations",
@@ -2740,6 +2745,11 @@
27402745
"description": "The standard list page token.",
27412746
"location": "query",
27422747
"type": "string"
2748+
},
2749+
"returnPartialSuccess": {
2750+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
2751+
"location": "query",
2752+
"type": "boolean"
27432753
}
27442754
},
27452755
"path": "v2alpha/{+name}/operations",
@@ -2812,6 +2822,11 @@
28122822
"description": "The standard list page token.",
28132823
"location": "query",
28142824
"type": "string"
2825+
},
2826+
"returnPartialSuccess": {
2827+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
2828+
"location": "query",
2829+
"type": "boolean"
28152830
}
28162831
},
28172832
"path": "v2alpha/{+name}/operations",
@@ -2859,7 +2874,7 @@
28592874
}
28602875
}
28612876
},
2862-
"revision": "20250911",
2877+
"revision": "20251002",
28632878
"rootUrl": "https://retail.googleapis.com/",
28642879
"schemas": {
28652880
"GoogleApiHttpBody": {
@@ -9397,6 +9412,13 @@
93979412
"$ref": "GoogleLongrunningOperation"
93989413
},
93999414
"type": "array"
9415+
},
9416+
"unreachable": {
9417+
"description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.",
9418+
"items": {
9419+
"type": "string"
9420+
},
9421+
"type": "array"
94009422
}
94019423
},
94029424
"type": "object"

discovery/retail-v2beta.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,11 @@
17621762
"description": "The standard list page token.",
17631763
"location": "query",
17641764
"type": "string"
1765+
},
1766+
"returnPartialSuccess": {
1767+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
1768+
"location": "query",
1769+
"type": "boolean"
17651770
}
17661771
},
17671772
"path": "v2beta/{+name}/operations",
@@ -2396,6 +2401,11 @@
23962401
"description": "The standard list page token.",
23972402
"location": "query",
23982403
"type": "string"
2404+
},
2405+
"returnPartialSuccess": {
2406+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
2407+
"location": "query",
2408+
"type": "boolean"
23992409
}
24002410
},
24012411
"path": "v2beta/{+name}/operations",
@@ -2468,6 +2478,11 @@
24682478
"description": "The standard list page token.",
24692479
"location": "query",
24702480
"type": "string"
2481+
},
2482+
"returnPartialSuccess": {
2483+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
2484+
"location": "query",
2485+
"type": "boolean"
24712486
}
24722487
},
24732488
"path": "v2beta/{+name}/operations",
@@ -2483,7 +2498,7 @@
24832498
}
24842499
}
24852500
},
2486-
"revision": "20250911",
2501+
"revision": "20251002",
24872502
"rootUrl": "https://retail.googleapis.com/",
24882503
"schemas": {
24892504
"GoogleApiHttpBody": {
@@ -8679,6 +8694,13 @@
86798694
"$ref": "GoogleLongrunningOperation"
86808695
},
86818696
"type": "array"
8697+
},
8698+
"unreachable": {
8699+
"description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.",
8700+
"items": {
8701+
"type": "string"
8702+
},
8703+
"type": "array"
86828704
}
86838705
},
86848706
"type": "object"

src/apis/retail/v2.ts

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4371,6 +4371,10 @@ export namespace retail_v2 {
43714371
* A list of operations that matches the specified filter in the request.
43724372
*/
43734373
operations?: Schema$GoogleLongrunningOperation[];
4374+
/**
4375+
* Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.
4376+
*/
4377+
unreachable?: string[] | null;
43744378
}
43754379
/**
43764380
* This resource represents a long-running operation that is the result of a network API call.
@@ -12853,13 +12857,16 @@ export namespace retail_v2 {
1285312857
* pageSize: 'placeholder-value',
1285412858
* // The standard list page token.
1285512859
* pageToken: 'placeholder-value',
12860+
* // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
12861+
* returnPartialSuccess: 'placeholder-value',
1285612862
* });
1285712863
* console.log(res.data);
1285812864
*
1285912865
* // Example response
1286012866
* // {
1286112867
* // "nextPageToken": "my_nextPageToken",
12862-
* // "operations": []
12868+
* // "operations": [],
12869+
* // "unreachable": []
1286312870
* // }
1286412871
* }
1286512872
*
@@ -12995,6 +13002,10 @@ export namespace retail_v2 {
1299513002
* The standard list page token.
1299613003
*/
1299713004
pageToken?: string;
13005+
/**
13006+
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
13007+
*/
13008+
returnPartialSuccess?: boolean;
1299813009
}
1299913010

1300013011
export class Resource$Projects$Locations$Catalogs$Placements {
@@ -16506,13 +16517,16 @@ export namespace retail_v2 {
1650616517
* pageSize: 'placeholder-value',
1650716518
* // The standard list page token.
1650816519
* pageToken: 'placeholder-value',
16520+
* // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
16521+
* returnPartialSuccess: 'placeholder-value',
1650916522
* });
1651016523
* console.log(res.data);
1651116524
*
1651216525
* // Example response
1651316526
* // {
1651416527
* // "nextPageToken": "my_nextPageToken",
16515-
* // "operations": []
16528+
* // "operations": [],
16529+
* // "unreachable": []
1651616530
* // }
1651716531
* }
1651816532
*
@@ -16647,6 +16661,10 @@ export namespace retail_v2 {
1664716661
* The standard list page token.
1664816662
*/
1664916663
pageToken?: string;
16664+
/**
16665+
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
16666+
*/
16667+
returnPartialSuccess?: boolean;
1665016668
}
1665116669

1665216670
export class Resource$Projects$Operations {
@@ -16836,13 +16854,16 @@ export namespace retail_v2 {
1683616854
* pageSize: 'placeholder-value',
1683716855
* // The standard list page token.
1683816856
* pageToken: 'placeholder-value',
16857+
* // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
16858+
* returnPartialSuccess: 'placeholder-value',
1683916859
* });
1684016860
* console.log(res.data);
1684116861
*
1684216862
* // Example response
1684316863
* // {
1684416864
* // "nextPageToken": "my_nextPageToken",
16845-
* // "operations": []
16865+
* // "operations": [],
16866+
* // "unreachable": []
1684616867
* // }
1684716868
* }
1684816869
*
@@ -16977,5 +16998,9 @@ export namespace retail_v2 {
1697716998
* The standard list page token.
1697816999
*/
1697917000
pageToken?: string;
17001+
/**
17002+
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
17003+
*/
17004+
returnPartialSuccess?: boolean;
1698017005
}
1698117006
}

0 commit comments

Comments
 (0)