Skip to content

Commit

Permalink
feat(retail): update the API
Browse files Browse the repository at this point in the history
#### retail:v2alpha

The following keys were added:
- schemas.GoogleCloudRetailV2alphaEnrollSolutionMetadata.description
- schemas.GoogleCloudRetailV2alphaEnrollSolutionMetadata.id
- schemas.GoogleCloudRetailV2alphaEnrollSolutionMetadata.type

The following keys were changed:
- resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.patch.parameters.name.description
- resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.setInventory.parameters.name.description
- schemas.GoogleCloudRetailV2alphaColorInfo.properties.colors.description
- schemas.GoogleCloudRetailV2alphaProduct.properties.name.description

#### retail:v2beta

The following keys were added:
- schemas.GoogleCloudRetailV2alphaEnrollSolutionMetadata.description
- schemas.GoogleCloudRetailV2alphaEnrollSolutionMetadata.id
- schemas.GoogleCloudRetailV2alphaEnrollSolutionMetadata.type

The following keys were changed:
- resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.patch.parameters.name.description
- resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.setInventory.parameters.name.description
- schemas.GoogleCloudRetailV2betaColorInfo.properties.colors.description
- schemas.GoogleCloudRetailV2betaProduct.properties.name.description

#### retail:v2

The following keys were added:
- schemas.GoogleCloudRetailV2alphaEnrollSolutionMetadata.description
- schemas.GoogleCloudRetailV2alphaEnrollSolutionMetadata.id
- schemas.GoogleCloudRetailV2alphaEnrollSolutionMetadata.type

The following keys were changed:
- resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.patch.parameters.name.description
- resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.setInventory.parameters.name.description
- schemas.GoogleCloudRetailV2ColorInfo.properties.colors.description
- schemas.GoogleCloudRetailV2Product.properties.name.description
  • Loading branch information
