Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2732)

Unified Diff: discovery/googleapis/content__v2.json

Issue 2281923002: Api-roll 41: 2016-08-26 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « discovery/googleapis/compute__v1.json ('k') | discovery/googleapis/content__v2sandbox.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: discovery/googleapis/content__v2.json
diff --git a/discovery/googleapis/content__v2.json b/discovery/googleapis/content__v2.json
index 5adb5b994a226173253a2cf6f8ed5680c36a1967..d22f28407c0e4c086201db5ced206c95f0635b0e 100644
--- a/discovery/googleapis/content__v2.json
+++ b/discovery/googleapis/content__v2.json
@@ -15,7 +15,7 @@
"description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/shopping-content",
- "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/O5EhsLJstXG2m4UJwnBMqrlRy1k\"",
+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/01Lp9Yk-3T3BaqOhUvIN7bFgCYw\"",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
@@ -1938,9 +1938,206 @@
]
}
}
+ },
+ "shippingsettings": {
+ "methods": {
+ "custombatch": {
+ "description": "Retrieves and updates the shipping settings of multiple accounts in a single request.",
+ "httpMethod": "POST",
+ "id": "content.shippingsettings.custombatch",
+ "parameters": {
+ "dryRun": {
+ "description": "Flag to run the request in dry-run mode.",
+ "location": "query",
+ "type": "boolean"
+ }
+ },
+ "path": "shippingsettings/batch",
+ "request": {
+ "$ref": "ShippingsettingsCustomBatchRequest"
+ },
+ "response": {
+ "$ref": "ShippingsettingsCustomBatchResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/content"
+ ]
+ },
+ "get": {
+ "description": "Retrieves the shipping settings of the account.",
+ "httpMethod": "GET",
+ "id": "content.shippingsettings.get",
+ "parameterOrder": [
+ "merchantId",
+ "accountId"
+ ],
+ "parameters": {
+ "accountId": {
+ "description": "The ID of the account for which to get/update shipping settings.",
+ "format": "uint64",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "merchantId": {
+ "description": "The ID of the managing account.",
+ "format": "uint64",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "{merchantId}/shippingsettings/{accountId}",
+ "response": {
+ "$ref": "ShippingSettings"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/content"
+ ]
+ },
+ "getsupportedcarriers": {
+ "description": "Retrieves supported carriers and carrier services for an account.",
+ "httpMethod": "GET",
+ "id": "content.shippingsettings.getsupportedcarriers",
+ "parameterOrder": [
+ "merchantId"
+ ],
+ "parameters": {
+ "merchantId": {
+ "description": "The ID of the account for which to retrieve the supported carriers.",
+ "format": "uint64",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "{merchantId}/supportedCarriers",
+ "response": {
+ "$ref": "ShippingsettingsGetSupportedCarriersResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/content"
+ ]
+ },
+ "list": {
+ "description": "Lists the shipping settings of the sub-accounts in your Merchant Center account.",
+ "httpMethod": "GET",
+ "id": "content.shippingsettings.list",
+ "parameterOrder": [
+ "merchantId"
+ ],
+ "parameters": {
+ "maxResults": {
+ "description": "The maximum number of shipping settings to return in the response, used for paging.",
+ "format": "uint32",
+ "location": "query",
+ "type": "integer"
+ },
+ "merchantId": {
+ "description": "The ID of the managing account.",
+ "format": "uint64",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "pageToken": {
+ "description": "The token returned by the previous request.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "{merchantId}/shippingsettings",
+ "response": {
+ "$ref": "ShippingsettingsListResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/content"
+ ]
+ },
+ "patch": {
+ "description": "Updates the shipping settings of the account. This method supports patch semantics.",
+ "httpMethod": "PATCH",
+ "id": "content.shippingsettings.patch",
+ "parameterOrder": [
+ "merchantId",
+ "accountId"
+ ],
+ "parameters": {
+ "accountId": {
+ "description": "The ID of the account for which to get/update shipping settings.",
+ "format": "uint64",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "dryRun": {
+ "description": "Flag to run the request in dry-run mode.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "merchantId": {
+ "description": "The ID of the managing account.",
+ "format": "uint64",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "{merchantId}/shippingsettings/{accountId}",
+ "request": {
+ "$ref": "ShippingSettings"
+ },
+ "response": {
+ "$ref": "ShippingSettings"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/content"
+ ]
+ },
+ "update": {
+ "description": "Updates the shipping settings of the account.",
+ "httpMethod": "PUT",
+ "id": "content.shippingsettings.update",
+ "parameterOrder": [
+ "merchantId",
+ "accountId"
+ ],
+ "parameters": {
+ "accountId": {
+ "description": "The ID of the account for which to get/update shipping settings.",
+ "format": "uint64",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "dryRun": {
+ "description": "Flag to run the request in dry-run mode.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "merchantId": {
+ "description": "The ID of the managing account.",
+ "format": "uint64",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "{merchantId}/shippingsettings/{accountId}",
+ "request": {
+ "$ref": "ShippingSettings"
+ },
+ "response": {
+ "$ref": "ShippingSettings"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/content"
+ ]
+ }
+ }
}
},
- "revision": "20160728",
+ "revision": "20160822",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Account": {
@@ -3002,6 +3199,57 @@
},
"type": "object"
},
+ "CarrierRate": {
+ "id": "CarrierRate",
+ "properties": {
+ "carrierName": {
+ "description": "Carrier service, such as \"UPS\" or \"Fedex\". The list of supported carriers can be retrieved via the getSupportedCarriers method. Required.",
+ "type": "string"
+ },
+ "carrierService": {
+ "description": "Carrier service, such as \"ground\" or \"2 days\". The list of supported services for a carrier can be retrieved via the getSupportedCarriers method. Required.",
+ "type": "string"
+ },
+ "flatAdjustment": {
+ "$ref": "Price",
+ "description": "Additive shipping rate modifier. Can be negative. For example { \"value\": \"1\", \"currency\" : \"USD\" } adds $1 to the rate, { \"value\": \"-3\", \"currency\" : \"USD\" } removes $3 from the rate. Optional."
+ },
+ "name": {
+ "description": "Name of the carrier rate. Must be unique per rate group. Required.",
+ "type": "string"
+ },
+ "originPostalCode": {
+ "description": "Shipping origin for this carrier rate. Required.",
+ "type": "string"
+ },
+ "percentageAdjustment": {
+ "description": "Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example \"5.4\" increases the rate by 5.4%, \"-3\" decreases the rate by 3%. Optional.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "CarriersCarrier": {
+ "id": "CarriersCarrier",
+ "properties": {
+ "country": {
+ "description": "The CLDR country code of the carrier (e.g., \"US\"). Always present.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name of the carrier (e.g., \"UPS\"). Always present.",
+ "type": "string"
+ },
+ "services": {
+ "description": "A list of supported services (e.g., \"ground\") for that carrier. Contains at least one service.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"Datafeed": {
"description": "Datafeed data.",
"id": "Datafeed",
@@ -3445,6 +3693,22 @@
},
"type": "object"
},
+ "DeliveryTime": {
+ "id": "DeliveryTime",
+ "properties": {
+ "maxTransitTimeInDays": {
+ "description": "Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to minTransitTimeInDays. Required.",
+ "format": "uint32",
+ "type": "integer"
+ },
+ "minTransitTimeInDays": {
+ "description": "Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Required.",
+ "format": "uint32",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
"Error": {
"description": "An error returned by the API.",
"id": "Error",
@@ -3487,6 +3751,48 @@
},
"type": "object"
},
+ "Headers": {
+ "description": "A non-empty list of row or column headers for a table. Exactly one of prices, weights, numItems, postalCodeGroupNames, or locations must be set.",
+ "id": "Headers",
+ "properties": {
+ "locations": {
+ "description": "A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.",
+ "items": {
+ "$ref": "LocationIdSet"
+ },
+ "type": "array"
+ },
+ "numberOfItems": {
+ "description": "A list of inclusive number of items upper bounds. The last value can be \"infinity\". For example [\"10\", \"50\", \"infinity\"] represents the headers \"<= 10 items\", \" 50 items\". Must be non-empty. Can only be set if all other fields are not set.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "postalCodeGroupNames": {
+ "description": "A list of postal group names. The last value can be \"all other locations\". Example: [\"zone 1\", \"zone 2\", \"all other locations\"]. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "prices": {
+ "description": "be \"infinity\". For example [{\"value\": \"10\", \"currency\": \"USD\"}, {\"value\": \"500\", \"currency\": \"USD\"}, {\"value\": \"infinity\", \"currency\": \"USD\"}] represents the headers \"<= $10\", \" $500\". All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.",
+ "items": {
+ "$ref": "Price"
+ },
+ "type": "array"
+ },
+ "weights": {
+ "description": "be \"infinity\". For example [{\"value\": \"10\", \"unit\": \"kg\"}, {\"value\": \"50\", \"unit\": \"kg\"}, {\"value\": \"infinity\", \"unit\": \"kg\"}] represents the headers \"<= 10kg\", \" 50kg\". All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.",
+ "items": {
+ "$ref": "Weight"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"Installment": {
"id": "Installment",
"properties": {
@@ -3679,6 +3985,19 @@
},
"type": "object"
},
+ "LocationIdSet": {
+ "id": "LocationIdSet",
+ "properties": {
+ "locationIds": {
+ "description": "A non-empty list of location IDs. They must all be of the same location type (e.g., state).",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"LoyaltyPoints": {
"id": "LoyaltyPoints",
"properties": {
@@ -4994,6 +5313,41 @@
},
"type": "object"
},
+ "PostalCodeGroup": {
+ "id": "PostalCodeGroup",
+ "properties": {
+ "country": {
+ "description": "The CLDR territory code of the country the postal code group applies to. Required.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name of the postal code group, referred to in headers. Required.",
+ "type": "string"
+ },
+ "postalCodeRanges": {
+ "description": "A range of postal codes. Required.",
+ "items": {
+ "$ref": "PostalCodeRange"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "PostalCodeRange": {
+ "id": "PostalCodeRange",
+ "properties": {
+ "postalCodeRangeBegin": {
+ "description": "A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: \"94108\", \"9410*\", \"9*\". Required.",
+ "type": "string"
+ },
+ "postalCodeRangeEnd": {
+ "description": "A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"Price": {
"id": "Price",
"properties": {
@@ -5879,6 +6233,262 @@
},
"type": "object"
},
+ "RateGroup": {
+ "id": "RateGroup",
+ "properties": {
+ "applicableShippingLabels": {
+ "description": "A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service. Required.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "carrierRates": {
+ "description": "A list of carrier rates that can be referred to by mainTable or singleValue.",
+ "items": {
+ "$ref": "CarrierRate"
+ },
+ "type": "array"
+ },
+ "mainTable": {
+ "$ref": "Table",
+ "description": "A table defining the rate group, when singleValue is not expressive enough. Can only be set if singleValue is not set."
+ },
+ "singleValue": {
+ "$ref": "Value",
+ "description": "The value of the rate group (e.g. flat rate $10). Can only be set if mainTable and subtables are not set."
+ },
+ "subtables": {
+ "description": "A list of subtables referred to by mainTable. Can only be set if mainTable is set.",
+ "items": {
+ "$ref": "Table"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "Row": {
+ "id": "Row",
+ "properties": {
+ "cells": {
+ "description": "The list of cells that constitute the row. Must have the same length as columnHeaders for two-dimensional tables, a length of 1 for one-dimensional tables. Required.",
+ "items": {
+ "$ref": "Value"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "Service": {
+ "id": "Service",
+ "properties": {
+ "active": {
+ "description": "A boolean exposing the active status of the shipping service. Required.",
+ "type": "boolean"
+ },
+ "currency": {
+ "description": "The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.",
+ "type": "string"
+ },
+ "deliveryCountry": {
+ "description": "The CLDR territory code of the country to which the service applies. Required.",
+ "type": "string"
+ },
+ "deliveryTime": {
+ "$ref": "DeliveryTime",
+ "description": "Time spent in various aspects from order to the delivery of the product. Required."
+ },
+ "name": {
+ "description": "Free-form name of the service. Must be unique within target account. Required.",
+ "type": "string"
+ },
+ "rateGroups": {
+ "description": "Shipping rate group definitions. Only the last one is allowed to have an empty applicableShippingLabels, which means \"everything else\". The other applicableShippingLabels must not overlap.",
+ "items": {
+ "$ref": "RateGroup"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "ShippingSettings": {
+ "description": "The merchant account's shipping settings.",
+ "id": "ShippingSettings",
+ "properties": {
+ "accountId": {
+ "description": "The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.",
+ "format": "uint64",
+ "type": "string"
+ },
+ "postalCodeGroups": {
+ "description": "A list of postal code groups that can be referred to in services. Optional.",
+ "items": {
+ "$ref": "PostalCodeGroup"
+ },
+ "type": "array"
+ },
+ "services": {
+ "description": "The target account's list of services. Optional.",
+ "items": {
+ "$ref": "Service"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "ShippingsettingsCustomBatchRequest": {
+ "id": "ShippingsettingsCustomBatchRequest",
+ "properties": {
+ "entries": {
+ "description": "The request entries to be processed in the batch.",
+ "items": {
+ "$ref": "ShippingsettingsCustomBatchRequestEntry"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "ShippingsettingsCustomBatchRequestEntry": {
+ "description": "A batch entry encoding a single non-batch accountshipping request.",
+ "id": "ShippingsettingsCustomBatchRequestEntry",
+ "properties": {
+ "accountId": {
+ "description": "The ID of the account for which to get/update account shipping settings.",
+ "format": "uint64",
+ "type": "string"
+ },
+ "batchId": {
+ "description": "An entry ID, unique within the batch request.",
+ "format": "uint32",
+ "type": "integer"
+ },
+ "merchantId": {
+ "description": "The ID of the managing account.",
+ "format": "uint64",
+ "type": "string"
+ },
+ "method": {
+ "type": "string"
+ },
+ "shippingSettings": {
+ "$ref": "ShippingSettings",
+ "description": "The account shipping settings to update. Only defined if the method is update."
+ }
+ },
+ "type": "object"
+ },
+ "ShippingsettingsCustomBatchResponse": {
+ "id": "ShippingsettingsCustomBatchResponse",
+ "properties": {
+ "entries": {
+ "description": "The result of the execution of the batch requests.",
+ "items": {
+ "$ref": "ShippingsettingsCustomBatchResponseEntry"
+ },
+ "type": "array"
+ },
+ "kind": {
+ "default": "content#shippingsettingsCustomBatchResponse",
+ "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsCustomBatchResponse\".",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ShippingsettingsCustomBatchResponseEntry": {
+ "description": "A batch entry encoding a single non-batch shipping settings response.",
+ "id": "ShippingsettingsCustomBatchResponseEntry",
+ "properties": {
+ "batchId": {
+ "description": "The ID of the request entry to which this entry responds.",
+ "format": "uint32",
+ "type": "integer"
+ },
+ "errors": {
+ "$ref": "Errors",
+ "description": "A list of errors defined if, and only if, the request failed."
+ },
+ "kind": {
+ "default": "content#shippingsettingsCustomBatchResponseEntry",
+ "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsCustomBatchResponseEntry\".",
+ "type": "string"
+ },
+ "shippingSettings": {
+ "$ref": "ShippingSettings",
+ "description": "The retrieved or updated account shipping settings."
+ }
+ },
+ "type": "object"
+ },
+ "ShippingsettingsGetSupportedCarriersResponse": {
+ "id": "ShippingsettingsGetSupportedCarriersResponse",
+ "properties": {
+ "carriers": {
+ "description": "A list of supported carriers. May be empty.",
+ "items": {
+ "$ref": "CarriersCarrier"
+ },
+ "type": "array"
+ },
+ "kind": {
+ "default": "content#shippingsettingsGetSupportedCarriersResponse",
+ "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsGetSupportedCarriersResponse\".",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ShippingsettingsListResponse": {
+ "id": "ShippingsettingsListResponse",
+ "properties": {
+ "kind": {
+ "default": "content#shippingsettingsListResponse",
+ "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsListResponse\".",
+ "type": "string"
+ },
+ "nextPageToken": {
+ "description": "The token for the retrieval of the next page of shipping settings.",
+ "type": "string"
+ },
+ "resources": {
+ "items": {
+ "$ref": "ShippingSettings"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "Table": {
+ "id": "Table",
+ "properties": {
+ "columnHeaders": {
+ "$ref": "Headers",
+ "description": "Headers of the table's columns. Optional: if not set then the table has only one dimension."
+ },
+ "name": {
+ "description": "Name of the table. Required for subtables, ignored for the main table.",
+ "type": "string"
+ },
+ "rowHeaders": {
+ "$ref": "Headers",
+ "description": "Headers of the table's rows. Required."
+ },
+ "rows": {
+ "description": "The list of rows that constitute the table. Must have the same length as rowHeaders. Required.",
+ "items": {
+ "$ref": "Row"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"TestOrder": {
"id": "TestOrder",
"properties": {
@@ -6162,6 +6772,33 @@
},
"type": "object"
},
+ "Value": {
+ "description": "The single value of a rate group or the value of a rate group table's cell. Exactly one of noShipping, flatRate, pricePercentage, carrierRateName, subtableName must be set.",
+ "id": "Value",
+ "properties": {
+ "carrierRateName": {
+ "description": "The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.",
+ "type": "string"
+ },
+ "flatRate": {
+ "$ref": "Price",
+ "description": "A flat rate. Can only be set if all other fields are not set."
+ },
+ "noShipping": {
+ "description": "If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.",
+ "type": "boolean"
+ },
+ "pricePercentage": {
+ "description": "A percentage of the price represented as a number in decimal notation (e.g., \"5.4\"). Can only be set if all other fields are not set.",
+ "type": "string"
+ },
+ "subtableName": {
+ "description": "The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if all other fields are not set.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"Weight": {
"id": "Weight",
"properties": {
« no previous file with comments | « discovery/googleapis/compute__v1.json ('k') | discovery/googleapis/content__v2sandbox.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698