Skip to content

Commit

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

The following keys were deleted:
- schemas.GoogleCloudRetailLoggingImportErrorContext.properties.inventoryActivity.type (Total Keys: 1)
- schemas.GoogleCloudRetailLoggingImportErrorContext.properties.order.type (Total Keys: 1)
- schemas.GoogleCloudRetailLoggingImportErrorContext.properties.place (Total Keys: 4)

The following keys were added:
- resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.collect.parameters.prebuiltRule (Total Keys: 2)
- resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.collect.parameters.rawJson (Total Keys: 2)
- schemas.GoogleCloudRetailV2alphaGcsOutputResult (Total Keys: 3)
- schemas.GoogleCloudRetailV2alphaOutputResult.properties.gcsResult (Total Keys: 2)
- schemas.GoogleCloudRetailV2betaOutputResult.properties.gcsResult (Total Keys: 2)

#### retail:v2beta

The following keys were deleted:
- schemas.GoogleCloudRetailLoggingImportErrorContext.properties.inventoryActivity.type (Total Keys: 1)
- schemas.GoogleCloudRetailLoggingImportErrorContext.properties.order.type (Total Keys: 1)
- schemas.GoogleCloudRetailLoggingImportErrorContext.properties.place (Total Keys: 4)

The following keys were added:
- resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.collect.parameters.prebuiltRule (Total Keys: 2)
- resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.collect.parameters.rawJson (Total Keys: 2)
- schemas.GoogleCloudRetailV2alphaGcsOutputResult (Total Keys: 3)
- schemas.GoogleCloudRetailV2alphaOutputResult.properties.gcsResult (Total Keys: 2)
- schemas.GoogleCloudRetailV2betaOutputResult.properties.gcsResult (Total Keys: 2)
  • Loading branch information
