Skip to content

Commit 6a362da

Browse files
feat(retail): update the api
#### retail:v2alpha The following keys were added: - resources.projects.resources.locations.resources.catalogs.resources.controls.methods.create (Total Keys: 14) - resources.projects.resources.locations.resources.catalogs.resources.controls.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.catalogs.resources.controls.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.catalogs.resources.controls.methods.list (Total Keys: 18) - resources.projects.resources.locations.resources.catalogs.resources.controls.methods.patch (Total Keys: 15) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.addControl (Total Keys: 12) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.create (Total Keys: 14) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.patch (Total Keys: 15) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.removeControl (Total Keys: 12) - schemas.GoogleCloudRetailV2alphaAddControlRequest (Total Keys: 3) - schemas.GoogleCloudRetailV2alphaCondition (Total Keys: 16) - schemas.GoogleCloudRetailV2alphaControl (Total Keys: 11) - schemas.GoogleCloudRetailV2alphaListControlsResponse (Total Keys: 5) - schemas.GoogleCloudRetailV2alphaListServingConfigsResponse (Total Keys: 5) - schemas.GoogleCloudRetailV2alphaRemoveControlRequest (Total Keys: 3) - schemas.GoogleCloudRetailV2alphaRule (Total Keys: 52) - schemas.GoogleCloudRetailV2alphaServingConfig (Total Keys: 29) #### retail:v2beta The following keys were added: - resources.projects.resources.locations.resources.catalogs.resources.controls.methods.create (Total Keys: 14) - resources.projects.resources.locations.resources.catalogs.resources.controls.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.catalogs.resources.controls.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.catalogs.resources.controls.methods.list (Total Keys: 18) - resources.projects.resources.locations.resources.catalogs.resources.controls.methods.patch (Total Keys: 15) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.addControl (Total Keys: 12) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.create (Total Keys: 14) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.patch (Total Keys: 15) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.removeControl (Total Keys: 12) - schemas.GoogleCloudRetailV2betaAddControlRequest (Total Keys: 3) - schemas.GoogleCloudRetailV2betaCondition (Total Keys: 16) - schemas.GoogleCloudRetailV2betaControl (Total Keys: 11) - schemas.GoogleCloudRetailV2betaListControlsResponse (Total Keys: 5) - schemas.GoogleCloudRetailV2betaListServingConfigsResponse (Total Keys: 5) - schemas.GoogleCloudRetailV2betaRemoveControlRequest (Total Keys: 3) - schemas.GoogleCloudRetailV2betaRule (Total Keys: 52) - schemas.GoogleCloudRetailV2betaServingConfig (Total Keys: 29)
1 parent 2e03f25 commit 6a362da

18 files changed

+4674
-104
lines changed

docs/dyn/retail_v2.projects.locations.catalogs.branches.products.html

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

