Update dependenciess

Exclude minio-go for now (pin to 3.x.y).
This commit is contained in:
Alexander Neumann
2017-12-03 21:01:25 +01:00
parent 9d0f13c4c0
commit 946c8399e2
2985 changed files with 1008107 additions and 118934 deletions

View File

@@ -1,18 +1,105 @@
{
"documentationLink": "https://developers.google.com/manufacturers/",
"revision": "20171011",
"baseUrl": "https://manufacturers.googleapis.com/",
"kind": "discovery#restDescription",
"description": "Public API for managing Manufacturer Center related data.",
"servicePath": "",
"basePath": "",
"id": "manufacturers:v1",
"revision": "20171011",
"documentationLink": "https://developers.google.com/manufacturers/",
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"Product": {
"description": "Product data.",
"type": "object",
"properties": {
"manuallyDeletedAttributes": {
"description": "Names of the attributes of the product deleted manually via the\nManufacturer Center UI.\n@OutputOnly",
"type": "array",
"items": {
"type": "string"
}
},
"issues": {
"description": "A server-generated list of issues associated with the product.\n@OutputOnly",
"type": "array",
"items": {
"$ref": "Issue"
}
},
"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"
}
},
"id": "Product"
},
"Capacity": {
"description": "The capacity of a product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#capacity.",
"type": "object",
"properties": {
"value": {
"description": "The numeric value of the capacity.",
"format": "int64",
"type": "string"
},
"unit": {
"description": "The unit of the capacity, i.e., MB, GB, or TB.",
"type": "string"
}
},
"id": "Capacity"
},
"ListProductsResponse": {
"type": "object",
"properties": {
"products": {
"description": "List of the products.",
"type": "array",
"items": {
"$ref": "Product"
}
},
"nextPageToken": {
"description": "The token for the retrieval of the next page of product statuses.",
"type": "string"
}
},
"id": "ListProductsResponse"
},
"ProductDetail": {
"description": "A product detail of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#productdetail.",
"type": "object",
"properties": {
"attributeValue": {
"description": "The value of the attribute.",
"type": "string"
},
"sectionName": {
"description": "A short section name that can be reused between multiple product details.",
"type": "string"
@@ -20,16 +107,18 @@
"attributeName": {
"description": "The name of the attribute.",
"type": "string"
},
"attributeValue": {
"description": "The value of the attribute.",
"type": "string"
}
},
"id": "ProductDetail"
},
"FeatureDescription": {
"description": "A feature description of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#featuredesc.",
"type": "object",
"properties": {
"headline": {
"description": "A short description of the feature.",
"type": "string"
},
"text": {
"description": "A detailed description of the feature.",
"type": "string"
@@ -37,16 +126,23 @@
"image": {
"description": "An optional image describing the feature.",
"$ref": "Image"
},
"headline": {
"description": "A short description of the feature.",
"type": "string"
}
},
"id": "FeatureDescription",
"description": "A feature description of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#featuredesc.",
"type": "object"
"id": "FeatureDescription"
},
"Issue": {
"description": "Product issue.",
"type": "object",
"properties": {
"timestamp": {
"description": "The timestamp when this issue appeared.",
"format": "google-datetime",
"type": "string"
},
"severity": {
"enumDescriptions": [
"Unspecified severity, never used.",
@@ -74,11 +170,6 @@
"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": {
"format": "google-datetime",
"description": "The timestamp when this issue appeared.",
"type": "string"
}
},
"id": "Issue"
@@ -99,33 +190,15 @@
"id": "Price"
},
"Empty": {
"properties": {},
"id": "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 `{}`.",
"type": "object"
"type": "object",
"properties": {},
"id": "Empty"
},
"Image": {
"description": "An image.",
"type": "object",
"properties": {
"type": {
"enum": [
"TYPE_UNSPECIFIED",
"CRAWLED",
"UPLOADED"
],
"description": "The type of the image, i.e., crawled or uploaded.\n@OutputOnly",
"type": "string",
"enumDescriptions": [
"Type is unspecified. Should not be used.",
"The image was crawled from a provided URL.",
"The image was uploaded."
]
},
"imageUrl": {
"description": "The URL of the image. For crawled images, this is the provided URL. For\nuploaded images, this is a serving URL from Google if the image has been\nprocessed successfully.",
"type": "string"
},
"status": {
"enumDescriptions": [
"The image status is unspecified. Should not be used.",
@@ -159,97 +232,70 @@
],
"description": "The status of the image.\n@OutputOnly",
"type": "string"
},
"type": {
"description": "The type of the image, i.e., crawled or uploaded.\n@OutputOnly",
"type": "string",
"enumDescriptions": [
"Type is unspecified. Should not be used.",
"The image was crawled from a provided URL.",
"The image was uploaded."
],
"enum": [
"TYPE_UNSPECIFIED",
"CRAWLED",
"UPLOADED"
]
},
"imageUrl": {
"description": "The URL of the image. For crawled images, this is the provided URL. For\nuploaded images, this is a serving URL from Google if the image has been\nprocessed successfully.",
"type": "string"
}
},
"id": "Image"
},
"Attributes": {
"description": "Attributes of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116.",
"type": "object",
"properties": {
"productName": {
"description": "The canonical name of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#productname.",
"type": "string"
},
"sizeType": {
"description": "The size type of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#sizetype.",
"type": "string"
},
"suggestedRetailPrice": {
"description": "The suggested retail price (MSRP) of the product. For more information,\nsee https://support.google.com/manufacturers/answer/6124116#price.",
"$ref": "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"
},
"ageGroup": {
"description": "The target age group of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#agegroup.",
"type": "string"
},
"productDetail": {
"description": "The details of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#productdetail.",
"type": "array",
"items": {
"$ref": "ProductDetail"
},
"type": "array"
}
},
"flavor": {
"description": "The flavor of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#flavor.",
"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"
},
"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"
},
"gtin": {
"description": "The Global Trade Item Number (GTIN) of the product. For more information,\nsee https://support.google.com/manufacturers/answer/6124116#gtin.",
"items": {
"type": "string"
},
"type": "array"
},
"itemGroupId": {
"description": "The item group id of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#itemgroupid.",
"type": "string"
},
"gtin": {
"description": "The Global Trade Item Number (GTIN) of the product. For more information,\nsee https://support.google.com/manufacturers/answer/6124116#gtin.",
"type": "array",
"items": {
"type": "string"
}
},
"productLine": {
"description": "The name of the group of products related to the product. For more\ninformation, see\nhttps://support.google.com/manufacturers/answer/6124116#productline.",
"type": "string"
@@ -288,10 +334,10 @@
},
"productType": {
"description": "The type or category of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#producttype.",
"type": "array",
"items": {
"type": "string"
},
"type": "array"
}
},
"format": {
"description": "The format of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#format.",
@@ -299,135 +345,94 @@
},
"additionalImageLink": {
"description": "The additional images of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#addlimage.",
"type": "array",
"items": {
"$ref": "Image"
},
"type": "array"
}
},
"videoLink": {
"description": "The videos of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#video.",
"type": "array",
"items": {
"type": "string"
},
"type": "array"
}
},
"color": {
"description": "The color of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#color.",
"type": "string"
},
"productName": {
"description": "The canonical name of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#productname.",
"type": "string"
},
"sizeType": {
"description": "The size type of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#sizetype.",
"type": "string"
},
"suggestedRetailPrice": {
"description": "The suggested retail price (MSRP) of the product. For more information,\nsee https://support.google.com/manufacturers/answer/6124116#price.",
"$ref": "Price"
},
"featureDescription": {
"description": "The rich format description of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#featuredesc.",
"type": "array",
"items": {
"$ref": "FeatureDescription"
}
},
"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": {
"description": "The count of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#count.",
"$ref": "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"
}
},
"id": "Attributes",
"description": "Attributes of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116.",
"type": "object"
"id": "Attributes"
},
"Count": {
"description": "The number of products in a single package. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#count.",
"type": "object",
"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"
},
"value": {
"format": "int64",
"description": "The numeric value of the number of products in a package.",
"type": "string"
}
},
"id": "Count",
"description": "The number of products in a single package. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#count.",
"type": "object"
},
"Product": {
"properties": {
"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"
},
"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": {
"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",
"$ref": "Attributes"
},
"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": {
"description": "Attributes of the product provided manually via the Manufacturer Center UI.\n@OutputOnly",
"$ref": "Attributes"
},
"targetCountry": {
"description": "The target country of the product as a CLDR territory code (for example,\nUS).\n@OutputOnly",
"type": "string"
},
"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"
}
},
"id": "Product",
"description": "Product data.",
"type": "object"
},
"Capacity": {
"description": "The capacity of a product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#capacity.",
"type": "object",
"properties": {
"unit": {
"description": "The unit of the capacity, i.e., MB, GB, or TB.",
"type": "string"
},
"value": {
"format": "int64",
"description": "The numeric value of the capacity.",
"type": "string"
}
},
"id": "Capacity"
},
"ListProductsResponse": {
"type": "object",
"properties": {
"nextPageToken": {
"description": "The token for the retrieval of the next page of product statuses.",
"type": "string"
},
"products": {
"description": "List of the products.",
"items": {
"$ref": "Product"
},
"type": "array"
}
},
"id": "ListProductsResponse"
"id": "Count"
}
},
"protocol": "rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"protocol": "rest",
"canonicalName": "Manufacturer Center",
"auth": {
"oauth2": {
@@ -449,83 +454,15 @@
"resources": {
"products": {
"methods": {
"delete": {
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"parent",
"name"
],
"httpMethod": "DELETE",
"parameters": {
"parent": {
"description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.",
"type": "string",
"required": true,
"pattern": "^accounts/[^/]+$",
"location": "path"
},
"name": {
"pattern": "^[^/]+$",
"location": "path",
"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.",
"type": "string",
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/manufacturercenter"
],
"flatPath": "v1/accounts/{accountsId}/products/{productsId}",
"id": "manufacturers.accounts.products.delete",
"path": "v1/{+parent}/products/{+name}",
"description": "Deletes the product from a Manufacturer Center account."
},
"get": {
"httpMethod": "GET",
"response": {
"$ref": "Product"
},
"parameterOrder": [
"parent",
"name"
],
"parameters": {
"name": {
"pattern": "^[^/]+$",
"location": "path",
"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.",
"type": "string",
"required": true
},
"parent": {
"pattern": "^accounts/[^/]+$",
"location": "path",
"description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.",
"type": "string",
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/manufacturercenter"
],
"flatPath": "v1/accounts/{accountsId}/products/{productsId}",
"path": "v1/{+parent}/products/{+name}",
"id": "manufacturers.accounts.products.get",
"description": "Gets the product from a Manufacturer Center account, including product\nissues.\n\nA recently updated product takes around 15 minutes to process. Changes are\nonly visible after it has been processed. While some issues may be\navailable once the product has been processed, other issues may take days\nto appear."
},
"list": {
"id": "manufacturers.accounts.products.list",
"path": "v1/{+parent}/products",
"description": "Lists all the products in a Manufacturer Center account.",
"response": {
"$ref": "ListProductsResponse"
},
"httpMethod": "GET",
"parameterOrder": [
"parent"
],
"httpMethod": "GET",
"response": {
"$ref": "ListProductsResponse"
},
"parameters": {
"pageToken": {
"description": "The token returned by the previous request.",
@@ -534,14 +471,14 @@
},
"pageSize": {
"location": "query",
"format": "int32",
"description": "Maximum number of product statuses to return in the response, used for\npaging.",
"format": "int32",
"type": "integer"
},
"parent": {
"description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.",
"type": "string",
"required": true,
"type": "string",
"pattern": "^accounts/[^/]+$",
"location": "path"
}
@@ -549,9 +486,48 @@
"scopes": [
"https://www.googleapis.com/auth/manufacturercenter"
],
"flatPath": "v1/accounts/{accountsId}/products"
"flatPath": "v1/accounts/{accountsId}/products",
"id": "manufacturers.accounts.products.list",
"path": "v1/{+parent}/products"
},
"get": {
"description": "Gets the product from a Manufacturer Center account, including product\nissues.\n\nA recently updated product takes around 15 minutes to process. Changes are\nonly visible after it has been processed. While some issues may be\navailable once the product has been processed, other issues may take days\nto appear.",
"response": {
"$ref": "Product"
},
"parameterOrder": [
"parent",
"name"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/manufacturercenter"
],
"parameters": {
"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.",
"required": true,
"type": "string",
"pattern": "^[^/]+$",
"location": "path"
},
"parent": {
"description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.",
"required": true,
"type": "string",
"pattern": "^accounts/[^/]+$",
"location": "path"
}
},
"flatPath": "v1/accounts/{accountsId}/products/{productsId}",
"path": "v1/{+parent}/products/{+name}",
"id": "manufacturers.accounts.products.get"
},
"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.",
"request": {
"$ref": "Product"
},
"response": {
"$ref": "Product"
},
@@ -560,32 +536,61 @@
"name"
],
"httpMethod": "PUT",
"parameters": {
"name": {
"pattern": "^[^/]+$",
"location": "path",
"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.",
"type": "string",
"required": true
},
"parent": {
"pattern": "^accounts/[^/]+$",
"location": "path",
"description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.",
"type": "string",
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/manufacturercenter"
],
"parameters": {
"parent": {
"location": "path",
"description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.",
"required": true,
"type": "string",
"pattern": "^accounts/[^/]+$"
},
"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.",
"required": true,
"type": "string",
"pattern": "^[^/]+$",
"location": "path"
}
},
"flatPath": "v1/accounts/{accountsId}/products/{productsId}",
"id": "manufacturers.accounts.products.update",
"path": "v1/{+parent}/products/{+name}",
"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.",
"request": {
"$ref": "Product"
}
"id": "manufacturers.accounts.products.update"
},
"delete": {
"description": "Deletes the product from a Manufacturer Center account.",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"parent",
"name"
],
"httpMethod": "DELETE",
"scopes": [
"https://www.googleapis.com/auth/manufacturercenter"
],
"parameters": {
"parent": {
"location": "path",
"description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.",
"required": true,
"type": "string",
"pattern": "^accounts/[^/]+$"
},
"name": {
"location": "path",
"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.",
"required": true,
"type": "string",
"pattern": "^[^/]+$"
}
},
"flatPath": "v1/accounts/{accountsId}/products/{productsId}",
"path": "v1/{+parent}/products/{+name}",
"id": "manufacturers.accounts.products.delete"
}
}
}
@@ -593,38 +598,6 @@
}
},
"parameters": {
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"default": "true",
"type": "boolean"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string",
"location": "query"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
@@ -636,17 +609,17 @@
"type": "string"
},
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query"
"type": "string"
},
"callback": {
"description": "JSONP",
@@ -654,12 +627,6 @@
"location": "query"
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
@@ -667,23 +634,56 @@
],
"location": "query",
"description": "Data format for response.",
"default": "json"
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string"
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"type": "boolean",
"default": "true"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string",
"location": "query"
},
"prettyPrint": {
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true",
"location": "query"
}
},
"version": "v1",
"baseUrl": "https://manufacturers.googleapis.com/",
"servicePath": "",
"description": "Public API for managing Manufacturer Center related data.",
"kind": "discovery#restDescription",
"basePath": ""
"version": "v1"
}