yoshi-automation committed Oct 25, 2022
1 parent 0b9b8fa commit 566f33e
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 68 deletions.
2 changes: 1 addition & 1 deletion docs/dyn/retail_v2alpha.projects.locations.catalogs.html
Expand Up @@ -165,7 +165,7 @@ <h3>Method Details</h3>
Args:
catalog: string, Required. Catalog for which the completion is performed. Full resource name of catalog, such as `projects/*/locations/global/catalogs/default_catalog`. (required)
dataset: string, Determines which dataset to use for fetching completion. &quot;user-data&quot; will use the imported dataset through CompletionService.ImportCompletionData. &quot;cloud-retail&quot; will use the dataset generated by cloud retail based on user events. If leave empty, it will use the &quot;user-data&quot;. Current supported values: * user-data * cloud-retail: This option requires enabling auto-learning function first. See [guidelines](https://cloud.google.com/retail/docs/completion-overview#generated-completion-dataset).
deviceType: string, The device type context for completion suggestions. It is useful to apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
deviceType: string, The device type context for completion suggestions. We recommend that you leave this field empty. It can apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
languageCodes: string, Note that this field applies for `user-data` dataset only. For requests with `cloud-retail` dataset, setting this field has no effect. The language filters applied to the output suggestions. If set, it should contain the language of the query. If not set, suggestions are returned without considering language restrictions. This is the BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of language codes is 3. (repeated)
maxSuggestions: integer, Completion max suggestions. If left unset or set to 0, then will fallback to the configured value CompletionConfig.max_suggestions. The maximum allowed max suggestions is 20. If it is set higher, it will be capped by 20.
query: string, Required. The query used to generate suggestions. The maximum number of allowed characters is 255.
Expand Down
Expand Up @@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#collect">collect(parent, ets=None, uri=None, userEvent=None, x__xgafv=None)</a></code></p>
<code><a href="#collect">collect(parent, ets=None, prebuiltRule=None, rawJson=None, uri=None, userEvent=None, x__xgafv=None)</a></code></p>
<p class="firstline">Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly.</p>
<p class="toc_element">
<code><a href="#import_">import_(parent, body=None, x__xgafv=None)</a></code></p>
Expand All @@ -99,12 +99,14 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="collect">collect(parent, ets=None, uri=None, userEvent=None, x__xgafv=None)</code>
<code class="details" id="collect">collect(parent, ets=None, prebuiltRule=None, rawJson=None, uri=None, userEvent=None, x__xgafv=None)</code>
<pre>Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly.

Args:
parent: string, Required. The parent catalog name, such as `projects/1234/locations/global/catalogs/default_catalog`. (required)
ets: string, The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
prebuiltRule: string, The prebuilt rule name that can convert a specific type of raw_json. For example: &quot;default_schema/v1.0&quot;
rawJson: string, An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.
uri: string, The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for 3rd party requests.
userEvent: string, Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
x__xgafv: string, V1 error format.
Expand Down
2 changes: 1 addition & 1 deletion docs/dyn/retail_v2beta.projects.locations.catalogs.html
Expand Up @@ -165,7 +165,7 @@ <h3>Method Details</h3>
Args:
catalog: string, Required. Catalog for which the completion is performed. Full resource name of catalog, such as `projects/*/locations/global/catalogs/default_catalog`. (required)
dataset: string, Determines which dataset to use for fetching completion. &quot;user-data&quot; will use the imported dataset through CompletionService.ImportCompletionData. &quot;cloud-retail&quot; will use the dataset generated by cloud retail based on user events. If leave empty, it will use the &quot;user-data&quot;. Current supported values: * user-data * cloud-retail: This option requires enabling auto-learning function first. See [guidelines](https://cloud.google.com/retail/docs/completion-overview#generated-completion-dataset).
deviceType: string, The device type context for completion suggestions. It is useful to apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
deviceType: string, The device type context for completion suggestions. We recommend that you leave this field empty. It can apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
languageCodes: string, Note that this field applies for `user-data` dataset only. For requests with `cloud-retail` dataset, setting this field has no effect. The language filters applied to the output suggestions. If set, it should contain the language of the query. If not set, suggestions are returned without considering language restrictions. This is the BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of language codes is 3. (repeated)
maxSuggestions: integer, Completion max suggestions. If left unset or set to 0, then will fallback to the configured value CompletionConfig.max_suggestions. The maximum allowed max suggestions is 20. If it is set higher, it will be capped by 20.
query: string, Required. The query used to generate suggestions. The maximum number of allowed characters is 255.
Expand Down
Expand Up @@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#collect">collect(parent, ets=None, uri=None, userEvent=None, x__xgafv=None)</a></code></p>
<code><a href="#collect">collect(parent, ets=None, prebuiltRule=None, rawJson=None, uri=None, userEvent=None, x__xgafv=None)</a></code></p>
<p class="firstline">Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly.</p>
<p class="toc_element">
<code><a href="#import_">import_(parent, body=None, x__xgafv=None)</a></code></p>
Expand All @@ -99,12 +99,14 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="collect">collect(parent, ets=None, uri=None, userEvent=None, x__xgafv=None)</code>
<code class="details" id="collect">collect(parent, ets=None, prebuiltRule=None, rawJson=None, uri=None, userEvent=None, x__xgafv=None)</code>
<pre>Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly.

Args:
parent: string, Required. The parent catalog name, such as `projects/1234/locations/global/catalogs/default_catalog`. (required)
ets: string, The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
prebuiltRule: string, The prebuilt rule name that can convert a specific type of raw_json. For example: &quot;default_schema/v1.0&quot;
rawJson: string, An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.
uri: string, The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for 3rd party requests.
userEvent: string, Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
x__xgafv: string, V1 error format.
Expand Down
84 changes: 53 additions & 31 deletions googleapiclient/discovery_cache/documents/retail.v2alpha.json
Expand Up @@ -133,7 +133,7 @@
"type": "string"
},
"deviceType": {
"description": "The device type context for completion suggestions. It is useful to apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.",
"description": "The device type context for completion suggestions. We recommend that you leave this field empty. It can apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.",
"location": "query",
"type": "string"
},
Expand Down Expand Up @@ -1800,6 +1800,16 @@
"required": true,
"type": "string"
},
"prebuiltRule": {
"description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"",
"location": "query",
"type": "string"
},
"rawJson": {
"description": "An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.",
"location": "query",
"type": "string"
},
"uri": {
"description": "The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for 3rd party requests.",
"location": "query",
Expand Down Expand Up @@ -2080,7 +2090,7 @@
}
}
},
"revision": "20220922",
"revision": "20221014",
"rootUrl": "https://retail.googleapis.com/",
"schemas": {
"GoogleApiHttpBody": {
Expand Down Expand Up @@ -2181,7 +2191,7 @@
"type": "object"
},
"GoogleCloudRetailLoggingImportErrorContext": {
"description": "The error payload that is populated on LRO import APIs. Including: \"google.cloud.retail.v2.ProductService.ImportProducts\" \"google.cloud.retail.v2.EventService.ImportUserEvents\"",
"description": "The error payload that is populated on LRO import APIs, including \"google.cloud.retail.v2.ProductService.ImportProducts\" and \"google.cloud.retail.v2.EventService.ImportUserEvents\".",
"id": "GoogleCloudRetailLoggingImportErrorContext",
"properties": {
"catalogItem": {
Expand All @@ -2192,10 +2202,6 @@
"description": "Cloud Storage file path of the import source. Can be set for batch operation error.",
"type": "string"
},
"inventoryActivity": {
"description": "The detailed content which caused the error on importing an inventory activity. http://cs/google3/google/cloud/retail/v2main/inventory_activity.proto",
"type": "string"
},
"lineNumber": {
"description": "Line number of the content in file. Should be empty for permission or batch operation error.",
"type": "string"
Expand All @@ -2204,26 +2210,6 @@
"description": "The operation resource name of the LRO.",
"type": "string"
},
"order": {
"description": "The detailed content which caused the error on importing an order. http://cs/google3/google/cloud/retail/v2main/order.proto",
"type": "string"
},
"place": {
"description": "The detailed content which caused the error on importing a place. http://cs/google3/google/cloud/retail/v2main/place.proto",
"type": "string"
},
"placeAsset": {
"description": "The detailed content which caused the error on importing a place asset. http://cs/google3/google/cloud/retail/v2main/place_asset.proto",
"type": "string"
},
"placeProductPrice": {
"description": "The detailed content which caused the error on importing a place product price. http://cs/google3/google/cloud/retail/v2main/place_product_price.proto",
"type": "string"
},
"placeProductSettings": {
"description": "The detailed content which caused the error on importing a place product settings. http://cs/google3/google/cloud/retail/v2main/place_product_settings.proto",
"type": "string"
},
"product": {
"description": "The detailed content which caused the error on importing a product.",
"type": "string"
Expand Down Expand Up @@ -3244,6 +3230,17 @@
},
"type": "object"
},
"GoogleCloudRetailV2alphaGcsOutputResult": {
"description": "A Gcs output result.",
"id": "GoogleCloudRetailV2alphaGcsOutputResult",
"properties": {
"outputUri": {
"description": "The uri of Gcs output",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudRetailV2alphaGcsSource": {
"description": "Google Cloud Storage location for input content.",
"id": "GoogleCloudRetailV2alphaGcsSource",
Expand Down Expand Up @@ -3920,15 +3917,22 @@
"type": "object"
},
"GoogleCloudRetailV2alphaOutputResult": {
"description": "Output result.",
"description": "Output result that stores the information about where the exported data is stored.",
"id": "GoogleCloudRetailV2alphaOutputResult",
"properties": {
"bigqueryResult": {
"description": "Export result in BigQuery.",
"description": "The BigQuery location where the result is stored.",
"items": {
"$ref": "GoogleCloudRetailV2alphaBigQueryOutputResult"
},
"type": "array"
},
"gcsResult": {
"description": "The Google Cloud Storage location where the result is stored.",
"items": {
"$ref": "GoogleCloudRetailV2alphaGcsOutputResult"
},
"type": "array"
}
},
"type": "object"
Expand Down Expand Up @@ -5899,6 +5903,17 @@
},
"type": "object"
},
"GoogleCloudRetailV2betaGcsOutputResult": {
"description": "A Gcs output result.",
"id": "GoogleCloudRetailV2betaGcsOutputResult",
"properties": {
"outputUri": {
"description": "The uri of Gcs output",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudRetailV2betaImportCompletionDataResponse": {
"description": "Response of the ImportCompletionDataRequest. If the long running operation is done, this message is returned by the google.longrunning.Operations.response field if the operation is successful.",
"id": "GoogleCloudRetailV2betaImportCompletionDataResponse",
Expand Down Expand Up @@ -6144,15 +6159,22 @@
"type": "object"
},
"GoogleCloudRetailV2betaOutputResult": {
"description": "Output result.",
"description": "Output result that stores the information about where the exported data is stored.",
"id": "GoogleCloudRetailV2betaOutputResult",
"properties": {
"bigqueryResult": {
"description": "Export result in BigQuery.",
"description": "The BigQuery location where the result is stored.",
"items": {
"$ref": "GoogleCloudRetailV2betaBigQueryOutputResult"
},
"type": "array"
},
"gcsResult": {
"description": "The Google Cloud Storage location where the result is stored.",
"items": {
"$ref": "GoogleCloudRetailV2betaGcsOutputResult"
},
"type": "array"
}
},
"type": "object"
Expand Down

0 comments on commit 566f33e

Please sign in to comment.