yoshi-automation committed Sep 27, 2021
1 parent 3b56f80 commit 247191b
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 33 deletions.
16 changes: 11 additions & 5 deletions discovery/retail-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@
"type": "boolean"
},
"name": {
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be \"default_branch\".",
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$",
"required": true,
Expand Down Expand Up @@ -589,7 +589,7 @@
],
"parameters": {
"name": {
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be \"default_branch\".",
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$",
"required": true,
Expand Down Expand Up @@ -1007,7 +1007,7 @@
}
}
},
"revision": "20210906",
"revision": "20210924",
"rootUrl": "https://retail.googleapis.com/",
"schemas": {
"GoogleApiHttpBody": {
Expand Down Expand Up @@ -1282,7 +1282,7 @@
"type": "array"
},
"colors": {
"description": "The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single \"Mixed\" instead of multiple values. A maximum of 5 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).",
"description": "The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single \"Mixed\" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -1981,7 +1981,7 @@
"type": "array"
},
"name": {
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be \"default_branch\".",
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.",
"type": "string"
},
"patterns": {
Expand Down Expand Up @@ -2924,6 +2924,12 @@
"properties": {},
"type": "object"
},
"GoogleCloudRetailV2alphaEnrollSolutionMetadata": {
"description": "Metadata related to the EnrollSolution method. This will be returned by the google.longrunning.Operation.metadata field.",
"id": "GoogleCloudRetailV2alphaEnrollSolutionMetadata",
"properties": {},
"type": "object"
},
"GoogleCloudRetailV2alphaExportErrorsConfig": {
"description": "Configuration of destination for Export related errors.",
"id": "GoogleCloudRetailV2alphaExportErrorsConfig",
Expand Down
16 changes: 11 additions & 5 deletions discovery/retail-v2alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@
"type": "boolean"
},
"name": {
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be \"default_branch\".",
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$",
"required": true,
Expand Down Expand Up @@ -594,7 +594,7 @@
],
"parameters": {
"name": {
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be \"default_branch\".",
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$",
"required": true,
Expand Down Expand Up @@ -1012,7 +1012,7 @@
}
}
},
"revision": "20210906",
"revision": "20210924",
"rootUrl": "https://retail.googleapis.com/",
"schemas": {
"GoogleApiHttpBody": {
Expand Down Expand Up @@ -1480,7 +1480,7 @@
"type": "array"
},
"colors": {
"description": "The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single \"Mixed\" instead of multiple values. A maximum of 5 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).",
"description": "The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single \"Mixed\" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -1604,6 +1604,12 @@
},
"type": "object"
},
"GoogleCloudRetailV2alphaEnrollSolutionMetadata": {
"description": "Metadata related to the EnrollSolution method. This will be returned by the google.longrunning.Operation.metadata field.",
"id": "GoogleCloudRetailV2alphaEnrollSolutionMetadata",
"properties": {},
"type": "object"
},
"GoogleCloudRetailV2alphaExportErrorsConfig": {
"description": "Configuration of destination for Export related errors.",
"id": "GoogleCloudRetailV2alphaExportErrorsConfig",
Expand Down Expand Up @@ -2285,7 +2291,7 @@
"type": "array"
},
"name": {
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be \"default_branch\".",
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.",
"type": "string"
},
"patterns": {
Expand Down
16 changes: 11 additions & 5 deletions discovery/retail-v2beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@
"type": "boolean"
},
"name": {
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be \"default_branch\".",
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$",
"required": true,
Expand Down Expand Up @@ -589,7 +589,7 @@
],
"parameters": {
"name": {
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be \"default_branch\".",
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$",
"required": true,
Expand Down Expand Up @@ -1007,7 +1007,7 @@
}
}
},
"revision": "20210906",
"revision": "20210924",
"rootUrl": "https://retail.googleapis.com/",
"schemas": {
"GoogleApiHttpBody": {
Expand Down Expand Up @@ -1361,6 +1361,12 @@
"properties": {},
"type": "object"
},
"GoogleCloudRetailV2alphaEnrollSolutionMetadata": {
"description": "Metadata related to the EnrollSolution method. This will be returned by the google.longrunning.Operation.metadata field.",
"id": "GoogleCloudRetailV2alphaEnrollSolutionMetadata",
"properties": {},
"type": "object"
},
"GoogleCloudRetailV2alphaExportErrorsConfig": {
"description": "Configuration of destination for Export related errors.",
"id": "GoogleCloudRetailV2alphaExportErrorsConfig",
Expand Down Expand Up @@ -1724,7 +1730,7 @@
"type": "array"
},
"colors": {
"description": "The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single \"Mixed\" instead of multiple values. A maximum of 5 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).",
"description": "The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single \"Mixed\" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -2487,7 +2493,7 @@
"type": "array"
},
"name": {
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be \"default_branch\".",
"description": "Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.",
"type": "string"
},
"patterns": {
Expand Down
16 changes: 10 additions & 6 deletions src/apis/retail/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ export namespace retail_v2 {
* Response of the RemoveFulfillmentPlacesRequest. Currently empty because there is no meaningful response populated from the AddFulfillmentPlaces method.
*/
export interface Schema$GoogleCloudRetailV2alphaAddFulfillmentPlacesResponse {}
/**
* Metadata related to the EnrollSolution method. This will be returned by the google.longrunning.Operation.metadata field.
*/
export interface Schema$GoogleCloudRetailV2alphaEnrollSolutionMetadata {}
/**
* Configuration of destination for Export related errors.
*/
Expand Down Expand Up @@ -717,7 +721,7 @@ export namespace retail_v2 {
*/
colorFamilies?: string[] | null;
/**
* The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single "Mixed" instead of multiple values. A maximum of 5 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
* The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single "Mixed" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
*/
colors?: string[] | null;
}
Expand Down Expand Up @@ -1240,7 +1244,7 @@ export namespace retail_v2 {
*/
materials?: string[] | null;
/**
* Immutable. Full resource name of the product, such as `projects/x/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be "default_branch".
* Immutable. Full resource name of the product, such as `projects/x/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
*/
name?: string | null;
/**
Expand Down Expand Up @@ -4055,7 +4059,7 @@ export namespace retail_v2 {
* const res = await retail.projects.locations.catalogs.branches.products.patch({
* // If set to true, and the Product is not found, a new Product will be created. In this situation, `update_mask` is ignored.
* allowMissing: 'placeholder-value',
* // Immutable. Full resource name of the product, such as `projects/x/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be "default_branch".
* // Immutable. Full resource name of the product, such as `projects/x/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
* name: 'projects/my-project/locations/my-location/catalogs/my-catalog/branches/my-branche/products/.*',
* // Indicates which fields in the provided Product to update. The immutable and output only fields are NOT supported. If not set, all supported fields (the fields that are neither immutable nor output only) are updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.
* updateMask: 'placeholder-value',
Expand Down Expand Up @@ -4420,7 +4424,7 @@ export namespace retail_v2 {
* // Do the magic
* const res =
* await retail.projects.locations.catalogs.branches.products.setInventory({
* // Immutable. Full resource name of the product, such as `projects/x/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be "default_branch".
* // Immutable. Full resource name of the product, such as `projects/x/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
* name: 'projects/my-project/locations/my-location/catalogs/my-catalog/branches/my-branche/products/.*',
*
* // Request body metadata
Expand Down Expand Up @@ -4630,7 +4634,7 @@ export namespace retail_v2 {
*/
allowMissing?: boolean;
/**
* Immutable. Full resource name of the product, such as `projects/x/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be "default_branch".
* Immutable. Full resource name of the product, such as `projects/x/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
*/
name?: string;
/**
Expand Down Expand Up @@ -4658,7 +4662,7 @@ export namespace retail_v2 {
export interface Params$Resource$Projects$Locations$Catalogs$Branches$Products$Setinventory
extends StandardParameters {
/**
* Immutable. Full resource name of the product, such as `projects/x/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. The branch ID must be "default_branch".
* Immutable. Full resource name of the product, such as `projects/x/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
*/
name?: string;

Expand Down
Loading

0 comments on commit 247191b

Please sign in to comment.