Index: discovery/googleapis/manufacturers__v1.json |
diff --git a/discovery/googleapis/manufacturers__v1.json b/discovery/googleapis/manufacturers__v1.json |
index be7bdcd44b552d6ec5d5b66e81f2ad4f03fb1085..78fe06615c17da5056e904cad69bdc89e8530d08 100644 |
--- a/discovery/googleapis/manufacturers__v1.json |
+++ b/discovery/googleapis/manufacturers__v1.json |
@@ -25,16 +25,27 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "fields": { |
- "description": "Selector specifying which fields to include in a partial response.", |
+ "upload_protocol": { |
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
"location": "query", |
"type": "string" |
}, |
+ "prettyPrint": { |
+ "default": "true", |
+ "description": "Returns response with indentations and line breaks.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
"uploadType": { |
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
"location": "query", |
"type": "string" |
}, |
+ "fields": { |
+ "description": "Selector specifying which fields to include in a partial response.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"$.xgafv": { |
"description": "V1 error format.", |
"enum": [ |
@@ -90,26 +101,15 @@ |
"location": "query", |
"type": "boolean" |
}, |
- "oauth_token": { |
- "description": "OAuth 2.0 token for the current user.", |
- "location": "query", |
- "type": "string" |
- }, |
"bearer_token": { |
"description": "OAuth bearer token.", |
"location": "query", |
"type": "string" |
}, |
- "upload_protocol": { |
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
+ "oauth_token": { |
+ "description": "OAuth 2.0 token for the current user.", |
"location": "query", |
"type": "string" |
- }, |
- "prettyPrint": { |
- "default": "true", |
- "description": "Returns response with indentations and line breaks.", |
- "location": "query", |
- "type": "boolean" |
} |
}, |
"protocol": "rest", |
@@ -118,43 +118,75 @@ |
"resources": { |
"products": { |
"methods": { |
- "list": { |
- "description": "Lists all the products in a Manufacturer Center account.", |
- "httpMethod": "GET", |
- "id": "manufacturers.accounts.products.list", |
+ "update": { |
+ "description": "Inserts or updates the product in a Manufacturer Center account.\n\nThe checks at upload time are minimal. All required attributes need to be\npresent for a product to be valid. Issues may show up later\nafter the API has accepted an update for a product and it is possible to\noverwrite an existing valid product with an invalid product. To detect\nthis, you should retrieve the product and check it for issues once the\nupdated version is available.\n\nInserted or updated products first need to be processed before they can be\nretrieved. Until then, new products will be unavailable, and retrieval\nof updated products will return the original state of the product.", |
+ "httpMethod": "PUT", |
+ "id": "manufacturers.accounts.products.update", |
"parameterOrder": [ |
- "parent" |
+ "parent", |
+ "name" |
], |
"parameters": { |
- "pageToken": { |
- "description": "The token returned by the previous request.", |
- "location": "query", |
+ "parent": { |
+ "description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.", |
+ "location": "path", |
+ "pattern": "^accounts/[^/]+$", |
+ "required": true, |
"type": "string" |
}, |
- "pageSize": { |
- "description": "Maximum number of product statuses to return in the response, used for\npaging.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
- }, |
+ "name": { |
+ "description": "Name in the format `{target_country}:{content_language}:{product_id}`.\n\n`target_country` - The target country of the product as a CLDR territory\n code (for example, US).\n\n`content_language` - The content language of the product as a two-letter\n ISO 639-1 language code (for example, en).\n\n`product_id` - The ID of the product. For more information, see\n https://support.google.com/manufacturers/answer/6124116#id.", |
+ "location": "path", |
+ "pattern": "^[^/]+$", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v1/{+parent}/products/{+name}", |
+ "request": { |
+ "$ref": "Product" |
+ }, |
+ "response": { |
+ "$ref": "Product" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/manufacturercenter" |
+ ] |
+ }, |
+ "delete": { |
+ "description": "Deletes the product from a Manufacturer Center account.", |
+ "httpMethod": "DELETE", |
+ "id": "manufacturers.accounts.products.delete", |
+ "parameterOrder": [ |
+ "parent", |
+ "name" |
+ ], |
+ "parameters": { |
"parent": { |
"description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.", |
"location": "path", |
"pattern": "^accounts/[^/]+$", |
"required": true, |
"type": "string" |
+ }, |
+ "name": { |
+ "description": "Name in the format `{target_country}:{content_language}:{product_id}`.\n\n`target_country` - The target country of the product as a CLDR territory\n code (for example, US).\n\n`content_language` - The content language of the product as a two-letter\n ISO 639-1 language code (for example, en).\n\n`product_id` - The ID of the product. For more information, see\n https://support.google.com/manufacturers/answer/6124116#id.", |
+ "location": "path", |
+ "pattern": "^[^/]+$", |
+ "required": true, |
+ "type": "string" |
} |
}, |
- "path": "v1/{+parent}/products", |
+ "path": "v1/{+parent}/products/{+name}", |
"response": { |
- "$ref": "ListProductsResponse" |
+ "$ref": "Empty" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/manufacturercenter" |
] |
}, |
"get": { |
- "description": "Gets the product from a Manufacturer Center account, including product\nissues.", |
+ "description": "Gets the product from a Manufacturer Center account, including product\nissues.\n\nA recently updated product takes some time to be processed before any\nchanges are visible. While some issues may be available once the product\nhas been processed, other issues may take days to appear.", |
"httpMethod": "GET", |
"id": "manufacturers.accounts.products.get", |
"parameterOrder": [ |
@@ -162,24 +194,59 @@ |
"name" |
], |
"parameters": { |
+ "parent": { |
+ "description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.", |
+ "location": "path", |
+ "pattern": "^accounts/[^/]+$", |
+ "required": true, |
+ "type": "string" |
+ }, |
"name": { |
"description": "Name in the format `{target_country}:{content_language}:{product_id}`.\n\n`target_country` - The target country of the product as a CLDR territory\n code (for example, US).\n\n`content_language` - The content language of the product as a two-letter\n ISO 639-1 language code (for example, en).\n\n`product_id` - The ID of the product. For more information, see\n https://support.google.com/manufacturers/answer/6124116#id.", |
"location": "path", |
"pattern": "^[^/]+$", |
"required": true, |
"type": "string" |
- }, |
+ } |
+ }, |
+ "path": "v1/{+parent}/products/{+name}", |
+ "response": { |
+ "$ref": "Product" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/manufacturercenter" |
+ ] |
+ }, |
+ "list": { |
+ "description": "Lists all the products in a Manufacturer Center account.", |
+ "httpMethod": "GET", |
+ "id": "manufacturers.accounts.products.list", |
+ "parameterOrder": [ |
+ "parent" |
+ ], |
+ "parameters": { |
"parent": { |
"description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.", |
"location": "path", |
"pattern": "^accounts/[^/]+$", |
"required": true, |
"type": "string" |
+ }, |
+ "pageToken": { |
+ "description": "The token returned by the previous request.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pageSize": { |
+ "description": "Maximum number of product statuses to return in the response, used for\npaging.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
} |
}, |
- "path": "v1/{+parent}/products/{+name}", |
+ "path": "v1/{+parent}/products", |
"response": { |
- "$ref": "Product" |
+ "$ref": "ListProductsResponse" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/manufacturercenter" |
@@ -190,9 +257,95 @@ |
} |
} |
}, |
- "revision": "20170412", |
+ "revision": "20170629", |
"rootUrl": "https://manufacturers.googleapis.com/", |
"schemas": { |
+ "Product": { |
+ "description": "Product data.", |
+ "id": "Product", |
+ "properties": { |
+ "issues": { |
+ "description": "A server-generated list of issues associated with the product.\n@OutputOnly", |
+ "items": { |
+ "$ref": "Issue" |
+ }, |
+ "type": "array" |
+ }, |
+ "manuallyDeletedAttributes": { |
+ "description": "Names of the attributes of the product deleted manually via the\nManufacturer Center UI.\n@OutputOnly", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
+ "finalAttributes": { |
+ "$ref": "Attributes", |
+ "description": "Final attributes of the product. The final attributes are obtained by\noverriding the uploaded attributes with the manually provided and deleted\nattributes. Google systems only process, evaluate, review, and/or use final\nattributes.\n@OutputOnly" |
+ }, |
+ "productId": { |
+ "description": "The ID of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#id.\n@OutputOnly", |
+ "type": "string" |
+ }, |
+ "uploadedAttributes": { |
+ "$ref": "Attributes", |
+ "description": "Attributes of the product uploaded via the Manufacturer Center API or via\nfeeds." |
+ }, |
+ "parent": { |
+ "description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.\n@OutputOnly", |
+ "type": "string" |
+ }, |
+ "manuallyProvidedAttributes": { |
+ "$ref": "Attributes", |
+ "description": "Attributes of the product provided manually via the Manufacturer Center UI.\n@OutputOnly" |
+ }, |
+ "contentLanguage": { |
+ "description": "The content language of the product as a two-letter ISO 639-1 language code\n(for example, en).\n@OutputOnly", |
+ "type": "string" |
+ }, |
+ "targetCountry": { |
+ "description": "The target country of the product as a CLDR territory code (for example,\nUS).\n@OutputOnly", |
+ "type": "string" |
+ }, |
+ "name": { |
+ "description": "Name in the format `{target_country}:{content_language}:{product_id}`.\n\n`target_country` - The target country of the product as a CLDR territory\n code (for example, US).\n\n`content_language` - The content language of the product as a two-letter\n ISO 639-1 language code (for example, en).\n\n`product_id` - The ID of the product. For more information, see\n https://support.google.com/manufacturers/answer/6124116#id.\n@OutputOnly", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Capacity": { |
+ "description": "The capacity of a product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#capacity.", |
+ "id": "Capacity", |
+ "properties": { |
+ "unit": { |
+ "description": "The unit of the capacity, i.e., MB, GB, or TB.", |
+ "type": "string" |
+ }, |
+ "value": { |
+ "description": "The numeric value of the capacity.", |
+ "format": "int64", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ListProductsResponse": { |
+ "id": "ListProductsResponse", |
+ "properties": { |
+ "products": { |
+ "description": "List of the products.", |
+ "items": { |
+ "$ref": "Product" |
+ }, |
+ "type": "array" |
+ }, |
+ "nextPageToken": { |
+ "description": "The token for the retrieval of the next page of product statuses.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"ProductDetail": { |
"description": "A product detail of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#productdetail.", |
"id": "ProductDetail", |
@@ -216,18 +369,6 @@ |
"description": "Product issue.", |
"id": "Issue", |
"properties": { |
- "description": { |
- "description": "Description of the issue.", |
- "type": "string" |
- }, |
- "type": { |
- "description": "The server-generated type of the issue, for example,\n“INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc.", |
- "type": "string" |
- }, |
- "attribute": { |
- "description": "If present, the attribute that triggered the issue. For more information\nabout attributes, see\nhttps://support.google.com/manufacturers/answer/6124116.", |
- "type": "string" |
- }, |
"timestamp": { |
"description": "The timestamp when this issue appeared.", |
"format": "google-datetime", |
@@ -248,6 +389,18 @@ |
"Info severity. The issue is one that doesn't require immediate attention.\nIt is, for example, used to communicate which attributes are still\npending review." |
], |
"type": "string" |
+ }, |
+ "description": { |
+ "description": "Description of the issue.", |
+ "type": "string" |
+ }, |
+ "type": { |
+ "description": "The server-generated type of the issue, for example,\n“INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc.", |
+ "type": "string" |
+ }, |
+ "attribute": { |
+ "description": "If present, the attribute that triggered the issue. For more information\nabout attributes, see\nhttps://support.google.com/manufacturers/answer/6124116.", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -256,10 +409,6 @@ |
"description": "A feature description of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#featuredesc.", |
"id": "FeatureDescription", |
"properties": { |
- "text": { |
- "description": "A detailed description of the feature.", |
- "type": "string" |
- }, |
"image": { |
"$ref": "Image", |
"description": "An optional image describing the feature." |
@@ -267,21 +416,31 @@ |
"headline": { |
"description": "A short description of the feature.", |
"type": "string" |
+ }, |
+ "text": { |
+ "description": "A detailed description of the feature.", |
+ "type": "string" |
} |
}, |
"type": "object" |
}, |
+ "Empty": { |
+ "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
+ "id": "Empty", |
+ "properties": {}, |
+ "type": "object" |
+ }, |
"Price": { |
"description": "A price.", |
"id": "Price", |
"properties": { |
- "amount": { |
- "description": "The numeric value of the price.", |
- "type": "string" |
- }, |
"currency": { |
"description": "The currency in which the price is denoted.", |
"type": "string" |
+ }, |
+ "amount": { |
+ "description": "The numeric value of the price.", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -345,8 +504,43 @@ |
"description": "Attributes of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116.", |
"id": "Attributes", |
"properties": { |
- "flavor": { |
- "description": "The flavor of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#flavor.", |
+ "featureDescription": { |
+ "description": "The rich format description of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#featuredesc.", |
+ "items": { |
+ "$ref": "FeatureDescription" |
+ }, |
+ "type": "array" |
+ }, |
+ "size": { |
+ "description": "The size of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#size.", |
+ "type": "string" |
+ }, |
+ "title": { |
+ "description": "The title of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#title.", |
+ "type": "string" |
+ }, |
+ "count": { |
+ "$ref": "Count", |
+ "description": "The count of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#count." |
+ }, |
+ "brand": { |
+ "description": "The brand name of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#brand.", |
+ "type": "string" |
+ }, |
+ "material": { |
+ "description": "The material of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#material.", |
+ "type": "string" |
+ }, |
+ "disclosureDate": { |
+ "description": "The disclosure date of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#disclosure.", |
+ "type": "string" |
+ }, |
+ "scent": { |
+ "description": "The scent of the product. For more information, see\n https://support.google.com/manufacturers/answer/6124116#scent.", |
+ "type": "string" |
+ }, |
+ "ageGroup": { |
+ "description": "The target age group of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#agegroup.", |
"type": "string" |
}, |
"productDetail": { |
@@ -356,18 +550,18 @@ |
}, |
"type": "array" |
}, |
- "ageGroup": { |
- "description": "The target age group of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#agegroup.", |
- "type": "string" |
- }, |
- "mpn": { |
- "description": "The Manufacturer Part Number (MPN) of the product. For more information,\nsee https://support.google.com/manufacturers/answer/6124116#mpn.", |
+ "flavor": { |
+ "description": "The flavor of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#flavor.", |
"type": "string" |
}, |
"productPageUrl": { |
"description": "The URL of the detail page of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#productpage.", |
"type": "string" |
}, |
+ "mpn": { |
+ "description": "The Manufacturer Part Number (MPN) of the product. For more information,\nsee https://support.google.com/manufacturers/answer/6124116#mpn.", |
+ "type": "string" |
+ }, |
"releaseDate": { |
"description": "The release date of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#release.", |
"type": "string" |
@@ -455,41 +649,6 @@ |
"suggestedRetailPrice": { |
"$ref": "Price", |
"description": "The suggested retail price (MSRP) of the product. For more information,\nsee https://support.google.com/manufacturers/answer/6124116#price." |
- }, |
- "featureDescription": { |
- "description": "The rich format description of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#featuredesc.", |
- "items": { |
- "$ref": "FeatureDescription" |
- }, |
- "type": "array" |
- }, |
- "size": { |
- "description": "The size of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#size.", |
- "type": "string" |
- }, |
- "title": { |
- "description": "The title of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#title.", |
- "type": "string" |
- }, |
- "count": { |
- "$ref": "Count", |
- "description": "The count of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#count." |
- }, |
- "brand": { |
- "description": "The brand name of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#brand.", |
- "type": "string" |
- }, |
- "disclosureDate": { |
- "description": "The disclosure date of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#disclosure.", |
- "type": "string" |
- }, |
- "material": { |
- "description": "The material of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#material.", |
- "type": "string" |
- }, |
- "scent": { |
- "description": "The scent of the product. For more information, see\n https://support.google.com/manufacturers/answer/6124116#scent.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -498,100 +657,14 @@ |
"description": "The number of products in a single package. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#count.", |
"id": "Count", |
"properties": { |
- "value": { |
- "description": "The numeric value of the number of products in a package.", |
- "format": "int64", |
- "type": "string" |
- }, |
"unit": { |
"description": "The unit in which these products are counted.", |
"type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "Product": { |
- "description": "Product data.", |
- "id": "Product", |
- "properties": { |
- "manuallyDeletedAttributes": { |
- "description": "Names of the attributes of the product deleted manually via the\nManufacturer Center UI.\n@OutputOnly", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- }, |
- "issues": { |
- "description": "A server-generated list of issues associated with the product.\n@OutputOnly", |
- "items": { |
- "$ref": "Issue" |
- }, |
- "type": "array" |
- }, |
- "finalAttributes": { |
- "$ref": "Attributes", |
- "description": "Final attributes of the product. The final attributes are obtained by\noverriding the uploaded attributes with the manually provided and deleted\nattributes. Google systems only process, evaluate, review, and/or use final\nattributes.\n@OutputOnly" |
- }, |
- "productId": { |
- "description": "The ID of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#id.\n@OutputOnly", |
- "type": "string" |
- }, |
- "uploadedAttributes": { |
- "$ref": "Attributes", |
- "description": "Attributes of the product uploaded via the Manufacturer Center API or via\nfeeds." |
- }, |
- "parent": { |
- "description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.\n@OutputOnly", |
- "type": "string" |
}, |
- "manuallyProvidedAttributes": { |
- "$ref": "Attributes", |
- "description": "Attributes of the product provided manually via the Manufacturer Center UI.\n@OutputOnly" |
- }, |
- "contentLanguage": { |
- "description": "The content language of the product as a two-letter ISO 639-1 language code\n(for example, en).\n@OutputOnly", |
- "type": "string" |
- }, |
- "targetCountry": { |
- "description": "The target country of the product as a CLDR territory code (for example,\nUS).\n@OutputOnly", |
- "type": "string" |
- }, |
- "name": { |
- "description": "Name in the format `{target_country}:{content_language}:{product_id}`.\n\n`target_country` - The target country of the product as a CLDR territory\n code (for example, US).\n\n`content_language` - The content language of the product as a two-letter\n ISO 639-1 language code (for example, en).\n\n`product_id` - The ID of the product. For more information, see\n https://support.google.com/manufacturers/answer/6124116#id.\n@OutputOnly", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "Capacity": { |
- "description": "The capacity of a product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#capacity.", |
- "id": "Capacity", |
- "properties": { |
"value": { |
- "description": "The numeric value of the capacity.", |
+ "description": "The numeric value of the number of products in a package.", |
"format": "int64", |
"type": "string" |
- }, |
- "unit": { |
- "description": "The unit of the capacity, i.e., MB, GB, or TB.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ListProductsResponse": { |
- "id": "ListProductsResponse", |
- "properties": { |
- "products": { |
- "description": "List of the products.", |
- "items": { |
- "$ref": "Product" |
- }, |
- "type": "array" |
- }, |
- "nextPageToken": { |
- "description": "The token for the retrieval of the next page of product statuses.", |
- "type": "string" |
} |
}, |
"type": "object" |