Skip to content

Commit

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

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.description
- resources.projects.resources.locations.resources.catalogs.methods.patch.parameters.updateMask.description
- schemas.GoogleCloudRetailV2alphaProduct.properties.type.description
- schemas.GoogleCloudRetailV2alphaProduct.properties.type.enumDescriptions
- schemas.GoogleCloudRetailV2alphaProductLevelConfig.properties.ingestionProductType.description
- schemas.GoogleCloudRetailV2alphaProductLevelConfig.properties.merchantCenterProductIdField.description

#### retail:v2beta

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.description
- resources.projects.resources.locations.resources.catalogs.methods.patch.parameters.updateMask.description
- schemas.GoogleCloudRetailV2betaProduct.properties.type.description
- schemas.GoogleCloudRetailV2betaProduct.properties.type.enumDescriptions
- schemas.GoogleCloudRetailV2betaProductLevelConfig.properties.ingestionProductType.description
- schemas.GoogleCloudRetailV2betaProductLevelConfig.properties.merchantCenterProductIdField.description

#### retail:v2

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.description
- resources.projects.resources.locations.resources.catalogs.methods.patch.parameters.updateMask.description
- schemas.GoogleCloudRetailV2Product.properties.type.description
- schemas.GoogleCloudRetailV2Product.properties.type.enumDescriptions
- schemas.GoogleCloudRetailV2ProductLevelConfig.properties.ingestionProductType.description
- schemas.GoogleCloudRetailV2ProductLevelConfig.properties.merchantCenterProductIdField.description
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 5, 2021
1 parent f31d1c1 commit 0bb90d0
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 36 deletions.
14 changes: 7 additions & 7 deletions discovery/retail-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
"description": "See, edit, configure, and delete your Google Cloud Platform data"
}
}
}
Expand Down Expand Up @@ -164,7 +164,7 @@
"type": "string"
},
"updateMask": {
"description": "Indicates which fields in the provided Catalog to update. If not set, will only update the Catalog.product_level_config field, which is also the only currently supported field to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.",
"description": "Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -706,7 +706,7 @@
}
}
},
"revision": "20210312",
"revision": "20210326",
"rootUrl": "https://retail.googleapis.com/",
"schemas": {
"GoogleApiHttpBody": {
Expand Down Expand Up @@ -1297,15 +1297,15 @@
"type": "string"
},
"type": {
"description": "Immutable. The type of the product. This field is output-only.",
"description": "Immutable. The type of the product. This field is output-only. Default to Catalog.product_level_config.ingestion_product_type if unset.",
"enum": [
"TYPE_UNSPECIFIED",
"PRIMARY",
"VARIANT",
"COLLECTION"
],
"enumDescriptions": [
"Default value. Default to Type.PRIMARY if unset.",
"Default value. Default to Catalog.product_level_config.ingestion_product_type if unset.",
"The primary type. As the primary unit for predicting, indexing and search serving, a Type.PRIMARY Product is grouped with multiple Type.VARIANT Products.",
"The variant type. Type.VARIANT Products usually share some common attributes on the same Type.PRIMARY Products, but they have variant attributes like different colors, sizes and prices, etc.",
"The collection type. Collection products are bundled Type.PRIMARY Products or Type.VARIANT Products that are sold together, such as a jewelry set with necklaces, earrings and rings, etc."
Expand Down Expand Up @@ -1373,11 +1373,11 @@
"id": "GoogleCloudRetailV2ProductLevelConfig",
"properties": {
"ingestionProductType": {
"description": "The type of Products allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can only ingest Product.Type.PRIMARY Products. This means Product.primary_product_id can only be empty or set to the same value as Product.id. * `variant`: You can only ingest Product.Type.VARIANT Products. This means Product.primary_product_id cannot be empty. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `variant` and merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Using catalog levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more details.",
"description": "The type of Products allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can only ingest Product.Type.PRIMARY Products. This means Product.primary_product_id can only be empty or set to the same value as Product.id. * `variant`: You can only ingest Product.Type.VARIANT Products. This means Product.primary_product_id cannot be empty. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `variant` and merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Using product levels](https://cloud.google.com/retail/recommendations-ai/docs/catalog#product-levels) for more details.",
"type": "string"
},
"merchantCenterProductIdField": {
"description": "Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as Product.id. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, and use it to represent the item group. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned. See [Using catalog levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more details.",
"description": "Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as Product.id. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, and use it to represent the item group. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned. See [Using product levels](https://cloud.google.com/retail/recommendations-ai/docs/catalog#product-levels) for more details.",
"type": "string"
}
},
Expand Down
14 changes: 7 additions & 7 deletions discovery/retail-v2alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
"description": "See, edit, configure, and delete your Google Cloud Platform data"
}
}
}
Expand Down Expand Up @@ -164,7 +164,7 @@
"type": "string"
},
"updateMask": {
"description": "Indicates which fields in the provided Catalog to update. If not set, will only update the Catalog.product_level_config field, which is also the only currently supported field to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.",
"description": "Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -706,7 +706,7 @@
}
}
},
"revision": "20210312",
"revision": "20210326",
"rootUrl": "https://retail.googleapis.com/",
"schemas": {
"GoogleApiHttpBody": {
Expand Down Expand Up @@ -1492,15 +1492,15 @@
"type": "string"
},
"type": {
"description": "Immutable. The type of the product. This field is output-only.",
"description": "Immutable. The type of the product. This field is output-only. Default to Catalog.product_level_config.ingestion_product_type if unset.",
"enum": [
"TYPE_UNSPECIFIED",
"PRIMARY",
"VARIANT",
"COLLECTION"
],
"enumDescriptions": [
"Default value. Default to Type.PRIMARY if unset.",
"Default value. Default to Catalog.product_level_config.ingestion_product_type if unset.",
"The primary type. As the primary unit for predicting, indexing and search serving, a Type.PRIMARY Product is grouped with multiple Type.VARIANT Products.",
"The variant type. Type.VARIANT Products usually share some common attributes on the same Type.PRIMARY Products, but they have variant attributes like different colors, sizes and prices, etc.",
"The collection type. Collection products are bundled Type.PRIMARY Products or Type.VARIANT Products that are sold together, such as a jewelry set with necklaces, earrings and rings, etc."
Expand Down Expand Up @@ -1568,11 +1568,11 @@
"id": "GoogleCloudRetailV2alphaProductLevelConfig",
"properties": {
"ingestionProductType": {
"description": "The type of Products allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can only ingest Product.Type.PRIMARY Products. This means Product.primary_product_id can only be empty or set to the same value as Product.id. * `variant`: You can only ingest Product.Type.VARIANT Products. This means Product.primary_product_id cannot be empty. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `variant` and merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Using catalog levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more details.",
"description": "The type of Products allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can only ingest Product.Type.PRIMARY Products. This means Product.primary_product_id can only be empty or set to the same value as Product.id. * `variant`: You can only ingest Product.Type.VARIANT Products. This means Product.primary_product_id cannot be empty. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `variant` and merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Using product levels](https://cloud.google.com/retail/recommendations-ai/docs/catalog#product-levels) for more details.",
"type": "string"
},
"merchantCenterProductIdField": {
"description": "Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as Product.id. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, and use it to represent the item group. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned. See [Using catalog levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more details.",
"description": "Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as Product.id. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, and use it to represent the item group. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned. See [Using product levels](https://cloud.google.com/retail/recommendations-ai/docs/catalog#product-levels) for more details.",
"type": "string"
}
},
Expand Down
14 changes: 7 additions & 7 deletions discovery/retail-v2beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
"description": "See, edit, configure, and delete your Google Cloud Platform data"
}
}
}
Expand Down Expand Up @@ -164,7 +164,7 @@
"type": "string"
},
"updateMask": {
"description": "Indicates which fields in the provided Catalog to update. If not set, will only update the Catalog.product_level_config field, which is also the only currently supported field to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.",
"description": "Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -706,7 +706,7 @@
}
}
},
"revision": "20210312",
"revision": "20210326",
"rootUrl": "https://retail.googleapis.com/",
"schemas": {
"GoogleApiHttpBody": {
Expand Down Expand Up @@ -1687,15 +1687,15 @@
"type": "string"
},
"type": {
"description": "Immutable. The type of the product. This field is output-only.",
"description": "Immutable. The type of the product. This field is output-only. Default to Catalog.product_level_config.ingestion_product_type if unset.",
"enum": [
"TYPE_UNSPECIFIED",
"PRIMARY",
"VARIANT",
"COLLECTION"
],
"enumDescriptions": [
"Default value. Default to Type.PRIMARY if unset.",
"Default value. Default to Catalog.product_level_config.ingestion_product_type if unset.",
"The primary type. As the primary unit for predicting, indexing and search serving, a Type.PRIMARY Product is grouped with multiple Type.VARIANT Products.",
"The variant type. Type.VARIANT Products usually share some common attributes on the same Type.PRIMARY Products, but they have variant attributes like different colors, sizes and prices, etc.",
"The collection type. Collection products are bundled Type.PRIMARY Products or Type.VARIANT Products that are sold together, such as a jewelry set with necklaces, earrings and rings, etc."
Expand Down Expand Up @@ -1763,11 +1763,11 @@
"id": "GoogleCloudRetailV2betaProductLevelConfig",
"properties": {
"ingestionProductType": {
"description": "The type of Products allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can only ingest Product.Type.PRIMARY Products. This means Product.primary_product_id can only be empty or set to the same value as Product.id. * `variant`: You can only ingest Product.Type.VARIANT Products. This means Product.primary_product_id cannot be empty. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `variant` and merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Using catalog levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more details.",
"description": "The type of Products allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can only ingest Product.Type.PRIMARY Products. This means Product.primary_product_id can only be empty or set to the same value as Product.id. * `variant`: You can only ingest Product.Type.VARIANT Products. This means Product.primary_product_id cannot be empty. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `variant` and merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Using product levels](https://cloud.google.com/retail/recommendations-ai/docs/catalog#product-levels) for more details.",
"type": "string"
},
"merchantCenterProductIdField": {
"description": "Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as Product.id. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, and use it to represent the item group. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned. See [Using catalog levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more details.",
"description": "Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as Product.id. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, and use it to represent the item group. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned. See [Using product levels](https://cloud.google.com/retail/recommendations-ai/docs/catalog#product-levels) for more details.",
"type": "string"
}
},
Expand Down

0 comments on commit 0bb90d0

Please sign in to comment.