mirror of
https://github.com/restic/restic.git
synced 2025-10-09 15:30:24 +00:00
Update dependencies
This commit is contained in:
571
vendor/google.golang.org/api/manufacturers/v1/manufacturers-api.json
generated
vendored
571
vendor/google.golang.org/api/manufacturers/v1/manufacturers-api.json
generated
vendored
@@ -1,39 +1,134 @@
|
||||
{
|
||||
"version": "v1",
|
||||
"baseUrl": "https://manufacturers.googleapis.com/",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "Public API for managing Manufacturer Center related data.",
|
||||
"servicePath": "",
|
||||
"basePath": "",
|
||||
"documentationLink": "https://developers.google.com/manufacturers/",
|
||||
"id": "manufacturers:v1",
|
||||
"revision": "20170703",
|
||||
"revision": "20170808",
|
||||
"documentationLink": "https://developers.google.com/manufacturers/",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": "True",
|
||||
"version_module": true,
|
||||
"schemas": {
|
||||
"ListProductsResponse": {
|
||||
"type": "object",
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"attributeName": {
|
||||
"description": "The name 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": {
|
||||
"image": {
|
||||
"$ref": "Image",
|
||||
"description": "An optional image describing the feature."
|
||||
},
|
||||
"headline": {
|
||||
"description": "A short description of the feature.",
|
||||
"type": "string"
|
||||
},
|
||||
"text": {
|
||||
"description": "A detailed description of the feature.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "FeatureDescription"
|
||||
},
|
||||
"Issue": {
|
||||
"description": "Product issue.",
|
||||
"type": "object",
|
||||
"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": {
|
||||
"format": "google-datetime",
|
||||
"description": "The timestamp when this issue appeared.",
|
||||
"type": "string"
|
||||
},
|
||||
"severity": {
|
||||
"enumDescriptions": [
|
||||
"Unspecified severity, never used.",
|
||||
"Error severity. The issue prevents the usage of the whole item.",
|
||||
"Warning severity. The issue is either one that prevents the usage of the\nattribute that triggered it or one that will soon prevent the usage of\nthe whole item.",
|
||||
"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."
|
||||
],
|
||||
"enum": [
|
||||
"SEVERITY_UNSPECIFIED",
|
||||
"ERROR",
|
||||
"WARNING",
|
||||
"INFO"
|
||||
],
|
||||
"description": "The severity of the issue.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "Issue"
|
||||
},
|
||||
"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",
|
||||
"properties": {},
|
||||
"id": "Empty"
|
||||
},
|
||||
"Price": {
|
||||
"description": "A price.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"amount": {
|
||||
"description": "The numeric value of the price.",
|
||||
"type": "string"
|
||||
},
|
||||
"currency": {
|
||||
"description": "The currency in which the price is denoted.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "Price"
|
||||
},
|
||||
"Image": {
|
||||
"description": "An image.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"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"
|
||||
],
|
||||
"description": "The type of the image, i.e., crawled or uploaded.\n@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"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": {
|
||||
"description": "The status of the image.\n@OutputOnly",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Status is unspecified. Should not be used.",
|
||||
"Image was uploaded and is being processed.",
|
||||
@@ -59,8 +154,24 @@
|
||||
"DECODING_ERROR",
|
||||
"TOO_BIG",
|
||||
"CRAWL_SKIPPED"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enumDescriptions": [
|
||||
"Type is unspecified. Should not be used.",
|
||||
"The image was crawled from a provided URL.",
|
||||
"The image was uploaded."
|
||||
],
|
||||
"description": "The status of the image.\n@OutputOnly",
|
||||
"enum": [
|
||||
"TYPE_UNSPECIFIED",
|
||||
"CRAWLED",
|
||||
"UPLOADED"
|
||||
],
|
||||
"description": "The type of the image, i.e., crawled or uploaded.\n@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
@@ -70,6 +181,10 @@
|
||||
"description": "Attributes of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"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"
|
||||
@@ -89,6 +204,11 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"targetAccountId": {
|
||||
"format": "int64",
|
||||
"description": "The target account id. Should only be used in the accounts of the data\npartners.",
|
||||
"type": "string"
|
||||
},
|
||||
"size": {
|
||||
"description": "The size of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#size.",
|
||||
"type": "string"
|
||||
@@ -98,12 +218,12 @@
|
||||
"type": "string"
|
||||
},
|
||||
"count": {
|
||||
"$ref": "Count",
|
||||
"description": "The count of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#count."
|
||||
"description": "The count of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#count.",
|
||||
"$ref": "Count"
|
||||
},
|
||||
"brand": {
|
||||
"type": "string",
|
||||
"description": "The brand name of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#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.",
|
||||
@@ -117,10 +237,6 @@
|
||||
"description": "The scent of the product. For more information, see\n https://support.google.com/manufacturers/answer/6124116#scent.",
|
||||
"type": "string"
|
||||
},
|
||||
"flavor": {
|
||||
"description": "The flavor of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#flavor.",
|
||||
"type": "string"
|
||||
},
|
||||
"productDetail": {
|
||||
"description": "The details of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#productdetail.",
|
||||
"items": {
|
||||
@@ -132,6 +248,10 @@
|
||||
"description": "The target age group of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#agegroup.",
|
||||
"type": "string"
|
||||
},
|
||||
"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"
|
||||
@@ -145,8 +265,8 @@
|
||||
"type": "string"
|
||||
},
|
||||
"itemGroupId": {
|
||||
"type": "string",
|
||||
"description": "The item group id of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#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.",
|
||||
@@ -184,8 +304,8 @@
|
||||
"type": "string"
|
||||
},
|
||||
"imageLink": {
|
||||
"$ref": "Image",
|
||||
"description": "The image of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#image."
|
||||
"description": "The image of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#image.",
|
||||
"$ref": "Image"
|
||||
},
|
||||
"productType": {
|
||||
"description": "The category of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#producttype.",
|
||||
@@ -211,10 +331,6 @@
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "Attributes"
|
||||
@@ -224,8 +340,8 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"unit": {
|
||||
"type": "string",
|
||||
"description": "The unit in which these products are counted."
|
||||
"description": "The unit in which these products are counted.",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"format": "int64",
|
||||
@@ -239,6 +355,10 @@
|
||||
"description": "Product data.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"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"
|
||||
@@ -248,32 +368,25 @@
|
||||
"description": "Attributes of the product uploaded via the Manufacturer Center API or via\nfeeds."
|
||||
},
|
||||
"parent": {
|
||||
"type": "string",
|
||||
"description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account.\n@OutputOnly"
|
||||
"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"
|
||||
},
|
||||
"targetCountry": {
|
||||
"description": "The target country of the product as a CLDR territory code (for example,\nUS).\n@OutputOnly",
|
||||
"type": "string"
|
||||
"description": "Attributes of the product provided manually via the Manufacturer Center UI.\n@OutputOnly",
|
||||
"$ref": "Attributes"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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": {
|
||||
@@ -281,14 +394,19 @@
|
||||
},
|
||||
"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"
|
||||
"manuallyDeletedAttributes": {
|
||||
"description": "Names of the attributes of the product deleted manually via the\nManufacturer Center UI.\n@OutputOnly",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"id": "Product"
|
||||
},
|
||||
"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.",
|
||||
@@ -300,125 +418,7 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "Capacity",
|
||||
"description": "The capacity of a product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#capacity.",
|
||||
"type": "object"
|
||||
},
|
||||
"ListProductsResponse": {
|
||||
"type": "object",
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"attributeName": {
|
||||
"description": "The name of the attribute.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "ProductDetail"
|
||||
},
|
||||
"Issue": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"timestamp": {
|
||||
"format": "google-datetime",
|
||||
"description": "The timestamp when this issue appeared.",
|
||||
"type": "string"
|
||||
},
|
||||
"severity": {
|
||||
"enumDescriptions": [
|
||||
"Unspecified severity, never used.",
|
||||
"Error severity. The issue prevents the usage of the whole item.",
|
||||
"Warning severity. The issue is either one that prevents the usage of the\nattribute that triggered it or one that will soon prevent the usage of\nthe whole item.",
|
||||
"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."
|
||||
],
|
||||
"enum": [
|
||||
"SEVERITY_UNSPECIFIED",
|
||||
"ERROR",
|
||||
"WARNING",
|
||||
"INFO"
|
||||
],
|
||||
"description": "The severity of the issue.",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"description": "Description of the issue.",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The server-generated type of the issue, for example,\n“INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc."
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "Issue",
|
||||
"description": "Product issue."
|
||||
},
|
||||
"FeatureDescription": {
|
||||
"id": "FeatureDescription",
|
||||
"description": "A feature description of the product. For more information, see\nhttps://support.google.com/manufacturers/answer/6124116#featuredesc.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"image": {
|
||||
"description": "An optional image describing the feature.",
|
||||
"$ref": "Image"
|
||||
},
|
||||
"headline": {
|
||||
"description": "A short description of the feature.",
|
||||
"type": "string"
|
||||
},
|
||||
"text": {
|
||||
"description": "A detailed description of the feature.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Price": {
|
||||
"description": "A price.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"amount": {
|
||||
"description": "The numeric value of the price.",
|
||||
"type": "string"
|
||||
},
|
||||
"currency": {
|
||||
"description": "The currency in which the price is denoted.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "Price"
|
||||
},
|
||||
"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",
|
||||
"properties": {},
|
||||
"id": "Empty"
|
||||
"id": "Capacity"
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
@@ -448,42 +448,39 @@
|
||||
"products": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"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",
|
||||
"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"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Product"
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"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.",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "^[^/]+$"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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.",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "^[^/]+$",
|
||||
"location": "path"
|
||||
},
|
||||
"parent": {
|
||||
"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,
|
||||
"pattern": "^accounts/[^/]+$"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/accounts/{accountsId}/products/{productsId}",
|
||||
"path": "v1/{+parent}/products/{+name}",
|
||||
"id": "manufacturers.accounts.products.get"
|
||||
"id": "manufacturers.accounts.products.get",
|
||||
"path": "v1/{+parent}/products/{+name}"
|
||||
},
|
||||
"list": {
|
||||
"path": "v1/{+parent}/products",
|
||||
"id": "manufacturers.accounts.products.list",
|
||||
"description": "Lists all the products in a Manufacturer Center account.",
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [
|
||||
"parent"
|
||||
@@ -491,39 +488,53 @@
|
||||
"response": {
|
||||
"$ref": "ListProductsResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/manufacturercenter"
|
||||
],
|
||||
"parameters": {
|
||||
"parent": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "^accounts/[^/]+$",
|
||||
"location": "path",
|
||||
"description": "Parent ID in the format `accounts/{account_id}`.\n\n`account_id` - The ID of the Manufacturer Center account."
|
||||
},
|
||||
"pageToken": {
|
||||
"location": "query",
|
||||
"description": "The token returned by the previous request.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"location": "query",
|
||||
"format": "int32",
|
||||
"description": "Maximum number of product statuses to return in the response, used for\npaging.",
|
||||
"type": "integer"
|
||||
},
|
||||
"parent": {
|
||||
"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,
|
||||
"pattern": "^accounts/[^/]+$"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "The token returned by the previous request.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/accounts/{accountsId}/products",
|
||||
"path": "v1/{+parent}/products",
|
||||
"id": "manufacturers.accounts.products.list",
|
||||
"description": "Lists all the products in a Manufacturer Center account."
|
||||
},
|
||||
"update": {
|
||||
"httpMethod": "PUT",
|
||||
"parameterOrder": [
|
||||
"parent",
|
||||
"name"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Product"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/manufacturercenter"
|
||||
],
|
||||
"flatPath": "v1/accounts/{accountsId}/products"
|
||||
},
|
||||
"update": {
|
||||
"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
|
||||
"required": true,
|
||||
"pattern": "^[^/]+$"
|
||||
},
|
||||
"parent": {
|
||||
"location": "path",
|
||||
@@ -533,44 +544,31 @@
|
||||
"pattern": "^accounts/[^/]+$"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/manufacturercenter"
|
||||
],
|
||||
"flatPath": "v1/accounts/{accountsId}/products/{productsId}",
|
||||
"path": "v1/{+parent}/products/{+name}",
|
||||
"id": "manufacturers.accounts.products.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"
|
||||
},
|
||||
"httpMethod": "PUT",
|
||||
"parameterOrder": [
|
||||
"parent",
|
||||
"name"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Product"
|
||||
}
|
||||
"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."
|
||||
},
|
||||
"delete": {
|
||||
"httpMethod": "DELETE",
|
||||
"parameterOrder": [
|
||||
"parent",
|
||||
"name"
|
||||
],
|
||||
"description": "Deletes the product from a Manufacturer Center account.",
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/manufacturercenter"
|
||||
"parameterOrder": [
|
||||
"parent",
|
||||
"name"
|
||||
],
|
||||
"httpMethod": "DELETE",
|
||||
"parameters": {
|
||||
"parent": {
|
||||
"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,
|
||||
"pattern": "^accounts/[^/]+$",
|
||||
"location": "path"
|
||||
"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.",
|
||||
@@ -580,10 +578,12 @@
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/manufacturercenter"
|
||||
],
|
||||
"flatPath": "v1/accounts/{accountsId}/products/{productsId}",
|
||||
"path": "v1/{+parent}/products/{+name}",
|
||||
"id": "manufacturers.accounts.products.delete",
|
||||
"description": "Deletes the product from a Manufacturer Center account."
|
||||
"path": "v1/{+parent}/products/{+name}"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -591,35 +591,47 @@
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"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.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
]
|
||||
"location": "query"
|
||||
},
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
@@ -632,50 +644,43 @@
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
]
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"access_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth access 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.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token."
|
||||
},
|
||||
"upload_protocol": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://manufacturers.googleapis.com/",
|
||||
"servicePath": "",
|
||||
"description": "Public API for managing Manufacturer Center related data.",
|
||||
"kind": "discovery#restDescription"
|
||||
}
|
||||
|
19
vendor/google.golang.org/api/manufacturers/v1/manufacturers-gen.go
generated
vendored
19
vendor/google.golang.org/api/manufacturers/v1/manufacturers-gen.go
generated
vendored
@@ -260,6 +260,11 @@ type Attributes struct {
|
||||
// see https://support.google.com/manufacturers/answer/6124116#price.
|
||||
SuggestedRetailPrice *Price `json:"suggestedRetailPrice,omitempty"`
|
||||
|
||||
// TargetAccountId: The target account id. Should only be used in the
|
||||
// accounts of the data
|
||||
// partners.
|
||||
TargetAccountId int64 `json:"targetAccountId,omitempty,string"`
|
||||
|
||||
// Theme: The theme of the product. For more information,
|
||||
// see
|
||||
// https://support.google.com/manufacturers/answer/6124116#theme.
|
||||
@@ -907,11 +912,13 @@ type AccountsProductsGetCall struct {
|
||||
// product
|
||||
// issues.
|
||||
//
|
||||
// A recently updated product takes some time to be processed before
|
||||
// any
|
||||
// changes are visible. While some issues may be available once the
|
||||
// product
|
||||
// has been processed, other issues may take days to appear.
|
||||
// A recently updated product takes around 15 minutes to process.
|
||||
// Changes are
|
||||
// only visible after it has been processed. While some issues may
|
||||
// be
|
||||
// available once the product has been processed, other issues may take
|
||||
// days
|
||||
// to appear.
|
||||
func (r *AccountsProductsService) Get(parent string, name string) *AccountsProductsGetCall {
|
||||
c := &AccountsProductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.parent = parent
|
||||
@@ -1014,7 +1021,7 @@ func (c *AccountsProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, er
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "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.",
|
||||
// "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.",
|
||||
// "flatPath": "v1/accounts/{accountsId}/products/{productsId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "manufacturers.accounts.products.get",
|
||||
|
Reference in New Issue
Block a user