docs/dyn/retail_v2.projects.locations.catalogs.placements.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ <h3>Method Details</h3>
175175
&quot;categories&quot;: [ # Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use &#x27;&gt;&#x27; sign to separate different hierarchies. If &#x27;&gt;&#x27; is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both [&quot;Shoes &amp; Accessories&quot; -&gt; &quot;Shoes&quot;] and [&quot;Sports &amp; Fitness&quot; -&gt; &quot;Athletic Clothing&quot; -&gt; &quot;Shoes&quot;], it could be represented as: &quot;categories&quot;: [ &quot;Shoes &amp; Accessories &gt; Shoes&quot;, &quot;Sports &amp; Fitness &gt; Athletic Clothing &gt; Shoes&quot; ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
176176
&quot;A String&quot;,
177177
],
178-
&quot;collectionMemberIds&quot;: [ # The id of the collection members when type is Type.COLLECTION. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
178+
&quot;collectionMemberIds&quot;: [ # The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
179179
&quot;A String&quot;,
180180
],
181181
&quot;colorInfo&quot;: { # The color information of a Product. # The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
@@ -472,7 +472,7 @@ <h3>Method Details</h3>
472472
&quot;categories&quot;: [ # Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use &#x27;&gt;&#x27; sign to separate different hierarchies. If &#x27;&gt;&#x27; is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both [&quot;Shoes &amp; Accessories&quot; -&gt; &quot;Shoes&quot;] and [&quot;Sports &amp; Fitness&quot; -&gt; &quot;Athletic Clothing&quot; -&gt; &quot;Shoes&quot;], it could be represented as: &quot;categories&quot;: [ &quot;Shoes &amp; Accessories &gt; Shoes&quot;, &quot;Sports &amp; Fitness &gt; Athletic Clothing &gt; Shoes&quot; ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
473473
&quot;A String&quot;,
474474
],
475-
&quot;collectionMemberIds&quot;: [ # The id of the collection members when type is Type.COLLECTION. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
475+
&quot;collectionMemberIds&quot;: [ # The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
476476
&quot;A String&quot;,
477477
],
478478
&quot;colorInfo&quot;: { # The color information of a Product. # The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).

docs/dyn/retail_v2.projects.locations.catalogs.userEvents.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ <h3>Method Details</h3>
153153
&quot;tableId&quot;: &quot;A String&quot;, # Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
154154
},
155155
&quot;gcsSource&quot;: { # Google Cloud Storage location for input content. format. # Required. Google Cloud Storage location for the input content.
156-
&quot;dataSchema&quot;: &quot;A String&quot;, # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * &#x27;control&#x27; (default): One JSON Control per line.
156+
&quot;dataSchema&quot;: &quot;A String&quot;, # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * &#x27;control&#x27; (default): One JSON Control per line. Supported values for catalog attribute imports: * &#x27;catalog_attribute&#x27; (default): One CSV CatalogAttribute per line.
157157
&quot;inputUris&quot;: [ # Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB. See [Importing product information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the expected file format and setup instructions.
158158
&quot;A String&quot;,
159159
],
@@ -224,7 +224,7 @@ <h3>Method Details</h3>
224224
&quot;categories&quot;: [ # Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use &#x27;&gt;&#x27; sign to separate different hierarchies. If &#x27;&gt;&#x27; is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both [&quot;Shoes &amp; Accessories&quot; -&gt; &quot;Shoes&quot;] and [&quot;Sports &amp; Fitness&quot; -&gt; &quot;Athletic Clothing&quot; -&gt; &quot;Shoes&quot;], it could be represented as: &quot;categories&quot;: [ &quot;Shoes &amp; Accessories &gt; Shoes&quot;, &quot;Sports &amp; Fitness &gt; Athletic Clothing &gt; Shoes&quot; ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
225225
&quot;A String&quot;,
226226
],
227-
&quot;collectionMemberIds&quot;: [ # The id of the collection members when type is Type.COLLECTION. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
227+
&quot;collectionMemberIds&quot;: [ # The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
228228
&quot;A String&quot;,
229229
],
230230
&quot;colorInfo&quot;: { # The color information of a Product. # The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
@@ -530,7 +530,7 @@ <h3>Method Details</h3>
530530
&quot;categories&quot;: [ # Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use &#x27;&gt;&#x27; sign to separate different hierarchies. If &#x27;&gt;&#x27; is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both [&quot;Shoes &amp; Accessories&quot; -&gt; &quot;Shoes&quot;] and [&quot;Sports &amp; Fitness&quot; -&gt; &quot;Athletic Clothing&quot; -&gt; &quot;Shoes&quot;], it could be represented as: &quot;categories&quot;: [ &quot;Shoes &amp; Accessories &gt; Shoes&quot;, &quot;Sports &amp; Fitness &gt; Athletic Clothing &gt; Shoes&quot; ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
531531
&quot;A String&quot;,
532532
],
533-
&quot;collectionMemberIds&quot;: [ # The id of the collection members when type is Type.COLLECTION. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
533+
&quot;collectionMemberIds&quot;: [ # The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
534534
&quot;A String&quot;,
535535
],
536536
&quot;colorInfo&quot;: { # The color information of a Product. # The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
@@ -717,7 +717,7 @@ <h3>Method Details</h3>
717717
&quot;categories&quot;: [ # Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use &#x27;&gt;&#x27; sign to separate different hierarchies. If &#x27;&gt;&#x27; is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both [&quot;Shoes &amp; Accessories&quot; -&gt; &quot;Shoes&quot;] and [&quot;Sports &amp; Fitness&quot; -&gt; &quot;Athletic Clothing&quot; -&gt; &quot;Shoes&quot;], it could be represented as: &quot;categories&quot;: [ &quot;Shoes &amp; Accessories &gt; Shoes&quot;, &quot;Sports &amp; Fitness &gt; Athletic Clothing &gt; Shoes&quot; ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
718718
&quot;A String&quot;,
719719
],
720-
&quot;collectionMemberIds&quot;: [ # The id of the collection members when type is Type.COLLECTION. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
720+
&quot;collectionMemberIds&quot;: [ # The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
721721
&quot;A String&quot;,
722722
],
723723
&quot;colorInfo&quot;: { # The color information of a Product. # The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).

0 commit comments

Comments
 (0)