View File

@@ -300,8 +300,8 @@ type Attributes struct {
}
func (s *Attributes) MarshalJSON() ([]byte, error) {
type noMethod Attributes
raw := noMethod(*s)
type NoMethod Attributes
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -333,8 +333,8 @@ type Capacity struct {
}
func (s *Capacity) MarshalJSON() ([]byte, error) {
type noMethod Capacity
raw := noMethod(*s)
type NoMethod Capacity
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -367,8 +367,8 @@ type Count struct {
}
func (s *Count) MarshalJSON() ([]byte, error) {
type noMethod Count
raw := noMethod(*s)
type NoMethod Count
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -423,8 +423,8 @@ type FeatureDescription struct {
}
func (s *FeatureDescription) MarshalJSON() ([]byte, error) {
type noMethod FeatureDescription
raw := noMethod(*s)
type NoMethod FeatureDescription
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -489,8 +489,8 @@ type Image struct {
}
func (s *Image) MarshalJSON() ([]byte, error) {
type noMethod Image
raw := noMethod(*s)
type NoMethod Image
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -550,8 +550,8 @@ type Issue struct {
}
func (s *Issue) MarshalJSON() ([]byte, error) {
type noMethod Issue
raw := noMethod(*s)
type NoMethod Issue
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -585,8 +585,8 @@ type ListProductsResponse struct {
}
func (s *ListProductsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListProductsResponse
raw := noMethod(*s)
type NoMethod ListProductsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -616,8 +616,8 @@ type Price struct {
}
func (s *Price) MarshalJSON() ([]byte, error) {
type noMethod Price
raw := noMethod(*s)
type NoMethod Price
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -723,8 +723,8 @@ type Product struct {
}
func (s *Product) MarshalJSON() ([]byte, error) {
type noMethod Product
raw := noMethod(*s)
type NoMethod Product
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -761,8 +761,8 @@ type ProductDetail struct {
}
func (s *ProductDetail) MarshalJSON() ([]byte, error) {
type noMethod ProductDetail
raw := noMethod(*s)
type NoMethod ProductDetail
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -862,7 +862,7 @@ func (c *AccountsProductsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, e
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -1022,7 +1022,7 @@ func (c *AccountsProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, er
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -1184,7 +1184,7 @@ func (c *AccountsProductsListCall) Do(opts ...googleapi.CallOption) (*ListProduc
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -1369,7 +1369,7 @@ func (c *AccountsProductsUpdateCall) Do(opts ...googleapi.CallOption) (*Product,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil