vendor: update all dependencies

* Update all dependencies
  * Remove all `[[constraint]]` from Gopkg.toml
  * Add in the minimum number of `[[override]]` to build
  * Remove go get of github.com/inconshreveable/mousetrap as it is vendored
  * Update docs with new policy on constraints
This commit is contained in:
Nick Craig-Wood
2018-05-05 15:52:24 +01:00
parent 21383877df
commit 6427029c4e
4902 changed files with 1443412 additions and 227278 deletions
@@ -164,11 +164,11 @@
}
}
},
"revision": "20180129",
"revision": "20180419",
"rootUrl": "https://abusiveexperiencereport.googleapis.com/",
"schemas": {
"SiteSummaryResponse": {
"description": "Response message for GetSiteSummary.",
"description": "Response message for GetSiteSummary.\nDo not confuse with same message in google.ads.experiencereport.v1",
"id": "SiteSummaryResponse",
"properties": {
"abusiveStatus": {
@@ -244,7 +244,7 @@
}
},
"servicePath": "",
"title": "Google Abusive Experience Report API",
"title": "Abusive Experience Report API",
"version": "v1",
"version_module": true
}
@@ -1,4 +1,4 @@
// Package abusiveexperiencereport provides access to the Google Abusive Experience Report API.
// Package abusiveexperiencereport provides access to the Abusive Experience Report API.
//
// See https://developers.google.com/abusive-experience-report/
//
@@ -97,6 +97,7 @@ type ViolatingSitesService struct {
}
// SiteSummaryResponse: Response message for GetSiteSummary.
// Do not confuse with same message in google.ads.experiencereport.v1
type SiteSummaryResponse struct {
// AbusiveStatus: The status of the site reviewed for the abusive
// experiences.
@@ -15,7 +15,7 @@
"description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/ad-exchange/buyer-rest",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/-1DKqIhPUpLfO8DBj8P3gNrIPtE\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/F_9WJQnvLgGfABacvXvQLtkcuXw\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/doubleclick-16.gif",
"x32": "https://www.google.com/images/icons/product/doubleclick-32.gif"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -259,7 +259,7 @@
}
}
},
"revision": "20170810",
"revision": "20180222",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Account": {
@@ -15,7 +15,7 @@
"description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/ad-exchange/buyer-rest",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/_RwUq281eKa7d-tJKPdh-IE_OEk\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/_CyndOA4AbF54FgfrNcK2tPll_k\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/doubleclick-16.gif",
"x32": "https://www.google.com/images/icons/product/doubleclick-32.gif"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -699,7 +699,7 @@
}
}
},
"revision": "20170810",
"revision": "20180222",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Account": {
@@ -15,7 +15,7 @@
"description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/ad-exchange/buyer-rest",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/X7x239uWJ65N2aEP-IhQZbTrqjc\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/PLPghsfiZYCQb1-eNuy6JcUnzJ4\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/doubleclick-16.gif",
"x32": "https://www.google.com/images/icons/product/doubleclick-32.gif"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -1947,7 +1947,7 @@
}
}
},
"revision": "20180308",
"revision": "20180430",
"rootUrl": "https://adexchangebuyer.googleapis.com/",
"schemas": {
"AbsoluteDateRange": {
@@ -2297,7 +2297,7 @@
"type": "object"
},
"Creative": {
"description": "A creative and its classification data.\n\nNext ID: 31",
"description": "A creative and its classification data.\n\nNext ID: 35",
"id": "Creative",
"properties": {
"accountId": {
@@ -2583,7 +2583,7 @@
"type": "integer"
},
"month": {
"description": "Month of year. Must be from 1 to 12.",
"description": "Month of year. Must be from 1 to 12, or 0 if specifying a date without a\nmonth.",
"format": "int32",
"type": "integer"
},
@@ -2702,7 +2702,9 @@
"MAXIMUM_NUMBER_OF_HTTP_CALLS_EXCEEDED",
"MAXIMUM_NUMBER_OF_COOKIES_EXCEEDED",
"PERSONAL_LOANS",
"UNSUPPORTED_FLASH_CONTENT"
"UNSUPPORTED_FLASH_CONTENT",
"MISUSE_BY_OMID_SCRIPT",
"NON_WHITELISTED_OMID_VENDOR"
],
"enumDescriptions": [
"The length of the image animation is longer than allowed.",
@@ -2798,7 +2800,9 @@
"Maximum number of HTTP calls exceeded.",
"Maximum number of cookies exceeded.",
"Financial service ad does not adhere to specifications.",
"Flash content was found in an unsupported context."
"Flash content was found in an unsupported context.",
"Misuse by an Open Measurement SDK script.",
"Use of an Open Measurement SDK vendor not on approved whitelist."
],
"type": "string"
}
@@ -2842,24 +2846,6 @@
],
"type": "string"
},
"format": {
"description": "DEPRECATED: use repeated formats field instead.\nThe format on which to filter; optional.",
"enum": [
"FORMAT_UNSPECIFIED",
"NATIVE_DISPLAY",
"NATIVE_VIDEO",
"NON_NATIVE_DISPLAY",
"NON_NATIVE_VIDEO"
],
"enumDescriptions": [
"A placeholder for an undefined format; indicates that no format filter\nwill be applied.",
"The ad impression is a native ad, and display (i.e. image) format.",
"The ad impression is a native ad, and video format.",
"The ad impression is not a native ad, and display (i.e. image) format.",
"The ad impression is not a native ad, and video format."
],
"type": "string"
},
"formats": {
"description": "The list of formats on which to filter; may be empty. The filters\nrepresented by multiple formats are ORed together (i.e. if non-empty,\nresults must match any one of the formats).",
"enumDescriptions": [
@@ -2904,6 +2890,13 @@
},
"type": "array"
},
"publisherIdentifiers": {
"description": "For Exchange Bidding buyers only.\nThe list of publisher identifiers on which to filter; may be empty.\nThe filters represented by multiple publisher identifiers are ORed\ntogether.",
"items": {
"type": "string"
},
"type": "array"
},
"realtimeTimeRange": {
"$ref": "RealtimeTimeRange",
"description": "An open-ended realtime time range, defined by the aggregation start\ntimestamp."
@@ -2913,7 +2906,7 @@
"description": "A relative date range, defined by an offset from today and a duration.\nInterpreted relative to Pacific time zone."
},
"sellerNetworkIds": {
"description": "The list of IDs of the seller (publisher) networks on which to filter;\nmay be empty. The filters represented by multiple seller network IDs are\nORed together (i.e. if non-empty, results must match any one of the\npublisher networks).\nSee [seller-network-ids](https://developers.google.com/ad-exchange/rtb/downloads/seller-network-ids)\nfile for the set of existing seller network IDs.",
"description": "For Ad Exchange buyers only.\nThe list of IDs of the seller (publisher) networks on which to filter;\nmay be empty. The filters represented by multiple seller network IDs are\nORed together (i.e. if non-empty, results must match any one of the\npublisher networks).\nSee [seller-network-ids](https://developers.google.com/ad-exchange/rtb/downloads/seller-network-ids)\nfile for the set of existing seller network IDs.",
"items": {
"format": "int32",
"type": "integer"
@@ -1066,7 +1066,7 @@ func (s *Correction) MarshalJSON() ([]byte, error) {
// Creative: A creative and its classification data.
//
// Next ID: 31
// Next ID: 35
type Creative struct {
// AccountId: The account that this creative belongs to.
// Can be used to filter the response of the
@@ -1390,7 +1390,9 @@ type Date struct {
// if specifying a year/month where the day is not significant.
Day int64 `json:"day,omitempty"`
// Month: Month of year. Must be from 1 to 12.
// Month: Month of year. Must be from 1 to 12, or 0 if specifying a date
// without a
// month.
Month int64 `json:"month,omitempty"`
// Year: Year of date. Must be from 1 to 9999, or 0 if specifying a date
@@ -1587,6 +1589,9 @@ type Disapproval struct {
// specifications.
// "UNSUPPORTED_FLASH_CONTENT" - Flash content was found in an
// unsupported context.
// "MISUSE_BY_OMID_SCRIPT" - Misuse by an Open Measurement SDK script.
// "NON_WHITELISTED_OMID_VENDOR" - Use of an Open Measurement SDK
// vendor not on approved whitelist.
Reason string `json:"reason,omitempty"`
// ForceSendFields is a list of field names (e.g. "Details") to
@@ -1675,23 +1680,6 @@ type FilterSet struct {
// "APP" - The ad impression appears in an app.
Environment string `json:"environment,omitempty"`
// Format: DEPRECATED: use repeated formats field instead.
// The format on which to filter; optional.
//
// Possible values:
// "FORMAT_UNSPECIFIED" - A placeholder for an undefined format;
// indicates that no format filter
// will be applied.
// "NATIVE_DISPLAY" - The ad impression is a native ad, and display
// (i.e. image) format.
// "NATIVE_VIDEO" - The ad impression is a native ad, and video
// format.
// "NON_NATIVE_DISPLAY" - The ad impression is not a native ad, and
// display (i.e. image) format.
// "NON_NATIVE_VIDEO" - The ad impression is not a native ad, and
// video format.
Format string `json:"format,omitempty"`
// Formats: The list of formats on which to filter; may be empty. The
// filters
// represented by multiple formats are ORed together (i.e. if
@@ -1741,6 +1729,14 @@ type FilterSet struct {
// "MOBILE" - The ad impression appears on a mobile device.
Platforms []string `json:"platforms,omitempty"`
// PublisherIdentifiers: For Exchange Bidding buyers only.
// The list of publisher identifiers on which to filter; may be
// empty.
// The filters represented by multiple publisher identifiers are
// ORed
// together.
PublisherIdentifiers []string `json:"publisherIdentifiers,omitempty"`
// RealtimeTimeRange: An open-ended realtime time range, defined by the
// aggregation start
// timestamp.
@@ -1751,8 +1747,9 @@ type FilterSet struct {
// Interpreted relative to Pacific time zone.
RelativeDateRange *RelativeDateRange `json:"relativeDateRange,omitempty"`
// SellerNetworkIds: The list of IDs of the seller (publisher) networks
// on which to filter;
// SellerNetworkIds: For Ad Exchange buyers only.
// The list of IDs of the seller (publisher) networks on which to
// filter;
// may be empty. The filters represented by multiple seller network IDs
// are
// ORed together (i.e. if non-empty, results must match any one of
@@ -18,7 +18,7 @@
"description": "Accesses the inventory of Ad Exchange seller users and generates reports.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/ad-exchange/seller-rest/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/ptWrH6xTfYx9JmkFvi4WlT7efFk\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/8jrsaX2ZBCjXN0ZZXy-z0sEU9bw\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/doubleclick-16.gif",
"x32": "https://www.google.com/images/icons/product/doubleclick-32.gif"
@@ -65,12 +65,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -18,7 +18,7 @@
"description": "Accesses the inventory of Ad Exchange seller users and generates reports.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/ad-exchange/seller-rest/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/LZjbJqGI4YbMK1jq7CAP1O0QwyE\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/e5nQbGm57U4Bnz4bup5Kp5wVhzM\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/doubleclick-16.gif",
"x32": "https://www.google.com/images/icons/product/doubleclick-32.gif"
@@ -65,12 +65,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -18,7 +18,7 @@
"description": "Accesses the inventory of Ad Exchange seller users and generates reports.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/ad-exchange/seller-rest/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/yPQ_FKbZQkgdh3799oQXrXWTC8I\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/jPNLP9nSz33fS6beI2Q2zIyZxSc\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/doubleclick-16.gif",
"x32": "https://www.google.com/images/icons/product/doubleclick-32.gif"
@@ -65,12 +65,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -163,7 +163,7 @@
}
}
},
"revision": "20180129",
"revision": "20180420",
"rootUrl": "https://adexperiencereport.googleapis.com/",
"schemas": {
"PlatformSummary": {
@@ -243,7 +243,7 @@
"type": "object"
},
"SiteSummaryResponse": {
"description": "Response message for GetSiteSummary.",
"description": "Response message for GetSiteSummary.\nDo not confuse with same message in google.chrome.abusiveexperiencereport.v1",
"id": "SiteSummaryResponse",
"properties": {
"desktopSummary": {
@@ -277,7 +277,7 @@
}
},
"servicePath": "",
"title": "Google Ad Experience Report API",
"title": "Ad Experience Report API",
"version": "v1",
"version_module": true
}
@@ -1,4 +1,4 @@
// Package adexperiencereport provides access to the Google Ad Experience Report API.
// Package adexperiencereport provides access to the Ad Experience Report API.
//
// See https://developers.google.com/ad-experience-report/
//
@@ -164,6 +164,8 @@ func (s *PlatformSummary) MarshalJSON() ([]byte, error) {
}
// SiteSummaryResponse: Response message for GetSiteSummary.
// Do not confuse with same message in
// google.chrome.abusiveexperiencereport.v1
type SiteSummaryResponse struct {
// DesktopSummary: Summary for the desktop review of the site.
DesktopSummary *PlatformSummary `json:"desktopSummary,omitempty"`
+3 -3
View File
@@ -18,7 +18,7 @@
"description": "Transfers user data from one user to another.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/admin-sdk/data-transfer/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/69RNEuIs-2cMvhRHgpkaoTAmcFU\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/PJB_zqya-G8YVADxM394C0jmFUA\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -64,12 +64,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
+100 -14
View File
@@ -90,10 +90,10 @@
"baseUrl": "https://www.googleapis.com/admin/directory/v1/",
"batchPath": "batch/admin/directory_v1",
"canonicalName": "directory",
"description": "The Admin SDK Directory API lets you view and manage enterprise resources such as users and groups, administrative notifications, security features, and more.",
"description": "Manages enterprise resources such as users and groups, administrative notifications, security features, and more.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/admin-sdk/directory/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/FEIM1JSTcD4HhoBpMoEeP9vkMCQ\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/cqLS0IwH2Is5IhWrKMNCt4VPtGQ\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -139,12 +139,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -923,7 +923,7 @@
]
},
"list": {
"description": "Retrieve all groups in a domain (paginated)",
"description": "Retrieve all groups of a domain or of a user given a userKey (paginated)",
"httpMethod": "GET",
"id": "directory.groups.list",
"parameters": {
@@ -944,13 +944,42 @@
"minimum": "1",
"type": "integer"
},
"orderBy": {
"description": "Column to use for sorting results",
"enum": [
"email"
],
"enumDescriptions": [
"Email of the group."
],
"location": "query",
"type": "string"
},
"pageToken": {
"description": "Token to specify next page in the list",
"location": "query",
"type": "string"
},
"query": {
"description": "Query string search. Should be of the form \"\". Complete documentation is at https://developers.google.com/admin-sdk/directory/v1/guides/search-users",
"location": "query",
"type": "string"
},
"sortOrder": {
"description": "Whether to return results in ascending or descending order. Only of use when orderBy is also used",
"enum": [
"ASCENDING",
"DESCENDING"
],
"enumDescriptions": [
"Ascending order.",
"Descending order."
],
"location": "query",
"type": "string"
},
"userKey": {
"description": "Email or immutable ID of the user if only those groups are to be listed, the given user is a member of. If ID, it should match with id of user object",
"description": "Email or immutable Id of the user if only those groups are to be listed, the given user is a member of. If Id, it should match with id of user object",
"location": "query",
"type": "string"
}
@@ -1166,7 +1195,7 @@
]
},
"hasMember": {
"description": "Checks Membership of an user within a Group",
"description": "Checks whether the given user is a member of the group. Membership can be direct or nested.",
"httpMethod": "GET",
"id": "directory.members.hasMember",
"parameterOrder": [
@@ -1175,13 +1204,13 @@
],
"parameters": {
"groupKey": {
"description": "Email or immutable Id of the group",
"description": "Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.",
"location": "path",
"required": true,
"type": "string"
},
"memberKey": {
"description": "Email or immutable Id of the member",
"description": "Identifies the user member in the API request. The value can be the user's primary email address, alias, or unique ID.",
"location": "path",
"required": true,
"type": "string"
@@ -1239,6 +1268,11 @@
"required": true,
"type": "string"
},
"includeDerivedMembership": {
"description": "Whether to list indirect memberships. Default: false.",
"location": "query",
"type": "boolean"
},
"maxResults": {
"description": "Maximum number of results to return. Default is 200",
"format": "int32",
@@ -2056,6 +2090,19 @@
"location": "path",
"required": true,
"type": "string"
},
"maxResults": {
"description": "Maximum number of results to return.",
"format": "int32",
"location": "query",
"maximum": "500",
"minimum": "1",
"type": "integer"
},
"pageToken": {
"description": "Token to specify the next page in the list.",
"location": "query",
"type": "string"
}
},
"path": "customer/{customer}/resources/buildings",
@@ -2254,7 +2301,7 @@
"type": "string"
},
"query": {
"description": "String query used to filter results. Should be of the form \"field operator value\" where field can be any of supported fields and operators can be any of supported operations. Operators include '=' for exact match and ':' for prefix match where applicable. For prefix match, the value should always be followed by a *.",
"description": "String query used to filter results. Should be of the form \"field operator value\" where field can be any of supported fields and operators can be any of supported operations. Operators include '=' for exact match and ':' for prefix match or HAS match where applicable. For prefix match, the value should always be followed by a *. Supported fields include generatedResourceName, name, buildingId, featureInstances.feature.name. For example buildingId=US-NYC-9TH AND featureInstances.feature.name:Phone.",
"location": "query",
"type": "string"
}
@@ -2436,6 +2483,14 @@
"required": true,
"type": "string"
},
"maxResults": {
"description": "Maximum number of results to return.",
"format": "int32",
"location": "query",
"maximum": "500",
"minimum": "1",
"type": "integer"
},
"pageToken": {
"description": "Token to specify the next page in the list.",
"location": "query",
@@ -3914,7 +3969,7 @@
}
}
},
"revision": "20171212",
"revision": "20180423",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Alias": {
@@ -4353,7 +4408,7 @@
"type": "string"
},
"downloadUrl": {
"description": "File downlod URL",
"description": "File download URL",
"type": "string"
},
"name": {
@@ -4463,23 +4518,30 @@
"type": "string"
},
"tpmVersionInfo": {
"description": "Trusted Platform Module (TPM) (Read-only)",
"properties": {
"family": {
"description": "TPM family.",
"type": "string"
},
"firmwareVersion": {
"description": "TPM firmware version.",
"type": "string"
},
"manufacturer": {
"description": "TPM manufacturer code.",
"type": "string"
},
"specLevel": {
"description": "TPM specification level.",
"type": "string"
},
"tpmModel": {
"description": "TPM model number.",
"type": "string"
},
"vendorSpecific": {
"description": "Vendor-specific information such as Vendor ID.",
"type": "string"
}
},
@@ -4804,7 +4866,8 @@
"id": "FeatureInstance",
"properties": {
"feature": {
"$ref": "Feature"
"$ref": "Feature",
"description": "The feature that this is an instance of. A calendar resource may have multiple instances of a feature."
}
},
"type": "object"
@@ -5007,7 +5070,7 @@
"id": "MembersHasMember",
"properties": {
"isMember": {
"description": "Identifies whether given user is a member or not.",
"description": "Identifies whether the given user is a member of the group. Membership can be direct or nested.",
"readOnly": true,
"type": "boolean"
}
@@ -5636,6 +5699,15 @@
"description": "JSON template for Schema resource in Directory API.",
"id": "Schema",
"properties": {
"displayName": {
"annotations": {
"required": [
"directory.schemas.insert"
]
},
"description": "Display name for the schema.",
"type": "string"
},
"etag": {
"description": "ETag of the resource.",
"type": "string"
@@ -5678,6 +5750,16 @@
"description": "JSON template for FieldSpec resource for Schemas in Directory API.",
"id": "SchemaFieldSpec",
"properties": {
"displayName": {
"annotations": {
"required": [
"directory.schemas.insert",
"directory.schemas.update"
]
},
"description": "Display Name of the field.",
"type": "string"
},
"etag": {
"description": "ETag of the resource.",
"type": "string"
@@ -6530,6 +6612,10 @@
"description": "The path to the home directory for this account.",
"type": "string"
},
"operatingSystemType": {
"description": "The operating system type for this account.",
"type": "string"
},
"primary": {
"description": "If this is user's primary account within the SystemId.",
"type": "boolean"
+185 -24
View File
@@ -1132,6 +1132,7 @@ type ChromeOsDevice struct {
// SupportEndDate: Final date the device will be supported (Read-only)
SupportEndDate string `json:"supportEndDate,omitempty"`
// TpmVersionInfo: Trusted Platform Module (TPM) (Read-only)
TpmVersionInfo *ChromeOsDeviceTpmVersionInfo `json:"tpmVersionInfo,omitempty"`
// WillAutoRenew: Will Chromebook auto renew after support end date
@@ -1200,7 +1201,7 @@ type ChromeOsDeviceDeviceFiles struct {
// CreateTime: Date and time the file was created
CreateTime string `json:"createTime,omitempty"`
// DownloadUrl: File downlod URL
// DownloadUrl: File download URL
DownloadUrl string `json:"downloadUrl,omitempty"`
// Name: File name
@@ -1263,17 +1264,25 @@ func (s *ChromeOsDeviceRecentUsers) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ChromeOsDeviceTpmVersionInfo: Trusted Platform Module (TPM)
// (Read-only)
type ChromeOsDeviceTpmVersionInfo struct {
// Family: TPM family.
Family string `json:"family,omitempty"`
// FirmwareVersion: TPM firmware version.
FirmwareVersion string `json:"firmwareVersion,omitempty"`
// Manufacturer: TPM manufacturer code.
Manufacturer string `json:"manufacturer,omitempty"`
// SpecLevel: TPM specification level.
SpecLevel string `json:"specLevel,omitempty"`
// TpmModel: TPM model number.
TpmModel string `json:"tpmModel,omitempty"`
// VendorSpecific: Vendor-specific information such as Vendor ID.
VendorSpecific string `json:"vendorSpecific,omitempty"`
// ForceSendFields is a list of field names (e.g. "Family") to
@@ -1740,6 +1749,8 @@ func (s *Feature) MarshalJSON() ([]byte, error) {
// FeatureInstance: JSON template for a "feature instance".
type FeatureInstance struct {
// Feature: The feature that this is an instance of. A calendar resource
// may have multiple instances of a feature.
Feature *Feature `json:"feature,omitempty"`
// ForceSendFields is a list of field names (e.g. "Feature") to
@@ -2035,7 +2046,8 @@ func (s *Members) MarshalJSON() ([]byte, error) {
// MembersHasMember: JSON template for Has Member response in Directory
// API.
type MembersHasMember struct {
// IsMember: Identifies whether given user is a member or not.
// IsMember: Identifies whether the given user is a member of the group.
// Membership can be direct or nested.
IsMember bool `json:"isMember,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -2848,6 +2860,9 @@ func (s *Roles) MarshalJSON() ([]byte, error) {
// Schema: JSON template for Schema resource in Directory API.
type Schema struct {
// DisplayName: Display name for the schema.
DisplayName string `json:"displayName,omitempty"`
// Etag: ETag of the resource.
Etag string `json:"etag,omitempty"`
@@ -2867,7 +2882,7 @@ type Schema struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Etag") to
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -2875,10 +2890,10 @@ type Schema struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@@ -2893,6 +2908,9 @@ func (s *Schema) MarshalJSON() ([]byte, error) {
// SchemaFieldSpec: JSON template for FieldSpec resource for Schemas in
// Directory API.
type SchemaFieldSpec struct {
// DisplayName: Display Name of the field.
DisplayName string `json:"displayName,omitempty"`
// Etag: ETag of the resource.
Etag string `json:"etag,omitempty"`
@@ -2927,7 +2945,7 @@ type SchemaFieldSpec struct {
// "ADMINS_AND_SELF".
ReadAccessType string `json:"readAccessType,omitempty"`
// ForceSendFields is a list of field names (e.g. "Etag") to
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -2935,10 +2953,10 @@ type SchemaFieldSpec struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@@ -4003,6 +4021,9 @@ type UserPosixAccount struct {
// HomeDirectory: The path to the home directory for this account.
HomeDirectory string `json:"homeDirectory,omitempty"`
// OperatingSystemType: The operating system type for this account.
OperatingSystemType string `json:"operatingSystemType,omitempty"`
// Primary: If this is user's primary account within the SystemId.
Primary bool `json:"primary,omitempty"`
@@ -7655,7 +7676,8 @@ type GroupsListCall struct {
header_ http.Header
}
// List: Retrieve all groups in a domain (paginated)
// List: Retrieve all groups of a domain or of a user given a userKey
// (paginated)
func (r *GroupsService) List() *GroupsListCall {
c := &GroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
@@ -7684,6 +7706,16 @@ func (c *GroupsListCall) MaxResults(maxResults int64) *GroupsListCall {
return c
}
// OrderBy sets the optional parameter "orderBy": Column to use for
// sorting results
//
// Possible values:
// "email" - Email of the group.
func (c *GroupsListCall) OrderBy(orderBy string) *GroupsListCall {
c.urlParams_.Set("orderBy", orderBy)
return c
}
// PageToken sets the optional parameter "pageToken": Token to specify
// next page in the list
func (c *GroupsListCall) PageToken(pageToken string) *GroupsListCall {
@@ -7691,9 +7723,29 @@ func (c *GroupsListCall) PageToken(pageToken string) *GroupsListCall {
return c
}
// UserKey sets the optional parameter "userKey": Email or immutable ID
// Query sets the optional parameter "query": Query string search.
// Should be of the form "". Complete documentation is at
// https://developers.google.com/admin-sdk/directory/v1/guides/search-users
func (c *GroupsListCall) Query(query string) *GroupsListCall {
c.urlParams_.Set("query", query)
return c
}
// SortOrder sets the optional parameter "sortOrder": Whether to return
// results in ascending or descending order. Only of use when orderBy is
// also used
//
// Possible values:
// "ASCENDING" - Ascending order.
// "DESCENDING" - Descending order.
func (c *GroupsListCall) SortOrder(sortOrder string) *GroupsListCall {
c.urlParams_.Set("sortOrder", sortOrder)
return c
}
// UserKey sets the optional parameter "userKey": Email or immutable Id
// of the user if only those groups are to be listed, the given user is
// a member of. If ID, it should match with id of user object
// a member of. If Id, it should match with id of user object
func (c *GroupsListCall) UserKey(userKey string) *GroupsListCall {
c.urlParams_.Set("userKey", userKey)
return c
@@ -7790,7 +7842,7 @@ func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*Groups, error) {
}
return ret, nil
// {
// "description": "Retrieve all groups in a domain (paginated)",
// "description": "Retrieve all groups of a domain or of a user given a userKey (paginated)",
// "httpMethod": "GET",
// "id": "directory.groups.list",
// "parameters": {
@@ -7811,13 +7863,42 @@ func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*Groups, error) {
// "minimum": "1",
// "type": "integer"
// },
// "orderBy": {
// "description": "Column to use for sorting results",
// "enum": [
// "email"
// ],
// "enumDescriptions": [
// "Email of the group."
// ],
// "location": "query",
// "type": "string"
// },
// "pageToken": {
// "description": "Token to specify next page in the list",
// "location": "query",
// "type": "string"
// },
// "query": {
// "description": "Query string search. Should be of the form \"\". Complete documentation is at https://developers.google.com/admin-sdk/directory/v1/guides/search-users",
// "location": "query",
// "type": "string"
// },
// "sortOrder": {
// "description": "Whether to return results in ascending or descending order. Only of use when orderBy is also used",
// "enum": [
// "ASCENDING",
// "DESCENDING"
// ],
// "enumDescriptions": [
// "Ascending order.",
// "Descending order."
// ],
// "location": "query",
// "type": "string"
// },
// "userKey": {
// "description": "Email or immutable ID of the user if only those groups are to be listed, the given user is a member of. If ID, it should match with id of user object",
// "description": "Email or immutable Id of the user if only those groups are to be listed, the given user is a member of. If Id, it should match with id of user object",
// "location": "query",
// "type": "string"
// }
@@ -8766,7 +8847,8 @@ type MembersHasMemberCall struct {
header_ http.Header
}
// HasMember: Checks Membership of an user within a Group
// HasMember: Checks whether the given user is a member of the group.
// Membership can be direct or nested.
func (r *MembersService) HasMember(groupKey string, memberKey string) *MembersHasMemberCall {
c := &MembersHasMemberCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.groupKey = groupKey
@@ -8869,7 +8951,7 @@ func (c *MembersHasMemberCall) Do(opts ...googleapi.CallOption) (*MembersHasMemb
}
return ret, nil
// {
// "description": "Checks Membership of an user within a Group",
// "description": "Checks whether the given user is a member of the group. Membership can be direct or nested.",
// "httpMethod": "GET",
// "id": "directory.members.hasMember",
// "parameterOrder": [
@@ -8878,13 +8960,13 @@ func (c *MembersHasMemberCall) Do(opts ...googleapi.CallOption) (*MembersHasMemb
// ],
// "parameters": {
// "groupKey": {
// "description": "Email or immutable Id of the group",
// "description": "Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "memberKey": {
// "description": "Email or immutable Id of the member",
// "description": "Identifies the user member in the API request. The value can be the user's primary email address, alias, or unique ID.",
// "location": "path",
// "required": true,
// "type": "string"
@@ -9056,6 +9138,14 @@ func (r *MembersService) List(groupKey string) *MembersListCall {
return c
}
// IncludeDerivedMembership sets the optional parameter
// "includeDerivedMembership": Whether to list indirect memberships.
// Default: false.
func (c *MembersListCall) IncludeDerivedMembership(includeDerivedMembership bool) *MembersListCall {
c.urlParams_.Set("includeDerivedMembership", fmt.Sprint(includeDerivedMembership))
return c
}
// MaxResults sets the optional parameter "maxResults": Maximum number
// of results to return. Default is 200
func (c *MembersListCall) MaxResults(maxResults int64) *MembersListCall {
@@ -9184,6 +9274,11 @@ func (c *MembersListCall) Do(opts ...googleapi.CallOption) (*Members, error) {
// "required": true,
// "type": "string"
// },
// "includeDerivedMembership": {
// "description": "Whether to list indirect memberships. Default: false.",
// "location": "query",
// "type": "boolean"
// },
// "maxResults": {
// "description": "Maximum number of results to return. Default is 200",
// "format": "int32",
@@ -12578,6 +12673,20 @@ func (r *ResourcesBuildingsService) List(customer string) *ResourcesBuildingsLis
return c
}
// MaxResults sets the optional parameter "maxResults": Maximum number
// of results to return.
func (c *ResourcesBuildingsListCall) MaxResults(maxResults int64) *ResourcesBuildingsListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken": Token to specify
// the next page in the list.
func (c *ResourcesBuildingsListCall) PageToken(pageToken string) *ResourcesBuildingsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
@@ -12684,6 +12793,19 @@ func (c *ResourcesBuildingsListCall) Do(opts ...googleapi.CallOption) (*Building
// "location": "path",
// "required": true,
// "type": "string"
// },
// "maxResults": {
// "description": "Maximum number of results to return.",
// "format": "int32",
// "location": "query",
// "maximum": "500",
// "minimum": "1",
// "type": "integer"
// },
// "pageToken": {
// "description": "Token to specify the next page in the list.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "customer/{customer}/resources/buildings",
@@ -12698,6 +12820,27 @@ func (c *ResourcesBuildingsListCall) Do(opts ...googleapi.CallOption) (*Building
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *ResourcesBuildingsListCall) Pages(ctx context.Context, f func(*Buildings) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "directory.resources.buildings.patch":
type ResourcesBuildingsPatchCall struct {
@@ -13418,8 +13561,11 @@ func (c *ResourcesCalendarsListCall) PageToken(pageToken string) *ResourcesCalen
// filter results. Should be of the form "field operator value" where
// field can be any of supported fields and operators can be any of
// supported operations. Operators include '=' for exact match and ':'
// for prefix match where applicable. For prefix match, the value should
// always be followed by a *.
// for prefix match or HAS match where applicable. For prefix match, the
// value should always be followed by a *. Supported fields include
// generatedResourceName, name, buildingId,
// featureInstances.feature.name. For example buildingId=US-NYC-9TH AND
// featureInstances.feature.name:Phone.
func (c *ResourcesCalendarsListCall) Query(query string) *ResourcesCalendarsListCall {
c.urlParams_.Set("query", query)
return c
@@ -13551,7 +13697,7 @@ func (c *ResourcesCalendarsListCall) Do(opts ...googleapi.CallOption) (*Calendar
// "type": "string"
// },
// "query": {
// "description": "String query used to filter results. Should be of the form \"field operator value\" where field can be any of supported fields and operators can be any of supported operations. Operators include '=' for exact match and ':' for prefix match where applicable. For prefix match, the value should always be followed by a *.",
// "description": "String query used to filter results. Should be of the form \"field operator value\" where field can be any of supported fields and operators can be any of supported operations. Operators include '=' for exact match and ':' for prefix match or HAS match where applicable. For prefix match, the value should always be followed by a *. Supported fields include generatedResourceName, name, buildingId, featureInstances.feature.name. For example buildingId=US-NYC-9TH AND featureInstances.feature.name:Phone.",
// "location": "query",
// "type": "string"
// }
@@ -14287,6 +14433,13 @@ func (r *ResourcesFeaturesService) List(customer string) *ResourcesFeaturesListC
return c
}
// MaxResults sets the optional parameter "maxResults": Maximum number
// of results to return.
func (c *ResourcesFeaturesListCall) MaxResults(maxResults int64) *ResourcesFeaturesListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken": Token to specify
// the next page in the list.
func (c *ResourcesFeaturesListCall) PageToken(pageToken string) *ResourcesFeaturesListCall {
@@ -14401,6 +14554,14 @@ func (c *ResourcesFeaturesListCall) Do(opts ...googleapi.CallOption) (*Features,
// "required": true,
// "type": "string"
// },
// "maxResults": {
// "description": "Maximum number of results to return.",
// "format": "int32",
// "location": "query",
// "maximum": "500",
// "minimum": "1",
// "type": "integer"
// },
// "pageToken": {
// "description": "Token to specify the next page in the list.",
// "location": "query",
+6 -6
View File
@@ -18,7 +18,7 @@
"description": "Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/admin-sdk/reports/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/bw0JROoLapnynZnUYWv2Bypz6Uk\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/yidQnSpgj1IFF7QC_UWo1i1Etx0\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -64,12 +64,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -95,7 +95,7 @@
"applicationName": {
"description": "Application name for which the events are to be retrieved.",
"location": "path",
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)|(jamboard)",
"required": true,
"type": "string"
},
@@ -174,7 +174,7 @@
"applicationName": {
"description": "Application name for which the events are to be retrieved.",
"location": "path",
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)|(jamboard)",
"required": true,
"type": "string"
},
@@ -443,7 +443,7 @@
}
}
},
"revision": "20180110",
"revision": "20180430",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Activities": {
+2 -2
View File
@@ -862,7 +862,7 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*Activities, erro
// "applicationName": {
// "description": "Application name for which the events are to be retrieved.",
// "location": "path",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)|(jamboard)",
// "required": true,
// "type": "string"
// },
@@ -1130,7 +1130,7 @@ func (c *ActivitiesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error)
// "applicationName": {
// "description": "Application name for which the events are to be retrieved.",
// "location": "path",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)|(jamboard)",
// "required": true,
// "type": "string"
// },
+4 -4
View File
@@ -18,7 +18,7 @@
"description": "Accesses AdSense publishers' inventory and generates performance reports.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/adsense/management/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/8_GH3r5fzMK8tmgovIuz_n7J2kU\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/oe7LaFYPZykS7MQWKtLrY69URhY\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/adsense-16.png",
"x32": "https://www.google.com/images/icons/product/adsense-32.png"
@@ -65,12 +65,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -1624,7 +1624,7 @@
}
}
},
"revision": "20180204",
"revision": "20180429",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Account": {
+4 -4
View File
@@ -15,7 +15,7 @@
"description": "Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/adsense/host/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/GgWkCMn0Gu9PJFDrmlIZU1uRxE0\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/If0V9L4pmPkkj2sELYO6XWB1RF0\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/adsense-16.png",
"x32": "https://www.google.com/images/icons/product/adsense-32.png"
@@ -65,12 +65,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -1072,7 +1072,7 @@
}
}
},
"revision": "20180204",
"revision": "20180429",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Account": {
+4 -4
View File
@@ -17,7 +17,7 @@
"description": "Views and manages your Google Analytics data.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/analytics/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/ulqmidM-fMam4LKTNGEvE0WurA4\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/j99ovJ40xXU1DDsOEorHf8wh9w4\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/analytics-16.png",
"x32": "https://www.google.com/images/icons/product/analytics-32.png"
@@ -62,12 +62,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -358,7 +358,7 @@
}
}
},
"revision": "20171211",
"revision": "20180417",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "analytics/v2.4/",
"title": "Google Analytics API",
+12 -24
View File
@@ -29,7 +29,7 @@
"description": "Views and manages your Google Analytics data.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/analytics/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/pZyXISvfodVzorQpGHmIl5L61w8\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/6p-mtXtqM7RLWG_i-dRwl-jH568\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/analytics-16.png",
"x32": "https://www.google.com/images/icons/product/analytics-32.png"
@@ -74,12 +74,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -3759,7 +3759,7 @@
}
}
},
"revision": "20180309",
"revision": "20180417",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Account": {
@@ -3976,22 +3976,16 @@
},
"accountSettings": {
"properties": {
"admobReporting": {
"shareAnonymouslyWithOthers": {
"type": "boolean"
},
"sharingWithGoogleAnySales": {
"shareWithGoogleProducts": {
"type": "boolean"
},
"sharingWithGoogleProducts": {
"shareWithSpecialists": {
"type": "boolean"
},
"sharingWithGoogleSales": {
"type": "boolean"
},
"sharingWithGoogleSupport": {
"type": "boolean"
},
"sharingWithOthers": {
"shareWithSupport": {
"type": "boolean"
}
},
@@ -4047,22 +4041,16 @@
},
"accountSettings": {
"properties": {
"admobReporting": {
"shareAnonymouslyWithOthers": {
"type": "boolean"
},
"sharingWithGoogleAnySales": {
"shareWithGoogleProducts": {
"type": "boolean"
},
"sharingWithGoogleProducts": {
"shareWithSpecialists": {
"type": "boolean"
},
"sharingWithGoogleSales": {
"type": "boolean"
},
"sharingWithGoogleSupport": {
"type": "boolean"
},
"sharingWithOthers": {
"shareWithSupport": {
"type": "boolean"
}
},
+36 -42
View File
@@ -762,33 +762,30 @@ func (s *AccountTreeRequest) MarshalJSON() ([]byte, error) {
}
type AccountTreeRequestAccountSettings struct {
AdmobReporting bool `json:"admobReporting,omitempty"`
ShareAnonymouslyWithOthers bool `json:"shareAnonymouslyWithOthers,omitempty"`
SharingWithGoogleAnySales bool `json:"sharingWithGoogleAnySales,omitempty"`
ShareWithGoogleProducts bool `json:"shareWithGoogleProducts,omitempty"`
SharingWithGoogleProducts bool `json:"sharingWithGoogleProducts,omitempty"`
ShareWithSpecialists bool `json:"shareWithSpecialists,omitempty"`
SharingWithGoogleSales bool `json:"sharingWithGoogleSales,omitempty"`
ShareWithSupport bool `json:"shareWithSupport,omitempty"`
SharingWithGoogleSupport bool `json:"sharingWithGoogleSupport,omitempty"`
SharingWithOthers bool `json:"sharingWithOthers,omitempty"`
// ForceSendFields is a list of field names (e.g. "AdmobReporting") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "ShareAnonymouslyWithOthers") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AdmobReporting") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
// NullFields is a list of field names (e.g.
// "ShareAnonymouslyWithOthers") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
@@ -845,33 +842,30 @@ func (s *AccountTreeResponse) MarshalJSON() ([]byte, error) {
}
type AccountTreeResponseAccountSettings struct {
AdmobReporting bool `json:"admobReporting,omitempty"`
ShareAnonymouslyWithOthers bool `json:"shareAnonymouslyWithOthers,omitempty"`
SharingWithGoogleAnySales bool `json:"sharingWithGoogleAnySales,omitempty"`
ShareWithGoogleProducts bool `json:"shareWithGoogleProducts,omitempty"`
SharingWithGoogleProducts bool `json:"sharingWithGoogleProducts,omitempty"`
ShareWithSpecialists bool `json:"shareWithSpecialists,omitempty"`
SharingWithGoogleSales bool `json:"sharingWithGoogleSales,omitempty"`
ShareWithSupport bool `json:"shareWithSupport,omitempty"`
SharingWithGoogleSupport bool `json:"sharingWithGoogleSupport,omitempty"`
SharingWithOthers bool `json:"sharingWithOthers,omitempty"`
// ForceSendFields is a list of field names (e.g. "AdmobReporting") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "ShareAnonymouslyWithOthers") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AdmobReporting") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
// NullFields is a list of field names (e.g.
// "ShareAnonymouslyWithOthers") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
@@ -486,7 +486,7 @@
],
"parameters": {
"partnerId": {
"description": "The ID of the partner.",
"description": "Required. The ID of the reseller partner.",
"format": "int64",
"location": "path",
"pattern": "^[^/]+$",
@@ -504,7 +504,7 @@
"devices": {
"methods": {
"claim": {
"description": "Claim the device identified by device identifier.",
"description": "Claims a device for a customer and adds it to zero-touch enrollment. If the\ndevice is already claimed by another customer, the call returns an error.",
"flatPath": "v1/partners/{partnersId}/devices:claim",
"httpMethod": "POST",
"id": "androiddeviceprovisioning.partners.devices.claim",
@@ -513,7 +513,7 @@
],
"parameters": {
"partnerId": {
"description": "ID of the partner.",
"description": "Required. The ID of the reseller partner.",
"format": "int64",
"location": "path",
"pattern": "^[^/]+$",
@@ -530,7 +530,7 @@
}
},
"claimAsync": {
"description": "Claim devices asynchronously.",
"description": "Claims a batch of devices for a customer asynchronously. Adds the devices\nto zero-touch enrollment. To learn more, read [Long‑running batch\noperations](/zero-touch/guides/how-it-works#operations).",
"flatPath": "v1/partners/{partnersId}/devices:claimAsync",
"httpMethod": "POST",
"id": "androiddeviceprovisioning.partners.devices.claimAsync",
@@ -539,7 +539,7 @@
],
"parameters": {
"partnerId": {
"description": "Partner ID.",
"description": "Required. The ID of the reseller partner.",
"format": "int64",
"location": "path",
"pattern": "^[^/]+$",
@@ -556,7 +556,7 @@
}
},
"findByIdentifier": {
"description": "Find devices by device identifier.",
"description": "Finds devices by hardware identifiers, such as IMEI.",
"flatPath": "v1/partners/{partnersId}/devices:findByIdentifier",
"httpMethod": "POST",
"id": "androiddeviceprovisioning.partners.devices.findByIdentifier",
@@ -565,7 +565,7 @@
],
"parameters": {
"partnerId": {
"description": "ID of the partner.",
"description": "Required. The ID of the reseller partner.",
"format": "int64",
"location": "path",
"pattern": "^[^/]+$",
@@ -582,7 +582,7 @@
}
},
"findByOwner": {
"description": "Find devices by ownership.",
"description": "Finds devices claimed for customers. The results only contain devices\nregistered to the reseller that's identified by the `partnerId` argument.\nThe customer's devices purchased from other resellers don't appear in the\nresults.",
"flatPath": "v1/partners/{partnersId}/devices:findByOwner",
"httpMethod": "POST",
"id": "androiddeviceprovisioning.partners.devices.findByOwner",
@@ -591,7 +591,7 @@
],
"parameters": {
"partnerId": {
"description": "ID of the partner.",
"description": "Required. The ID of the reseller partner.",
"format": "int64",
"location": "path",
"pattern": "^[^/]+$",
@@ -608,7 +608,7 @@
}
},
"get": {
"description": "Get a device.",
"description": "Gets a device.",
"flatPath": "v1/partners/{partnersId}/devices/{devicesId}",
"httpMethod": "GET",
"id": "androiddeviceprovisioning.partners.devices.get",
@@ -617,7 +617,7 @@
],
"parameters": {
"name": {
"description": "Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.",
"description": "Required. The device API resource name in the format\n`partners/[PARTNER_ID]/devices/[DEVICE_ID]`.",
"location": "path",
"pattern": "^partners/[^/]+/devices/[^/]+$",
"required": true,
@@ -630,7 +630,7 @@
}
},
"metadata": {
"description": "Update the metadata.",
"description": "Updates reseller metadata associated with the device.",
"flatPath": "v1/partners/{partnersId}/devices/{devicesId}/metadata",
"httpMethod": "POST",
"id": "androiddeviceprovisioning.partners.devices.metadata",
@@ -640,7 +640,7 @@
],
"parameters": {
"deviceId": {
"description": "ID of the partner.",
"description": "Required. The ID of the reseller partner.",
"format": "int64",
"location": "path",
"pattern": "^[^/]+$",
@@ -648,7 +648,7 @@
"type": "string"
},
"metadataOwnerId": {
"description": "The owner of the newly set metadata. Set this to the partner ID.",
"description": "Required. The owner of the newly set metadata. Set this to the partner ID.",
"format": "int64",
"location": "path",
"pattern": "^[^/]+$",
@@ -665,7 +665,7 @@
}
},
"unclaim": {
"description": "Unclaim the device identified by the `device_id` or the `deviceIdentifier`.",
"description": "Unclaims a device from a customer and removes it from zero-touch\nenrollment.",
"flatPath": "v1/partners/{partnersId}/devices:unclaim",
"httpMethod": "POST",
"id": "androiddeviceprovisioning.partners.devices.unclaim",
@@ -674,7 +674,7 @@
],
"parameters": {
"partnerId": {
"description": "ID of the partner.",
"description": "Required. The ID of the reseller partner.",
"format": "int64",
"location": "path",
"pattern": "^[^/]+$",
@@ -691,7 +691,7 @@
}
},
"unclaimAsync": {
"description": "Unclaim devices asynchronously.",
"description": "Unclaims a batch of devices for a customer asynchronously. Removes the\ndevices from zero-touch enrollment. To learn more, read [Long‑running batch\noperations](/zero-touch/guides/how-it-works#operations).",
"flatPath": "v1/partners/{partnersId}/devices:unclaimAsync",
"httpMethod": "POST",
"id": "androiddeviceprovisioning.partners.devices.unclaimAsync",
@@ -700,7 +700,7 @@
],
"parameters": {
"partnerId": {
"description": "Partner ID.",
"description": "Required. The reseller partner ID.",
"format": "int64",
"location": "path",
"pattern": "^[^/]+$",
@@ -717,7 +717,7 @@
}
},
"updateMetadataAsync": {
"description": "Set metadata in batch asynchronously.",
"description": "Updates the reseller metadata attached to a batch of devices. This method\nupdates devices asynchronously and returns an `Operation` that can be used\nto track progress. Read [Long‑running batch\noperations](/zero-touch/guides/how-it-works#operations).",
"flatPath": "v1/partners/{partnersId}/devices:updateMetadataAsync",
"httpMethod": "POST",
"id": "androiddeviceprovisioning.partners.devices.updateMetadataAsync",
@@ -726,7 +726,7 @@
],
"parameters": {
"partnerId": {
"description": "Partner ID.",
"description": "Required. The reseller partner ID.",
"format": "int64",
"location": "path",
"pattern": "^[^/]+$",
@@ -747,7 +747,7 @@
}
}
},
"revision": "20180203",
"revision": "20180413",
"rootUrl": "https://androiddeviceprovisioning.googleapis.com/",
"schemas": {
"ClaimDeviceRequest": {
@@ -755,16 +755,16 @@
"id": "ClaimDeviceRequest",
"properties": {
"customerId": {
"description": "The customer to claim for.",
"description": "Required. The ID of the customer for whom the device is being claimed.",
"format": "int64",
"type": "string"
},
"deviceIdentifier": {
"$ref": "DeviceIdentifier",
"description": "The device identifier of the device to claim."
"description": "Required. The device identifier of the device to claim."
},
"sectionType": {
"description": "The section to claim.",
"description": "Required. The section type of the device's provisioning record.",
"enum": [
"SECTION_TYPE_UNSPECIFIED",
"SECTION_TYPE_ZERO_TOUCH"
@@ -795,11 +795,11 @@
"type": "object"
},
"ClaimDevicesRequest": {
"description": "Request to claim devices asynchronously in batch.",
"description": "Request to claim devices asynchronously in batch. Claiming a device adds the\ndevice to zero-touch enrollment and shows the device in the customer's view\nof the portal.",
"id": "ClaimDevicesRequest",
"properties": {
"claims": {
"description": "List of claims.",
"description": "Required. A list of device claims.",
"items": {
"$ref": "PartnerClaim"
},
@@ -1115,16 +1115,16 @@
"type": "object"
},
"DevicesLongRunningOperationMetadata": {
"description": "Long running operation metadata.",
"description": "Tracks the status of a long-running operation to asynchronously update a\nbatch of reseller metadata attached to devices. To learn more, read\n[Long‑running batch operations](/zero-touch/guides/how-it-works#operations).",
"id": "DevicesLongRunningOperationMetadata",
"properties": {
"devicesCount": {
"description": "Number of devices parsed in your requests.",
"description": "The number of metadata updates in the operation. This might be different\nfrom the number of updates in the request if the API can't parse some of\nthe updates.",
"format": "int32",
"type": "integer"
},
"processingStatus": {
"description": "The overall processing status.",
"description": "The processing status of the operation.",
"enum": [
"BATCH_PROCESS_STATUS_UNSPECIFIED",
"BATCH_PROCESS_PENDING",
@@ -1140,7 +1140,7 @@
"type": "string"
},
"progress": {
"description": "Processing progress from 0 to 100.",
"description": "The processing progress of the operation. Measured as a number from 0 to\n100. A value of 10O doesnt always mean the operation completed—check for\nthe inclusion of a `done` field.",
"format": "int32",
"type": "integer"
}
@@ -1148,18 +1148,18 @@
"type": "object"
},
"DevicesLongRunningOperationResponse": {
"description": "Long running operation response.",
"description": "Tracks the status of a long-running operation to claim, unclaim, or attach\nmetadata to devices. To learn more, read\n[Long‑running batch operations](/zero-touch/guides/how-it-works#operations).",
"id": "DevicesLongRunningOperationResponse",
"properties": {
"perDeviceStatus": {
"description": "Processing status for each device.\nOne `PerDeviceStatus` per device. The order is the same as in your requests.",
"description": "The processing status for each device in the operation.\nOne `PerDeviceStatus` per device. The list order matches the items in the\noriginal request.",
"items": {
"$ref": "OperationPerDevice"
},
"type": "array"
},
"successCount": {
"description": "Number of succeesfully processed ones.",
"description": "A summary of how many items in the operation the server processed\nsuccessfully. Updated as the operation progresses.",
"format": "int32",
"type": "integer"
}
@@ -1167,7 +1167,7 @@
"type": "object"
},
"Dpc": {
"description": "An EMM's DPC ([device policy controller](/android/work/dpc/build-dpc)).\nZero-touch enrollment installs a DPC (listed in the `Configuration`) on a\ndevice to maintain the customer's mobile policies. All the DPCs listed by the\nAPI support zero-touch enrollment and are available in Google Play.",
"description": "An EMM's DPC ([device policy\ncontroller](http://developer.android.com/work/dpc/build-dpc.html)).\nZero-touch enrollment installs a DPC (listed in the `Configuration`) on a\ndevice to maintain the customer's mobile policies. All the DPCs listed by the\nAPI support zero-touch enrollment and are available in Google Play.",
"id": "Dpc",
"properties": {
"dpcName": {
@@ -1197,15 +1197,15 @@
"properties": {
"deviceIdentifier": {
"$ref": "DeviceIdentifier",
"description": "The device identifier to search."
"description": "Required. The device identifier to search for."
},
"limit": {
"description": "Number of devices to show.",
"description": "Required. The maximum number of devices to show in a page of results. Must\nbe between 1 and 100 inclusive.",
"format": "int64",
"type": "string"
},
"pageToken": {
"description": "Page token.",
"description": "A token specifying which result page to return.",
"type": "string"
}
},
@@ -1223,7 +1223,7 @@
"type": "array"
},
"nextPageToken": {
"description": "Page token of the next page.",
"description": "A token used to access the next page of results. Omitted if no further\nresults are available.",
"type": "string"
}
},
@@ -1234,7 +1234,7 @@
"id": "FindDevicesByOwnerRequest",
"properties": {
"customerId": {
"description": "List of customer IDs to search for.",
"description": "Required. The list of customer IDs to search for.",
"items": {
"format": "int64",
"type": "string"
@@ -1242,16 +1242,16 @@
"type": "array"
},
"limit": {
"description": "The number of devices to show in the result.",
"description": "Required. The maximum number of devices to show in a page of results. Must\nbe between 1 and 100 inclusive.",
"format": "int64",
"type": "string"
},
"pageToken": {
"description": "Page token.",
"description": "A token specifying which result page to return.",
"type": "string"
},
"sectionType": {
"description": "The section type.",
"description": "Required. The section type of the device's provisioning record.",
"enum": [
"SECTION_TYPE_UNSPECIFIED",
"SECTION_TYPE_ZERO_TOUCH"
@@ -1270,14 +1270,14 @@
"id": "FindDevicesByOwnerResponse",
"properties": {
"devices": {
"description": "Devices found.",
"description": "The customer's devices.",
"items": {
"$ref": "Device"
},
"type": "array"
},
"nextPageToken": {
"description": "Page token of the next page.",
"description": "A token used to access the next page of results.\nOmitted if no further results are available.",
"type": "string"
}
},
@@ -1288,7 +1288,7 @@
"id": "ListCustomersResponse",
"properties": {
"customers": {
"description": "List of customers related to this partner.",
"description": "List of customers related to this reseller partner.",
"items": {
"$ref": "Company"
},
@@ -1333,24 +1333,24 @@
"type": "object"
},
"OperationPerDevice": {
"description": "Operation the server received for every device.",
"description": "A task for each device in the operation. Corresponds to each device\nchange in the request.",
"id": "OperationPerDevice",
"properties": {
"claim": {
"$ref": "PartnerClaim",
"description": "Request to claim a device."
"description": "A copy of the original device-claim request received by the server."
},
"result": {
"$ref": "PerDeviceStatusInBatch",
"description": "Processing result for every device."
"description": "The processing result for each device."
},
"unclaim": {
"$ref": "PartnerUnclaim",
"description": "Request to unclaim a device."
"description": "A copy of the original device-unclaim request received by the server."
},
"updateMetadata": {
"$ref": "UpdateMetadataArguments",
"description": "Request to set metadata for a device."
"description": "A copy of the original metadata-update request received by the server."
}
},
"type": "object"
@@ -1360,20 +1360,20 @@
"id": "PartnerClaim",
"properties": {
"customerId": {
"description": "Customer ID to claim for.",
"description": "Required. The ID of the customer for whom the device is being claimed.",
"format": "int64",
"type": "string"
},
"deviceIdentifier": {
"$ref": "DeviceIdentifier",
"description": "Device identifier of the device."
"description": "Required. Device identifier of the device."
},
"deviceMetadata": {
"$ref": "DeviceMetadata",
"description": "Metadata to set at claim."
"description": "Required. The metadata to attach to the device at claim."
},
"sectionType": {
"description": "Section type to claim.",
"description": "Required. The section type of the device's provisioning record.",
"enum": [
"SECTION_TYPE_UNSPECIFIED",
"SECTION_TYPE_ZERO_TOUCH"
@@ -1401,7 +1401,7 @@
"description": "Device identifier of the device."
},
"sectionType": {
"description": "Section type to unclaim.",
"description": "Required. The section type of the device's provisioning record.",
"enum": [
"SECTION_TYPE_UNSPECIFIED",
"SECTION_TYPE_ZERO_TOUCH"
@@ -1416,24 +1416,24 @@
"type": "object"
},
"PerDeviceStatusInBatch": {
"description": "Stores the processing result for each device.",
"description": "Captures the processing status for each device in the operation.",
"id": "PerDeviceStatusInBatch",
"properties": {
"deviceId": {
"description": "Device ID of the device if process succeeds.",
"description": "If processing succeeds, the device ID of the device.",
"format": "int64",
"type": "string"
},
"errorIdentifier": {
"description": "Error identifier.",
"description": "If processing fails, the error type.",
"type": "string"
},
"errorMessage": {
"description": "Error message.",
"description": "If processing fails, a developer message explaining what went wrong.",
"type": "string"
},
"status": {
"description": "Process result.",
"description": "The result status of the device after processing.",
"enum": [
"SINGLE_DEVICE_STATUS_UNSPECIFIED",
"SINGLE_DEVICE_STATUS_UNKNOWN_ERROR",
@@ -1500,7 +1500,7 @@
"description": "The device identifier you used when you claimed this device."
},
"sectionType": {
"description": "The section type to unclaim for.",
"description": "Required. The section type of the device's provisioning record.",
"enum": [
"SECTION_TYPE_UNSPECIFIED",
"SECTION_TYPE_ZERO_TOUCH"
@@ -1519,7 +1519,7 @@
"id": "UnclaimDevicesRequest",
"properties": {
"unclaims": {
"description": "List of devices to unclaim.",
"description": "Required. The list of devices to unclaim.",
"items": {
"$ref": "PartnerUnclaim"
},
@@ -1533,7 +1533,7 @@
"id": "UpdateDeviceMetadataInBatchRequest",
"properties": {
"updates": {
"description": "List of metadata updates.",
"description": "Required. The list of metadata updates.",
"items": {
"$ref": "UpdateMetadataArguments"
},
@@ -1548,7 +1548,7 @@
"properties": {
"deviceMetadata": {
"$ref": "DeviceMetadata",
"description": "The metdata to set."
"description": "Required. The metdata to attach to the device."
}
},
"type": "object"
@@ -1568,7 +1568,7 @@
},
"deviceMetadata": {
"$ref": "DeviceMetadata",
"description": "The metadata to update."
"description": "Required. The metadata to update."
}
},
"type": "object"
@@ -165,13 +165,16 @@ type PartnersDevicesService struct {
// ClaimDeviceRequest: Request message to claim a device on behalf of a
// customer.
type ClaimDeviceRequest struct {
// CustomerId: The customer to claim for.
// CustomerId: Required. The ID of the customer for whom the device is
// being claimed.
CustomerId int64 `json:"customerId,omitempty,string"`
// DeviceIdentifier: The device identifier of the device to claim.
// DeviceIdentifier: Required. The device identifier of the device to
// claim.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// SectionType: The section to claim.
// SectionType: Required. The section type of the device's provisioning
// record.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
@@ -240,9 +243,12 @@ func (s *ClaimDeviceResponse) MarshalJSON() ([]byte, error) {
}
// ClaimDevicesRequest: Request to claim devices asynchronously in
// batch.
// batch. Claiming a device adds the
// device to zero-touch enrollment and shows the device in the
// customer's view
// of the portal.
type ClaimDevicesRequest struct {
// Claims: List of claims.
// Claims: Required. A list of device claims.
Claims []*PartnerClaim `json:"claims,omitempty"`
// ForceSendFields is a list of field names (e.g. "Claims") to
@@ -939,12 +945,21 @@ func (s *DeviceReference) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DevicesLongRunningOperationMetadata: Long running operation metadata.
// DevicesLongRunningOperationMetadata: Tracks the status of a
// long-running operation to asynchronously update a
// batch of reseller metadata attached to devices. To learn more,
// read
// [Long‑running batch
// operations](/zero-touch/guides/how-it-works#operations).
type DevicesLongRunningOperationMetadata struct {
// DevicesCount: Number of devices parsed in your requests.
// DevicesCount: The number of metadata updates in the operation. This
// might be different
// from the number of updates in the request if the API can't parse some
// of
// the updates.
DevicesCount int64 `json:"devicesCount,omitempty"`
// ProcessingStatus: The overall processing status.
// ProcessingStatus: The processing status of the operation.
//
// Possible values:
// "BATCH_PROCESS_STATUS_UNSPECIFIED" - Invalid code. Shouldn't be
@@ -957,7 +972,11 @@ type DevicesLongRunningOperationMetadata struct {
// check the `response` field for the result of every item.
ProcessingStatus string `json:"processingStatus,omitempty"`
// Progress: Processing progress from 0 to 100.
// Progress: The processing progress of the operation. Measured as a
// number from 0 to
// 100. A value of 10O doesnt always mean the operation
// completed—check for
// the inclusion of a `done` field.
Progress int64 `json:"progress,omitempty"`
// ForceSendFields is a list of field names (e.g. "DevicesCount") to
@@ -983,14 +1002,22 @@ func (s *DevicesLongRunningOperationMetadata) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DevicesLongRunningOperationResponse: Long running operation response.
// DevicesLongRunningOperationResponse: Tracks the status of a
// long-running operation to claim, unclaim, or attach
// metadata to devices. To learn more, read
// [Long‑running batch
// operations](/zero-touch/guides/how-it-works#operations).
type DevicesLongRunningOperationResponse struct {
// PerDeviceStatus: Processing status for each device.
// One `PerDeviceStatus` per device. The order is the same as in your
// requests.
// PerDeviceStatus: The processing status for each device in the
// operation.
// One `PerDeviceStatus` per device. The list order matches the items in
// the
// original request.
PerDeviceStatus []*OperationPerDevice `json:"perDeviceStatus,omitempty"`
// SuccessCount: Number of succeesfully processed ones.
// SuccessCount: A summary of how many items in the operation the server
// processed
// successfully. Updated as the operation progresses.
SuccessCount int64 `json:"successCount,omitempty"`
// ForceSendFields is a list of field names (e.g. "PerDeviceStatus") to
@@ -1017,8 +1044,10 @@ func (s *DevicesLongRunningOperationResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Dpc: An EMM's DPC ([device policy
// controller](/android/work/dpc/build-dpc)).
// Dpc: An EMM's DPC ([device
// policy
// controller](http://developer.android.com/work/dpc/build-dpc.htm
// l)).
// Zero-touch enrollment installs a DPC (listed in the `Configuration`)
// on a
// device to maintain the customer's mobile policies. All the DPCs
@@ -1088,13 +1117,15 @@ type Empty struct {
// FindDevicesByDeviceIdentifierRequest: Request to find devices.
type FindDevicesByDeviceIdentifierRequest struct {
// DeviceIdentifier: The device identifier to search.
// DeviceIdentifier: Required. The device identifier to search for.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// Limit: Number of devices to show.
// Limit: Required. The maximum number of devices to show in a page of
// results. Must
// be between 1 and 100 inclusive.
Limit int64 `json:"limit,omitempty,string"`
// PageToken: Page token.
// PageToken: A token specifying which result page to return.
PageToken string `json:"pageToken,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeviceIdentifier") to
@@ -1127,7 +1158,9 @@ type FindDevicesByDeviceIdentifierResponse struct {
// Devices: Found devices.
Devices []*Device `json:"devices,omitempty"`
// NextPageToken: Page token of the next page.
// NextPageToken: A token used to access the next page of results.
// Omitted if no further
// results are available.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -1159,16 +1192,19 @@ func (s *FindDevicesByDeviceIdentifierResponse) MarshalJSON() ([]byte, error) {
// FindDevicesByOwnerRequest: Request to find devices by customers.
type FindDevicesByOwnerRequest struct {
// CustomerId: List of customer IDs to search for.
// CustomerId: Required. The list of customer IDs to search for.
CustomerId googleapi.Int64s `json:"customerId,omitempty"`
// Limit: The number of devices to show in the result.
// Limit: Required. The maximum number of devices to show in a page of
// results. Must
// be between 1 and 100 inclusive.
Limit int64 `json:"limit,omitempty,string"`
// PageToken: Page token.
// PageToken: A token specifying which result page to return.
PageToken string `json:"pageToken,omitempty"`
// SectionType: The section type.
// SectionType: Required. The section type of the device's provisioning
// record.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
@@ -1200,10 +1236,12 @@ func (s *FindDevicesByOwnerRequest) MarshalJSON() ([]byte, error) {
// FindDevicesByOwnerResponse: Response containing found devices.
type FindDevicesByOwnerResponse struct {
// Devices: Devices found.
// Devices: The customer's devices.
Devices []*Device `json:"devices,omitempty"`
// NextPageToken: Page token of the next page.
// NextPageToken: A token used to access the next page of
// results.
// Omitted if no further results are available.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -1236,7 +1274,7 @@ func (s *FindDevicesByOwnerResponse) MarshalJSON() ([]byte, error) {
// ListCustomersResponse: Response message of all customers related to
// this partner.
type ListCustomersResponse struct {
// Customers: List of customers related to this partner.
// Customers: List of customers related to this reseller partner.
Customers []*Company `json:"customers,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -1327,18 +1365,23 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// OperationPerDevice: Operation the server received for every device.
// OperationPerDevice: A task for each device in the operation.
// Corresponds to each device
// change in the request.
type OperationPerDevice struct {
// Claim: Request to claim a device.
// Claim: A copy of the original device-claim request received by the
// server.
Claim *PartnerClaim `json:"claim,omitempty"`
// Result: Processing result for every device.
// Result: The processing result for each device.
Result *PerDeviceStatusInBatch `json:"result,omitempty"`
// Unclaim: Request to unclaim a device.
// Unclaim: A copy of the original device-unclaim request received by
// the server.
Unclaim *PartnerUnclaim `json:"unclaim,omitempty"`
// UpdateMetadata: Request to set metadata for a device.
// UpdateMetadata: A copy of the original metadata-update request
// received by the server.
UpdateMetadata *UpdateMetadataArguments `json:"updateMetadata,omitempty"`
// ForceSendFields is a list of field names (e.g. "Claim") to
@@ -1366,16 +1409,19 @@ func (s *OperationPerDevice) MarshalJSON() ([]byte, error) {
// PartnerClaim: Identifies one claim request.
type PartnerClaim struct {
// CustomerId: Customer ID to claim for.
// CustomerId: Required. The ID of the customer for whom the device is
// being claimed.
CustomerId int64 `json:"customerId,omitempty,string"`
// DeviceIdentifier: Device identifier of the device.
// DeviceIdentifier: Required. Device identifier of the device.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// DeviceMetadata: Metadata to set at claim.
// DeviceMetadata: Required. The metadata to attach to the device at
// claim.
DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"`
// SectionType: Section type to claim.
// SectionType: Required. The section type of the device's provisioning
// record.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
@@ -1413,7 +1459,8 @@ type PartnerUnclaim struct {
// DeviceIdentifier: Device identifier of the device.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// SectionType: Section type to unclaim.
// SectionType: Required. The section type of the device's provisioning
// record.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
@@ -1443,18 +1490,20 @@ func (s *PartnerUnclaim) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PerDeviceStatusInBatch: Stores the processing result for each device.
// PerDeviceStatusInBatch: Captures the processing status for each
// device in the operation.
type PerDeviceStatusInBatch struct {
// DeviceId: Device ID of the device if process succeeds.
// DeviceId: If processing succeeds, the device ID of the device.
DeviceId int64 `json:"deviceId,omitempty,string"`
// ErrorIdentifier: Error identifier.
// ErrorIdentifier: If processing fails, the error type.
ErrorIdentifier string `json:"errorIdentifier,omitempty"`
// ErrorMessage: Error message.
// ErrorMessage: If processing fails, a developer message explaining
// what went wrong.
ErrorMessage string `json:"errorMessage,omitempty"`
// Status: Process result.
// Status: The result status of the device after processing.
//
// Possible values:
// "SINGLE_DEVICE_STATUS_UNSPECIFIED" - Invalid code. Shouldn't be
@@ -1625,7 +1674,8 @@ type UnclaimDeviceRequest struct {
// this device.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// SectionType: The section type to unclaim for.
// SectionType: Required. The section type of the device's provisioning
// record.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
@@ -1658,7 +1708,7 @@ func (s *UnclaimDeviceRequest) MarshalJSON() ([]byte, error) {
// UnclaimDevicesRequest: Request to unclaim devices asynchronously in
// batch.
type UnclaimDevicesRequest struct {
// Unclaims: List of devices to unclaim.
// Unclaims: Required. The list of devices to unclaim.
Unclaims []*PartnerUnclaim `json:"unclaims,omitempty"`
// ForceSendFields is a list of field names (e.g. "Unclaims") to
@@ -1687,7 +1737,7 @@ func (s *UnclaimDevicesRequest) MarshalJSON() ([]byte, error) {
// UpdateDeviceMetadataInBatchRequest: Request to update device metadata
// in batch.
type UpdateDeviceMetadataInBatchRequest struct {
// Updates: List of metadata updates.
// Updates: Required. The list of metadata updates.
Updates []*UpdateMetadataArguments `json:"updates,omitempty"`
// ForceSendFields is a list of field names (e.g. "Updates") to
@@ -1715,7 +1765,7 @@ func (s *UpdateDeviceMetadataInBatchRequest) MarshalJSON() ([]byte, error) {
// UpdateDeviceMetadataRequest: Request to set metadata for a device.
type UpdateDeviceMetadataRequest struct {
// DeviceMetadata: The metdata to set.
// DeviceMetadata: Required. The metdata to attach to the device.
DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeviceMetadata") to
@@ -1750,7 +1800,7 @@ type UpdateMetadataArguments struct {
// DeviceIdentifier: Device identifier.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// DeviceMetadata: The metadata to update.
// DeviceMetadata: Required. The metadata to update.
DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeviceId") to
@@ -3892,7 +3942,7 @@ func (c *PartnersCustomersListCall) Do(opts ...googleapi.CallOption) (*ListCusto
// ],
// "parameters": {
// "partnerId": {
// "description": "The ID of the partner.",
// "description": "Required. The ID of the reseller partner.",
// "format": "int64",
// "location": "path",
// "pattern": "^[^/]+$",
@@ -3919,7 +3969,10 @@ type PartnersDevicesClaimCall struct {
header_ http.Header
}
// Claim: Claim the device identified by device identifier.
// Claim: Claims a device for a customer and adds it to zero-touch
// enrollment. If the
// device is already claimed by another customer, the call returns an
// error.
func (r *PartnersDevicesService) Claim(partnerId int64, claimdevicerequest *ClaimDeviceRequest) *PartnersDevicesClaimCall {
c := &PartnersDevicesClaimCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.partnerId = partnerId
@@ -4013,7 +4066,7 @@ func (c *PartnersDevicesClaimCall) Do(opts ...googleapi.CallOption) (*ClaimDevic
}
return ret, nil
// {
// "description": "Claim the device identified by device identifier.",
// "description": "Claims a device for a customer and adds it to zero-touch enrollment. If the\ndevice is already claimed by another customer, the call returns an error.",
// "flatPath": "v1/partners/{partnersId}/devices:claim",
// "httpMethod": "POST",
// "id": "androiddeviceprovisioning.partners.devices.claim",
@@ -4022,7 +4075,7 @@ func (c *PartnersDevicesClaimCall) Do(opts ...googleapi.CallOption) (*ClaimDevic
// ],
// "parameters": {
// "partnerId": {
// "description": "ID of the partner.",
// "description": "Required. The ID of the reseller partner.",
// "format": "int64",
// "location": "path",
// "pattern": "^[^/]+$",
@@ -4052,7 +4105,11 @@ type PartnersDevicesClaimAsyncCall struct {
header_ http.Header
}
// ClaimAsync: Claim devices asynchronously.
// ClaimAsync: Claims a batch of devices for a customer asynchronously.
// Adds the devices
// to zero-touch enrollment. To learn more, read [Long‑running
// batch
// operations](/zero-touch/guides/how-it-works#operations).
func (r *PartnersDevicesService) ClaimAsync(partnerId int64, claimdevicesrequest *ClaimDevicesRequest) *PartnersDevicesClaimAsyncCall {
c := &PartnersDevicesClaimAsyncCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.partnerId = partnerId
@@ -4146,7 +4203,7 @@ func (c *PartnersDevicesClaimAsyncCall) Do(opts ...googleapi.CallOption) (*Opera
}
return ret, nil
// {
// "description": "Claim devices asynchronously.",
// "description": "Claims a batch of devices for a customer asynchronously. Adds the devices\nto zero-touch enrollment. To learn more, read [Long‑running batch\noperations](/zero-touch/guides/how-it-works#operations).",
// "flatPath": "v1/partners/{partnersId}/devices:claimAsync",
// "httpMethod": "POST",
// "id": "androiddeviceprovisioning.partners.devices.claimAsync",
@@ -4155,7 +4212,7 @@ func (c *PartnersDevicesClaimAsyncCall) Do(opts ...googleapi.CallOption) (*Opera
// ],
// "parameters": {
// "partnerId": {
// "description": "Partner ID.",
// "description": "Required. The ID of the reseller partner.",
// "format": "int64",
// "location": "path",
// "pattern": "^[^/]+$",
@@ -4185,7 +4242,8 @@ type PartnersDevicesFindByIdentifierCall struct {
header_ http.Header
}
// FindByIdentifier: Find devices by device identifier.
// FindByIdentifier: Finds devices by hardware identifiers, such as
// IMEI.
func (r *PartnersDevicesService) FindByIdentifier(partnerId int64, finddevicesbydeviceidentifierrequest *FindDevicesByDeviceIdentifierRequest) *PartnersDevicesFindByIdentifierCall {
c := &PartnersDevicesFindByIdentifierCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.partnerId = partnerId
@@ -4280,7 +4338,7 @@ func (c *PartnersDevicesFindByIdentifierCall) Do(opts ...googleapi.CallOption) (
}
return ret, nil
// {
// "description": "Find devices by device identifier.",
// "description": "Finds devices by hardware identifiers, such as IMEI.",
// "flatPath": "v1/partners/{partnersId}/devices:findByIdentifier",
// "httpMethod": "POST",
// "id": "androiddeviceprovisioning.partners.devices.findByIdentifier",
@@ -4289,7 +4347,7 @@ func (c *PartnersDevicesFindByIdentifierCall) Do(opts ...googleapi.CallOption) (
// ],
// "parameters": {
// "partnerId": {
// "description": "ID of the partner.",
// "description": "Required. The ID of the reseller partner.",
// "format": "int64",
// "location": "path",
// "pattern": "^[^/]+$",
@@ -4340,7 +4398,13 @@ type PartnersDevicesFindByOwnerCall struct {
header_ http.Header
}
// FindByOwner: Find devices by ownership.
// FindByOwner: Finds devices claimed for customers. The results only
// contain devices
// registered to the reseller that's identified by the `partnerId`
// argument.
// The customer's devices purchased from other resellers don't appear in
// the
// results.
func (r *PartnersDevicesService) FindByOwner(partnerId int64, finddevicesbyownerrequest *FindDevicesByOwnerRequest) *PartnersDevicesFindByOwnerCall {
c := &PartnersDevicesFindByOwnerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.partnerId = partnerId
@@ -4434,7 +4498,7 @@ func (c *PartnersDevicesFindByOwnerCall) Do(opts ...googleapi.CallOption) (*Find
}
return ret, nil
// {
// "description": "Find devices by ownership.",
// "description": "Finds devices claimed for customers. The results only contain devices\nregistered to the reseller that's identified by the `partnerId` argument.\nThe customer's devices purchased from other resellers don't appear in the\nresults.",
// "flatPath": "v1/partners/{partnersId}/devices:findByOwner",
// "httpMethod": "POST",
// "id": "androiddeviceprovisioning.partners.devices.findByOwner",
@@ -4443,7 +4507,7 @@ func (c *PartnersDevicesFindByOwnerCall) Do(opts ...googleapi.CallOption) (*Find
// ],
// "parameters": {
// "partnerId": {
// "description": "ID of the partner.",
// "description": "Required. The ID of the reseller partner.",
// "format": "int64",
// "location": "path",
// "pattern": "^[^/]+$",
@@ -4494,7 +4558,7 @@ type PartnersDevicesGetCall struct {
header_ http.Header
}
// Get: Get a device.
// Get: Gets a device.
func (r *PartnersDevicesService) Get(name string) *PartnersDevicesGetCall {
c := &PartnersDevicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
@@ -4595,7 +4659,7 @@ func (c *PartnersDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, erro
}
return ret, nil
// {
// "description": "Get a device.",
// "description": "Gets a device.",
// "flatPath": "v1/partners/{partnersId}/devices/{devicesId}",
// "httpMethod": "GET",
// "id": "androiddeviceprovisioning.partners.devices.get",
@@ -4604,7 +4668,7 @@ func (c *PartnersDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, erro
// ],
// "parameters": {
// "name": {
// "description": "Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.",
// "description": "Required. The device API resource name in the format\n`partners/[PARTNER_ID]/devices/[DEVICE_ID]`.",
// "location": "path",
// "pattern": "^partners/[^/]+/devices/[^/]+$",
// "required": true,
@@ -4631,7 +4695,7 @@ type PartnersDevicesMetadataCall struct {
header_ http.Header
}
// Metadata: Update the metadata.
// Metadata: Updates reseller metadata associated with the device.
func (r *PartnersDevicesService) Metadata(metadataOwnerId int64, deviceId int64, updatedevicemetadatarequest *UpdateDeviceMetadataRequest) *PartnersDevicesMetadataCall {
c := &PartnersDevicesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.metadataOwnerId = metadataOwnerId
@@ -4727,7 +4791,7 @@ func (c *PartnersDevicesMetadataCall) Do(opts ...googleapi.CallOption) (*DeviceM
}
return ret, nil
// {
// "description": "Update the metadata.",
// "description": "Updates reseller metadata associated with the device.",
// "flatPath": "v1/partners/{partnersId}/devices/{devicesId}/metadata",
// "httpMethod": "POST",
// "id": "androiddeviceprovisioning.partners.devices.metadata",
@@ -4737,7 +4801,7 @@ func (c *PartnersDevicesMetadataCall) Do(opts ...googleapi.CallOption) (*DeviceM
// ],
// "parameters": {
// "deviceId": {
// "description": "ID of the partner.",
// "description": "Required. The ID of the reseller partner.",
// "format": "int64",
// "location": "path",
// "pattern": "^[^/]+$",
@@ -4745,7 +4809,7 @@ func (c *PartnersDevicesMetadataCall) Do(opts ...googleapi.CallOption) (*DeviceM
// "type": "string"
// },
// "metadataOwnerId": {
// "description": "The owner of the newly set metadata. Set this to the partner ID.",
// "description": "Required. The owner of the newly set metadata. Set this to the partner ID.",
// "format": "int64",
// "location": "path",
// "pattern": "^[^/]+$",
@@ -4775,8 +4839,9 @@ type PartnersDevicesUnclaimCall struct {
header_ http.Header
}
// Unclaim: Unclaim the device identified by the `device_id` or the
// `deviceIdentifier`.
// Unclaim: Unclaims a device from a customer and removes it from
// zero-touch
// enrollment.
func (r *PartnersDevicesService) Unclaim(partnerId int64, unclaimdevicerequest *UnclaimDeviceRequest) *PartnersDevicesUnclaimCall {
c := &PartnersDevicesUnclaimCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.partnerId = partnerId
@@ -4870,7 +4935,7 @@ func (c *PartnersDevicesUnclaimCall) Do(opts ...googleapi.CallOption) (*Empty, e
}
return ret, nil
// {
// "description": "Unclaim the device identified by the `device_id` or the `deviceIdentifier`.",
// "description": "Unclaims a device from a customer and removes it from zero-touch\nenrollment.",
// "flatPath": "v1/partners/{partnersId}/devices:unclaim",
// "httpMethod": "POST",
// "id": "androiddeviceprovisioning.partners.devices.unclaim",
@@ -4879,7 +4944,7 @@ func (c *PartnersDevicesUnclaimCall) Do(opts ...googleapi.CallOption) (*Empty, e
// ],
// "parameters": {
// "partnerId": {
// "description": "ID of the partner.",
// "description": "Required. The ID of the reseller partner.",
// "format": "int64",
// "location": "path",
// "pattern": "^[^/]+$",
@@ -4909,7 +4974,12 @@ type PartnersDevicesUnclaimAsyncCall struct {
header_ http.Header
}
// UnclaimAsync: Unclaim devices asynchronously.
// UnclaimAsync: Unclaims a batch of devices for a customer
// asynchronously. Removes the
// devices from zero-touch enrollment. To learn more, read
// [Long‑running
// batch
// operations](/zero-touch/guides/how-it-works#operations).
func (r *PartnersDevicesService) UnclaimAsync(partnerId int64, unclaimdevicesrequest *UnclaimDevicesRequest) *PartnersDevicesUnclaimAsyncCall {
c := &PartnersDevicesUnclaimAsyncCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.partnerId = partnerId
@@ -5003,7 +5073,7 @@ func (c *PartnersDevicesUnclaimAsyncCall) Do(opts ...googleapi.CallOption) (*Ope
}
return ret, nil
// {
// "description": "Unclaim devices asynchronously.",
// "description": "Unclaims a batch of devices for a customer asynchronously. Removes the\ndevices from zero-touch enrollment. To learn more, read [Long‑running batch\noperations](/zero-touch/guides/how-it-works#operations).",
// "flatPath": "v1/partners/{partnersId}/devices:unclaimAsync",
// "httpMethod": "POST",
// "id": "androiddeviceprovisioning.partners.devices.unclaimAsync",
@@ -5012,7 +5082,7 @@ func (c *PartnersDevicesUnclaimAsyncCall) Do(opts ...googleapi.CallOption) (*Ope
// ],
// "parameters": {
// "partnerId": {
// "description": "Partner ID.",
// "description": "Required. The reseller partner ID.",
// "format": "int64",
// "location": "path",
// "pattern": "^[^/]+$",
@@ -5042,7 +5112,13 @@ type PartnersDevicesUpdateMetadataAsyncCall struct {
header_ http.Header
}
// UpdateMetadataAsync: Set metadata in batch asynchronously.
// UpdateMetadataAsync: Updates the reseller metadata attached to a
// batch of devices. This method
// updates devices asynchronously and returns an `Operation` that can be
// used
// to track progress. Read [Long‑running
// batch
// operations](/zero-touch/guides/how-it-works#operations).
func (r *PartnersDevicesService) UpdateMetadataAsync(partnerId int64, updatedevicemetadatainbatchrequest *UpdateDeviceMetadataInBatchRequest) *PartnersDevicesUpdateMetadataAsyncCall {
c := &PartnersDevicesUpdateMetadataAsyncCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.partnerId = partnerId
@@ -5136,7 +5212,7 @@ func (c *PartnersDevicesUpdateMetadataAsyncCall) Do(opts ...googleapi.CallOption
}
return ret, nil
// {
// "description": "Set metadata in batch asynchronously.",
// "description": "Updates the reseller metadata attached to a batch of devices. This method\nupdates devices asynchronously and returns an `Operation` that can be used\nto track progress. Read [Long‑running batch\noperations](/zero-touch/guides/how-it-works#operations).",
// "flatPath": "v1/partners/{partnersId}/devices:updateMetadataAsync",
// "httpMethod": "POST",
// "id": "androiddeviceprovisioning.partners.devices.updateMetadataAsync",
@@ -5145,7 +5221,7 @@ func (c *PartnersDevicesUpdateMetadataAsyncCall) Do(opts ...googleapi.CallOption
// ],
// "parameters": {
// "partnerId": {
// "description": "Partner ID.",
// "description": "Required. The reseller partner ID.",
// "format": "int64",
// "location": "path",
// "pattern": "^[^/]+$",
@@ -15,7 +15,7 @@
"description": "Manages the deployment of apps to Android for Work users.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/android/work/play/emm-api",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/BekewWSAdUldI-NtmUAiG8YIr08\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/7F-eJBLaASTTYJaC0mgfyno2lxc\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/android-16.png",
"x32": "https://www.google.com/images/icons/product/android-32.png"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -467,7 +467,7 @@
]
},
"getAndroidDevicePolicyConfig": {
"description": "Returns the Android Device Policy config resource.",
"description": "Deprecated and unused.",
"httpMethod": "GET",
"id": "androidenterprise.enterprises.getAndroidDevicePolicyConfig",
"parameterOrder": [
@@ -674,7 +674,7 @@
]
},
"setAndroidDevicePolicyConfig": {
"description": "Sets the Android Device Policy config resource. EMM may use this method to enable or disable Android Device Policy support for the specified enterprise. To learn more about managing devices and apps with Android Device Policy, see the Android Management API.",
"description": "Deprecated and unused.",
"httpMethod": "PUT",
"id": "androidenterprise.enterprises.setAndroidDevicePolicyConfig",
"parameterOrder": [
@@ -2804,7 +2804,7 @@
}
}
},
"revision": "20180221",
"revision": "20180425",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Administrator": {
@@ -2858,7 +2858,7 @@
"type": "object"
},
"AndroidDevicePolicyConfig": {
"description": "The Android Device Policy configuration of an enterprise.",
"description": "Deprecated and unused.",
"id": "AndroidDevicePolicyConfig",
"properties": {
"kind": {
@@ -2867,7 +2867,7 @@
"type": "string"
},
"state": {
"description": "The state of Android Device Policy. \"enabled\" indicates that Android Device Policy is enabled for the enterprise and the EMM is allowed to manage devices with Android Device Policy, while \"disabled\" means that it cannot.",
"description": "Deprecated and unused.",
"type": "string"
}
},
@@ -3413,6 +3413,23 @@
},
"type": "object"
},
"MaintenanceWindow": {
"description": "Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window.",
"id": "MaintenanceWindow",
"properties": {
"durationMs": {
"description": "Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive).",
"format": "int64",
"type": "string"
},
"startTimeAfterMidnightMs": {
"description": "Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight.",
"format": "int64",
"type": "string"
}
},
"type": "object"
},
"ManagedConfiguration": {
"description": "A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user.",
"id": "ManagedConfiguration",
@@ -3754,6 +3771,10 @@
"description": "The auto-update policy for apps installed on the device. \"choiceToTheUser\" allows the device's user to configure the app update policy. \"always\" enables auto updates. \"never\" disables auto updates. \"wifiOnly\" enables auto updates only when the device is connected to wifi.",
"type": "string"
},
"maintenanceWindow": {
"$ref": "MaintenanceWindow",
"description": "The maintenance window defining when apps running in the foreground should be updated."
},
"productAvailabilityPolicy": {
"description": "The availability granted to the device for the specified products. \"all\" gives the device access to all products, regardless of approval status. \"allApproved\" entitles the device to access all products that are approved for the enterprise. \"allApproved\" and \"all\" do not enable automatic visibility of \"alpha\" or \"beta\" tracks. \"whitelist\" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.",
"type": "string"
+45 -15
View File
@@ -362,17 +362,13 @@ func (s *AdministratorWebTokenSpec) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AndroidDevicePolicyConfig: The Android Device Policy configuration of
// an enterprise.
// AndroidDevicePolicyConfig: Deprecated and unused.
type AndroidDevicePolicyConfig struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#androidDevicePolicyConfig".
Kind string `json:"kind,omitempty"`
// State: The state of Android Device Policy. "enabled" indicates that
// Android Device Policy is enabled for the enterprise and the EMM is
// allowed to manage devices with Android Device Policy, while
// "disabled" means that it cannot.
// State: Deprecated and unused.
State string `json:"state,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -1524,6 +1520,41 @@ func (s *LocalizedText) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MaintenanceWindow: Maintenance window for managed Google Play
// Accounts. This allows Play store to update the apps on the foreground
// in the designated window.
type MaintenanceWindow struct {
// DurationMs: Duration of the maintenance window, in milliseconds. The
// duration must be between 30 minutes and 24 hours (inclusive).
DurationMs int64 `json:"durationMs,omitempty,string"`
// StartTimeAfterMidnightMs: Start time of the maintenance window, in
// milliseconds after midnight on the device. Windows can span midnight.
StartTimeAfterMidnightMs int64 `json:"startTimeAfterMidnightMs,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "DurationMs") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DurationMs") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) {
type NoMethod MaintenanceWindow
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ManagedConfiguration: A managed configuration resource contains the
// set of managed properties defined by the app developer in the app's
// managed configurations schema, as well as any configuration variables
@@ -2105,6 +2136,10 @@ type Policy struct {
// connected to wifi.
AutoUpdatePolicy string `json:"autoUpdatePolicy,omitempty"`
// MaintenanceWindow: The maintenance window defining when apps running
// in the foreground should be updated.
MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
// ProductAvailabilityPolicy: The availability granted to the device for
// the specified products. "all" gives the device access to all
// products, regardless of approval status. "allApproved" entitles the
@@ -5192,8 +5227,7 @@ type EnterprisesGetAndroidDevicePolicyConfigCall struct {
header_ http.Header
}
// GetAndroidDevicePolicyConfig: Returns the Android Device Policy
// config resource.
// GetAndroidDevicePolicyConfig: Deprecated and unused.
func (r *EnterprisesService) GetAndroidDevicePolicyConfig(enterpriseId string) *EnterprisesGetAndroidDevicePolicyConfigCall {
c := &EnterprisesGetAndroidDevicePolicyConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.enterpriseId = enterpriseId
@@ -5294,7 +5328,7 @@ func (c *EnterprisesGetAndroidDevicePolicyConfigCall) Do(opts ...googleapi.CallO
}
return ret, nil
// {
// "description": "Returns the Android Device Policy config resource.",
// "description": "Deprecated and unused.",
// "httpMethod": "GET",
// "id": "androidenterprise.enterprises.getAndroidDevicePolicyConfig",
// "parameterOrder": [
@@ -6331,11 +6365,7 @@ type EnterprisesSetAndroidDevicePolicyConfigCall struct {
header_ http.Header
}
// SetAndroidDevicePolicyConfig: Sets the Android Device Policy config
// resource. EMM may use this method to enable or disable Android Device
// Policy support for the specified enterprise. To learn more about
// managing devices and apps with Android Device Policy, see the Android
// Management API.
// SetAndroidDevicePolicyConfig: Deprecated and unused.
func (r *EnterprisesService) SetAndroidDevicePolicyConfig(enterpriseId string, androiddevicepolicyconfig *AndroidDevicePolicyConfig) *EnterprisesSetAndroidDevicePolicyConfigCall {
c := &EnterprisesSetAndroidDevicePolicyConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.enterpriseId = enterpriseId
@@ -6429,7 +6459,7 @@ func (c *EnterprisesSetAndroidDevicePolicyConfigCall) Do(opts ...googleapi.CallO
}
return ret, nil
// {
// "description": "Sets the Android Device Policy config resource. EMM may use this method to enable or disable Android Device Policy support for the specified enterprise. To learn more about managing devices and apps with Android Device Policy, see the Android Management API.",
// "description": "Deprecated and unused.",
// "httpMethod": "PUT",
// "id": "androidenterprise.enterprises.setAndroidDevicePolicyConfig",
// "parameterOrder": [
@@ -766,7 +766,7 @@
}
}
},
"revision": "20180305",
"revision": "20180423",
"rootUrl": "https://androidmanagement.googleapis.com/",
"schemas": {
"AlwaysOnVpnPackage": {
@@ -849,7 +849,7 @@
"id": "ApplicationPolicy",
"properties": {
"defaultPermissionPolicy": {
"description": "The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps.",
"description": "The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps.",
"enum": [
"PERMISSION_POLICY_UNSPECIFIED",
"PROMPT",
@@ -925,7 +925,7 @@
"type": "string"
},
"permissionGrants": {
"description": "Explicit permission grants or denials for the app. These values override the default_permission_policy.",
"description": "Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps.",
"items": {
"$ref": "PermissionGrant"
},
@@ -948,6 +948,26 @@
"format": "google-duration",
"type": "string"
},
"errorCode": {
"description": "If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller.",
"enum": [
"COMMAND_ERROR_CODE_UNSPECIFIED",
"UNKNOWN",
"API_LEVEL",
"MANAGEMENT_MODE",
"INVALID_VALUE",
"UNSUPPORTED"
],
"enumDescriptions": [
"There was no error.",
"An unknown error occurred.",
"The API level of the device does not support this command.",
"The management mode (profile owner, device owner, etc.) does not support the command.",
"The command has an invalid parameter value.",
"The device doesn't support the command. Updating Android Device Policy to the latest version may resolve the issue."
],
"type": "string"
},
"newPassword": {
"description": "For commands of type RESET_PASSWORD, optionally specifies the new password.",
"type": "string"
@@ -1335,7 +1355,7 @@
"id": "Enterprise",
"properties": {
"appAutoApprovalEnabled": {
"description": "Whether permissions for apps installed via policy are automatically approved. If enabled, you must display an app's permissions to the enterprise admin before setting the app to be installed in a policy.",
"description": "Deprecated and unused.",
"type": "boolean"
},
"enabledNotificationTypes": {
@@ -1379,6 +1399,13 @@
"pubsubTopic": {
"description": "The topic that Cloud Pub/Sub notifications are published to, in the form projects/{project}/topics/{topic}. This field is only required if Pub/Sub notifications are enabled.",
"type": "string"
},
"termsAndConditions": {
"description": "Terms and conditions that must be accepted when provisioning a device for this enterprise. A page of terms is generated for each value in this list.",
"items": {
"$ref": "TermsAndConditions"
},
"type": "array"
}
},
"type": "object"
@@ -2111,7 +2138,7 @@
"type": "array"
},
"appAutoUpdatePolicy": {
"description": "The auto update policy value. Specifies whether the user is given a choice to configure the app update policy, or otherwise contains the enforced update policy",
"description": "The app auto update policy, which controls when automatic app updates can be applied.",
"enum": [
"APP_AUTO_UPDATE_POLICY_UNSPECIFIED",
"CHOICE_TO_THE_USER",
@@ -2120,7 +2147,7 @@
"ALWAYS"
],
"enumDescriptions": [
"The auto-update policy is not set. Same as giving auto-update policy choice to the user.",
"The auto-update policy is not set. Equivalent to CHOICE_TO_THE_USER.",
"The user can control auto-updates.",
"Apps are never auto-updated.",
"Apps are auto-updated over Wi-Fi only.",
@@ -2202,6 +2229,24 @@
],
"type": "string"
},
"deviceOwnerLockScreenInfo": {
"$ref": "UserFacingMessage",
"description": "The device owner information to be shown on the lock screen."
},
"encryptionPolicy": {
"description": "Whether encryption is enabled",
"enum": [
"ENCRYPTION_POLICY_UNSPECIFIED",
"ENABLED_WITHOUT_PASSWORD",
"ENABLED_WITH_PASSWORD"
],
"enumDescriptions": [
"This value is ignored, i.e. no encryption required",
"Encryption required but no password required to boot",
"Encryption required with password required to boot"
],
"type": "string"
},
"ensureVerifyAppsEnabled": {
"description": "Whether app verification is force-enabled.",
"type": "boolean"
@@ -2264,6 +2309,24 @@
"description": "Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. The apps appear on a single page in alphabetical order. It is recommended to also use status_bar_disabled to block access to device settings.",
"type": "boolean"
},
"locationMode": {
"description": "The degree of location detection enabled. The user may change the value unless the user is otherwise blocked from accessing device settings.",
"enum": [
"LOCATION_MODE_UNSPECIFIED",
"HIGH_ACCURACY",
"SENSORS_ONLY",
"BATTERY_SAVING",
"OFF"
],
"enumDescriptions": [
"The current device value is not modified.",
"All location detection methods are enabled, including GPS, networks, and other sensors.",
"Only GPS and other sensors are enabled.",
"Only the network location provider is enabled.",
"Location detection is disabled."
],
"type": "string"
},
"longSupportMessage": {
"$ref": "UserFacingMessage",
"description": "A message displayed to the user in the device administators settings screen."
@@ -2352,10 +2415,18 @@
"description": "Whether changing the wallpaper is disabled.",
"type": "boolean"
},
"shareLocationDisabled": {
"description": "Whether location sharing is disabled.",
"type": "boolean"
},
"shortSupportMessage": {
"$ref": "UserFacingMessage",
"description": "A message displayed to the user in the settings screen wherever functionality has been disabled by the admin."
},
"skipFirstUseHintsEnabled": {
"description": "Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up.",
"type": "boolean"
},
"smsDisabled": {
"description": "Whether sending and receiving SMS messages is disabled.",
"type": "boolean"
@@ -2407,6 +2478,10 @@
"description": "Whether transferring files over USB is disabled.",
"type": "boolean"
},
"usbMassStorageEnabled": {
"description": "Allows admins to toggle whether USB storge is enabled or disabled on user's devices.",
"type": "boolean"
},
"version": {
"description": "The version of the policy. This is a read-only field. The version is incremented each time the policy is updated.",
"format": "int64",
@@ -2650,6 +2725,21 @@
},
"type": "object"
},
"TermsAndConditions": {
"description": "A terms and conditions page to be accepted during provisioning.",
"id": "TermsAndConditions",
"properties": {
"content": {
"$ref": "UserFacingMessage",
"description": "A well-formatted HTML string. It will be parsed on the client with android.text.Html#fromHtml."
},
"header": {
"$ref": "UserFacingMessage",
"description": "A short header which appears above the HTML content."
}
},
"type": "object"
},
"UserFacingMessage": {
"description": "Provides a user-facing message with locale info. The maximum message length is 4096 characters.",
"id": "UserFacingMessage",
+103 -10
View File
@@ -317,7 +317,8 @@ func (s *ApplicationPermission) MarshalJSON() ([]byte, error) {
type ApplicationPolicy struct {
// DefaultPermissionPolicy: The default policy for all permissions
// requested by the app. If specified, this overrides the policy-level
// default_permission_policy which applies to all apps.
// default_permission_policy which applies to all apps. It does not
// override the permission_grants which applies to all apps.
//
// Possible values:
// "PERMISSION_POLICY_UNSPECIFIED" - Policy not specified. If no
@@ -389,7 +390,8 @@ type ApplicationPolicy struct {
PackageName string `json:"packageName,omitempty"`
// PermissionGrants: Explicit permission grants or denials for the app.
// These values override the default_permission_policy.
// These values override the default_permission_policy and
// permission_grants which apply to all apps.
PermissionGrants []*PermissionGrant `json:"permissionGrants,omitempty"`
// ForceSendFields is a list of field names (e.g.
@@ -429,6 +431,21 @@ type Command struct {
// duration.
Duration string `json:"duration,omitempty"`
// ErrorCode: If the command failed, an error code explaining the
// failure. This is not set when the command is cancelled by the caller.
//
// Possible values:
// "COMMAND_ERROR_CODE_UNSPECIFIED" - There was no error.
// "UNKNOWN" - An unknown error occurred.
// "API_LEVEL" - The API level of the device does not support this
// command.
// "MANAGEMENT_MODE" - The management mode (profile owner, device
// owner, etc.) does not support the command.
// "INVALID_VALUE" - The command has an invalid parameter value.
// "UNSUPPORTED" - The device doesn't support the command. Updating
// Android Device Policy to the latest version may resolve the issue.
ErrorCode string `json:"errorCode,omitempty"`
// NewPassword: For commands of type RESET_PASSWORD, optionally
// specifies the new password.
NewPassword string `json:"newPassword,omitempty"`
@@ -910,10 +927,7 @@ func (s *EnrollmentToken) MarshalJSON() ([]byte, error) {
// Enterprise: The configuration applied to an enterprise.
type Enterprise struct {
// AppAutoApprovalEnabled: Whether permissions for apps installed via
// policy are automatically approved. If enabled, you must display an
// app's permissions to the enterprise admin before setting the app to
// be installed in a policy.
// AppAutoApprovalEnabled: Deprecated and unused.
AppAutoApprovalEnabled bool `json:"appAutoApprovalEnabled,omitempty"`
// EnabledNotificationTypes: The types of Google Pub/Sub notifications
@@ -953,6 +967,11 @@ type Enterprise struct {
// required if Pub/Sub notifications are enabled.
PubsubTopic string `json:"pubsubTopic,omitempty"`
// TermsAndConditions: Terms and conditions that must be accepted when
// provisioning a device for this enterprise. A page of terms is
// generated for each value in this list.
TermsAndConditions []*TermsAndConditions `json:"termsAndConditions,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
@@ -1959,13 +1978,12 @@ type Policy struct {
// "BETA" - The beta track, which provides the latest beta release.
AndroidDevicePolicyTracks []string `json:"androidDevicePolicyTracks,omitempty"`
// AppAutoUpdatePolicy: The auto update policy value. Specifies whether
// the user is given a choice to configure the app update policy, or
// otherwise contains the enforced update policy
// AppAutoUpdatePolicy: The app auto update policy, which controls when
// automatic app updates can be applied.
//
// Possible values:
// "APP_AUTO_UPDATE_POLICY_UNSPECIFIED" - The auto-update policy is
// not set. Same as giving auto-update policy choice to the user.
// not set. Equivalent to CHOICE_TO_THE_USER.
// "CHOICE_TO_THE_USER" - The user can control auto-updates.
// "NEVER" - Apps are never auto-updated.
// "WIFI_ONLY" - Apps are auto-updated over Wi-Fi only.
@@ -2038,6 +2056,21 @@ type Policy struct {
// "DENY" - Automatically deny a permission.
DefaultPermissionPolicy string `json:"defaultPermissionPolicy,omitempty"`
// DeviceOwnerLockScreenInfo: The device owner information to be shown
// on the lock screen.
DeviceOwnerLockScreenInfo *UserFacingMessage `json:"deviceOwnerLockScreenInfo,omitempty"`
// EncryptionPolicy: Whether encryption is enabled
//
// Possible values:
// "ENCRYPTION_POLICY_UNSPECIFIED" - This value is ignored, i.e. no
// encryption required
// "ENABLED_WITHOUT_PASSWORD" - Encryption required but no password
// required to boot
// "ENABLED_WITH_PASSWORD" - Encryption required with password
// required to boot
EncryptionPolicy string `json:"encryptionPolicy,omitempty"`
// EnsureVerifyAppsEnabled: Whether app verification is force-enabled.
EnsureVerifyAppsEnabled bool `json:"ensureVerifyAppsEnabled,omitempty"`
@@ -2096,6 +2129,20 @@ type Policy struct {
// settings.
KioskCustomLauncherEnabled bool `json:"kioskCustomLauncherEnabled,omitempty"`
// LocationMode: The degree of location detection enabled. The user may
// change the value unless the user is otherwise blocked from accessing
// device settings.
//
// Possible values:
// "LOCATION_MODE_UNSPECIFIED" - The current device value is not
// modified.
// "HIGH_ACCURACY" - All location detection methods are enabled,
// including GPS, networks, and other sensors.
// "SENSORS_ONLY" - Only GPS and other sensors are enabled.
// "BATTERY_SAVING" - Only the network location provider is enabled.
// "OFF" - Location detection is disabled.
LocationMode string `json:"locationMode,omitempty"`
// LongSupportMessage: A message displayed to the user in the device
// administators settings screen.
LongSupportMessage *UserFacingMessage `json:"longSupportMessage,omitempty"`
@@ -2180,10 +2227,19 @@ type Policy struct {
// SetWallpaperDisabled: Whether changing the wallpaper is disabled.
SetWallpaperDisabled bool `json:"setWallpaperDisabled,omitempty"`
// ShareLocationDisabled: Whether location sharing is disabled.
ShareLocationDisabled bool `json:"shareLocationDisabled,omitempty"`
// ShortSupportMessage: A message displayed to the user in the settings
// screen wherever functionality has been disabled by the admin.
ShortSupportMessage *UserFacingMessage `json:"shortSupportMessage,omitempty"`
// SkipFirstUseHintsEnabled: Flag to skip hints on the first use.
// Enterprise admin can enable the system recommendation for apps to
// skip their user tutorial and other introductory hints on first
// start-up.
SkipFirstUseHintsEnabled bool `json:"skipFirstUseHintsEnabled,omitempty"`
// SmsDisabled: Whether sending and receiving SMS messages is disabled.
SmsDisabled bool `json:"smsDisabled,omitempty"`
@@ -2228,6 +2284,10 @@ type Policy struct {
// disabled.
UsbFileTransferDisabled bool `json:"usbFileTransferDisabled,omitempty"`
// UsbMassStorageEnabled: Allows admins to toggle whether USB storge is
// enabled or disabled on user's devices.
UsbMassStorageEnabled bool `json:"usbMassStorageEnabled,omitempty"`
// Version: The version of the policy. This is a read-only field. The
// version is incremented each time the policy is updated.
Version int64 `json:"version,omitempty,string"`
@@ -2652,6 +2712,39 @@ func (s *SystemUpdate) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TermsAndConditions: A terms and conditions page to be accepted during
// provisioning.
type TermsAndConditions struct {
// Content: A well-formatted HTML string. It will be parsed on the
// client with android.text.Html#fromHtml.
Content *UserFacingMessage `json:"content,omitempty"`
// Header: A short header which appears above the HTML content.
Header *UserFacingMessage `json:"header,omitempty"`
// ForceSendFields is a list of field names (e.g. "Content") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Content") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TermsAndConditions) MarshalJSON() ([]byte, error) {
type NoMethod TermsAndConditions
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserFacingMessage: Provides a user-facing message with locale info.
// The maximum message length is 4096 characters.
type UserFacingMessage struct {
@@ -15,7 +15,7 @@
"description": "Lets Android application developers access their Google Play accounts.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/android-publisher",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/Xvb720kj6kaUU3p6XJECzzWJnek\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/0bfZdFWLay6o3-v5bg8HgVXuqtg\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/android-16.png",
"x32": "https://www.google.com/images/icons/product/android-32.png"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -189,7 +189,7 @@
}
}
},
"revision": "20180211",
"revision": "20180501",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"InappPurchase": {
@@ -15,7 +15,7 @@
"description": "Lets Android application developers access their Google Play accounts.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/android-publisher",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/R8egrhZl5j6Tk7CLvSpuFNhpTLc\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/-QMaQIlD0PaJsUVQz4bP5TProYA\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/android-16.png",
"x32": "https://www.google.com/images/icons/product/android-32.png"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -148,7 +148,7 @@
}
}
},
"revision": "20180121",
"revision": "20180501",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"SubscriptionPurchase": {
+54 -102
View File
@@ -15,7 +15,7 @@
"description": "Lets Android application developers access their Google Play accounts.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/android-publisher",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/JHo8f1I6kYzk10q6NwBbUC9DMxw\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/e3MuT7-T4mkaaCQS_qVwD7HvOQ8\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/android-16.png",
"x32": "https://www.google.com/images/icons/product/android-32.png"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -1519,9 +1519,9 @@
"type": "string"
},
"track": {
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
"location": "path",
"pattern": "(alpha|beta|production|rollout)",
"pattern": "(alpha|beta|production|rollout|internal)",
"required": true,
"type": "string"
}
@@ -1556,9 +1556,9 @@
"type": "string"
},
"track": {
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
"location": "path",
"pattern": "(alpha|beta|production|rollout)",
"pattern": "(alpha|beta|production|rollout|internal)",
"required": true,
"type": "string"
}
@@ -1596,9 +1596,9 @@
"type": "string"
},
"track": {
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
"location": "path",
"pattern": "(alpha|beta|production|rollout)",
"pattern": "(alpha|beta|production|rollout|internal)",
"required": true,
"type": "string"
}
@@ -1641,9 +1641,8 @@
"type": "string"
},
"track": {
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"description": "The track to read or modify.",
"location": "path",
"pattern": "(alpha|beta|production|rollout)",
"required": true,
"type": "string"
}
@@ -1709,9 +1708,8 @@
"type": "string"
},
"track": {
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"description": "The track to read or modify.",
"location": "path",
"pattern": "(alpha|beta|production|rollout)",
"required": true,
"type": "string"
}
@@ -1750,9 +1748,8 @@
"type": "string"
},
"track": {
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"description": "The track to read or modify.",
"location": "path",
"pattern": "(alpha|beta|production|rollout)",
"required": true,
"type": "string"
}
@@ -1772,49 +1769,6 @@
}
}
},
"entitlements": {
"methods": {
"list": {
"description": "Lists the user's current inapp item or subscription entitlements",
"httpMethod": "GET",
"id": "androidpublisher.entitlements.list",
"parameterOrder": [
"packageName"
],
"parameters": {
"maxResults": {
"format": "uint32",
"location": "query",
"type": "integer"
},
"packageName": {
"description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
"location": "path",
"required": true,
"type": "string"
},
"productId": {
"description": "The product id of the inapp product (for example, 'sku1'). This can be used to restrict the result set.",
"location": "query",
"type": "string"
},
"startIndex": {
"format": "uint32",
"location": "query",
"type": "integer"
},
"token": {
"location": "query",
"type": "string"
}
},
"path": "{packageName}/entitlements",
"response": {
"$ref": "EntitlementsListResponse"
}
}
}
},
"inappproducts": {
"methods": {
"delete": {
@@ -2411,7 +2365,7 @@
}
}
},
"revision": "20180211",
"revision": "20180501",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Apk": {
@@ -2652,48 +2606,6 @@
},
"type": "object"
},
"Entitlement": {
"description": "An Entitlement resource indicates a user's current entitlement to an inapp item or subscription.",
"id": "Entitlement",
"properties": {
"kind": {
"default": "androidpublisher#entitlement",
"description": "This kind represents an entitlement object in the androidpublisher service.",
"type": "string"
},
"productId": {
"description": "The SKU of the product.",
"type": "string"
},
"productType": {
"description": "The type of the inapp product. Possible values are: \n- In-app item: \"inapp\" \n- Subscription: \"subs\"",
"type": "string"
},
"token": {
"description": "The token which can be verified using the subscriptions or products API.",
"type": "string"
}
},
"type": "object"
},
"EntitlementsListResponse": {
"id": "EntitlementsListResponse",
"properties": {
"pageInfo": {
"$ref": "PageInfo"
},
"resources": {
"items": {
"$ref": "Entitlement"
},
"type": "array"
},
"tokenPagination": {
"$ref": "TokenPagination"
}
},
"type": "object"
},
"ExpansionFile": {
"id": "ExpansionFile",
"properties": {
@@ -3199,6 +3111,22 @@
},
"type": "object"
},
"SubscriptionCancelSurveyResult": {
"description": "Information provided by the user when they complete the subscription cancellation flow (cancellation reason survey).",
"id": "SubscriptionCancelSurveyResult",
"properties": {
"cancelSurveyReason": {
"description": "The cancellation reason the user chose in the survey. Possible values are: \n- Other \n- I don't use this service enough \n- Technical issues \n- Cost-related reasons \n- I found a better app",
"format": "int32",
"type": "integer"
},
"userInputCancelReason": {
"description": "The customized input cancel reason from the user. Only present when cancelReason is 0.",
"type": "string"
}
},
"type": "object"
},
"SubscriptionDeferralInfo": {
"description": "A SubscriptionDeferralInfo contains the data needed to defer a subscription purchase to a future expiry time.",
"id": "SubscriptionDeferralInfo",
@@ -3229,6 +3157,10 @@
"format": "int32",
"type": "integer"
},
"cancelSurveyResult": {
"$ref": "SubscriptionCancelSurveyResult",
"description": "Information provided by the user when they complete the subscription cancellation flow (cancellation reason survey)."
},
"countryCode": {
"description": "ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted.",
"type": "string"
@@ -3237,11 +3169,23 @@
"description": "A developer-specified string that contains supplemental information about an order.",
"type": "string"
},
"emailAddress": {
"description": "The email address of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.",
"type": "string"
},
"expiryTimeMillis": {
"description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
"format": "int64",
"type": "string"
},
"familyName": {
"description": "The family name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.",
"type": "string"
},
"givenName": {
"description": "The given name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.",
"type": "string"
},
"kind": {
"default": "androidpublisher#subscriptionPurchase",
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
@@ -3269,6 +3213,14 @@
"description": "ISO 4217 currency code for the subscription price. For example, if the price is specified in British pounds sterling, price_currency_code is \"GBP\".",
"type": "string"
},
"profileId": {
"description": "The profile id of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.",
"type": "string"
},
"profileName": {
"description": "The profile name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.",
"type": "string"
},
"purchaseType": {
"description": "The type of purchase of the subscription. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: \n- Test (i.e. purchased from a license testing account)",
"format": "int32",
@@ -3356,7 +3308,7 @@
"id": "Track",
"properties": {
"track": {
"description": "Identifier for this track. One of \"alpha\", \"beta\", \"production\" or \"rollout\".",
"description": "Identifier for this track. One of \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
"type": "string"
},
"userFraction": {
+81 -281
View File
@@ -57,7 +57,6 @@ func New(client *http.Client) (*Service, error) {
}
s := &Service{client: client, BasePath: basePath}
s.Edits = NewEditsService(s)
s.Entitlements = NewEntitlementsService(s)
s.Inappproducts = NewInappproductsService(s)
s.Purchases = NewPurchasesService(s)
s.Reviews = NewReviewsService(s)
@@ -71,8 +70,6 @@ type Service struct {
Edits *EditsService
Entitlements *EntitlementsService
Inappproducts *InappproductsService
Purchases *PurchasesService
@@ -204,15 +201,6 @@ type EditsTracksService struct {
s *Service
}
func NewEntitlementsService(s *Service) *EntitlementsService {
rs := &EntitlementsService{s: s}
return rs
}
type EntitlementsService struct {
s *Service
}
func NewInappproductsService(s *Service) *InappproductsService {
rs := &InappproductsService{s: s}
return rs
@@ -766,82 +754,6 @@ func (s *DeviceMetadata) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Entitlement: An Entitlement resource indicates a user's current
// entitlement to an inapp item or subscription.
type Entitlement struct {
// Kind: This kind represents an entitlement object in the
// androidpublisher service.
Kind string `json:"kind,omitempty"`
// ProductId: The SKU of the product.
ProductId string `json:"productId,omitempty"`
// ProductType: The type of the inapp product. Possible values are:
// - In-app item: "inapp"
// - Subscription: "subs"
ProductType string `json:"productType,omitempty"`
// Token: The token which can be verified using the subscriptions or
// products API.
Token string `json:"token,omitempty"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Entitlement) MarshalJSON() ([]byte, error) {
type NoMethod Entitlement
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type EntitlementsListResponse struct {
PageInfo *PageInfo `json:"pageInfo,omitempty"`
Resources []*Entitlement `json:"resources,omitempty"`
TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "PageInfo") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "PageInfo") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *EntitlementsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod EntitlementsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ExpansionFile struct {
// FileSize: If set this field indicates that this APK has an Expansion
// File uploaded to it: this APK does not reference another APK's
@@ -1752,6 +1664,47 @@ func (s *Season) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SubscriptionCancelSurveyResult: Information provided by the user when
// they complete the subscription cancellation flow (cancellation reason
// survey).
type SubscriptionCancelSurveyResult struct {
// CancelSurveyReason: The cancellation reason the user chose in the
// survey. Possible values are:
// - Other
// - I don't use this service enough
// - Technical issues
// - Cost-related reasons
// - I found a better app
CancelSurveyReason int64 `json:"cancelSurveyReason,omitempty"`
// UserInputCancelReason: The customized input cancel reason from the
// user. Only present when cancelReason is 0.
UserInputCancelReason string `json:"userInputCancelReason,omitempty"`
// ForceSendFields is a list of field names (e.g. "CancelSurveyReason")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CancelSurveyReason") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SubscriptionCancelSurveyResult) MarshalJSON() ([]byte, error) {
type NoMethod SubscriptionCancelSurveyResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SubscriptionDeferralInfo: A SubscriptionDeferralInfo contains the
// data needed to defer a subscription purchase to a future expiry time.
type SubscriptionDeferralInfo struct {
@@ -1807,6 +1760,11 @@ type SubscriptionPurchase struct {
// - Subscription was canceled by the developer
CancelReason *int64 `json:"cancelReason,omitempty"`
// CancelSurveyResult: Information provided by the user when they
// complete the subscription cancellation flow (cancellation reason
// survey).
CancelSurveyResult *SubscriptionCancelSurveyResult `json:"cancelSurveyResult,omitempty"`
// CountryCode: ISO 3166-1 alpha-2 billing country/region code of the
// user at the time the subscription was granted.
CountryCode string `json:"countryCode,omitempty"`
@@ -1815,10 +1773,25 @@ type SubscriptionPurchase struct {
// supplemental information about an order.
DeveloperPayload string `json:"developerPayload,omitempty"`
// EmailAddress: The email address of the user when the subscription was
// purchased. Only present for purchases made with 'Subscribe with
// Google'.
EmailAddress string `json:"emailAddress,omitempty"`
// ExpiryTimeMillis: Time at which the subscription will expire, in
// milliseconds since the Epoch.
ExpiryTimeMillis int64 `json:"expiryTimeMillis,omitempty,string"`
// FamilyName: The family name of the user when the subscription was
// purchased. Only present for purchases made with 'Subscribe with
// Google'.
FamilyName string `json:"familyName,omitempty"`
// GivenName: The given name of the user when the subscription was
// purchased. Only present for purchases made with 'Subscribe with
// Google'.
GivenName string `json:"givenName,omitempty"`
// Kind: This kind represents a subscriptionPurchase object in the
// androidpublisher service.
Kind string `json:"kind,omitempty"`
@@ -1859,6 +1832,16 @@ type SubscriptionPurchase struct {
// price_currency_code is "GBP".
PriceCurrencyCode string `json:"priceCurrencyCode,omitempty"`
// ProfileId: The profile id of the user when the subscription was
// purchased. Only present for purchases made with 'Subscribe with
// Google'.
ProfileId string `json:"profileId,omitempty"`
// ProfileName: The profile name of the user when the subscription was
// purchased. Only present for purchases made with 'Subscribe with
// Google'.
ProfileName string `json:"profileName,omitempty"`
// PurchaseType: The type of purchase of the subscription. This field is
// only set if this purchase was not made using the standard in-app
// billing flow. Possible values are:
@@ -2052,7 +2035,7 @@ func (s *TokenPagination) MarshalJSON() ([]byte, error) {
type Track struct {
// Track: Identifier for this track. One of "alpha", "beta",
// "production" or "rollout".
// "production", "rollout" or "internal".
Track string `json:"track,omitempty"`
UserFraction float64 `json:"userFraction,omitempty"`
@@ -7556,9 +7539,9 @@ func (c *EditsTestersGetCall) Do(opts ...googleapi.CallOption) (*Testers, error)
// "type": "string"
// },
// "track": {
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "pattern": "(alpha|beta|production|rollout|internal)",
// "required": true,
// "type": "string"
// }
@@ -7706,9 +7689,9 @@ func (c *EditsTestersPatchCall) Do(opts ...googleapi.CallOption) (*Testers, erro
// "type": "string"
// },
// "track": {
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "pattern": "(alpha|beta|production|rollout|internal)",
// "required": true,
// "type": "string"
// }
@@ -7859,9 +7842,9 @@ func (c *EditsTestersUpdateCall) Do(opts ...googleapi.CallOption) (*Testers, err
// "type": "string"
// },
// "track": {
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "pattern": "(alpha|beta|production|rollout|internal)",
// "required": true,
// "type": "string"
// }
@@ -8021,9 +8004,8 @@ func (c *EditsTracksGetCall) Do(opts ...googleapi.CallOption) (*Track, error) {
// "type": "string"
// },
// "track": {
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "description": "The track to read or modify.",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "required": true,
// "type": "string"
// }
@@ -8322,9 +8304,8 @@ func (c *EditsTracksPatchCall) Do(opts ...googleapi.CallOption) (*Track, error)
// "type": "string"
// },
// "track": {
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "description": "The track to read or modify.",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "required": true,
// "type": "string"
// }
@@ -8478,9 +8459,8 @@ func (c *EditsTracksUpdateCall) Do(opts ...googleapi.CallOption) (*Track, error)
// "type": "string"
// },
// "track": {
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "description": "The track to read or modify.",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "required": true,
// "type": "string"
// }
@@ -8499,186 +8479,6 @@ func (c *EditsTracksUpdateCall) Do(opts ...googleapi.CallOption) (*Track, error)
}
// method id "androidpublisher.entitlements.list":
type EntitlementsListCall struct {
s *Service
packageName string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Lists the user's current inapp item or subscription
// entitlements
func (r *EntitlementsService) List(packageName string) *EntitlementsListCall {
c := &EntitlementsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.packageName = packageName
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *EntitlementsListCall) MaxResults(maxResults int64) *EntitlementsListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// ProductId sets the optional parameter "productId": The product id of
// the inapp product (for example, 'sku1'). This can be used to restrict
// the result set.
func (c *EntitlementsListCall) ProductId(productId string) *EntitlementsListCall {
c.urlParams_.Set("productId", productId)
return c
}
// StartIndex sets the optional parameter "startIndex":
func (c *EntitlementsListCall) StartIndex(startIndex int64) *EntitlementsListCall {
c.urlParams_.Set("startIndex", fmt.Sprint(startIndex))
return c
}
// Token sets the optional parameter "token":
func (c *EntitlementsListCall) Token(token string) *EntitlementsListCall {
c.urlParams_.Set("token", token)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *EntitlementsListCall) Fields(s ...googleapi.Field) *EntitlementsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *EntitlementsListCall) IfNoneMatch(entityTag string) *EntitlementsListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *EntitlementsListCall) Context(ctx context.Context) *EntitlementsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *EntitlementsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *EntitlementsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "{packageName}/entitlements")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"packageName": c.packageName,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidpublisher.entitlements.list" call.
// Exactly one of *EntitlementsListResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *EntitlementsListResponse.ServerResponse.Header or (if a response was
// returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *EntitlementsListCall) Do(opts ...googleapi.CallOption) (*EntitlementsListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &EntitlementsListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Lists the user's current inapp item or subscription entitlements",
// "httpMethod": "GET",
// "id": "androidpublisher.entitlements.list",
// "parameterOrder": [
// "packageName"
// ],
// "parameters": {
// "maxResults": {
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "packageName": {
// "description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "productId": {
// "description": "The product id of the inapp product (for example, 'sku1'). This can be used to restrict the result set.",
// "location": "query",
// "type": "string"
// },
// "startIndex": {
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "token": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "{packageName}/entitlements",
// "response": {
// "$ref": "EntitlementsListResponse"
// }
// }
}
// method id "androidpublisher.inappproducts.delete":
type InappproductsDeleteCall struct {
+214 -240
View File
@@ -7,7 +7,7 @@
"id": "abusiveexperiencereport:v1",
"name": "abusiveexperiencereport",
"version": "v1",
"title": "Google Abusive Experience Report API",
"title": "Abusive Experience Report API",
"description": "View Abusive Experience Report data, and get a list of sites that have a significant number of abusive experiences.",
"discoveryRestUrl": "https://abusiveexperiencereport.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -148,7 +148,7 @@
"id": "adexperiencereport:v1",
"name": "adexperiencereport",
"version": "v1",
"title": "Google Ad Experience Report API",
"title": "Ad Experience Report API",
"description": "View Ad Experience Report data, and get a list of sites that have a significant number of annoying ads.",
"discoveryRestUrl": "https://adexperiencereport.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -180,7 +180,7 @@
"name": "admin",
"version": "directory_v1",
"title": "Admin Directory API",
"description": "The Admin SDK Directory API lets you view and manage enterprise resources such as users and groups, administrative notifications, security features, and more.",
"description": "Manages enterprise resources such as users and groups, administrative notifications, security features, and more.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/admin/directory_v1/rest",
"discoveryLink": "./apis/admin/directory_v1/rest",
"icons": {
@@ -696,28 +696,13 @@
"documentationLink": "https://cloud.google.com/error-reporting/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "cloudfunctions:v2alpha1",
"name": "cloudfunctions",
"version": "v2alpha1",
"title": "Google Cloud Functions API",
"description": "API for managing lightweight user-provided functions executed in response to events.",
"discoveryRestUrl": "https://cloudfunctions.googleapis.com/$discovery/rest?version=v2alpha1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/functions",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "cloudfunctions:v1",
"name": "cloudfunctions",
"version": "v1",
"title": "Google Cloud Functions API",
"description": "API for managing lightweight user-provided functions executed in response to events.",
"title": "Cloud Functions API",
"description": "Manages lightweight user-provided functions executed in response to events.",
"discoveryRestUrl": "https://cloudfunctions.googleapis.com/$discovery/rest?version=v1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
@@ -731,8 +716,8 @@
"id": "cloudfunctions:v1beta2",
"name": "cloudfunctions",
"version": "v1beta2",
"title": "Google Cloud Functions API",
"description": "API for managing lightweight user-provided functions executed in response to events.",
"title": "Cloud Functions API",
"description": "Manages lightweight user-provided functions executed in response to events.",
"discoveryRestUrl": "https://cloudfunctions.googleapis.com/$discovery/rest?version=v1beta2",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
@@ -741,6 +726,21 @@
"documentationLink": "https://cloud.google.com/functions",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "cloudiot:v1alpha1",
"name": "cloudiot",
"version": "v1alpha1",
"title": "Cloud IoT API",
"description": "Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform.",
"discoveryRestUrl": "https://cloudiot.googleapis.com/$discovery/rest?version=v1alpha1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/iot",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "cloudiot:v1",
@@ -776,7 +776,7 @@
"id": "cloudkms:v1",
"name": "cloudkms",
"version": "v1",
"title": "Google Cloud Key Management Service (KMS) API",
"title": "Cloud Key Management Service (KMS) API",
"description": "Manages encryption for your cloud services the same way you do on-premises. You can generate, use, rotate, and destroy AES256 encryption keys.",
"discoveryRestUrl": "https://cloudkms.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -852,7 +852,7 @@
"name": "cloudshell",
"version": "v1alpha1",
"title": "Cloud Shell API",
"description": "",
"description": "Allows users to start, configure, and connect to interactive shell sessions running in the cloud.",
"discoveryRestUrl": "https://cloudshell.googleapis.com/$discovery/rest?version=v1alpha1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
@@ -867,7 +867,7 @@
"name": "cloudshell",
"version": "v1",
"title": "Cloud Shell API",
"description": "",
"description": "Allows users to start, configure, and connect to interactive shell sessions running in the cloud.",
"discoveryRestUrl": "https://cloudshell.googleapis.com/$discovery/rest?version=v1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
@@ -923,68 +923,19 @@
},
{
"kind": "discovery#directoryItem",
"id": "clouduseraccounts:alpha",
"name": "clouduseraccounts",
"version": "alpha",
"title": "Cloud User Accounts API",
"description": "Creates and manages users and groups for accessing Google Compute Engine virtual machines.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/clouduseraccounts/alpha/rest",
"discoveryLink": "./apis/clouduseraccounts/alpha/rest",
"id": "composer:v1beta1",
"name": "composer",
"version": "v1beta1",
"title": "Cloud Composer API",
"description": "Manages Apache Airflow environments on Google Cloud Platform.",
"discoveryRestUrl": "https://composer.googleapis.com/$discovery/rest?version=v1beta1",
"icons": {
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/compute/docs/access/user-accounts/api/latest/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "clouduseraccounts:beta",
"name": "clouduseraccounts",
"version": "beta",
"title": "Cloud User Accounts API",
"description": "Creates and manages users and groups for accessing Google Compute Engine virtual machines.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/clouduseraccounts/beta/rest",
"discoveryLink": "./apis/clouduseraccounts/beta/rest",
"icons": {
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
},
"documentationLink": "https://cloud.google.com/compute/docs/access/user-accounts/api/latest/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "clouduseraccounts:vm_alpha",
"name": "clouduseraccounts",
"version": "vm_alpha",
"title": "Cloud User Accounts API",
"description": "Creates and manages users and groups for accessing Google Compute Engine virtual machines.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/clouduseraccounts/vm_alpha/rest",
"discoveryLink": "./apis/clouduseraccounts/vm_alpha/rest",
"icons": {
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
},
"documentationLink": "https://cloud.google.com/compute/docs/access/user-accounts/api/latest/",
"documentationLink": "https://cloud.google.com/composer/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "clouduseraccounts:vm_beta",
"name": "clouduseraccounts",
"version": "vm_beta",
"title": "Cloud User Accounts API",
"description": "Creates and manages users and groups for accessing Google Compute Engine virtual machines.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/clouduseraccounts/vm_beta/rest",
"discoveryLink": "./apis/clouduseraccounts/vm_beta/rest",
"icons": {
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
},
"documentationLink": "https://cloud.google.com/compute/docs/access/user-accounts/api/latest/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "compute:alpha",
@@ -1038,7 +989,7 @@
"id": "container:v1",
"name": "container",
"version": "v1",
"title": "Google Kubernetes Engine API",
"title": "Kubernetes Engine API",
"description": "The Google Kubernetes Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
"discoveryRestUrl": "https://container.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -1053,7 +1004,7 @@
"id": "container:v1beta1",
"name": "container",
"version": "v1beta1",
"title": "Google Kubernetes Engine API",
"title": "Kubernetes Engine API",
"description": "The Google Kubernetes Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
"discoveryRestUrl": "https://container.googleapis.com/$discovery/rest?version=v1beta1",
"icons": {
@@ -1131,7 +1082,7 @@
"id": "dataproc:v1",
"name": "dataproc",
"version": "v1",
"title": "Google Cloud Dataproc API",
"title": "Cloud Dataproc API",
"description": "Manages Hadoop-based clusters and jobs on Google Cloud Platform.",
"discoveryRestUrl": "https://dataproc.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -1146,7 +1097,7 @@
"id": "dataproc:v1beta2",
"name": "dataproc",
"version": "v1beta2",
"title": "Google Cloud Dataproc API",
"title": "Cloud Dataproc API",
"description": "Manages Hadoop-based clusters and jobs on Google Cloud Platform.",
"discoveryRestUrl": "https://dataproc.googleapis.com/$discovery/rest?version=v1beta2",
"icons": {
@@ -1281,6 +1232,21 @@
"documentationLink": "https://developers.google.com/doubleclick-advertisers/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "dialogflow:v2",
"name": "dialogflow",
"version": "v2",
"title": "Dialogflow API",
"description": "An end-to-end development suite for conversational interfaces (e.g., chatbots, voice-powered apps and devices).",
"discoveryRestUrl": "https://dialogflow.googleapis.com/$discovery/rest?version=v2",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/dialogflow-enterprise/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "dialogflow:v2beta1",
@@ -1294,7 +1260,7 @@
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/dialogflow-enterprise/",
"preferred": true
"preferred": false
},
{
"kind": "discovery#directoryItem",
@@ -1329,27 +1295,12 @@
},
{
"kind": "discovery#directoryItem",
"id": "dlp:v2beta1",
"id": "dlp:v2",
"name": "dlp",
"version": "v2beta1",
"title": "DLP API",
"description": "The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.",
"discoveryRestUrl": "https://dlp.googleapis.com/$discovery/rest?version=v2beta1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/dlp/docs/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "dlp:v2beta2",
"name": "dlp",
"version": "v2beta2",
"title": "DLP API",
"description": "The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.",
"discoveryRestUrl": "https://dlp.googleapis.com/$discovery/rest?version=v2beta2",
"version": "v2",
"title": "Cloud Data Loss Prevention (DLP) API",
"description": "Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.",
"discoveryRestUrl": "https://dlp.googleapis.com/$discovery/rest?version=v2",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -1711,7 +1662,7 @@
"id": "iam:v1",
"name": "iam",
"version": "v1",
"title": "Google Identity and Access Management (IAM) API",
"title": "Identity and Access Management (IAM) API",
"description": "Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls.",
"discoveryRestUrl": "https://iam.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -1882,7 +1833,7 @@
"id": "ml:v1",
"name": "ml",
"version": "v1",
"title": "Google Cloud Machine Learning Engine",
"title": "Cloud Machine Learning Engine",
"description": "An API to enable creating and using machine learning models.",
"discoveryRestUrl": "https://ml.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -1944,7 +1895,7 @@
"id": "oslogin:v1alpha",
"name": "oslogin",
"version": "v1alpha",
"title": "Google Cloud OS Login API",
"title": "Cloud OS Login API",
"description": "Manages OS login configuration for Google account users.",
"discoveryRestUrl": "https://oslogin.googleapis.com/$discovery/rest?version=v1alpha",
"icons": {
@@ -1959,7 +1910,7 @@
"id": "oslogin:v1beta",
"name": "oslogin",
"version": "v1beta",
"title": "Google Cloud OS Login API",
"title": "Cloud OS Login API",
"description": "Manages OS login configuration for Google account users.",
"discoveryRestUrl": "https://oslogin.googleapis.com/$discovery/rest?version=v1beta",
"icons": {
@@ -1974,7 +1925,7 @@
"id": "oslogin:v1",
"name": "oslogin",
"version": "v1",
"title": "Google Cloud OS Login API",
"title": "Cloud OS Login API",
"description": "Manages OS login configuration for Google account users.",
"discoveryRestUrl": "https://oslogin.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -2125,86 +2076,6 @@
"documentationLink": "https://developers.google.com/poly/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "prediction:v1.2",
"name": "prediction",
"version": "v1.2",
"title": "Prediction API",
"description": "Lets you access a cloud hosted machine learning service that makes it easy to build smart apps",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/prediction/v1.2/rest",
"discoveryLink": "./apis/prediction/v1.2/rest",
"icons": {
"x16": "https://www.google.com/images/icons/feature/predictionapi-16.png",
"x32": "https://www.google.com/images/icons/feature/predictionapi-32.png"
},
"documentationLink": "https://developers.google.com/prediction/docs/developer-guide",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "prediction:v1.3",
"name": "prediction",
"version": "v1.3",
"title": "Prediction API",
"description": "Lets you access a cloud hosted machine learning service that makes it easy to build smart apps",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/prediction/v1.3/rest",
"discoveryLink": "./apis/prediction/v1.3/rest",
"icons": {
"x16": "https://www.google.com/images/icons/feature/predictionapi-16.png",
"x32": "https://www.google.com/images/icons/feature/predictionapi-32.png"
},
"documentationLink": "https://developers.google.com/prediction/docs/developer-guide",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "prediction:v1.4",
"name": "prediction",
"version": "v1.4",
"title": "Prediction API",
"description": "Lets you access a cloud hosted machine learning service that makes it easy to build smart apps",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/prediction/v1.4/rest",
"discoveryLink": "./apis/prediction/v1.4/rest",
"icons": {
"x16": "https://www.google.com/images/icons/feature/predictionapi-16.png",
"x32": "https://www.google.com/images/icons/feature/predictionapi-32.png"
},
"documentationLink": "https://developers.google.com/prediction/docs/developer-guide",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "prediction:v1.5",
"name": "prediction",
"version": "v1.5",
"title": "Prediction API",
"description": "Lets you access a cloud hosted machine learning service that makes it easy to build smart apps",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/prediction/v1.5/rest",
"discoveryLink": "./apis/prediction/v1.5/rest",
"icons": {
"x16": "https://www.google.com/images/icons/feature/predictionapi-16.png",
"x32": "https://www.google.com/images/icons/feature/predictionapi-32.png"
},
"documentationLink": "https://developers.google.com/prediction/docs/developer-guide",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "prediction:v1.6",
"name": "prediction",
"version": "v1.6",
"title": "Prediction API",
"description": "Lets you access a cloud hosted machine learning service that makes it easy to build smart apps",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/prediction/v1.6/rest",
"discoveryLink": "./apis/prediction/v1.6/rest",
"icons": {
"x16": "https://www.google.com/images/icons/feature/predictionapi-16.png",
"x32": "https://www.google.com/images/icons/feature/predictionapi-32.png"
},
"documentationLink": "https://developers.google.com/prediction/docs/developer-guide",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "proximitybeacon:v1beta1",
@@ -2225,7 +2096,7 @@
"id": "pubsub:v1beta1a",
"name": "pubsub",
"version": "v1beta1a",
"title": "Google Cloud Pub/Sub API",
"title": "Cloud Pub/Sub API",
"description": "Provides reliable, many-to-many, asynchronous messaging between applications.",
"discoveryRestUrl": "https://pubsub.googleapis.com/$discovery/rest?version=v1beta1a",
"icons": {
@@ -2240,7 +2111,7 @@
"id": "pubsub:v1",
"name": "pubsub",
"version": "v1",
"title": "Google Cloud Pub/Sub API",
"title": "Cloud Pub/Sub API",
"description": "Provides reliable, many-to-many, asynchronous messaging between applications.",
"discoveryRestUrl": "https://pubsub.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -2255,7 +2126,7 @@
"id": "pubsub:v1beta2",
"name": "pubsub",
"version": "v1beta2",
"title": "Google Cloud Pub/Sub API",
"title": "Cloud Pub/Sub API",
"description": "Provides reliable, many-to-many, asynchronous messaging between applications.",
"discoveryRestUrl": "https://pubsub.googleapis.com/$discovery/rest?version=v1beta2",
"icons": {
@@ -2265,6 +2136,21 @@
"documentationLink": "https://cloud.google.com/pubsub/docs",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "redis:v1beta1",
"name": "redis",
"version": "v1beta1",
"title": "Cloud Memorystore for Redis API",
"description": "The Google Cloud Memorystore for Redis API is used for creating and managing Redis instances on the Google Cloud Platform.",
"discoveryRestUrl": "https://redis.googleapis.com/$discovery/rest?version=v1beta1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/memorystore/docs/redis/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "replicapool:v1beta1",
@@ -2414,7 +2300,7 @@
"id": "safebrowsing:v4",
"name": "safebrowsing",
"version": "v4",
"title": "Google Safe Browsing API",
"title": "Safe Browsing API",
"description": "Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources.",
"discoveryRestUrl": "https://safebrowsing.googleapis.com/$discovery/rest?version=v4",
"icons": {
@@ -2429,8 +2315,8 @@
"id": "script:v1",
"name": "script",
"version": "v1",
"title": "Google Apps Script API",
"description": "An API for managing and executing Google Apps Script projects.",
"title": "Apps Script API",
"description": "An API for managing and executing Google Apps Script projects. Note: In order to use this API in your apps, you must enable it for use. To allow other apps to manage your scripts, you must grant them access.",
"discoveryRestUrl": "https://script.googleapis.com/$discovery/rest?version=v1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
@@ -2454,6 +2340,51 @@
"documentationLink": "https://developers.google.com/webmaster-tools/search-console-api/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "servicebroker:v1alpha1",
"name": "servicebroker",
"version": "v1alpha1",
"title": "Service Broker API",
"description": "The Google Cloud Platform Service Broker API provides Google hosted implementation of the Open Service Broker API (https://www.openservicebrokerapi.org/).",
"discoveryRestUrl": "https://servicebroker.googleapis.com/$discovery/rest?version=v1alpha1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "servicebroker:v1",
"name": "servicebroker",
"version": "v1",
"title": "Service Broker API",
"description": "The Google Cloud Platform Service Broker API provides Google hosted implementation of the Open Service Broker API (https://www.openservicebrokerapi.org/).",
"discoveryRestUrl": "https://servicebroker.googleapis.com/$discovery/rest?version=v1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "servicebroker:v1beta1",
"name": "servicebroker",
"version": "v1beta1",
"title": "Service Broker API",
"description": "The Google Cloud Platform Service Broker API provides Google hosted implementation of the Open Service Broker API (https://www.openservicebrokerapi.org/).",
"discoveryRestUrl": "https://servicebroker.googleapis.com/$discovery/rest?version=v1beta1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "serviceconsumermanagement:v1",
@@ -2474,7 +2405,7 @@
"id": "servicecontrol:v1",
"name": "servicecontrol",
"version": "v1",
"title": "Google Service Control API",
"title": "Service Control API",
"description": "Google Service Control provides control plane functionality to managed services, such as logging, monitoring, and status checks.",
"discoveryRestUrl": "https://servicecontrol.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -2489,7 +2420,7 @@
"id": "servicemanagement:v1",
"name": "servicemanagement",
"version": "v1",
"title": "Google Service Management API",
"title": "Service Management API",
"description": "Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers.",
"discoveryRestUrl": "https://servicemanagement.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -2817,38 +2748,6 @@
"documentationLink": "https://developers.google.com/tag-manager/api/v2/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "taskqueue:v1beta1",
"name": "taskqueue",
"version": "v1beta1",
"title": "TaskQueue API",
"description": "Accesses a Google App Engine Pull Task Queue over REST.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/taskqueue/v1beta1/rest",
"discoveryLink": "./apis/taskqueue/v1beta1/rest",
"icons": {
"x16": "https://www.google.com/images/icons/product/app_engine-16.png",
"x32": "https://www.google.com/images/icons/product/app_engine-32.png"
},
"documentationLink": "https://developers.google.com/appengine/docs/python/taskqueue/rest",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "taskqueue:v1beta2",
"name": "taskqueue",
"version": "v1beta2",
"title": "TaskQueue API",
"description": "Accesses a Google App Engine Pull Task Queue over REST.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/taskqueue/v1beta2/rest",
"discoveryLink": "./apis/taskqueue/v1beta2/rest",
"icons": {
"x16": "https://www.google.com/images/icons/product/app_engine-16.png",
"x32": "https://www.google.com/images/icons/product/app_engine-32.png"
},
"documentationLink": "https://developers.google.com/appengine/docs/python/taskqueue/rest",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "tasks:v1",
@@ -2870,7 +2769,7 @@
"id": "testing:v1",
"name": "testing",
"version": "v1",
"title": "Google Cloud Testing API",
"title": "Cloud Testing API",
"description": "Allows developers to run automated tests for their mobile applications on Google infrastructure.",
"discoveryRestUrl": "https://testing.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -2880,6 +2779,21 @@
"documentationLink": "https://developers.google.com/cloud-test-lab/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "texttospeech:v1beta1",
"name": "texttospeech",
"version": "v1beta1",
"title": "Cloud Text-to-Speech API",
"description": "Synthesizes natural-sounding speech by applying powerful neural network models.",
"discoveryRestUrl": "https://texttospeech.googleapis.com/$discovery/rest?version=v1beta1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "http://cloud.google.com/text-to-speech/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "toolresults:v1beta3",
@@ -2947,7 +2861,7 @@
"id": "vault:v1",
"name": "vault",
"version": "v1",
"title": "Google Vault API",
"title": "G Suite Vault API",
"description": "Archiving and eDiscovery for G Suite.",
"discoveryRestUrl": "https://vault.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -2957,6 +2871,21 @@
"documentationLink": "https://developers.google.com/vault",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "videointelligence:v1",
"name": "videointelligence",
"version": "v1",
"title": "Cloud Video Intelligence API",
"description": "Cloud Video Intelligence API.",
"discoveryRestUrl": "https://videointelligence.googleapis.com/$discovery/rest?version=v1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/video-intelligence/docs/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "videointelligence:v1beta1",
@@ -2970,14 +2899,29 @@
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/video-intelligence/docs/",
"preferred": true
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "videointelligence:v1beta2",
"name": "videointelligence",
"version": "v1beta2",
"title": "Cloud Video Intelligence API",
"description": "Cloud Video Intelligence API.",
"discoveryRestUrl": "https://videointelligence.googleapis.com/$discovery/rest?version=v1beta2",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/video-intelligence/docs/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "vision:v1p1beta1",
"name": "vision",
"version": "v1p1beta1",
"title": "Google Cloud Vision API",
"title": "Cloud Vision API",
"description": "Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.",
"discoveryRestUrl": "https://vision.googleapis.com/$discovery/rest?version=v1p1beta1",
"icons": {
@@ -2992,7 +2936,7 @@
"id": "vision:v1p2beta1",
"name": "vision",
"version": "v1p2beta1",
"title": "Google Cloud Vision API",
"title": "Cloud Vision API",
"description": "Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.",
"discoveryRestUrl": "https://vision.googleapis.com/$discovery/rest?version=v1p2beta1",
"icons": {
@@ -3007,7 +2951,7 @@
"id": "vision:v1",
"name": "vision",
"version": "v1",
"title": "Google Cloud Vision API",
"title": "Cloud Vision API",
"description": "Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.",
"discoveryRestUrl": "https://vision.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -3049,6 +2993,21 @@
"documentationLink": "https://developers.google.com/webmaster-tools/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "websecurityscanner:v1alpha",
"name": "websecurityscanner",
"version": "v1alpha",
"title": "Web Security Scanner API",
"description": "Web Security Scanner API (under development).",
"discoveryRestUrl": "https://websecurityscanner.googleapis.com/$discovery/rest?version=v1alpha",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/security-scanner/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "youtube:v3",
@@ -3079,7 +3038,7 @@
"x32": "https://www.google.com/images/icons/product/youtube-32.png"
},
"documentationLink": "http://developers.google.com/youtube/analytics/",
"preferred": true
"preferred": false
},
{
"kind": "discovery#directoryItem",
@@ -3100,6 +3059,21 @@
],
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "youtubeAnalytics:v2",
"name": "youtubeAnalytics",
"version": "v2",
"title": "YouTube Analytics API",
"description": "Retrieves your YouTube Analytics data.",
"discoveryRestUrl": "https://youtubeanalytics.googleapis.com/$discovery/rest?version=v2",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "http://developers.google.com/youtube/analytics",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "youtubereporting:v1",
+37 -3
View File
@@ -851,7 +851,7 @@
"locations": {
"methods": {
"get": {
"description": "Get information about a location.",
"description": "Gets information about a location.",
"flatPath": "v1/apps/{appsId}/locations/{locationsId}",
"httpMethod": "GET",
"id": "appengine.apps.locations.get",
@@ -1583,7 +1583,7 @@
}
}
},
"revision": "20180307",
"revision": "20180320",
"rootUrl": "https://appengine.googleapis.com/",
"schemas": {
"ApiConfigHandler": {
@@ -1923,6 +1923,22 @@
},
"type": "object"
},
"CloudBuildOptions": {
"description": "Options for the build operations performed as a part of the version deployment. Only applicable for App Engine flexible environment when creating a version using source code directly.",
"id": "CloudBuildOptions",
"properties": {
"appYamlPath": {
"description": "Path to the yaml file used in deployment, used to determine runtime configuration details.Required for flexible environment builds.See https://cloud.google.com/appengine/docs/standard/python/config/appref for more details.",
"type": "string"
},
"cloudBuildTimeout": {
"description": "The Cloud Build timeout used as part of any dependent builds performed by version creation. Defaults to 10 minutes.",
"format": "google-duration",
"type": "string"
}
},
"type": "object"
},
"ContainerInfo": {
"description": "Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment.",
"id": "ContainerInfo",
@@ -1951,6 +1967,17 @@
},
"type": "object"
},
"CreateVersionMetadataV1": {
"description": "Metadata for the given google.longrunning.Operation during a google.appengine.v1.CreateVersionRequest.",
"id": "CreateVersionMetadataV1",
"properties": {
"cloudBuildId": {
"description": "The Cloud Build ID if one was created as part of the version create. @OutputOnly",
"type": "string"
}
},
"type": "object"
},
"CreateVersionMetadataV1Alpha": {
"description": "Metadata for the given google.longrunning.Operation during a google.appengine.v1alpha.CreateVersionRequest.",
"id": "CreateVersionMetadataV1Alpha",
@@ -1988,6 +2015,10 @@
"description": "Code and application artifacts used to deploy a version to App Engine.",
"id": "Deployment",
"properties": {
"cloudBuildOptions": {
"$ref": "CloudBuildOptions",
"description": "Options for any Google Cloud Container Builder builds created as a part of this deployment.Note that this is orthogonal to the build parameter, where the deployment depends on an already existing cloud build. These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip."
},
"container": {
"$ref": "ContainerInfo",
"description": "The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment."
@@ -2066,7 +2097,7 @@
"type": "object"
},
"EndpointsApiService": {
"description": "Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a \"service\" resource in the Service Management API (https://cloud.google.com/service-management/overview).",
"description": "Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.The fields here refer to the name and configuration id of a \"service\" resource in the Service Management API (https://cloud.google.com/service-management/overview).",
"id": "EndpointsApiService",
"properties": {
"configId": {
@@ -2730,6 +2761,9 @@
"description": "Metadata for the given google.longrunning.Operation.",
"id": "OperationMetadataV1",
"properties": {
"createVersionMetadata": {
"$ref": "CreateVersionMetadataV1"
},
"endTime": {
"description": "Time that this operation completed.@OutputOnly",
"format": "google-datetime",
+109 -24
View File
@@ -744,6 +744,46 @@ func (s *CertificateRawData) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CloudBuildOptions: Options for the build operations performed as a
// part of the version deployment. Only applicable for App Engine
// flexible environment when creating a version using source code
// directly.
type CloudBuildOptions struct {
// AppYamlPath: Path to the yaml file used in deployment, used to
// determine runtime configuration details.Required for flexible
// environment builds.See
// https://cloud.google.com/appengine/docs/standard/python/config/appref
// for more details.
AppYamlPath string `json:"appYamlPath,omitempty"`
// CloudBuildTimeout: The Cloud Build timeout used as part of any
// dependent builds performed by version creation. Defaults to 10
// minutes.
CloudBuildTimeout string `json:"cloudBuildTimeout,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppYamlPath") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AppYamlPath") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CloudBuildOptions) MarshalJSON() ([]byte, error) {
type NoMethod CloudBuildOptions
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ContainerInfo: Docker image that is used to create a container and
// start a VM instance for the version that you deploy. Only applicable
// for instances running in the App Engine flexible environment.
@@ -826,6 +866,37 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
return nil
}
// CreateVersionMetadataV1: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1.CreateVersionRequest.
type CreateVersionMetadataV1 struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1alpha.CreateVersionRequest.
@@ -926,6 +997,14 @@ func (s *DebugInstanceRequest) MarshalJSON() ([]byte, error) {
// Deployment: Code and application artifacts used to deploy a version
// to App Engine.
type Deployment struct {
// CloudBuildOptions: Options for any Google Cloud Container Builder
// builds created as a part of this deployment.Note that this is
// orthogonal to the build parameter, where the deployment depends on an
// already existing cloud build. These options will only be used if a
// new build is created, such as when deploying to the App Engine
// flexible environment using files or zip.
CloudBuildOptions *CloudBuildOptions `json:"cloudBuildOptions,omitempty"`
// Container: The Docker image for the container that runs the version.
// Only applicable for instances running in the App Engine flexible
// environment.
@@ -939,20 +1018,21 @@ type Deployment struct {
// Zip: The zip file for this deployment, if this is a zip deployment.
Zip *ZipInfo `json:"zip,omitempty"`
// ForceSendFields is a list of field names (e.g. "Container") to
// unconditionally include in API requests. By default, fields with
// ForceSendFields is a list of field names (e.g. "CloudBuildOptions")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Container") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CloudBuildOptions") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -1067,8 +1147,9 @@ type Empty struct {
// EndpointsApiService: Cloud Endpoints
// (https://cloud.google.com/endpoints) configuration. The Endpoints API
// Service provides tooling for serving Open API and gRPC endpoints via
// an NGINX proxy.The fields here refer to the name and configuration id
// of a "service" resource in the Service Management API
// an NGINX proxy. Only valid for App Engine Flexible environment
// deployments.The fields here refer to the name and configuration id of
// a "service" resource in the Service Management API
// (https://cloud.google.com/service-management/overview).
type EndpointsApiService struct {
// ConfigId: Endpoints service configuration id as specified by the
@@ -2239,6 +2320,8 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
// OperationMetadataV1: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1 struct {
CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -2264,20 +2347,22 @@ type OperationMetadataV1 struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -6698,7 +6783,7 @@ type AppsLocationsGetCall struct {
header_ http.Header
}
// Get: Get information about a location.
// Get: Gets information about a location.
func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.appsId = appsId
@@ -6801,7 +6886,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro
}
return ret, nil
// {
// "description": "Get information about a location.",
// "description": "Gets information about a location.",
// "flatPath": "v1/apps/{appsId}/locations/{locationsId}",
// "httpMethod": "GET",
// "id": "appengine.apps.locations.get",
+16 -2
View File
@@ -547,7 +547,7 @@
"locations": {
"methods": {
"get": {
"description": "Get information about a location.",
"description": "Gets information about a location.",
"flatPath": "v1alpha/apps/{appsId}/locations/{locationsId}",
"httpMethod": "GET",
"id": "appengine.apps.locations.get",
@@ -705,7 +705,7 @@
}
}
},
"revision": "20180307",
"revision": "20180320",
"rootUrl": "https://appengine.googleapis.com/",
"schemas": {
"AuthorizedCertificate": {
@@ -789,6 +789,17 @@
},
"type": "object"
},
"CreateVersionMetadataV1": {
"description": "Metadata for the given google.longrunning.Operation during a google.appengine.v1.CreateVersionRequest.",
"id": "CreateVersionMetadataV1",
"properties": {
"cloudBuildId": {
"description": "The Cloud Build ID if one was created as part of the version create. @OutputOnly",
"type": "string"
}
},
"type": "object"
},
"CreateVersionMetadataV1Alpha": {
"description": "Metadata for the given google.longrunning.Operation during a google.appengine.v1alpha.CreateVersionRequest.",
"id": "CreateVersionMetadataV1Alpha",
@@ -1090,6 +1101,9 @@
"description": "Metadata for the given google.longrunning.Operation.",
"id": "OperationMetadataV1",
"properties": {
"createVersionMetadata": {
"$ref": "CreateVersionMetadataV1"
},
"endTime": {
"description": "Time that this operation completed.@OutputOnly",
"format": "google-datetime",
+49 -14
View File
@@ -311,6 +311,37 @@ func (s *CertificateRawData) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1.CreateVersionRequest.
type CreateVersionMetadataV1 struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1alpha.CreateVersionRequest.
@@ -889,6 +920,8 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
// OperationMetadataV1: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1 struct {
CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -914,20 +947,22 @@ type OperationMetadataV1 struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -3081,7 +3116,7 @@ type AppsLocationsGetCall struct {
header_ http.Header
}
// Get: Get information about a location.
// Get: Gets information about a location.
func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.appsId = appsId
@@ -3184,7 +3219,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro
}
return ret, nil
// {
// "description": "Get information about a location.",
// "description": "Gets information about a location.",
// "flatPath": "v1alpha/apps/{appsId}/locations/{locationsId}",
// "httpMethod": "GET",
// "id": "appengine.apps.locations.get",
+31 -3
View File
@@ -851,7 +851,7 @@
"locations": {
"methods": {
"get": {
"description": "Get information about a location.",
"description": "Gets information about a location.",
"flatPath": "v1beta/apps/{appsId}/locations/{locationsId}",
"httpMethod": "GET",
"id": "appengine.apps.locations.get",
@@ -1583,7 +1583,7 @@
}
}
},
"revision": "20180307",
"revision": "20180320",
"rootUrl": "https://appengine.googleapis.com/",
"schemas": {
"ApiConfigHandler": {
@@ -1989,6 +1989,17 @@
},
"type": "object"
},
"CreateVersionMetadataV1": {
"description": "Metadata for the given google.longrunning.Operation during a google.appengine.v1.CreateVersionRequest.",
"id": "CreateVersionMetadataV1",
"properties": {
"cloudBuildId": {
"description": "The Cloud Build ID if one was created as part of the version create. @OutputOnly",
"type": "string"
}
},
"type": "object"
},
"CreateVersionMetadataV1Alpha": {
"description": "Metadata for the given google.longrunning.Operation during a google.appengine.v1alpha.CreateVersionRequest.",
"id": "CreateVersionMetadataV1Alpha",
@@ -2141,7 +2152,7 @@
"type": "object"
},
"EndpointsApiService": {
"description": "Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a \"service\" resource in the Service Management API (https://cloud.google.com/service-management/overview).",
"description": "Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.The fields here refer to the name and configuration id of a \"service\" resource in the Service Management API (https://cloud.google.com/service-management/overview).",
"id": "EndpointsApiService",
"properties": {
"configId": {
@@ -2151,6 +2162,20 @@
"name": {
"description": "Endpoints service name which is the name of the \"service\" resource in the Service Management API. For example \"myapi.endpoints.myproject.cloud.goog\"",
"type": "string"
},
"rolloutStrategy": {
"description": "Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.",
"enum": [
"UNSPECIFIED_ROLLOUT_STRATEGY",
"FIXED",
"MANAGED"
],
"enumDescriptions": [
"Not specified. Defaults to FIXED.",
"Endpoints service configuration id will be fixed to the configuration id specified by config_id.",
"Endpoints service configuration id will be updated with each rollout."
],
"type": "string"
}
},
"type": "object"
@@ -2847,6 +2872,9 @@
"description": "Metadata for the given google.longrunning.Operation.",
"id": "OperationMetadataV1",
"properties": {
"createVersionMetadata": {
"$ref": "CreateVersionMetadataV1"
},
"endTime": {
"description": "Time that this operation completed.@OutputOnly",
"format": "google-datetime",
+63 -16
View File
@@ -905,6 +905,37 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
return nil
}
// CreateVersionMetadataV1: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1.CreateVersionRequest.
type CreateVersionMetadataV1 struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1alpha.CreateVersionRequest.
@@ -1220,8 +1251,9 @@ type Empty struct {
// EndpointsApiService: Cloud Endpoints
// (https://cloud.google.com/endpoints) configuration. The Endpoints API
// Service provides tooling for serving Open API and gRPC endpoints via
// an NGINX proxy.The fields here refer to the name and configuration id
// of a "service" resource in the Service Management API
// an NGINX proxy. Only valid for App Engine Flexible environment
// deployments.The fields here refer to the name and configuration id of
// a "service" resource in the Service Management API
// (https://cloud.google.com/service-management/overview).
type EndpointsApiService struct {
// ConfigId: Endpoints service configuration id as specified by the
@@ -1237,6 +1269,17 @@ type EndpointsApiService struct {
// "myapi.endpoints.myproject.cloud.goog"
Name string `json:"name,omitempty"`
// RolloutStrategy: Endpoints rollout strategy. If FIXED, config_id must
// be specified. If MANAGED, config_id must be omitted.
//
// Possible values:
// "UNSPECIFIED_ROLLOUT_STRATEGY" - Not specified. Defaults to FIXED.
// "FIXED" - Endpoints service configuration id will be fixed to the
// configuration id specified by config_id.
// "MANAGED" - Endpoints service configuration id will be updated with
// each rollout.
RolloutStrategy string `json:"rolloutStrategy,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConfigId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -2466,6 +2509,8 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
// OperationMetadataV1: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1 struct {
CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -2491,20 +2536,22 @@ type OperationMetadataV1 struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -6954,7 +7001,7 @@ type AppsLocationsGetCall struct {
header_ http.Header
}
// Get: Get information about a location.
// Get: Gets information about a location.
func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.appsId = appsId
@@ -7057,7 +7104,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro
}
return ret, nil
// {
// "description": "Get information about a location.",
// "description": "Gets information about a location.",
// "flatPath": "v1beta/apps/{appsId}/locations/{locationsId}",
// "httpMethod": "GET",
// "id": "appengine.apps.locations.get",
+31 -3
View File
@@ -206,7 +206,7 @@
"locations": {
"methods": {
"get": {
"description": "Get information about a location.",
"description": "Gets information about a location.",
"flatPath": "v1beta4/apps/{appsId}/locations/{locationsId}",
"httpMethod": "GET",
"id": "appengine.apps.locations.get",
@@ -938,7 +938,7 @@
}
}
},
"revision": "20180307",
"revision": "20180320",
"rootUrl": "https://appengine.googleapis.com/",
"schemas": {
"ApiConfigHandler": {
@@ -1173,6 +1173,17 @@
},
"type": "object"
},
"CreateVersionMetadataV1": {
"description": "Metadata for the given google.longrunning.Operation during a google.appengine.v1.CreateVersionRequest.",
"id": "CreateVersionMetadataV1",
"properties": {
"cloudBuildId": {
"description": "The Cloud Build ID if one was created as part of the version create. @OutputOnly",
"type": "string"
}
},
"type": "object"
},
"CreateVersionMetadataV1Alpha": {
"description": "Metadata for the given google.longrunning.Operation during a google.appengine.v1alpha.CreateVersionRequest.",
"id": "CreateVersionMetadataV1Alpha",
@@ -1259,7 +1270,7 @@
"type": "object"
},
"EndpointsApiService": {
"description": "Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a \"service\" resource in the Service Management API (https://cloud.google.com/service-management/overview).",
"description": "Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments..The fields here refer to the name and configuration id of a \"service\" resource in the Service Management API (https://cloud.google.com/service-management/overview).",
"id": "EndpointsApiService",
"properties": {
"configId": {
@@ -1269,6 +1280,20 @@
"name": {
"description": "Endpoints service name which is the name of the \"service\" resource in the Service Management API. For example \"myapi.endpoints.myproject.cloud.goog\"",
"type": "string"
},
"rolloutStrategy": {
"description": "Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.",
"enum": [
"UNSPECIFIED_ROLLOUT_STRATEGY",
"FIXED",
"MANAGED"
],
"enumDescriptions": [
"Not specified. Defaults to FIXED.",
"Endpoints service configuration id will be fixed to the configuration id specified by config_id.",
"Endpoints service configuration id will be updated with each rollout."
],
"type": "string"
}
},
"type": "object"
@@ -1781,6 +1806,9 @@
"description": "Metadata for the given google.longrunning.Operation.",
"id": "OperationMetadataV1",
"properties": {
"createVersionMetadata": {
"$ref": "CreateVersionMetadataV1"
},
"endTime": {
"description": "Time that this operation completed.@OutputOnly",
"format": "google-datetime",
+62 -15
View File
@@ -527,6 +527,37 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
return nil
}
// CreateVersionMetadataV1: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1.CreateVersionRequest.
type CreateVersionMetadataV1 struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1alpha.CreateVersionRequest.
@@ -708,7 +739,8 @@ func (s *DiskUtilization) MarshalJSON() ([]byte, error) {
// EndpointsApiService: Cloud Endpoints
// (https://cloud.google.com/endpoints) configuration. The Endpoints API
// Service provides tooling for serving Open API and gRPC endpoints via
// an NGINX proxy.The fields here refer to the name and configuration id
// an NGINX proxy. Only valid for App Engine Flexible environment
// deployments..The fields here refer to the name and configuration id
// of a "service" resource in the Service Management API
// (https://cloud.google.com/service-management/overview).
type EndpointsApiService struct {
@@ -725,6 +757,17 @@ type EndpointsApiService struct {
// "myapi.endpoints.myproject.cloud.goog"
Name string `json:"name,omitempty"`
// RolloutStrategy: Endpoints rollout strategy. If FIXED, config_id must
// be specified. If MANAGED, config_id must be omitted.
//
// Possible values:
// "UNSPECIFIED_ROLLOUT_STRATEGY" - Not specified. Defaults to FIXED.
// "FIXED" - Endpoints service configuration id will be fixed to the
// configuration id specified by config_id.
// "MANAGED" - Endpoints service configuration id will be updated with
// each rollout.
RolloutStrategy string `json:"rolloutStrategy,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConfigId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -1612,6 +1655,8 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
// OperationMetadataV1: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1 struct {
CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -1637,20 +1682,22 @@ type OperationMetadataV1 struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -3044,7 +3091,7 @@ type AppsLocationsGetCall struct {
header_ http.Header
}
// Get: Get information about a location.
// Get: Gets information about a location.
func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.appsId = appsId
@@ -3147,7 +3194,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro
}
return ret, nil
// {
// "description": "Get information about a location.",
// "description": "Gets information about a location.",
// "flatPath": "v1beta4/apps/{appsId}/locations/{locationsId}",
// "httpMethod": "GET",
// "id": "appengine.apps.locations.get",
+31 -3
View File
@@ -206,7 +206,7 @@
"locations": {
"methods": {
"get": {
"description": "Get information about a location.",
"description": "Gets information about a location.",
"flatPath": "v1beta5/apps/{appsId}/locations/{locationsId}",
"httpMethod": "GET",
"id": "appengine.apps.locations.get",
@@ -938,7 +938,7 @@
}
}
},
"revision": "20180307",
"revision": "20180320",
"rootUrl": "https://appengine.googleapis.com/",
"schemas": {
"ApiConfigHandler": {
@@ -1173,6 +1173,17 @@
},
"type": "object"
},
"CreateVersionMetadataV1": {
"description": "Metadata for the given google.longrunning.Operation during a google.appengine.v1.CreateVersionRequest.",
"id": "CreateVersionMetadataV1",
"properties": {
"cloudBuildId": {
"description": "The Cloud Build ID if one was created as part of the version create. @OutputOnly",
"type": "string"
}
},
"type": "object"
},
"CreateVersionMetadataV1Alpha": {
"description": "Metadata for the given google.longrunning.Operation during a google.appengine.v1alpha.CreateVersionRequest.",
"id": "CreateVersionMetadataV1Alpha",
@@ -1259,7 +1270,7 @@
"type": "object"
},
"EndpointsApiService": {
"description": "Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a \"service\" resource in the Service Management API (https://cloud.google.com/service-management/overview).",
"description": "Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.The fields here refer to the name and configuration id of a \"service\" resource in the Service Management API (https://cloud.google.com/service-management/overview).",
"id": "EndpointsApiService",
"properties": {
"configId": {
@@ -1269,6 +1280,20 @@
"name": {
"description": "Endpoints service name which is the name of the \"service\" resource in the Service Management API. For example \"myapi.endpoints.myproject.cloud.goog\"",
"type": "string"
},
"rolloutStrategy": {
"description": "Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.",
"enum": [
"UNSPECIFIED_ROLLOUT_STRATEGY",
"FIXED",
"MANAGED"
],
"enumDescriptions": [
"Not specified. Defaults to FIXED.",
"Endpoints service configuration id will be fixed to the configuration id specified by config_id.",
"Endpoints service configuration id will be updated with each rollout."
],
"type": "string"
}
},
"type": "object"
@@ -1766,6 +1791,9 @@
"description": "Metadata for the given google.longrunning.Operation.",
"id": "OperationMetadataV1",
"properties": {
"createVersionMetadata": {
"$ref": "CreateVersionMetadataV1"
},
"endTime": {
"description": "Time that this operation completed.@OutputOnly",
"format": "google-datetime",
+63 -16
View File
@@ -527,6 +527,37 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
return nil
}
// CreateVersionMetadataV1: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1.CreateVersionRequest.
type CreateVersionMetadataV1 struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1alpha.CreateVersionRequest.
@@ -708,8 +739,9 @@ func (s *DiskUtilization) MarshalJSON() ([]byte, error) {
// EndpointsApiService: Cloud Endpoints
// (https://cloud.google.com/endpoints) configuration. The Endpoints API
// Service provides tooling for serving Open API and gRPC endpoints via
// an NGINX proxy.The fields here refer to the name and configuration id
// of a "service" resource in the Service Management API
// an NGINX proxy. Only valid for App Engine Flexible environment
// deployments.The fields here refer to the name and configuration id of
// a "service" resource in the Service Management API
// (https://cloud.google.com/service-management/overview).
type EndpointsApiService struct {
// ConfigId: Endpoints service configuration id as specified by the
@@ -725,6 +757,17 @@ type EndpointsApiService struct {
// "myapi.endpoints.myproject.cloud.goog"
Name string `json:"name,omitempty"`
// RolloutStrategy: Endpoints rollout strategy. If FIXED, config_id must
// be specified. If MANAGED, config_id must be omitted.
//
// Possible values:
// "UNSPECIFIED_ROLLOUT_STRATEGY" - Not specified. Defaults to FIXED.
// "FIXED" - Endpoints service configuration id will be fixed to the
// configuration id specified by config_id.
// "MANAGED" - Endpoints service configuration id will be updated with
// each rollout.
RolloutStrategy string `json:"rolloutStrategy,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConfigId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -1582,6 +1625,8 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
// OperationMetadataV1: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1 struct {
CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -1607,20 +1652,22 @@ type OperationMetadataV1 struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -3004,7 +3051,7 @@ type AppsLocationsGetCall struct {
header_ http.Header
}
// Get: Get information about a location.
// Get: Gets information about a location.
func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.appsId = appsId
@@ -3107,7 +3154,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro
}
return ret, nil
// {
// "description": "Get information about a location.",
// "description": "Gets information about a location.",
// "flatPath": "v1beta5/apps/{appsId}/locations/{locationsId}",
// "httpMethod": "GET",
// "id": "appengine.apps.locations.get",
+4 -4
View File
@@ -14,7 +14,7 @@
"description": "Provides a historical view of activity.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/google-apps/activity/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/i2G9IjUY6hcmy1d1bAWQZIc125s\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/-hyAWGar4795omTTHxjqM49pECE\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -59,12 +59,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -137,7 +137,7 @@
}
}
},
"revision": "20180204",
"revision": "20180427",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Activity": {
+4 -4
View File
@@ -15,7 +15,7 @@
"description": "The Google App State API.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/games/services/web/api/states",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/X8tji3M7ero0WaIAGRtuwW2FqYo\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/c8SO732Ao1od3rR5fyJkiapZkf8\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -211,7 +211,7 @@
}
}
},
"revision": "20180122",
"revision": "20180417",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"GetResponse": {
+50 -16
View File
@@ -32,7 +32,7 @@
"description": "A data platform for customers to create, manage, share and query data.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/bigquery/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/77sYFu0di9EzzwuBGmUFES4JWbE\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/cg_n3NWH4TV_fCgEGVaEaOZcGEA\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/search-16.gif",
"x32": "https://www.google.com/images/icons/product/search-32.gif"
@@ -77,12 +77,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -998,7 +998,7 @@
}
}
},
"revision": "20180311",
"revision": "20180422",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"BigtableColumn": {
@@ -1081,6 +1081,19 @@
},
"type": "object"
},
"Clustering": {
"id": "Clustering",
"properties": {
"fields": {
"description": "[Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. The order of the fields will determine how clusters will be generated, so it is important.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"CsvOptions": {
"id": "CsvOptions",
"properties": {
@@ -1198,7 +1211,7 @@
"type": "string"
},
"location": {
"description": "The geographic location where the dataset should reside. Possible values include EU and US. The default value is US.",
"description": "The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/dataset-locations.",
"type": "string"
},
"selfLink": {
@@ -1363,7 +1376,7 @@
"type": "number"
},
"endMs": {
"description": "Stage end time in milliseconds.",
"description": "Stage end time represented as milliseconds since epoch.",
"format": "int64",
"type": "string"
},
@@ -1430,7 +1443,7 @@
"type": "string"
},
"startMs": {
"description": "Stage start time in milliseconds.",
"description": "Stage start time represented as milliseconds since epoch.",
"format": "int64",
"type": "string"
},
@@ -1637,6 +1650,10 @@
"GoogleSheetsOptions": {
"id": "GoogleSheetsOptions",
"properties": {
"range": {
"description": "[Experimental] [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: !:",
"type": "string"
},
"skipLeadingRows": {
"description": "[Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N \u003e 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.",
"format": "int64",
@@ -1791,9 +1808,13 @@
"type": "boolean"
},
"autodetect": {
"description": "Indicates if we should automatically infer the options and schema for CSV and JSON sources.",
"description": "[Optional] Indicates if we should automatically infer the options and schema for CSV and JSON sources.",
"type": "boolean"
},
"clustering": {
"$ref": "Clustering",
"description": "[Experimental] Clustering specification for the destination table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered."
},
"createDisposition": {
"description": "[Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.",
"type": "string"
@@ -1881,7 +1902,7 @@
},
"timePartitioning": {
"$ref": "TimePartitioning",
"description": "If specified, configures time-based partitioning for the destination table."
"description": "Time-based partitioning specification for the destination table."
},
"writeDisposition": {
"description": "[Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.",
@@ -1898,6 +1919,10 @@
"description": "[Optional] If true and query uses legacy SQL dialect, allows the query to produce arbitrarily large result tables at a slight cost in performance. Requires destinationTable to be set. For standard SQL queries, this flag is ignored and large results are always allowed. However, you must still set destinationTable when result size exceeds the allowed maximum response size.",
"type": "boolean"
},
"clustering": {
"$ref": "Clustering",
"description": "[Experimental] Clustering specification for the destination table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered."
},
"createDisposition": {
"description": "[Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.",
"type": "string"
@@ -1969,9 +1994,10 @@
},
"timePartitioning": {
"$ref": "TimePartitioning",
"description": "If specified, configures time-based partitioning for the destination table."
"description": "Time-based partitioning specification for the destination table."
},
"useLegacySql": {
"default": "true",
"description": "Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the value of flattenResults is ignored; query will be run as if flattenResults is false.",
"type": "boolean"
},
@@ -2602,12 +2628,12 @@
"QueryTimelineSample": {
"id": "QueryTimelineSample",
"properties": {
"activeInputs": {
"description": "Total number of active workers. This does not correspond directly to slot usage. This is the largest value observed since the last sample.",
"activeUnits": {
"description": "Total number of units currently being processed by workers. This does not correspond directly to slot usage. This is the largest value observed since the last sample.",
"format": "int64",
"type": "string"
},
"completedInputs": {
"completedUnits": {
"description": "Total parallel units of work completed by this query.",
"format": "int64",
"type": "string"
@@ -2617,7 +2643,7 @@
"format": "int64",
"type": "string"
},
"pendingInputs": {
"pendingUnits": {
"description": "Total parallel units of work remaining for the active stages.",
"format": "int64",
"type": "string"
@@ -2654,6 +2680,10 @@
"Table": {
"id": "Table",
"properties": {
"clustering": {
"$ref": "Clustering",
"description": "[Experimental] Clustering specification for the table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered."
},
"creationTime": {
"description": "[Output-only] The time when this table was created, in milliseconds since the epoch.",
"format": "int64",
@@ -2742,7 +2772,7 @@
},
"timePartitioning": {
"$ref": "TimePartitioning",
"description": "If specified, configures time-based partitioning for this table."
"description": "Time-based partitioning specification for this table."
},
"type": {
"description": "[Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE.",
@@ -2916,6 +2946,10 @@
"description": "Tables in the requested dataset.",
"items": {
"properties": {
"clustering": {
"$ref": "Clustering",
"description": "[Experimental] Clustering specification for this table, if configured."
},
"creationTime": {
"description": "The time when this table was created, in milliseconds since the epoch.",
"format": "int64",
@@ -2952,7 +2986,7 @@
},
"timePartitioning": {
"$ref": "TimePartitioning",
"description": "The time-based partitioning for this table."
"description": "The time-based partitioning specification for this table, if configured."
},
"type": {
"description": "The type of table. Possible values are: TABLE, VIEW.",
+99 -42
View File
@@ -319,6 +319,36 @@ func (s *BigtableOptions) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Clustering struct {
// Fields: [Repeated] One or more fields on which data should be
// clustered. Only top-level, non-repeated, simple-type fields are
// supported. The order of the fields will determine how clusters will
// be generated, so it is important.
Fields []string `json:"fields,omitempty"`
// ForceSendFields is a list of field names (e.g. "Fields") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Fields") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Clustering) MarshalJSON() ([]byte, error) {
type NoMethod Clustering
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CsvOptions struct {
// AllowJaggedRows: [Optional] Indicates if BigQuery should accept rows
// that are missing trailing optional columns. If true, BigQuery treats
@@ -448,7 +478,8 @@ type Dataset struct {
LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"`
// Location: The geographic location where the dataset should reside.
// Possible values include EU and US. The default value is US.
// The default value is US. See details at
// https://cloud.google.com/bigquery/docs/dataset-locations.
Location string `json:"location,omitempty"`
// SelfLink: [Output-only] A URL that can be used to access the resource
@@ -787,7 +818,7 @@ type ExplainQueryStage struct {
// CPU-bound tasks.
ComputeRatioMax float64 `json:"computeRatioMax,omitempty"`
// EndMs: Stage end time in milliseconds.
// EndMs: Stage end time represented as milliseconds since epoch.
EndMs int64 `json:"endMs,omitempty,string"`
// Id: Unique ID for stage within plan.
@@ -829,7 +860,7 @@ type ExplainQueryStage struct {
// and spilled to disk.
ShuffleOutputBytesSpilled int64 `json:"shuffleOutputBytesSpilled,omitempty,string"`
// StartMs: Stage start time in milliseconds.
// StartMs: Stage start time represented as milliseconds since epoch.
StartMs int64 `json:"startMs,omitempty,string"`
// Status: Current status for the stage.
@@ -1160,6 +1191,10 @@ func (s *GetServiceAccountResponse) MarshalJSON() ([]byte, error) {
}
type GoogleSheetsOptions struct {
// Range: [Experimental] [Optional] Range of a sheet to query from. Only
// used when non-empty. Typical format: !:
Range string `json:"range,omitempty"`
// SkipLeadingRows: [Optional] The number of rows at the top of a sheet
// that BigQuery will skip when reading the data. The default value is
// 0. This property is useful if you have header rows that should be
@@ -1175,7 +1210,7 @@ type GoogleSheetsOptions struct {
// detected schema.
SkipLeadingRows int64 `json:"skipLeadingRows,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "SkipLeadingRows") to
// ForceSendFields is a list of field names (e.g. "Range") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -1183,13 +1218,12 @@ type GoogleSheetsOptions struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SkipLeadingRows") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
// NullFields is a list of field names (e.g. "Range") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
@@ -1418,10 +1452,16 @@ type JobConfigurationLoad struct {
// value is false.
AllowQuotedNewlines bool `json:"allowQuotedNewlines,omitempty"`
// Autodetect: Indicates if we should automatically infer the options
// and schema for CSV and JSON sources.
// Autodetect: [Optional] Indicates if we should automatically infer the
// options and schema for CSV and JSON sources.
Autodetect bool `json:"autodetect,omitempty"`
// Clustering: [Experimental] Clustering specification for the
// destination table. Must be specified with time-based partitioning,
// data in the table will be first partitioned and subsequently
// clustered.
Clustering *Clustering `json:"clustering,omitempty"`
// CreateDisposition: [Optional] Specifies whether the job is allowed to
// create new tables. The following values are supported:
// CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the
@@ -1553,8 +1593,8 @@ type JobConfigurationLoad struct {
// not allowed.
SourceUris []string `json:"sourceUris,omitempty"`
// TimePartitioning: If specified, configures time-based partitioning
// for the destination table.
// TimePartitioning: Time-based partitioning specification for the
// destination table.
TimePartitioning *TimePartitioning `json:"timePartitioning,omitempty"`
// WriteDisposition: [Optional] Specifies the action that occurs if the
@@ -1602,6 +1642,12 @@ type JobConfigurationQuery struct {
// result size exceeds the allowed maximum response size.
AllowLargeResults bool `json:"allowLargeResults,omitempty"`
// Clustering: [Experimental] Clustering specification for the
// destination table. Must be specified with time-based partitioning,
// data in the table will be first partitioned and subsequently
// clustered.
Clustering *Clustering `json:"clustering,omitempty"`
// CreateDisposition: [Optional] Specifies whether the job is allowed to
// create new tables. The following values are supported:
// CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the
@@ -1685,8 +1731,8 @@ type JobConfigurationQuery struct {
// source can then be queried as if it were a standard BigQuery table.
TableDefinitions map[string]ExternalDataConfiguration `json:"tableDefinitions,omitempty"`
// TimePartitioning: If specified, configures time-based partitioning
// for the destination table.
// TimePartitioning: Time-based partitioning specification for the
// destination table.
TimePartitioning *TimePartitioning `json:"timePartitioning,omitempty"`
// UseLegacySql: Specifies whether to use BigQuery's legacy SQL dialect
@@ -1695,7 +1741,9 @@ type JobConfigurationQuery struct {
// https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is
// set to false, the value of flattenResults is ignored; query will be
// run as if flattenResults is false.
UseLegacySql bool `json:"useLegacySql,omitempty"`
//
// Default: true
UseLegacySql *bool `json:"useLegacySql,omitempty"`
// UseQueryCache: [Optional] Whether to look for the result in the query
// cache. The query cache is a best-effort cache that will be flushed
@@ -2642,26 +2690,25 @@ func (s *QueryResponse) MarshalJSON() ([]byte, error) {
}
type QueryTimelineSample struct {
// ActiveInputs: Total number of active workers. This does not
// correspond directly to slot usage. This is the largest value observed
// since the last sample.
ActiveInputs int64 `json:"activeInputs,omitempty,string"`
// ActiveUnits: Total number of units currently being processed by
// workers. This does not correspond directly to slot usage. This is the
// largest value observed since the last sample.
ActiveUnits int64 `json:"activeUnits,omitempty,string"`
// CompletedInputs: Total parallel units of work completed by this
// query.
CompletedInputs int64 `json:"completedInputs,omitempty,string"`
// CompletedUnits: Total parallel units of work completed by this query.
CompletedUnits int64 `json:"completedUnits,omitempty,string"`
// ElapsedMs: Milliseconds elapsed since the start of query execution.
ElapsedMs int64 `json:"elapsedMs,omitempty,string"`
// PendingInputs: Total parallel units of work remaining for the active
// PendingUnits: Total parallel units of work remaining for the active
// stages.
PendingInputs int64 `json:"pendingInputs,omitempty,string"`
PendingUnits int64 `json:"pendingUnits,omitempty,string"`
// TotalSlotMs: Cumulative slot-ms consumed by the query.
TotalSlotMs int64 `json:"totalSlotMs,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "ActiveInputs") to
// ForceSendFields is a list of field names (e.g. "ActiveUnits") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -2669,7 +2716,7 @@ type QueryTimelineSample struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveInputs") to include
// NullFields is a list of field names (e.g. "ActiveUnits") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
@@ -2723,6 +2770,11 @@ func (s *Streamingbuffer) MarshalJSON() ([]byte, error) {
}
type Table struct {
// Clustering: [Experimental] Clustering specification for the table.
// Must be specified with time-based partitioning, data in the table
// will be first partitioned and subsequently clustered.
Clustering *Clustering `json:"clustering,omitempty"`
// CreationTime: [Output-only] The time when this table was created, in
// milliseconds since the epoch.
CreationTime int64 `json:"creationTime,omitempty,string"`
@@ -2804,8 +2856,8 @@ type Table struct {
// TableReference: [Required] Reference describing the ID of this table.
TableReference *TableReference `json:"tableReference,omitempty"`
// TimePartitioning: If specified, configures time-based partitioning
// for this table.
// TimePartitioning: Time-based partitioning specification for this
// table.
TimePartitioning *TimePartitioning `json:"timePartitioning,omitempty"`
// Type: [Output-only] Describes the table type. The following values
@@ -2822,7 +2874,7 @@ type Table struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CreationTime") to
// ForceSendFields is a list of field names (e.g. "Clustering") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -2830,10 +2882,10 @@ type Table struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreationTime") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "Clustering") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@@ -3157,6 +3209,10 @@ func (s *TableList) MarshalJSON() ([]byte, error) {
}
type TableListTables struct {
// Clustering: [Experimental] Clustering specification for this table,
// if configured.
Clustering *Clustering `json:"clustering,omitempty"`
// CreationTime: The time when this table was created, in milliseconds
// since the epoch.
CreationTime int64 `json:"creationTime,omitempty,string"`
@@ -3183,7 +3239,8 @@ type TableListTables struct {
// TableReference: A reference uniquely identifying the table.
TableReference *TableReference `json:"tableReference,omitempty"`
// TimePartitioning: The time-based partitioning for this table.
// TimePartitioning: The time-based partitioning specification for this
// table, if configured.
TimePartitioning *TimePartitioning `json:"timePartitioning,omitempty"`
// Type: The type of table. Possible values are: TABLE, VIEW.
@@ -3192,7 +3249,7 @@ type TableListTables struct {
// View: Additional details for a view.
View *TableListTablesView `json:"view,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreationTime") to
// ForceSendFields is a list of field names (e.g. "Clustering") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -3200,10 +3257,10 @@ type TableListTables struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreationTime") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "Clustering") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@@ -225,7 +225,7 @@
"locations": {
"methods": {
"get": {
"description": "Get information about a location.",
"description": "Gets information about a location.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
"httpMethod": "GET",
"id": "bigquerydatatransfer.projects.locations.get",
@@ -412,7 +412,7 @@
"type": "string"
},
"parent": {
"description": "The BigQuery project id where the transfer configuration should be created.\nMust be in the format /projects/{project_id}/locations/{location_id}\nIf specified location and location of the destination bigquery dataset\ndo not match - the request will fail.",
"description": "The BigQuery project id where the transfer configuration should be created.\nMust be in the format projects/{project_id}/locations/{location_id}\nIf specified location and location of the destination bigquery dataset\ndo not match - the request will fail.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
@@ -792,7 +792,7 @@
"type": "string"
},
"parent": {
"description": "The BigQuery project id where the transfer configuration should be created.\nMust be in the format /projects/{project_id}/locations/{location_id}\nIf specified location and location of the destination bigquery dataset\ndo not match - the request will fail.",
"description": "The BigQuery project id where the transfer configuration should be created.\nMust be in the format projects/{project_id}/locations/{location_id}\nIf specified location and location of the destination bigquery dataset\ndo not match - the request will fail.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
@@ -1156,7 +1156,7 @@
}
}
},
"revision": "20180312",
"revision": "20180429",
"rootUrl": "https://bigquerydatatransfer.googleapis.com/",
"schemas": {
"CheckValidCredsRequest": {
@@ -1247,7 +1247,7 @@
"type": "string"
},
"name": {
"description": "Data source resource name.",
"description": "Output only. Data source resource name.",
"type": "string"
},
"parameters": {
@@ -1269,7 +1269,7 @@
"type": "boolean"
},
"supportsMultipleTransfers": {
"description": "Indicates whether the data source supports multiple transfers\nto different BigQuery targets.",
"description": "Deprecated. This field has no effect.",
"type": "boolean"
},
"transferType": {
@@ -1576,7 +1576,7 @@
"type": "object"
},
"TransferConfig": {
"description": "Represents a data transfer configuration. A transfer configuration\ncontains all metadata needed to perform a data transfer. For example,\n`destination_dataset_id` specifies where data should be stored.\nWhen a new transfer configuration is created, the specified\n`destination_dataset_id` is created when needed and shared with the\nappropriate data source service account.\nNext id: 21",
"description": "Represents a data transfer configuration. A transfer configuration\ncontains all metadata needed to perform a data transfer. For example,\n`destination_dataset_id` specifies where data should be stored.\nWhen a new transfer configuration is created, the specified\n`destination_dataset_id` is created when needed and shared with the\nappropriate data source service account.",
"id": "TransferConfig",
"properties": {
"dataRefreshWindowDays": {
@@ -1691,7 +1691,7 @@
"type": "object"
},
"TransferRun": {
"description": "Represents a data transfer run.\nNext id: 27",
"description": "Represents a data transfer run.",
"id": "TransferRun",
"properties": {
"dataSourceId": {
@@ -321,7 +321,7 @@ type DataSource struct {
// schedule runs.
MinimumScheduleInterval string `json:"minimumScheduleInterval,omitempty"`
// Name: Data source resource name.
// Name: Output only. Data source resource name.
Name string `json:"name,omitempty"`
// Parameters: Data source parameters.
@@ -341,9 +341,7 @@ type DataSource struct {
// When set to `true`, user can override default schedule.
SupportsCustomSchedule bool `json:"supportsCustomSchedule,omitempty"`
// SupportsMultipleTransfers: Indicates whether the data source supports
// multiple transfers
// to different BigQuery targets.
// SupportsMultipleTransfers: Deprecated. This field has no effect.
SupportsMultipleTransfers bool `json:"supportsMultipleTransfers,omitempty"`
// TransferType: Deprecated. This field has no effect.
@@ -972,7 +970,6 @@ func (s *Status) MarshalJSON() ([]byte, error) {
// `destination_dataset_id` is created when needed and shared with
// the
// appropriate data source service account.
// Next id: 21
type TransferConfig struct {
// DataRefreshWindowDays: The number of days to look back to
// automatically refresh the data.
@@ -1137,7 +1134,6 @@ func (s *TransferMessage) MarshalJSON() ([]byte, error) {
}
// TransferRun: Represents a data transfer run.
// Next id: 27
type TransferRun struct {
// DataSourceId: Output only. Data source id.
DataSourceId string `json:"dataSourceId,omitempty"`
@@ -1731,7 +1727,7 @@ type ProjectsLocationsGetCall struct {
header_ http.Header
}
// Get: Get information about a location.
// Get: Gets information about a location.
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
@@ -1832,7 +1828,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,
}
return ret, nil
// {
// "description": "Get information about a location.",
// "description": "Gets information about a location.",
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
// "httpMethod": "GET",
// "id": "bigquerydatatransfer.projects.locations.get",
@@ -2692,7 +2688,7 @@ func (c *ProjectsLocationsTransferConfigsCreateCall) Do(opts ...googleapi.CallOp
// "type": "string"
// },
// "parent": {
// "description": "The BigQuery project id where the transfer configuration should be created.\nMust be in the format /projects/{project_id}/locations/{location_id}\nIf specified location and location of the destination bigquery dataset\ndo not match - the request will fail.",
// "description": "The BigQuery project id where the transfer configuration should be created.\nMust be in the format projects/{project_id}/locations/{location_id}\nIf specified location and location of the destination bigquery dataset\ndo not match - the request will fail.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+$",
// "required": true,
@@ -4386,7 +4382,7 @@ func (c *ProjectsTransferConfigsCreateCall) Do(opts ...googleapi.CallOption) (*T
// "type": "string"
// },
// "parent": {
// "description": "The BigQuery project id where the transfer configuration should be created.\nMust be in the format /projects/{project_id}/locations/{location_id}\nIf specified location and location of the destination bigquery dataset\ndo not match - the request will fail.",
// "description": "The BigQuery project id where the transfer configuration should be created.\nMust be in the format projects/{project_id}/locations/{location_id}\nIf specified location and location of the destination bigquery dataset\ndo not match - the request will fail.",
// "location": "path",
// "pattern": "^projects/[^/]+$",
// "required": true,
+3 -3
View File
@@ -14,7 +14,7 @@
"description": "API for access to the data within Blogger.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/blogger/docs/2.0/json/getting_started",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/Mm4a0u3lPNBqEzKCYhfhIpC2Mw4\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/89hug8dMIq7YUctbwKQlKrklq4s\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/blogger-16.png",
"x32": "https://www.google.com/images/icons/product/blogger-32.png"
@@ -62,12 +62,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
+3 -3
View File
@@ -17,7 +17,7 @@
"description": "API for access to the data within Blogger.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/blogger/docs/3.0/getting_started",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/Goh5bsNuqq7lTY-yMf_QcKSL760\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/oScwAt9t2vnOyaWZEl8KR7zqocU\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/blogger-16.png",
"x32": "https://www.google.com/images/icons/product/blogger-32.png"
@@ -65,12 +65,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
+4 -4
View File
@@ -14,7 +14,7 @@
"description": "Searches for books and manages your Google Books library.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/books/docs/v1/getting_started",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/grKqkiLaDaBaqW7ezJtDaKmrU78\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/STz5vHgSfP0S_hHO6ctVIowLT3s\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/ebooks-16.png",
"x32": "https://www.google.com/images/icons/product/ebooks-32.png"
@@ -59,12 +59,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -2480,7 +2480,7 @@
}
}
},
"revision": "20171127",
"revision": "20180409",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Annotation": {
+5 -5
View File
@@ -17,7 +17,7 @@
"description": "Manipulates events and other calendar data.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/google-apps/calendar/firstapp",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/yCy5sb24vtyNhrLP2aRyDfx5GsY\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/1VOFhc7FcQH_8hh6rAZ7o3yjhp8\"",
"icons": {
"x16": "http://www.google.com/images/icons/product/calendar-16.png",
"x32": "http://www.google.com/images/icons/product/calendar-32.png"
@@ -62,12 +62,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -1604,7 +1604,7 @@
}
}
},
"revision": "20180130",
"revision": "20180424",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Acl": {
@@ -2566,7 +2566,7 @@
},
"resource": {
"default": "false",
"description": "Whether the attendee is a resource. Read-only. The default is False.",
"description": "Whether the attendee is a resource. Can only be set when the attendee is added to the event for the first time. Subsequent modifications are ignored. Optional. The default is False.",
"type": "boolean"
},
"responseStatus": {
+3 -2
View File
@@ -1747,8 +1747,9 @@ type EventAttendee struct {
// Read-only. The default is False.
Organizer bool `json:"organizer,omitempty"`
// Resource: Whether the attendee is a resource. Read-only. The default
// is False.
// Resource: Whether the attendee is a resource. Can only be set when
// the attendee is added to the event for the first time. Subsequent
// modifications are ignored. Optional. The default is False.
Resource bool `json:"resource,omitempty"`
// ResponseStatus: The attendee's response status. Possible values are:
+6 -154
View File
@@ -3,7 +3,7 @@
"baseUrl": "https://chat.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Hangouts Chat",
"description": "",
"description": "Enables bots to fetch information and perform actions in the new Hangouts Chat.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/hangouts/chat",
"fullyEncodeReservedExpansion": true,
@@ -106,158 +106,6 @@
},
"protocol": "rest",
"resources": {
"dms": {
"resources": {
"conversations": {
"resources": {
"messages": {
"methods": {
"create": {
"description": "Creates a message.",
"flatPath": "v1/dms/{dmsId}/conversations/{conversationsId}/messages",
"httpMethod": "POST",
"id": "chat.dms.conversations.messages.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
"location": "path",
"pattern": "^dms/[^/]+/conversations/[^/]+$",
"required": true,
"type": "string"
},
"threadKey": {
"description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+parent}/messages",
"request": {
"$ref": "Message"
},
"response": {
"$ref": "Message"
}
}
}
}
}
},
"messages": {
"methods": {
"create": {
"description": "Creates a message.",
"flatPath": "v1/dms/{dmsId}/messages",
"httpMethod": "POST",
"id": "chat.dms.messages.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
"location": "path",
"pattern": "^dms/[^/]+$",
"required": true,
"type": "string"
},
"threadKey": {
"description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+parent}/messages",
"request": {
"$ref": "Message"
},
"response": {
"$ref": "Message"
}
}
}
}
}
},
"rooms": {
"resources": {
"conversations": {
"resources": {
"messages": {
"methods": {
"create": {
"description": "Creates a message.",
"flatPath": "v1/rooms/{roomsId}/conversations/{conversationsId}/messages",
"httpMethod": "POST",
"id": "chat.rooms.conversations.messages.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
"location": "path",
"pattern": "^rooms/[^/]+/conversations/[^/]+$",
"required": true,
"type": "string"
},
"threadKey": {
"description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+parent}/messages",
"request": {
"$ref": "Message"
},
"response": {
"$ref": "Message"
}
}
}
}
}
},
"messages": {
"methods": {
"create": {
"description": "Creates a message.",
"flatPath": "v1/rooms/{roomsId}/messages",
"httpMethod": "POST",
"id": "chat.rooms.messages.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
"location": "path",
"pattern": "^rooms/[^/]+$",
"required": true,
"type": "string"
},
"threadKey": {
"description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+parent}/messages",
"request": {
"$ref": "Message"
},
"response": {
"$ref": "Message"
}
}
}
}
}
},
"spaces": {
"methods": {
"get": {
@@ -479,7 +327,7 @@
}
}
},
"revision": "20180301",
"revision": "20180424",
"rootUrl": "https://chat.googleapis.com/",
"schemas": {
"ActionParameter": {
@@ -971,6 +819,10 @@
},
"type": "array"
},
"argumentText": {
"description": "Plain-text body of the message with all bot mentions stripped out.",
"type": "string"
},
"cards": {
"description": "Rich, formatted and interactive cards that can be used to display UI\nelements such as: formatted texts, buttons, clickable images. Cards are\nnormally displayed below the plain-text body of the message.",
"items": {
+4 -720
View File
@@ -50,8 +50,6 @@ func New(client *http.Client) (*Service, error) {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Dms = NewDmsService(s)
s.Rooms = NewRoomsService(s)
s.Spaces = NewSpacesService(s)
return s, nil
}
@@ -61,10 +59,6 @@ type Service struct {
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Dms *DmsService
Rooms *RoomsService
Spaces *SpacesService
}
@@ -75,96 +69,6 @@ func (s *Service) userAgent() string {
return googleapi.UserAgent + " " + s.UserAgent
}
func NewDmsService(s *Service) *DmsService {
rs := &DmsService{s: s}
rs.Conversations = NewDmsConversationsService(s)
rs.Messages = NewDmsMessagesService(s)
return rs
}
type DmsService struct {
s *Service
Conversations *DmsConversationsService
Messages *DmsMessagesService
}
func NewDmsConversationsService(s *Service) *DmsConversationsService {
rs := &DmsConversationsService{s: s}
rs.Messages = NewDmsConversationsMessagesService(s)
return rs
}
type DmsConversationsService struct {
s *Service
Messages *DmsConversationsMessagesService
}
func NewDmsConversationsMessagesService(s *Service) *DmsConversationsMessagesService {
rs := &DmsConversationsMessagesService{s: s}
return rs
}
type DmsConversationsMessagesService struct {
s *Service
}
func NewDmsMessagesService(s *Service) *DmsMessagesService {
rs := &DmsMessagesService{s: s}
return rs
}
type DmsMessagesService struct {
s *Service
}
func NewRoomsService(s *Service) *RoomsService {
rs := &RoomsService{s: s}
rs.Conversations = NewRoomsConversationsService(s)
rs.Messages = NewRoomsMessagesService(s)
return rs
}
type RoomsService struct {
s *Service
Conversations *RoomsConversationsService
Messages *RoomsMessagesService
}
func NewRoomsConversationsService(s *Service) *RoomsConversationsService {
rs := &RoomsConversationsService{s: s}
rs.Messages = NewRoomsConversationsMessagesService(s)
return rs
}
type RoomsConversationsService struct {
s *Service
Messages *RoomsConversationsMessagesService
}
func NewRoomsConversationsMessagesService(s *Service) *RoomsConversationsMessagesService {
rs := &RoomsConversationsMessagesService{s: s}
return rs
}
type RoomsConversationsMessagesService struct {
s *Service
}
func NewRoomsMessagesService(s *Service) *RoomsMessagesService {
rs := &RoomsMessagesService{s: s}
return rs
}
type RoomsMessagesService struct {
s *Service
}
func NewSpacesService(s *Service) *SpacesService {
rs := &SpacesService{s: s}
rs.Members = NewSpacesMembersService(s)
@@ -903,6 +807,10 @@ type Message struct {
// this message.
Annotations []*Annotation `json:"annotations,omitempty"`
// ArgumentText: Plain-text body of the message with all bot mentions
// stripped out.
ArgumentText string `json:"argumentText,omitempty"`
// Cards: Rich, formatted and interactive cards that can be used to
// display UI
// elements such as: formatted texts, buttons, clickable images. Cards
@@ -1316,630 +1224,6 @@ func (s *WidgetMarkup) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "chat.dms.conversations.messages.create":
type DmsConversationsMessagesCreateCall struct {
s *Service
parent string
message *Message
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates a message.
func (r *DmsConversationsMessagesService) Create(parent string, message *Message) *DmsConversationsMessagesCreateCall {
c := &DmsConversationsMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
c.message = message
return c
}
// ThreadKey sets the optional parameter "threadKey": Opaque thread
// identifier string that can be specified to group messages
// into a single thread. If this is the first message with a given
// thread
// identifier, a new thread is created. Subsequent messages with the
// same
// thread identifier will be posted into the same thread. This relieves
// bots
// and webhooks from having to store the Hangouts Chat thread ID of a
// thread (created earlier by them) to post
// further updates to it.
//
// Has no effect if thread field,
// corresponding to an existing thread, is set in message.
func (c *DmsConversationsMessagesCreateCall) ThreadKey(threadKey string) *DmsConversationsMessagesCreateCall {
c.urlParams_.Set("threadKey", threadKey)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DmsConversationsMessagesCreateCall) Fields(s ...googleapi.Field) *DmsConversationsMessagesCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *DmsConversationsMessagesCreateCall) Context(ctx context.Context) *DmsConversationsMessagesCreateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DmsConversationsMessagesCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DmsConversationsMessagesCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.message)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/messages")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "chat.dms.conversations.messages.create" call.
// Exactly one of *Message or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Message.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *DmsConversationsMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Message{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a message.",
// "flatPath": "v1/dms/{dmsId}/conversations/{conversationsId}/messages",
// "httpMethod": "POST",
// "id": "chat.dms.conversations.messages.create",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
// "description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
// "location": "path",
// "pattern": "^dms/[^/]+/conversations/[^/]+$",
// "required": true,
// "type": "string"
// },
// "threadKey": {
// "description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/{+parent}/messages",
// "request": {
// "$ref": "Message"
// },
// "response": {
// "$ref": "Message"
// }
// }
}
// method id "chat.dms.messages.create":
type DmsMessagesCreateCall struct {
s *Service
parent string
message *Message
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates a message.
func (r *DmsMessagesService) Create(parent string, message *Message) *DmsMessagesCreateCall {
c := &DmsMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
c.message = message
return c
}
// ThreadKey sets the optional parameter "threadKey": Opaque thread
// identifier string that can be specified to group messages
// into a single thread. If this is the first message with a given
// thread
// identifier, a new thread is created. Subsequent messages with the
// same
// thread identifier will be posted into the same thread. This relieves
// bots
// and webhooks from having to store the Hangouts Chat thread ID of a
// thread (created earlier by them) to post
// further updates to it.
//
// Has no effect if thread field,
// corresponding to an existing thread, is set in message.
func (c *DmsMessagesCreateCall) ThreadKey(threadKey string) *DmsMessagesCreateCall {
c.urlParams_.Set("threadKey", threadKey)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DmsMessagesCreateCall) Fields(s ...googleapi.Field) *DmsMessagesCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *DmsMessagesCreateCall) Context(ctx context.Context) *DmsMessagesCreateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DmsMessagesCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DmsMessagesCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.message)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/messages")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "chat.dms.messages.create" call.
// Exactly one of *Message or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Message.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *DmsMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Message{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a message.",
// "flatPath": "v1/dms/{dmsId}/messages",
// "httpMethod": "POST",
// "id": "chat.dms.messages.create",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
// "description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
// "location": "path",
// "pattern": "^dms/[^/]+$",
// "required": true,
// "type": "string"
// },
// "threadKey": {
// "description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/{+parent}/messages",
// "request": {
// "$ref": "Message"
// },
// "response": {
// "$ref": "Message"
// }
// }
}
// method id "chat.rooms.conversations.messages.create":
type RoomsConversationsMessagesCreateCall struct {
s *Service
parent string
message *Message
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates a message.
func (r *RoomsConversationsMessagesService) Create(parent string, message *Message) *RoomsConversationsMessagesCreateCall {
c := &RoomsConversationsMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
c.message = message
return c
}
// ThreadKey sets the optional parameter "threadKey": Opaque thread
// identifier string that can be specified to group messages
// into a single thread. If this is the first message with a given
// thread
// identifier, a new thread is created. Subsequent messages with the
// same
// thread identifier will be posted into the same thread. This relieves
// bots
// and webhooks from having to store the Hangouts Chat thread ID of a
// thread (created earlier by them) to post
// further updates to it.
//
// Has no effect if thread field,
// corresponding to an existing thread, is set in message.
func (c *RoomsConversationsMessagesCreateCall) ThreadKey(threadKey string) *RoomsConversationsMessagesCreateCall {
c.urlParams_.Set("threadKey", threadKey)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *RoomsConversationsMessagesCreateCall) Fields(s ...googleapi.Field) *RoomsConversationsMessagesCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *RoomsConversationsMessagesCreateCall) Context(ctx context.Context) *RoomsConversationsMessagesCreateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *RoomsConversationsMessagesCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *RoomsConversationsMessagesCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.message)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/messages")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "chat.rooms.conversations.messages.create" call.
// Exactly one of *Message or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Message.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *RoomsConversationsMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Message{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a message.",
// "flatPath": "v1/rooms/{roomsId}/conversations/{conversationsId}/messages",
// "httpMethod": "POST",
// "id": "chat.rooms.conversations.messages.create",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
// "description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
// "location": "path",
// "pattern": "^rooms/[^/]+/conversations/[^/]+$",
// "required": true,
// "type": "string"
// },
// "threadKey": {
// "description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/{+parent}/messages",
// "request": {
// "$ref": "Message"
// },
// "response": {
// "$ref": "Message"
// }
// }
}
// method id "chat.rooms.messages.create":
type RoomsMessagesCreateCall struct {
s *Service
parent string
message *Message
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates a message.
func (r *RoomsMessagesService) Create(parent string, message *Message) *RoomsMessagesCreateCall {
c := &RoomsMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
c.message = message
return c
}
// ThreadKey sets the optional parameter "threadKey": Opaque thread
// identifier string that can be specified to group messages
// into a single thread. If this is the first message with a given
// thread
// identifier, a new thread is created. Subsequent messages with the
// same
// thread identifier will be posted into the same thread. This relieves
// bots
// and webhooks from having to store the Hangouts Chat thread ID of a
// thread (created earlier by them) to post
// further updates to it.
//
// Has no effect if thread field,
// corresponding to an existing thread, is set in message.
func (c *RoomsMessagesCreateCall) ThreadKey(threadKey string) *RoomsMessagesCreateCall {
c.urlParams_.Set("threadKey", threadKey)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *RoomsMessagesCreateCall) Fields(s ...googleapi.Field) *RoomsMessagesCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *RoomsMessagesCreateCall) Context(ctx context.Context) *RoomsMessagesCreateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *RoomsMessagesCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *RoomsMessagesCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.message)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/messages")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "chat.rooms.messages.create" call.
// Exactly one of *Message or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Message.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *RoomsMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Message{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a message.",
// "flatPath": "v1/rooms/{roomsId}/messages",
// "httpMethod": "POST",
// "id": "chat.rooms.messages.create",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
// "description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
// "location": "path",
// "pattern": "^rooms/[^/]+$",
// "required": true,
// "type": "string"
// },
// "threadKey": {
// "description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/{+parent}/messages",
// "request": {
// "$ref": "Message"
// },
// "response": {
// "$ref": "Message"
// }
// }
}
// method id "chat.spaces.get":
type SpacesGetCall struct {
+3 -3
View File
@@ -6,7 +6,7 @@
"description": "Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/civic-information",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/sNrwy4GBJh0JDl02KcW1-1MdJOM\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/zoeGHlXpDBmwR1PBLw8yEsb1uUQ\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -51,12 +51,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
+2 -120
View File
@@ -1505,82 +1505,6 @@
]
}
}
},
"topics": {
"methods": {
"get": {
"description": "Returns a topic.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or topic, or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course or topic does not exist.",
"flatPath": "v1/courses/{courseId}/topics/{id}",
"httpMethod": "GET",
"id": "classroom.courses.topics.get",
"parameterOrder": [
"courseId",
"id"
],
"parameters": {
"courseId": {
"description": "Identifier of the course.",
"location": "path",
"required": true,
"type": "string"
},
"id": {
"description": "Identifier of the topic.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/courses/{courseId}/topics/{id}",
"response": {
"$ref": "Topic"
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.me.readonly",
"https://www.googleapis.com/auth/classroom.coursework.students",
"https://www.googleapis.com/auth/classroom.coursework.students.readonly"
]
},
"list": {
"description": "Returns the list of topics that the requester is permitted to view.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access\nthe requested course or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course does not exist.",
"flatPath": "v1/courses/{courseId}/topics",
"httpMethod": "GET",
"id": "classroom.courses.topics.list",
"parameterOrder": [
"courseId"
],
"parameters": {
"courseId": {
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"location": "path",
"required": true,
"type": "string"
},
"pageSize": {
"description": "Maximum number of items to return. Zero or unspecified indicates that the\nserver may assign a maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "nextPageToken\nvalue returned from a previous\nlist call,\nindicating that the subsequent page of results should be returned.\n\nThe list request\nmust be otherwise identical to the one that resulted in this token.",
"location": "query",
"type": "string"
}
},
"path": "v1/courses/{courseId}/topics",
"response": {
"$ref": "ListTopicResponse"
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.me.readonly",
"https://www.googleapis.com/auth/classroom.coursework.students",
"https://www.googleapis.com/auth/classroom.coursework.students.readonly"
]
}
}
}
}
},
@@ -2066,7 +1990,7 @@
}
}
},
"revision": "20180203",
"revision": "20180423",
"rootUrl": "https://classroom.googleapis.com/",
"schemas": {
"Announcement": {
@@ -2526,7 +2450,7 @@
"type": "integer"
},
"month": {
"description": "Month of year. Must be from 1 to 12.",
"description": "Month of year. Must be from 1 to 12, or 0 if specifying a date without a\nmonth.",
"format": "int32",
"type": "integer"
},
@@ -3004,24 +2928,6 @@
},
"type": "object"
},
"ListTopicResponse": {
"description": "Response when listing topics.",
"id": "ListTopicResponse",
"properties": {
"nextPageToken": {
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available.",
"type": "string"
},
"topic": {
"description": "Topic items that match the request.",
"items": {
"$ref": "Topic"
},
"type": "array"
}
},
"type": "object"
},
"Material": {
"description": "Material attached to course work.\n\nWhen creating attachments, setting the `form` field is not supported.",
"id": "Material",
@@ -3478,30 +3384,6 @@
},
"type": "object"
},
"Topic": {
"description": "Topic created by a teacher for the course",
"id": "Topic",
"properties": {
"courseId": {
"description": "Identifier of the course.\n\nRead-only.",
"type": "string"
},
"name": {
"description": "The name of the topic, generated by the user.\nLeading and trailing whitespaces, if any, will be trimmed. Also, multiple\nconsecutive whitespaces will be collapsed into one inside the name.\nTopic names are case sensitive, and must be no longer than 100 characters.",
"type": "string"
},
"topicId": {
"description": "Unique identifier for the topic.\n\nRead-only.",
"type": "string"
},
"updateTime": {
"description": "The time the topic was last updated by the system.\n\nRead-only.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"TurnInStudentSubmissionRequest": {
"description": "Request to turn in a student submission.",
"id": "TurnInStudentSubmissionRequest",
+3 -469
View File
@@ -147,7 +147,6 @@ func NewCoursesService(s *Service) *CoursesService {
rs.CourseWork = NewCoursesCourseWorkService(s)
rs.Students = NewCoursesStudentsService(s)
rs.Teachers = NewCoursesTeachersService(s)
rs.Topics = NewCoursesTopicsService(s)
return rs
}
@@ -163,8 +162,6 @@ type CoursesService struct {
Students *CoursesStudentsService
Teachers *CoursesTeachersService
Topics *CoursesTopicsService
}
func NewCoursesAliasesService(s *Service) *CoursesAliasesService {
@@ -224,15 +221,6 @@ type CoursesTeachersService struct {
s *Service
}
func NewCoursesTopicsService(s *Service) *CoursesTopicsService {
rs := &CoursesTopicsService{s: s}
return rs
}
type CoursesTopicsService struct {
s *Service
}
func NewInvitationsService(s *Service) *InvitationsService {
rs := &InvitationsService{s: s}
return rs
@@ -1153,7 +1141,9 @@ type Date struct {
// if specifying a year/month where the day is not significant.
Day int64 `json:"day,omitempty"`
// Month: Month of year. Must be from 1 to 12.
// Month: Month of year. Must be from 1 to 12, or 0 if specifying a date
// without a
// month.
Month int64 `json:"month,omitempty"`
// Year: Year of date. Must be from 1 to 9999, or 0 if specifying a date
@@ -2109,43 +2099,6 @@ func (s *ListTeachersResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListTopicResponse: Response when listing topics.
type ListTopicResponse struct {
// NextPageToken: Token identifying the next page of results to return.
// If empty, no further
// results are available.
NextPageToken string `json:"nextPageToken,omitempty"`
// Topic: Topic items that match the request.
Topic []*Topic `json:"topic,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListTopicResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListTopicResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Material: Material attached to course work.
//
// When creating attachments, setting the `form` field is not supported.
@@ -2994,60 +2947,6 @@ func (s *TimeOfDay) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Topic: Topic created by a teacher for the course
type Topic struct {
// CourseId: Identifier of the course.
//
// Read-only.
CourseId string `json:"courseId,omitempty"`
// Name: The name of the topic, generated by the user.
// Leading and trailing whitespaces, if any, will be trimmed. Also,
// multiple
// consecutive whitespaces will be collapsed into one inside the
// name.
// Topic names are case sensitive, and must be no longer than 100
// characters.
Name string `json:"name,omitempty"`
// TopicId: Unique identifier for the topic.
//
// Read-only.
TopicId string `json:"topicId,omitempty"`
// UpdateTime: The time the topic was last updated by the
// system.
//
// Read-only.
UpdateTime string `json:"updateTime,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CourseId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CourseId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Topic) MarshalJSON() ([]byte, error) {
type NoMethod Topic
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TurnInStudentSubmissionRequest: Request to turn in a student
// submission.
type TurnInStudentSubmissionRequest struct {
@@ -9510,371 +9409,6 @@ func (c *CoursesTeachersListCall) Pages(ctx context.Context, f func(*ListTeacher
}
}
// method id "classroom.courses.topics.get":
type CoursesTopicsGetCall struct {
s *Service
courseId string
id string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Returns a topic.
//
// This method returns the following error codes:
//
// * `PERMISSION_DENIED` if the requesting user is not permitted to
// access the
// requested course or topic, or for access errors.
// * `INVALID_ARGUMENT` if the request is malformed.
// * `NOT_FOUND` if the requested course or topic does not exist.
func (r *CoursesTopicsService) Get(courseId string, id string) *CoursesTopicsGetCall {
c := &CoursesTopicsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.courseId = courseId
c.id = id
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *CoursesTopicsGetCall) Fields(s ...googleapi.Field) *CoursesTopicsGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *CoursesTopicsGetCall) IfNoneMatch(entityTag string) *CoursesTopicsGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *CoursesTopicsGetCall) Context(ctx context.Context) *CoursesTopicsGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *CoursesTopicsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *CoursesTopicsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/courses/{courseId}/topics/{id}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"courseId": c.courseId,
"id": c.id,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "classroom.courses.topics.get" call.
// Exactly one of *Topic or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Topic.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *CoursesTopicsGetCall) Do(opts ...googleapi.CallOption) (*Topic, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Topic{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Returns a topic.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or topic, or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course or topic does not exist.",
// "flatPath": "v1/courses/{courseId}/topics/{id}",
// "httpMethod": "GET",
// "id": "classroom.courses.topics.get",
// "parameterOrder": [
// "courseId",
// "id"
// ],
// "parameters": {
// "courseId": {
// "description": "Identifier of the course.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "id": {
// "description": "Identifier of the topic.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/courses/{courseId}/topics/{id}",
// "response": {
// "$ref": "Topic"
// },
// "scopes": [
// "https://www.googleapis.com/auth/classroom.coursework.me",
// "https://www.googleapis.com/auth/classroom.coursework.me.readonly",
// "https://www.googleapis.com/auth/classroom.coursework.students",
// "https://www.googleapis.com/auth/classroom.coursework.students.readonly"
// ]
// }
}
// method id "classroom.courses.topics.list":
type CoursesTopicsListCall struct {
s *Service
courseId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Returns the list of topics that the requester is permitted to
// view.
//
// This method returns the following error codes:
//
// * `PERMISSION_DENIED` if the requesting user is not permitted to
// access
// the requested course or for access errors.
// * `INVALID_ARGUMENT` if the request is malformed.
// * `NOT_FOUND` if the requested course does not exist.
func (r *CoursesTopicsService) List(courseId string) *CoursesTopicsListCall {
c := &CoursesTopicsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.courseId = courseId
return c
}
// PageSize sets the optional parameter "pageSize": Maximum number of
// items to return. Zero or unspecified indicates that the
// server may assign a maximum.
//
// The server may return fewer than the specified number of results.
func (c *CoursesTopicsListCall) PageSize(pageSize int64) *CoursesTopicsListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken":
// nextPageToken
// value returned from a previous
// list call,
// indicating that the subsequent page of results should be
// returned.
//
// The list request
// must be otherwise identical to the one that resulted in this token.
func (c *CoursesTopicsListCall) PageToken(pageToken string) *CoursesTopicsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *CoursesTopicsListCall) Fields(s ...googleapi.Field) *CoursesTopicsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *CoursesTopicsListCall) IfNoneMatch(entityTag string) *CoursesTopicsListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *CoursesTopicsListCall) Context(ctx context.Context) *CoursesTopicsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *CoursesTopicsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *CoursesTopicsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/courses/{courseId}/topics")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"courseId": c.courseId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "classroom.courses.topics.list" call.
// Exactly one of *ListTopicResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListTopicResponse.ServerResponse.Header or (if a response was
// returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *CoursesTopicsListCall) Do(opts ...googleapi.CallOption) (*ListTopicResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListTopicResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Returns the list of topics that the requester is permitted to view.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access\nthe requested course or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course does not exist.",
// "flatPath": "v1/courses/{courseId}/topics",
// "httpMethod": "GET",
// "id": "classroom.courses.topics.list",
// "parameterOrder": [
// "courseId"
// ],
// "parameters": {
// "courseId": {
// "description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "pageSize": {
// "description": "Maximum number of items to return. Zero or unspecified indicates that the\nserver may assign a maximum.\n\nThe server may return fewer than the specified number of results.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "nextPageToken\nvalue returned from a previous\nlist call,\nindicating that the subsequent page of results should be returned.\n\nThe list request\nmust be otherwise identical to the one that resulted in this token.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/courses/{courseId}/topics",
// "response": {
// "$ref": "ListTopicResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/classroom.coursework.me",
// "https://www.googleapis.com/auth/classroom.coursework.me.readonly",
// "https://www.googleapis.com/auth/classroom.coursework.students",
// "https://www.googleapis.com/auth/classroom.coursework.students.readonly"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *CoursesTopicsListCall) Pages(ctx context.Context, f func(*ListTopicResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "classroom.invitations.accept":
type InvitationsAcceptCall struct {
+3 -3
View File
@@ -118,7 +118,7 @@
"billingAccounts": {
"methods": {
"create": {
"description": "Creates a billing account.\nThis method can only be used to create\n[billing subaccounts](https://cloud.google.com/billing/docs/concepts).\nWhen creating a subaccount, the current authenticated user must have the\n`billing.accounts.update` IAM permission on the master account, which is\ntypically given to billing account\n[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).\n\n\u003e This method is currently in\n\u003e [Beta](https://cloud.google.com/terms/launch-stages).",
"description": "Creates a billing account.\nThis method can only be used to create\n[billing subaccounts](https://cloud.google.com/billing/docs/concepts)\nfor GCP resellers.\nWhen creating a subaccount, the current authenticated user must have the\n`billing.accounts.update` IAM permission on the master account, which is\ntypically given to billing account\n[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).\n\n\u003e This method is currently in\n\u003e [Beta](https://cloud.google.com/terms/launch-stages).",
"flatPath": "v1/billingAccounts",
"httpMethod": "POST",
"id": "cloudbilling.billingAccounts.create",
@@ -493,7 +493,7 @@
}
}
},
"revision": "20180307",
"revision": "20180410",
"rootUrl": "https://cloudbilling.googleapis.com/",
"schemas": {
"AggregationInfo": {
@@ -539,7 +539,7 @@
"id": "AuditConfig",
"properties": {
"auditLogConfigs": {
"description": "The configuration for logging of each type of permission.\nNext ID: 4",
"description": "The configuration for logging of each type of permission.",
"items": {
"$ref": "AuditLogConfig"
},
+3 -3
View File
@@ -237,7 +237,6 @@ func (s *AggregationInfo) MarshalJSON() ([]byte, error) {
type AuditConfig struct {
// AuditLogConfigs: The configuration for logging of each type of
// permission.
// Next ID: 4
AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
// Service: Specifies a service that will be enabled for audit
@@ -1322,7 +1321,8 @@ type BillingAccountsCreateCall struct {
// Create: Creates a billing account.
// This method can only be used to create
// [billing
// subaccounts](https://cloud.google.com/billing/docs/concepts).
// subaccounts](https://cloud.google.com/billing/docs/concepts)
// for GCP resellers.
// When creating a subaccount, the current authenticated user must have
// the
// `billing.accounts.update` IAM permission on the master account, which
@@ -1423,7 +1423,7 @@ func (c *BillingAccountsCreateCall) Do(opts ...googleapi.CallOption) (*BillingAc
}
return ret, nil
// {
// "description": "Creates a billing account.\nThis method can only be used to create\n[billing subaccounts](https://cloud.google.com/billing/docs/concepts).\nWhen creating a subaccount, the current authenticated user must have the\n`billing.accounts.update` IAM permission on the master account, which is\ntypically given to billing account\n[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).\n\n\u003e This method is currently in\n\u003e [Beta](https://cloud.google.com/terms/launch-stages).",
// "description": "Creates a billing account.\nThis method can only be used to create\n[billing subaccounts](https://cloud.google.com/billing/docs/concepts)\nfor GCP resellers.\nWhen creating a subaccount, the current authenticated user must have the\n`billing.accounts.update` IAM permission on the master account, which is\ntypically given to billing account\n[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).\n\n\u003e This method is currently in\n\u003e [Beta](https://cloud.google.com/terms/launch-stages).",
// "flatPath": "v1/billingAccounts",
// "httpMethod": "POST",
// "id": "cloudbilling.billingAccounts.create",
+80 -5
View File
@@ -572,13 +572,75 @@
}
}
},
"revision": "20180315",
"revision": "20180406",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ArtifactObjects": {
"description": "Files in the workspace to upload to Cloud Storage upon successful\ncompletion of all build steps.",
"id": "ArtifactObjects",
"properties": {
"location": {
"description": "Cloud Storage bucket and optional object path, in the form\n\"gs://bucket/path/to/somewhere/\". (see [Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).\n\nFiles in the workspace matching any path pattern will be uploaded to\nCloud Storage with this location as a prefix.",
"type": "string"
},
"paths": {
"description": "Path globs used to match files in the build's workspace.",
"items": {
"type": "string"
},
"type": "array"
},
"timing": {
"$ref": "TimeSpan",
"description": "Stores timing information for pushing all artifact objects.\n@OutputOnly"
}
},
"type": "object"
},
"ArtifactResult": {
"description": "An artifact that was uploaded during a build. This\nis a single record in the artifact manifest JSON file.",
"id": "ArtifactResult",
"properties": {
"fileHash": {
"description": "The file hash of the artifact.",
"items": {
"$ref": "FileHashes"
},
"type": "array"
},
"location": {
"description": "The path of an artifact in a Google Cloud Storage bucket, with the\ngeneration number. For example,\n`gs://mybucket/path/to/output.jar#generation`.",
"type": "string"
}
},
"type": "object"
},
"Artifacts": {
"description": "Artifacts produced by a build that should be uploaded upon\nsuccessful completion of all build steps.",
"id": "Artifacts",
"properties": {
"images": {
"description": "A list of images to be pushed upon the successful completion of all build\nsteps.\n\nThe images will be pushed using the builder service account's credentials.\n\nThe digests of the pushed images will be stored in the Build resource's\nresults field.\n\nIf any of the images fail to be pushed, the build is marked FAILURE.",
"items": {
"type": "string"
},
"type": "array"
},
"objects": {
"$ref": "ArtifactObjects",
"description": "A list of objects to be uploaded to Cloud Storage upon successful\ncompletion of all build steps.\n\nFiles in the workspace matching specified paths globs will be uploaded to\nthe specified Cloud Storage location using the builder service account's\ncredentials.\n\nThe location and generation of the uploaded objects will be stored in the\nBuild resource's results field.\n\nIf any objects fail to be pushed, the build is marked FAILURE."
}
},
"type": "object"
},
"Build": {
"description": "A build resource in the Container Builder API.\n\nAt a high level, a `Build` describes where to find source code, how to build\nit (for example, the builder image to run on the source), and where to store\nthe built artifacts.\n\nFields can include the following variables, which will be expanded when the\nbuild is created:\n\n- $PROJECT_ID: the project ID of the build.\n- $BUILD_ID: the autogenerated ID of the build.\n- $REPO_NAME: the source repository name specified by RepoSource.\n- $BRANCH_NAME: the branch name specified by RepoSource.\n- $TAG_NAME: the tag name specified by RepoSource.\n- $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or\n resolved from the specified branch or tag.\n- $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.",
"id": "Build",
"properties": {
"artifacts": {
"$ref": "Artifacts",
"description": "Artifacts produced by the build that should be uploaded upon\nsuccessful completion of all build steps."
},
"buildTriggerId": {
"description": "The ID of the `BuildTrigger` that triggered this build, if it was\ntriggered automatically.\n@OutputOnly",
"type": "string"
@@ -772,12 +834,14 @@
"description": "Requested hash for SourceProvenance.",
"enumDescriptions": [
"No hash requested.",
"Use a sha256 hash."
"Use a sha256 hash.",
"Use a md5 hash."
],
"items": {
"enum": [
"NONE",
"SHA256"
"SHA256",
"MD5"
],
"type": "string"
},
@@ -991,11 +1055,13 @@
"description": "The type of hash that was performed.",
"enum": [
"NONE",
"SHA256"
"SHA256",
"MD5"
],
"enumDescriptions": [
"No hash requested.",
"Use a sha256 hash."
"Use a sha256 hash.",
"Use a md5 hash."
],
"type": "string"
},
@@ -1127,6 +1193,10 @@
"description": "Artifacts created by the build pipeline.",
"id": "Results",
"properties": {
"artifactManifest": {
"description": "Path to the artifact manifest. Only populated when artifacts are uploaded.",
"type": "string"
},
"buildStepImages": {
"description": "List of build step digests, in the order corresponding to build step\nindices.",
"items": {
@@ -1140,6 +1210,11 @@
"$ref": "BuiltImage"
},
"type": "array"
},
"numArtifacts": {
"description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.",
"format": "int64",
"type": "string"
}
},
"type": "object"
+165 -10
View File
@@ -120,6 +120,147 @@ type ProjectsTriggersService struct {
s *Service
}
// ArtifactObjects: Files in the workspace to upload to Cloud Storage
// upon successful
// completion of all build steps.
type ArtifactObjects struct {
// Location: Cloud Storage bucket and optional object path, in the
// form
// "gs://bucket/path/to/somewhere/". (see [Bucket
// Name
// Requirements](https://cloud.google.com/storage/docs/bucket-naming
// #requirements)).
//
// Files in the workspace matching any path pattern will be uploaded
// to
// Cloud Storage with this location as a prefix.
Location string `json:"location,omitempty"`
// Paths: Path globs used to match files in the build's workspace.
Paths []string `json:"paths,omitempty"`
// Timing: Stores timing information for pushing all artifact
// objects.
// @OutputOnly
Timing *TimeSpan `json:"timing,omitempty"`
// ForceSendFields is a list of field names (e.g. "Location") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Location") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ArtifactObjects) MarshalJSON() ([]byte, error) {
type NoMethod ArtifactObjects
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ArtifactResult: An artifact that was uploaded during a build. This
// is a single record in the artifact manifest JSON file.
type ArtifactResult struct {
// FileHash: The file hash of the artifact.
FileHash []*FileHashes `json:"fileHash,omitempty"`
// Location: The path of an artifact in a Google Cloud Storage bucket,
// with the
// generation number. For
// example,
// `gs://mybucket/path/to/output.jar#generation`.
Location string `json:"location,omitempty"`
// ForceSendFields is a list of field names (e.g. "FileHash") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FileHash") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ArtifactResult) MarshalJSON() ([]byte, error) {
type NoMethod ArtifactResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Artifacts: Artifacts produced by a build that should be uploaded
// upon
// successful completion of all build steps.
type Artifacts struct {
// Images: A list of images to be pushed upon the successful completion
// of all build
// steps.
//
// The images will be pushed using the builder service account's
// credentials.
//
// The digests of the pushed images will be stored in the Build
// resource's
// results field.
//
// If any of the images fail to be pushed, the build is marked FAILURE.
Images []string `json:"images,omitempty"`
// Objects: A list of objects to be uploaded to Cloud Storage upon
// successful
// completion of all build steps.
//
// Files in the workspace matching specified paths globs will be
// uploaded to
// the specified Cloud Storage location using the builder service
// account's
// credentials.
//
// The location and generation of the uploaded objects will be stored in
// the
// Build resource's results field.
//
// If any objects fail to be pushed, the build is marked FAILURE.
Objects *ArtifactObjects `json:"objects,omitempty"`
// ForceSendFields is a list of field names (e.g. "Images") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Images") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Artifacts) MarshalJSON() ([]byte, error) {
type NoMethod Artifacts
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Build: A build resource in the Container Builder API.
//
// At a high level, a `Build` describes where to find source code, how
@@ -142,6 +283,11 @@ type ProjectsTriggersService struct {
// resolved from the specified branch or tag.
// - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
type Build struct {
// Artifacts: Artifacts produced by the build that should be uploaded
// upon
// successful completion of all build steps.
Artifacts *Artifacts `json:"artifacts,omitempty"`
// BuildTriggerId: The ID of the `BuildTrigger` that triggered this
// build, if it was
// triggered automatically.
@@ -276,7 +422,7 @@ type Build struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BuildTriggerId") to
// ForceSendFields is a list of field names (e.g. "Artifacts") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -284,13 +430,12 @@ type Build struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BuildTriggerId") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
// NullFields is a list of field names (e.g. "Artifacts") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
@@ -378,6 +523,7 @@ type BuildOptions struct {
// Possible values:
// "NONE" - No hash requested.
// "SHA256" - Use a sha256 hash.
// "MD5" - Use a md5 hash.
SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"`
// SubstitutionOption: Option to specify behavior when there is an error
@@ -750,6 +896,7 @@ type Hash struct {
// Possible values:
// "NONE" - No hash requested.
// "SHA256" - Use a sha256 hash.
// "MD5" - Use a md5 hash.
Type string `json:"type,omitempty"`
// Value: The hash value.
@@ -1014,6 +1161,10 @@ func (s *RepoSource) MarshalJSON() ([]byte, error) {
// Results: Artifacts created by the build pipeline.
type Results struct {
// ArtifactManifest: Path to the artifact manifest. Only populated when
// artifacts are uploaded.
ArtifactManifest string `json:"artifactManifest,omitempty"`
// BuildStepImages: List of build step digests, in the order
// corresponding to build step
// indices.
@@ -1022,7 +1173,11 @@ type Results struct {
// Images: Container images that were built as a part of the build.
Images []*BuiltImage `json:"images,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildStepImages") to
// NumArtifacts: Number of artifacts uploaded. Only populated when
// artifacts are uploaded.
NumArtifacts int64 `json:"numArtifacts,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "ArtifactManifest") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -1030,7 +1185,7 @@ type Results struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BuildStepImages") to
// NullFields is a list of field names (e.g. "ArtifactManifest") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
+7 -3
View File
@@ -12,7 +12,7 @@
"baseUrl": "https://cloudfunctions.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Cloud Functions",
"description": "API for managing lightweight user-provided functions executed in response to events.",
"description": "Manages lightweight user-provided functions executed in response to events.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/functions",
"fullyEncodeReservedExpansion": true,
@@ -340,7 +340,7 @@
]
},
"generateUploadUrl": {
"description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls.\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-google-content-length-range: 0,104857600`",
"description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls.\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-goog-content-length-range: 0,104857600`",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrl",
"httpMethod": "POST",
"id": "cloudfunctions.projects.locations.functions.generateUploadUrl",
@@ -469,7 +469,7 @@
}
}
},
"revision": "20180120",
"revision": "20180416",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"CallFunctionRequest": {
@@ -735,6 +735,10 @@
"description": "A resource that represents Google Cloud Platform location.",
"id": "Location",
"properties": {
"displayName": {
"description": "The friendly name for this location, typically a nearby city name.\nFor example, \"Tokyo\".",
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
+12 -7
View File
@@ -681,6 +681,11 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
// Location: A resource that represents Google Cloud Platform location.
type Location struct {
// DisplayName: The friendly name for this location, typically a nearby
// city name.
// For example, "Tokyo".
DisplayName string `json:"displayName,omitempty"`
// Labels: Cross-service attributes for the location. For example
//
// {"cloud.googleapis.com/region": "us-east1"}
@@ -700,7 +705,7 @@ type Location struct {
// For example: "projects/example-project/locations/us-east1"
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Labels") to
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -708,10 +713,10 @@ type Location struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Labels") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@@ -2215,7 +2220,7 @@ type ProjectsLocationsFunctionsGenerateUploadUrlCall struct {
// specified:
//
// * `content-type: application/zip`
// * `x-google-content-length-range: 0,104857600`
// * `x-goog-content-length-range: 0,104857600`
func (r *ProjectsLocationsFunctionsService) GenerateUploadUrl(parent string, generateuploadurlrequest *GenerateUploadUrlRequest) *ProjectsLocationsFunctionsGenerateUploadUrlCall {
c := &ProjectsLocationsFunctionsGenerateUploadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -2309,7 +2314,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Do(opts ...googleapi.C
}
return ret, nil
// {
// "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls.\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-google-content-length-range: 0,104857600`",
// "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls.\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-goog-content-length-range: 0,104857600`",
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrl",
// "httpMethod": "POST",
// "id": "cloudfunctions.projects.locations.functions.generateUploadUrl",
@@ -12,7 +12,7 @@
"baseUrl": "https://cloudfunctions.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Cloud Functions",
"description": "API for managing lightweight user-provided functions executed in response to events.",
"description": "Manages lightweight user-provided functions executed in response to events.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/functions",
"fullyEncodeReservedExpansion": true,
@@ -340,7 +340,7 @@
]
},
"generateUploadUrl": {
"description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-google-content-length-range: 0,104857600`",
"description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-goog-content-length-range: 0,104857600`",
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrl",
"httpMethod": "POST",
"id": "cloudfunctions.projects.locations.functions.generateUploadUrl",
@@ -463,7 +463,7 @@
}
}
},
"revision": "20180120",
"revision": "20180416",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"CallFunctionRequest": {
@@ -731,6 +731,10 @@
"description": "A resource that represents Google Cloud Platform location.",
"id": "Location",
"properties": {
"displayName": {
"description": "The friendly name for this location, typically a nearby city name.\nFor example, \"Tokyo\".",
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
+12 -7
View File
@@ -681,6 +681,11 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
// Location: A resource that represents Google Cloud Platform location.
type Location struct {
// DisplayName: The friendly name for this location, typically a nearby
// city name.
// For example, "Tokyo".
DisplayName string `json:"displayName,omitempty"`
// Labels: Cross-service attributes for the location. For example
//
// {"cloud.googleapis.com/region": "us-east1"}
@@ -700,7 +705,7 @@ type Location struct {
// For example: "projects/example-project/locations/us-east1"
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Labels") to
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -708,10 +713,10 @@ type Location struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Labels") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@@ -2225,7 +2230,7 @@ type ProjectsLocationsFunctionsGenerateUploadUrlCall struct {
// specified:
//
// * `content-type: application/zip`
// * `x-google-content-length-range: 0,104857600`
// * `x-goog-content-length-range: 0,104857600`
func (r *ProjectsLocationsFunctionsService) GenerateUploadUrl(parent string, generateuploadurlrequest *GenerateUploadUrlRequest) *ProjectsLocationsFunctionsGenerateUploadUrlCall {
c := &ProjectsLocationsFunctionsGenerateUploadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -2319,7 +2324,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Do(opts ...googleapi.C
}
return ret, nil
// {
// "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-google-content-length-range: 0,104857600`",
// "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-goog-content-length-range: 0,104857600`",
// "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrl",
// "httpMethod": "POST",
// "id": "cloudfunctions.projects.locations.functions.generateUploadUrl",
+361 -4
View File
@@ -122,6 +122,70 @@
"resources": {
"locations": {
"resources": {
"groups": {
"resources": {
"devices": {
"methods": {
"list": {
"description": "List devices in a device registry.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/groups/{groupsId}/devices",
"httpMethod": "GET",
"id": "cloudiot.projects.locations.groups.devices.list",
"parameterOrder": [
"parent"
],
"parameters": {
"deviceIds": {
"description": "A list of device string identifiers. If empty, it will ignore this field.\nFor example, `['device0', 'device12']`. This field cannot hold more than\n10,000 entries.",
"location": "query",
"repeated": true,
"type": "string"
},
"deviceNumIds": {
"description": "A list of device numerical ids. If empty, it will ignore this field. This\nfield cannot hold more than 10,000 entries.",
"format": "uint64",
"location": "query",
"repeated": true,
"type": "string"
},
"fieldMask": {
"description": "The fields of the `Device` resource to be returned in the response. The\nfields `id`, and `num_id` are always returned by default, along with any\nother fields specified.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "The maximum number of devices to return in the response. If this value\nis zero, the service will select a default size. A call may return fewer\nobjects than requested, but if there is a non-empty `page_token`, it\nindicates that more entries are available.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The value returned by the last `ListDevicesResponse`; indicates\nthat this is a continuation of a prior `ListDevices` call, and\nthat the system should return the next page of data.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The device registry path. Required. For example,\n`projects/my-project/locations/us-central1/registries/my-registry`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/groups/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/devices",
"response": {
"$ref": "ListDevicesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloudiot"
]
}
}
}
}
},
"registries": {
"methods": {
"create": {
@@ -557,7 +621,7 @@
"type": "string"
},
"updateMask": {
"description": "Only updates the `device` fields indicated by this mask.\nThe field mask must not be empty, and it must not contain fields that\nare immutable or only set by the server.\nMutable top-level fields: `credentials`, `enabled_state`, and `metadata`",
"description": "Only updates the `device` fields indicated by this mask.\nThe field mask must not be empty, and it must not contain fields that\nare immutable or only set by the server.\nMutable top-level fields: `credentials`, `blocked`, and `metadata`",
"format": "google-fieldmask",
"location": "query",
"type": "string"
@@ -650,6 +714,299 @@
}
}
}
},
"groups": {
"methods": {
"getIamPolicy": {
"description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}:getIamPolicy",
"httpMethod": "POST",
"id": "cloudiot.projects.locations.registries.groups.getIamPolicy",
"parameterOrder": [
"resource"
],
"parameters": {
"resource": {
"description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+resource}:getIamPolicy",
"request": {
"$ref": "GetIamPolicyRequest"
},
"response": {
"$ref": "Policy"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloudiot"
]
},
"setIamPolicy": {
"description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}:setIamPolicy",
"httpMethod": "POST",
"id": "cloudiot.projects.locations.registries.groups.setIamPolicy",
"parameterOrder": [
"resource"
],
"parameters": {
"resource": {
"description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+resource}:setIamPolicy",
"request": {
"$ref": "SetIamPolicyRequest"
},
"response": {
"$ref": "Policy"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloudiot"
]
},
"testIamPermissions": {
"description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}:testIamPermissions",
"httpMethod": "POST",
"id": "cloudiot.projects.locations.registries.groups.testIamPermissions",
"parameterOrder": [
"resource"
],
"parameters": {
"resource": {
"description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+resource}:testIamPermissions",
"request": {
"$ref": "TestIamPermissionsRequest"
},
"response": {
"$ref": "TestIamPermissionsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloudiot"
]
}
},
"resources": {
"devices": {
"methods": {
"delete": {
"description": "Deletes a device.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}/devices/{devicesId}",
"httpMethod": "DELETE",
"id": "cloudiot.projects.locations.registries.groups.devices.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the device. For example,\n`projects/p0/locations/us-central1/registries/registry0/devices/device0` or\n`projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloudiot"
]
},
"get": {
"description": "Gets details about a device.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}/devices/{devicesId}",
"httpMethod": "GET",
"id": "cloudiot.projects.locations.registries.groups.devices.get",
"parameterOrder": [
"name"
],
"parameters": {
"fieldMask": {
"description": "The fields of the `Device` resource to be returned in the response. If the\nfield mask is unset or empty, all fields are returned.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
},
"name": {
"description": "The name of the device. For example,\n`projects/p0/locations/us-central1/registries/registry0/devices/device0` or\n`projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Device"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloudiot"
]
},
"modifyCloudToDeviceConfig": {
"description": "Modifies the configuration for the device, which is eventually sent from\nthe Cloud IoT Core servers. Returns the modified configuration version and\nits metadata.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}/devices/{devicesId}:modifyCloudToDeviceConfig",
"httpMethod": "POST",
"id": "cloudiot.projects.locations.registries.groups.devices.modifyCloudToDeviceConfig",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the device. For example,\n`projects/p0/locations/us-central1/registries/registry0/devices/device0` or\n`projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:modifyCloudToDeviceConfig",
"request": {
"$ref": "ModifyCloudToDeviceConfigRequest"
},
"response": {
"$ref": "DeviceConfig"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloudiot"
]
},
"patch": {
"description": "Updates a device.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}/devices/{devicesId}",
"httpMethod": "PATCH",
"id": "cloudiot.projects.locations.registries.groups.devices.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The resource path name. For example,\n`projects/p1/locations/us-central1/registries/registry0/devices/dev0` or\n`projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`.\nWhen `name` is populated as a response from the service, it always ends\nin the device numeric ID.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$",
"required": true,
"type": "string"
},
"updateMask": {
"description": "Only updates the `device` fields indicated by this mask.\nThe field mask must not be empty, and it must not contain fields that\nare immutable or only set by the server.\nMutable top-level fields: `credentials`, `blocked`, and `metadata`",
"format": "google-fieldmask",
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}",
"request": {
"$ref": "Device"
},
"response": {
"$ref": "Device"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloudiot"
]
}
},
"resources": {
"configVersions": {
"methods": {
"list": {
"description": "Lists the last few versions of the device configuration in descending\norder (i.e.: newest first).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}/devices/{devicesId}/configVersions",
"httpMethod": "GET",
"id": "cloudiot.projects.locations.registries.groups.devices.configVersions.list",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the device. For example,\n`projects/p0/locations/us-central1/registries/registry0/devices/device0` or\n`projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$",
"required": true,
"type": "string"
},
"numVersions": {
"description": "The number of versions to list. Versions are listed in decreasing order of\nthe version number. The maximum number of versions retained is 10. If this\nvalue is zero, it will return all the versions available.",
"format": "int32",
"location": "query",
"type": "integer"
}
},
"path": "v1/{+name}/configVersions",
"response": {
"$ref": "ListDeviceConfigVersionsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloudiot"
]
}
}
},
"states": {
"methods": {
"list": {
"description": "Lists the last few versions of the device state in descending order (i.e.:\nnewest first).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}/devices/{devicesId}/states",
"httpMethod": "GET",
"id": "cloudiot.projects.locations.registries.groups.devices.states.list",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the device. For example,\n`projects/p0/locations/us-central1/registries/registry0/devices/device0` or\n`projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$",
"required": true,
"type": "string"
},
"numStates": {
"description": "The number of states to list. States are listed in descending order of\nupdate time. The maximum number of states retained is 10. If this\nvalue is zero, it will return all the states available.",
"format": "int32",
"location": "query",
"type": "integer"
}
},
"path": "v1/{+name}/states",
"response": {
"$ref": "ListDeviceStatesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloudiot"
]
}
}
}
}
}
}
}
}
}
@@ -658,7 +1015,7 @@
}
}
},
"revision": "20180227",
"revision": "20180424",
"rootUrl": "https://cloudiot.googleapis.com/",
"schemas": {
"Binding": {
@@ -666,7 +1023,7 @@
"id": "Binding",
"properties": {
"members": {
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"items": {
"type": "string"
},
@@ -1011,7 +1368,7 @@
"type": "object"
},
"Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\",\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**JSON Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\n**YAML Example**\n\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-other-app@appspot.gserviceaccount.com\n role: roles/owner\n - members:\n - user:sean@example.com\n role: roles/viewer\n\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy",
"properties": {
"bindings": {
File diff suppressed because it is too large Load Diff
+6 -6
View File
@@ -120,7 +120,7 @@
"locations": {
"methods": {
"get": {
"description": "Get information about a location.",
"description": "Gets information about a location.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
"httpMethod": "GET",
"id": "cloudkms.projects.locations.get",
@@ -855,7 +855,7 @@
}
}
},
"revision": "20180303",
"revision": "20180425",
"rootUrl": "https://cloudkms.googleapis.com/",
"schemas": {
"AuditConfig": {
@@ -863,7 +863,7 @@
"id": "AuditConfig",
"properties": {
"auditLogConfigs": {
"description": "The configuration for logging of each type of permission.\nNext ID: 4",
"description": "The configuration for logging of each type of permission.",
"items": {
"$ref": "AuditLogConfig"
},
@@ -911,7 +911,7 @@
"id": "Binding",
"properties": {
"members": {
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"items": {
"type": "string"
},
@@ -1223,7 +1223,7 @@
"type": "object"
},
"Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\",\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**JSON Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\n**YAML Example**\n\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-other-app@appspot.gserviceaccount.com\n role: roles/owner\n - members:\n - user:sean@example.com\n role: roles/viewer\n\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy",
"properties": {
"auditConfigs": {
@@ -1316,7 +1316,7 @@
}
},
"servicePath": "",
"title": "Google Cloud Key Management Service (KMS) API",
"title": "Cloud Key Management Service (KMS) API",
"version": "v1",
"version_module": true
}
+21 -8
View File
@@ -1,4 +1,4 @@
// Package cloudkms provides access to the Google Cloud Key Management Service (KMS) API.
// Package cloudkms provides access to the Cloud Key Management Service (KMS) API.
//
// See https://cloud.google.com/kms/
//
@@ -192,7 +192,6 @@ type ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsService struct {
type AuditConfig struct {
// AuditLogConfigs: The configuration for logging of each type of
// permission.
// Next ID: 4
AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
// Service: Specifies a service that will be enabled for audit
@@ -303,7 +302,7 @@ type Binding struct {
//
// * `user:{emailid}`: An email address that represents a specific
// Google
// account. For example, `alice@gmail.com` or `joe@example.com`.
// account. For example, `alice@gmail.com` .
//
//
// * `serviceAccount:{emailid}`: An email address that represents a
@@ -937,7 +936,7 @@ func (s *Location) MarshalJSON() ([]byte, error) {
// specify access control policies for Cloud Platform resources.
//
//
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list
// A `Policy` consists of a list of `bindings`. A `binding` binds a list
// of
// `members` to a `role`, where the members can be user accounts, Google
// groups,
@@ -945,7 +944,7 @@ func (s *Location) MarshalJSON() ([]byte, error) {
// permissions
// defined by IAM.
//
// **Example**
// **JSON Example**
//
// {
// "bindings": [
@@ -956,7 +955,7 @@ func (s *Location) MarshalJSON() ([]byte, error) {
// "group:admins@example.com",
// "domain:google.com",
//
// "serviceAccount:my-other-app@appspot.gserviceaccount.com",
// "serviceAccount:my-other-app@appspot.gserviceaccount.com"
// ]
// },
// {
@@ -966,6 +965,20 @@ func (s *Location) MarshalJSON() ([]byte, error) {
// ]
// }
//
// **YAML Example**
//
// bindings:
// - members:
// - user:mike@example.com
// - group:admins@example.com
// - domain:google.com
// - serviceAccount:my-other-app@appspot.gserviceaccount.com
// role: roles/owner
// - members:
// - user:sean@example.com
// role: roles/viewer
//
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
@@ -1186,7 +1199,7 @@ type ProjectsLocationsGetCall struct {
header_ http.Header
}
// Get: Get information about a location.
// Get: Gets information about a location.
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
@@ -1287,7 +1300,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,
}
return ret, nil
// {
// "description": "Get information about a location.",
// "description": "Gets information about a location.",
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
// "httpMethod": "GET",
// "id": "cloudkms.projects.locations.get",
@@ -1016,7 +1016,7 @@
]
},
"setIamPolicy": {
"description": "Sets the IAM access control policy for the specified Project. Overwrites\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`;\nthey must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ This method will replace the existing policy, and cannot be used to\nappend additional IAM settings.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.setIamPolicy` on the project",
"description": "Sets the IAM access control policy for the specified Project. Overwrites\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ You can only grant ownership of a project to a member by using the\nGCP Console. Inviting a member will deliver an invitation email that\nthey must accept. An invitation email is not generated if you are\ngranting a role other than owner, or if both the member you are inviting\nand the project are part of your organization.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ This method will replace the existing policy, and cannot be used to\nappend additional IAM settings.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.setIamPolicy` on the project",
"flatPath": "v1/projects/{resource}:setIamPolicy",
"httpMethod": "POST",
"id": "cloudresourcemanager.projects.setIamPolicy",
@@ -1155,7 +1155,7 @@
}
}
},
"revision": "20180315",
"revision": "20180418",
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
"schemas": {
"Ancestor": {
@@ -1174,7 +1174,7 @@
"id": "AuditConfig",
"properties": {
"auditLogConfigs": {
"description": "The configuration for logging of each type of permission.\nNext ID: 4",
"description": "The configuration for logging of each type of permission.",
"items": {
"$ref": "AuditLogConfig"
},
@@ -1222,7 +1222,7 @@
"id": "Binding",
"properties": {
"members": {
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"items": {
"type": "string"
},
@@ -1399,7 +1399,7 @@
"id": "GetAncestryResponse",
"properties": {
"ancestor": {
"description": "Ancestors are ordered from bottom to top of the resource hierarchy. The\nfirst ancestor is the project itself, followed by the project's parent,\netc.",
"description": "Ancestors are ordered from bottom to top of the resource hierarchy. The\nfirst ancestor is the project itself, followed by the project's parent,\netc..",
"items": {
"$ref": "Ancestor"
},
@@ -1752,7 +1752,7 @@
"type": "object"
},
"Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\",\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**JSON Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\n**YAML Example**\n\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-other-app@appspot.gserviceaccount.com\n role: roles/owner\n - members:\n - user:sean@example.com\n role: roles/viewer\n\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy",
"properties": {
"auditConfigs": {
@@ -223,7 +223,6 @@ func (s *Ancestor) MarshalJSON() ([]byte, error) {
type AuditConfig struct {
// AuditLogConfigs: The configuration for logging of each type of
// permission.
// Next ID: 4
AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
// Service: Specifies a service that will be enabled for audit
@@ -334,7 +333,7 @@ type Binding struct {
//
// * `user:{emailid}`: An email address that represents a specific
// Google
// account. For example, `alice@gmail.com` or `joe@example.com`.
// account. For example, `alice@gmail.com` .
//
//
// * `serviceAccount:{emailid}`: An email address that represents a
@@ -732,7 +731,7 @@ type GetAncestryResponse struct {
// hierarchy. The
// first ancestor is the project itself, followed by the project's
// parent,
// etc.
// etc..
Ancestor []*Ancestor `json:"ancestor,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -1646,7 +1645,7 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
// specify access control policies for Cloud Platform resources.
//
//
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list
// A `Policy` consists of a list of `bindings`. A `binding` binds a list
// of
// `members` to a `role`, where the members can be user accounts, Google
// groups,
@@ -1654,7 +1653,7 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
// permissions
// defined by IAM.
//
// **Example**
// **JSON Example**
//
// {
// "bindings": [
@@ -1665,7 +1664,7 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
// "group:admins@example.com",
// "domain:google.com",
//
// "serviceAccount:my-other-app@appspot.gserviceaccount.com",
// "serviceAccount:my-other-app@appspot.gserviceaccount.com"
// ]
// },
// {
@@ -1675,6 +1674,20 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
// ]
// }
//
// **YAML Example**
//
// bindings:
// - members:
// - user:mike@example.com
// - group:admins@example.com
// - domain:google.com
// - serviceAccount:my-other-app@appspot.gserviceaccount.com
// role: roles/owner
// - members:
// - user:sean@example.com
// role: roles/viewer
//
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
@@ -7137,10 +7150,15 @@ type ProjectsSetIamPolicyCall struct {
// must
// explicitly accept the invitation.
//
// + Invitations to grant the owner role cannot be sent
// using
// `setIamPolicy()`;
// they must be sent only using the Cloud Platform Console.
// + You can only grant ownership of a project to a member by using
// the
// GCP Console. Inviting a member will deliver an invitation email
// that
// they must accept. An invitation email is not generated if you
// are
// granting a role other than owner, or if both the member you are
// inviting
// and the project are part of your organization.
//
// + Membership changes that leave the project without any owners that
// have
@@ -7268,7 +7286,7 @@ func (c *ProjectsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, er
}
return ret, nil
// {
// "description": "Sets the IAM access control policy for the specified Project. Overwrites\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`;\nthey must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ This method will replace the existing policy, and cannot be used to\nappend additional IAM settings.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.setIamPolicy` on the project",
// "description": "Sets the IAM access control policy for the specified Project. Overwrites\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ You can only grant ownership of a project to a member by using the\nGCP Console. Inviting a member will deliver an invitation email that\nthey must accept. An invitation email is not generated if you are\ngranting a role other than owner, or if both the member you are inviting\nand the project are part of your organization.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ This method will replace the existing policy, and cannot be used to\nappend additional IAM settings.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.setIamPolicy` on the project",
// "flatPath": "v1/projects/{resource}:setIamPolicy",
// "httpMethod": "POST",
// "id": "cloudresourcemanager.projects.setIamPolicy",
@@ -576,7 +576,7 @@
}
}
},
"revision": "20180315",
"revision": "20180418",
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
"schemas": {
"Ancestor": {
@@ -595,7 +595,7 @@
"id": "AuditConfig",
"properties": {
"auditLogConfigs": {
"description": "The configuration for logging of each type of permission.\nNext ID: 4",
"description": "The configuration for logging of each type of permission.",
"items": {
"$ref": "AuditLogConfig"
},
@@ -643,7 +643,7 @@
"id": "Binding",
"properties": {
"members": {
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"items": {
"type": "string"
},
@@ -846,7 +846,7 @@
"type": "object"
},
"Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\",\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**JSON Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\n**YAML Example**\n\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-other-app@appspot.gserviceaccount.com\n role: roles/owner\n - members:\n - user:sean@example.com\n role: roles/viewer\n\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy",
"properties": {
"auditConfigs": {
@@ -187,7 +187,6 @@ func (s *Ancestor) MarshalJSON() ([]byte, error) {
type AuditConfig struct {
// AuditLogConfigs: The configuration for logging of each type of
// permission.
// Next ID: 4
AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
// Service: Specifies a service that will be enabled for audit
@@ -298,7 +297,7 @@ type Binding struct {
//
// * `user:{emailid}`: An email address that represents a specific
// Google
// account. For example, `alice@gmail.com` or `joe@example.com`.
// account. For example, `alice@gmail.com` .
//
//
// * `serviceAccount:{emailid}`: An email address that represents a
@@ -735,7 +734,7 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
// specify access control policies for Cloud Platform resources.
//
//
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list
// A `Policy` consists of a list of `bindings`. A `binding` binds a list
// of
// `members` to a `role`, where the members can be user accounts, Google
// groups,
@@ -743,7 +742,7 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
// permissions
// defined by IAM.
//
// **Example**
// **JSON Example**
//
// {
// "bindings": [
@@ -754,7 +753,7 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
// "group:admins@example.com",
// "domain:google.com",
//
// "serviceAccount:my-other-app@appspot.gserviceaccount.com",
// "serviceAccount:my-other-app@appspot.gserviceaccount.com"
// ]
// },
// {
@@ -764,6 +763,20 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
// ]
// }
//
// **YAML Example**
//
// bindings:
// - members:
// - user:mike@example.com
// - group:admins@example.com
// - domain:google.com
// - serviceAccount:my-other-app@appspot.gserviceaccount.com
// role: roles/owner
// - members:
// - user:sean@example.com
// role: roles/viewer
//
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
@@ -430,7 +430,7 @@
}
}
},
"revision": "20180315",
"revision": "20180418",
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
"schemas": {
"AuditConfig": {
@@ -438,7 +438,7 @@
"id": "AuditConfig",
"properties": {
"auditLogConfigs": {
"description": "The configuration for logging of each type of permission.\nNext ID: 4",
"description": "The configuration for logging of each type of permission.",
"items": {
"$ref": "AuditLogConfig"
},
@@ -486,7 +486,7 @@
"id": "Binding",
"properties": {
"members": {
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"items": {
"type": "string"
},
@@ -676,7 +676,7 @@
"type": "object"
},
"Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\",\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**JSON Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\n**YAML Example**\n\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-other-app@appspot.gserviceaccount.com\n role: roles/owner\n - members:\n - user:sean@example.com\n role: roles/viewer\n\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy",
"properties": {
"auditConfigs": {
@@ -147,7 +147,6 @@ type FoldersService struct {
type AuditConfig struct {
// AuditLogConfigs: The configuration for logging of each type of
// permission.
// Next ID: 4
AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
// Service: Specifies a service that will be enabled for audit
@@ -258,7 +257,7 @@ type Binding struct {
//
// * `user:{emailid}`: An email address that represents a specific
// Google
// account. For example, `alice@gmail.com` or `joe@example.com`.
// account. For example, `alice@gmail.com` .
//
//
// * `serviceAccount:{emailid}`: An email address that represents a
@@ -635,7 +634,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
// specify access control policies for Cloud Platform resources.
//
//
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list
// A `Policy` consists of a list of `bindings`. A `binding` binds a list
// of
// `members` to a `role`, where the members can be user accounts, Google
// groups,
@@ -643,7 +642,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
// permissions
// defined by IAM.
//
// **Example**
// **JSON Example**
//
// {
// "bindings": [
@@ -654,7 +653,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
// "group:admins@example.com",
// "domain:google.com",
//
// "serviceAccount:my-other-app@appspot.gserviceaccount.com",
// "serviceAccount:my-other-app@appspot.gserviceaccount.com"
// ]
// },
// {
@@ -664,6 +663,20 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
// ]
// }
//
// **YAML Example**
//
// bindings:
// - members:
// - user:mike@example.com
// - group:admins@example.com
// - domain:google.com
// - serviceAccount:my-other-app@appspot.gserviceaccount.com
// role: roles/owner
// - members:
// - user:sean@example.com
// role: roles/viewer
//
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
@@ -430,7 +430,7 @@
}
}
},
"revision": "20180315",
"revision": "20180418",
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
"schemas": {
"AuditConfig": {
@@ -438,7 +438,7 @@
"id": "AuditConfig",
"properties": {
"auditLogConfigs": {
"description": "The configuration for logging of each type of permission.\nNext ID: 4",
"description": "The configuration for logging of each type of permission.",
"items": {
"$ref": "AuditLogConfig"
},
@@ -486,7 +486,7 @@
"id": "Binding",
"properties": {
"members": {
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"items": {
"type": "string"
},
@@ -676,7 +676,7 @@
"type": "object"
},
"Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\",\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**JSON Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\n**YAML Example**\n\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-other-app@appspot.gserviceaccount.com\n role: roles/owner\n - members:\n - user:sean@example.com\n role: roles/viewer\n\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy",
"properties": {
"auditConfigs": {
@@ -147,7 +147,6 @@ type FoldersService struct {
type AuditConfig struct {
// AuditLogConfigs: The configuration for logging of each type of
// permission.
// Next ID: 4
AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
// Service: Specifies a service that will be enabled for audit
@@ -258,7 +257,7 @@ type Binding struct {
//
// * `user:{emailid}`: An email address that represents a specific
// Google
// account. For example, `alice@gmail.com` or `joe@example.com`.
// account. For example, `alice@gmail.com` .
//
//
// * `serviceAccount:{emailid}`: An email address that represents a
@@ -635,7 +634,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
// specify access control policies for Cloud Platform resources.
//
//
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list
// A `Policy` consists of a list of `bindings`. A `binding` binds a list
// of
// `members` to a `role`, where the members can be user accounts, Google
// groups,
@@ -643,7 +642,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
// permissions
// defined by IAM.
//
// **Example**
// **JSON Example**
//
// {
// "bindings": [
@@ -654,7 +653,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
// "group:admins@example.com",
// "domain:google.com",
//
// "serviceAccount:my-other-app@appspot.gserviceaccount.com",
// "serviceAccount:my-other-app@appspot.gserviceaccount.com"
// ]
// },
// {
@@ -664,6 +663,20 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
// ]
// }
//
// **YAML Example**
//
// bindings:
// - members:
// - user:mike@example.com
// - group:admins@example.com
// - domain:google.com
// - serviceAccount:my-other-app@appspot.gserviceaccount.com
// role: roles/owner
// - members:
// - user:sean@example.com
// role: roles/viewer
//
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
+8 -8
View File
@@ -120,7 +120,7 @@
"locations": {
"methods": {
"get": {
"description": "Get information about a location.",
"description": "Gets information about a location.",
"flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}",
"httpMethod": "GET",
"id": "cloudtasks.projects.locations.get",
@@ -766,7 +766,7 @@
]
},
"run": {
"description": "Forces a task to run now.\n\nThis command is meant to be used for manual debugging. For\nexample, RunTask can be used to retry a failed\ntask after a fix has been made or to manually force a task to be\ndispatched now.\n\nWhen this method is called, Cloud Tasks will dispatch the task to its\ntarget, even if the queue is PAUSED.\n\nThe dispatched task is returned. That is, the task that is returned\ncontains the status after the task is dispatched but\nbefore the task is received by its target.\n\nIf Cloud Tasks receives a successful response from the task's\nhandler, then the task will be deleted; otherwise the task's\nschedule_time will be reset to the time that\nRunTask was called plus the retry delay specified\nin the queue and task's RetryConfig.\n\nRunTask returns\nNOT_FOUND when it is called on a\ntask that has already succeeded or permanently\nfailed. FAILED_PRECONDITION\nis returned when RunTask is called on task\nthat is dispatched or already running.\n\nRunTask cannot be called on\npull tasks.",
"description": "Forces a task to run now.\n\nWhen this method is called, Cloud Tasks will dispatch the task, even if\nthe task is already running, the queue has reached its RateLimits or\nis PAUSED.\n\nThis command is meant to be used for manual debugging. For\nexample, RunTask can be used to retry a failed\ntask after a fix has been made or to manually force a task to be\ndispatched now.\n\nThe dispatched task is returned. That is, the task that is returned\ncontains the status after the task is dispatched but\nbefore the task is received by its target.\n\nIf Cloud Tasks receives a successful response from the task's\ntarget, then the task will be deleted; otherwise the task's\nschedule_time will be reset to the time that\nRunTask was called plus the retry delay specified\nin the queue's RetryConfig.\n\nRunTask returns\nNOT_FOUND when it is called on a\ntask that has already succeeded or permanently failed.\n\nRunTask cannot be called on a\npull task.",
"flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks/{tasksId}:run",
"httpMethod": "POST",
"id": "cloudtasks.projects.locations.queues.tasks.run",
@@ -802,7 +802,7 @@
}
}
},
"revision": "20180302",
"revision": "20180503",
"rootUrl": "https://cloudtasks.googleapis.com/",
"schemas": {
"AcknowledgeTaskRequest": {
@@ -929,7 +929,7 @@
"id": "Binding",
"properties": {
"members": {
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"items": {
"type": "string"
},
@@ -1010,7 +1010,7 @@
"id": "LeaseTasksRequest",
"properties": {
"filter": {
"description": "`filter` can be used to specify a subset of tasks to lease.\n\nWhen `filter` is set to `tag=\u003cmy-tag\u003e` then the\nresponse will contain only tasks whose\ntag is equal to `\u003cmy-tag\u003e`. `\u003cmy-tag\u003e` must be\nless than 500 characters.\n\nWhen `filter` is set to `tag_function=oldest_tag()`, only tasks which have\nthe same tag as the task with the oldest schedule_time will be returned.\n\nGrammar Syntax:\n\n* `filter = \"tag=\" tag | \"tag_function=\" function`\n\n* `tag = string`\n\n* `function = \"oldest_tag()\"`\n\nThe `oldest_tag()` function returns tasks which have the same tag as the\noldest task (ordered by schedule time).\n\nSDK compatibility: Although the SDK allows tags to be either\nstring or\n[bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),\nonly UTF-8 encoded tags can be used in Cloud Tasks. Tag which\naren't UTF-8 encoded can't be used in the\nfilter and the task's\ntag will be displayed as empty in Cloud Tasks.",
"description": "`filter` can be used to specify a subset of tasks to lease.\n\nWhen `filter` is set to `tag=\u003cmy-tag\u003e` then the\nresponse will contain only tasks whose\ntag is equal to `\u003cmy-tag\u003e`. `\u003cmy-tag\u003e` must be\nless than 500 characters.\n\nWhen `filter` is set to `tag_function=oldest_tag()`, only tasks which have\nthe same tag as the task with the oldest\nschedule_time will be returned.\n\nGrammar Syntax:\n\n* `filter = \"tag=\" tag | \"tag_function=\" function`\n\n* `tag = string`\n\n* `function = \"oldest_tag()\"`\n\nThe `oldest_tag()` function returns tasks which have the same tag as the\noldest task (ordered by schedule time).\n\nSDK compatibility: Although the SDK allows tags to be either\nstring or\n[bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),\nonly UTF-8 encoded tags can be used in Cloud Tasks. Tag which\naren't UTF-8 encoded can't be used in the\nfilter and the task's\ntag will be displayed as empty in Cloud Tasks.",
"type": "string"
},
"leaseDuration": {
@@ -1149,7 +1149,7 @@
"type": "object"
},
"Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\",\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**JSON Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\n**YAML Example**\n\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-other-app@appspot.gserviceaccount.com\n role: roles/owner\n - members:\n - user:sean@example.com\n role: roles/viewer\n\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy",
"properties": {
"bindings": {
@@ -1249,7 +1249,7 @@
"type": "object"
},
"RateLimits": {
"description": "Rate limits.\n\nThis message determines the maximum rate that tasks can be dispatched by a\nqueue, regardless of whether the dispatch is a first task attempt or a retry.",
"description": "Rate limits.\n\nThis message determines the maximum rate that tasks can be dispatched by a\nqueue, regardless of whether the dispatch is a first task attempt or a retry.\n\nNote: The debugging command, RunTask, will run a task\neven if the queue has reached its RateLimits.",
"id": "RateLimits",
"properties": {
"maxBurstSize": {
@@ -1258,7 +1258,7 @@
"type": "integer"
},
"maxConcurrentTasks": {
"description": "The maximum number of concurrent tasks that Cloud Tasks allows\nto be dispatched for this queue. After this threshold has been\nreached, Cloud Tasks stops dispatching tasks until the number of\nconcurrent requests decreases.\n\nIf unspecified when the queue is created, Cloud Tasks will pick the\ndefault.\n\n\nThe maximum allowed value is 5,000. -1 indicates no limit.\n\nThis field is output only for\n[pull queues](google.cloud.tasks.v2beta2.PullTarget).\n\n\nThis field has the same meaning as\n[max_concurrent_requests in queue.yaml/xml](/appengine/docs/standard/python/config/queueref#max_concurrent_requests).",
"description": "The maximum number of concurrent tasks that Cloud Tasks allows\nto be dispatched for this queue. After this threshold has been\nreached, Cloud Tasks stops dispatching tasks until the number of\nconcurrent requests decreases.\n\nIf unspecified when the queue is created, Cloud Tasks will pick the\ndefault.\n\n\nThe maximum allowed value is 5,000.\n\nThis field is output only for\n[pull queues](google.cloud.tasks.v2beta2.PullTarget) and always -1, which\nindicates no limit. No other queue types can have `max_concurrent_tasks`\nset to -1.\n\n\nThis field has the same meaning as\n[max_concurrent_requests in queue.yaml/xml](/appengine/docs/standard/python/config/queueref#max_concurrent_requests).",
"format": "int32",
"type": "integer"
},
+44 -25
View File
@@ -630,7 +630,7 @@ type Binding struct {
//
// * `user:{emailid}`: An email address that represents a specific
// Google
// account. For example, `alice@gmail.com` or `joe@example.com`.
// account. For example, `alice@gmail.com` .
//
//
// * `serviceAccount:{emailid}`: An email address that represents a
@@ -896,8 +896,8 @@ type LeaseTasksRequest struct {
//
// When `filter` is set to `tag_function=oldest_tag()`, only tasks which
// have
// the same tag as the task with the oldest schedule_time will be
// returned.
// the same tag as the task with the oldest
// schedule_time will be returned.
//
// Grammar Syntax:
//
@@ -1216,7 +1216,7 @@ type PauseQueueRequest struct {
// specify access control policies for Cloud Platform resources.
//
//
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list
// A `Policy` consists of a list of `bindings`. A `binding` binds a list
// of
// `members` to a `role`, where the members can be user accounts, Google
// groups,
@@ -1224,7 +1224,7 @@ type PauseQueueRequest struct {
// permissions
// defined by IAM.
//
// **Example**
// **JSON Example**
//
// {
// "bindings": [
@@ -1235,7 +1235,7 @@ type PauseQueueRequest struct {
// "group:admins@example.com",
// "domain:google.com",
//
// "serviceAccount:my-other-app@appspot.gserviceaccount.com",
// "serviceAccount:my-other-app@appspot.gserviceaccount.com"
// ]
// },
// {
@@ -1245,6 +1245,20 @@ type PauseQueueRequest struct {
// ]
// }
//
// **YAML Example**
//
// bindings:
// - members:
// - user:mike@example.com
// - group:admins@example.com
// - domain:google.com
// - serviceAccount:my-other-app@appspot.gserviceaccount.com
// role: roles/owner
// - members:
// - user:sean@example.com
// role: roles/viewer
//
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
@@ -1540,6 +1554,9 @@ func (s *Queue) MarshalJSON() ([]byte, error) {
// by a
// queue, regardless of whether the dispatch is a first task attempt or
// a retry.
//
// Note: The debugging command, RunTask, will run a task
// even if the queue has reached its RateLimits.
type RateLimits struct {
// MaxBurstSize: Output only. The max burst size.
//
@@ -1598,10 +1615,14 @@ type RateLimits struct {
// default.
//
//
// The maximum allowed value is 5,000. -1 indicates no limit.
// The maximum allowed value is 5,000.
//
// This field is output only for
// [pull queues](google.cloud.tasks.v2beta2.PullTarget).
// [pull queues](google.cloud.tasks.v2beta2.PullTarget) and always -1,
// which
// indicates no limit. No other queue types can have
// `max_concurrent_tasks`
// set to -1.
//
//
// This field has the same meaning as
@@ -2381,7 +2402,7 @@ type ProjectsLocationsGetCall struct {
header_ http.Header
}
// Get: Get information about a location.
// Get: Gets information about a location.
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
@@ -2482,7 +2503,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,
}
return ret, nil
// {
// "description": "Get information about a location.",
// "description": "Gets information about a location.",
// "flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}",
// "httpMethod": "GET",
// "id": "cloudtasks.projects.locations.get",
@@ -5721,38 +5742,36 @@ type ProjectsLocationsQueuesTasksRunCall struct {
// Run: Forces a task to run now.
//
// When this method is called, Cloud Tasks will dispatch the task, even
// if
// the task is already running, the queue has reached its RateLimits
// or
// is PAUSED.
//
// This command is meant to be used for manual debugging. For
// example, RunTask can be used to retry a failed
// task after a fix has been made or to manually force a task to
// be
// dispatched now.
//
// When this method is called, Cloud Tasks will dispatch the task to
// its
// target, even if the queue is PAUSED.
//
// The dispatched task is returned. That is, the task that is
// returned
// contains the status after the task is dispatched but
// before the task is received by its target.
//
// If Cloud Tasks receives a successful response from the
// task's
// handler, then the task will be deleted; otherwise the
// If Cloud Tasks receives a successful response from the task's
// target, then the task will be deleted; otherwise the
// task's
// schedule_time will be reset to the time that
// RunTask was called plus the retry delay specified
// in the queue and task's RetryConfig.
// in the queue's RetryConfig.
//
// RunTask returns
// NOT_FOUND when it is called on a
// task that has already succeeded or permanently
// failed. FAILED_PRECONDITION
// is returned when RunTask is called on task
// that is dispatched or already running.
// task that has already succeeded or permanently failed.
//
// RunTask cannot be called on
// pull tasks.
// RunTask cannot be called on a
// pull task.
func (r *ProjectsLocationsQueuesTasksService) Run(name string, runtaskrequest *RunTaskRequest) *ProjectsLocationsQueuesTasksRunCall {
c := &ProjectsLocationsQueuesTasksRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
@@ -5846,7 +5865,7 @@ func (c *ProjectsLocationsQueuesTasksRunCall) Do(opts ...googleapi.CallOption) (
}
return ret, nil
// {
// "description": "Forces a task to run now.\n\nThis command is meant to be used for manual debugging. For\nexample, RunTask can be used to retry a failed\ntask after a fix has been made or to manually force a task to be\ndispatched now.\n\nWhen this method is called, Cloud Tasks will dispatch the task to its\ntarget, even if the queue is PAUSED.\n\nThe dispatched task is returned. That is, the task that is returned\ncontains the status after the task is dispatched but\nbefore the task is received by its target.\n\nIf Cloud Tasks receives a successful response from the task's\nhandler, then the task will be deleted; otherwise the task's\nschedule_time will be reset to the time that\nRunTask was called plus the retry delay specified\nin the queue and task's RetryConfig.\n\nRunTask returns\nNOT_FOUND when it is called on a\ntask that has already succeeded or permanently\nfailed. FAILED_PRECONDITION\nis returned when RunTask is called on task\nthat is dispatched or already running.\n\nRunTask cannot be called on\npull tasks.",
// "description": "Forces a task to run now.\n\nWhen this method is called, Cloud Tasks will dispatch the task, even if\nthe task is already running, the queue has reached its RateLimits or\nis PAUSED.\n\nThis command is meant to be used for manual debugging. For\nexample, RunTask can be used to retry a failed\ntask after a fix has been made or to manually force a task to be\ndispatched now.\n\nThe dispatched task is returned. That is, the task that is returned\ncontains the status after the task is dispatched but\nbefore the task is received by its target.\n\nIf Cloud Tasks receives a successful response from the task's\ntarget, then the task will be deleted; otherwise the task's\nschedule_time will be reset to the time that\nRunTask was called plus the retry delay specified\nin the queue's RetryConfig.\n\nRunTask returns\nNOT_FOUND when it is called on a\ntask that has already succeeded or permanently failed.\n\nRunTask cannot be called on a\npull task.",
// "flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks/{tasksId}:run",
// "httpMethod": "POST",
// "id": "cloudtasks.projects.locations.queues.tasks.run",
+2 -2
View File
@@ -261,7 +261,7 @@
}
}
},
"revision": "20180312",
"revision": "20180430",
"rootUrl": "https://cloudtrace.googleapis.com/",
"schemas": {
"Empty": {
@@ -279,7 +279,7 @@
"type": "string"
},
"traces": {
"description": "List of trace records returned.",
"description": "List of trace records as specified by the view parameter.",
"items": {
"$ref": "Trace"
},
+1 -1
View File
@@ -129,7 +129,7 @@ type ListTracesResponse struct {
// retrieving additional traces.
NextPageToken string `json:"nextPageToken,omitempty"`
// Traces: List of trace records returned.
// Traces: List of trace records as specified by the view parameter.
Traces []*Trace `json:"traces,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+177 -92
View File
@@ -29,7 +29,7 @@
"description": "Creates and runs virtual machines on Google Cloud Platform.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/compute/docs/reference/latest/",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/rbLFk9Clb6vab1hqkKH1aK-_W6I\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/sPz-4RgAS-zNcdDLTbcBp8HrEnY\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
@@ -74,12 +74,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -138,7 +138,7 @@
]
},
"get": {
"description": "Returns the specified accelerator type. Get a list of available accelerator types by making a list() request.",
"description": "Returns the specified accelerator type. Gets a list of available accelerator types by making a list() request.",
"httpMethod": "GET",
"id": "compute.acceleratorTypes.get",
"parameterOrder": [
@@ -669,7 +669,7 @@
]
},
"get": {
"description": "Returns the specified autoscaler resource. Get a list of available autoscalers by making a list() request.",
"description": "Returns the specified autoscaler resource. Gets a list of available autoscalers by making a list() request.",
"httpMethod": "GET",
"id": "compute.autoscalers.get",
"parameterOrder": [
@@ -1074,7 +1074,7 @@
]
},
"get": {
"description": "Returns the specified BackendBucket resource. Get a list of available backend buckets by making a list() request.",
"description": "Returns the specified BackendBucket resource. Gets a list of available backend buckets by making a list() request.",
"httpMethod": "GET",
"id": "compute.backendBuckets.get",
"parameterOrder": [
@@ -1447,7 +1447,7 @@
]
},
"get": {
"description": "Returns the specified BackendService resource. Get a list of available backend services by making a list() request.",
"description": "Returns the specified BackendService resource. Gets a list of available backend services by making a list() request.",
"httpMethod": "GET",
"id": "compute.backendServices.get",
"parameterOrder": [
@@ -1811,7 +1811,7 @@
]
},
"get": {
"description": "Returns the specified disk type. Get a list of available disk types by making a list() request.",
"description": "Returns the specified disk type. Gets a list of available disk types by making a list() request.",
"httpMethod": "GET",
"id": "compute.diskTypes.get",
"parameterOrder": [
@@ -2061,7 +2061,7 @@
]
},
"get": {
"description": "Returns a specified persistent disk. Get a list of available persistent disks by making a list() request.",
"description": "Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request.",
"httpMethod": "GET",
"id": "compute.disks.get",
"parameterOrder": [
@@ -3050,7 +3050,7 @@
]
},
"get": {
"description": "Returns the specified address resource. Get a list of available addresses by making a list() request.",
"description": "Returns the specified address resource. Gets a list of available addresses by making a list() request.",
"httpMethod": "GET",
"id": "compute.globalAddresses.get",
"parameterOrder": [
@@ -3281,7 +3281,7 @@
]
},
"get": {
"description": "Returns the specified GlobalForwardingRule resource. Get a list of available forwarding rules by making a list() request.",
"description": "Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.",
"httpMethod": "GET",
"id": "compute.globalForwardingRules.get",
"parameterOrder": [
@@ -3594,7 +3594,7 @@
]
},
"get": {
"description": "Retrieves the specified Operations resource. Get a list of operations by making a list() request.",
"description": "Retrieves the specified Operations resource. Gets a list of operations by making a list() request.",
"httpMethod": "GET",
"id": "compute.globalOperations.get",
"parameterOrder": [
@@ -3719,7 +3719,7 @@
]
},
"get": {
"description": "Returns the specified HealthCheck resource. Get a list of available health checks by making a list() request.",
"description": "Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request.",
"httpMethod": "GET",
"id": "compute.healthChecks.get",
"parameterOrder": [
@@ -3996,7 +3996,7 @@
]
},
"get": {
"description": "Returns the specified HttpHealthCheck resource. Get a list of available HTTP health checks by making a list() request.",
"description": "Returns the specified HttpHealthCheck resource. Gets a list of available HTTP health checks by making a list() request.",
"httpMethod": "GET",
"id": "compute.httpHealthChecks.get",
"parameterOrder": [
@@ -4273,7 +4273,7 @@
]
},
"get": {
"description": "Returns the specified HttpsHealthCheck resource. Get a list of available HTTPS health checks by making a list() request.",
"description": "Returns the specified HttpsHealthCheck resource. Gets a list of available HTTPS health checks by making a list() request.",
"httpMethod": "GET",
"id": "compute.httpsHealthChecks.get",
"parameterOrder": [
@@ -4591,7 +4591,7 @@
]
},
"get": {
"description": "Returns the specified image. Get a list of available images by making a list() request.",
"description": "Returns the specified image. Gets a list of available images by making a list() request.",
"httpMethod": "GET",
"id": "compute.images.get",
"parameterOrder": [
@@ -5013,7 +5013,7 @@
]
},
"get": {
"description": "Returns all of the details about the specified managed instance group. Get a list of available managed instance groups by making a list() request.",
"description": "Returns all of the details about the specified managed instance group. Gets a list of available managed instance groups by making a list() request.",
"httpMethod": "GET",
"id": "compute.instanceGroupManagers.get",
"parameterOrder": [
@@ -5778,7 +5778,7 @@
]
},
"get": {
"description": "Returns the specified instance group. Get a list of available instance groups by making a list() request.",
"description": "Returns the specified instance group. Gets a list of available instance groups by making a list() request.",
"httpMethod": "GET",
"id": "compute.instanceGroups.get",
"parameterOrder": [
@@ -6161,7 +6161,7 @@
]
},
"get": {
"description": "Returns the specified instance template. Get a list of available instance templates by making a list() request.",
"description": "Returns the specified instance template. Gets a list of available instance templates by making a list() request.",
"httpMethod": "GET",
"id": "compute.instanceTemplates.get",
"parameterOrder": [
@@ -6636,7 +6636,7 @@
]
},
"get": {
"description": "Returns the specified Instance resource. Get a list of available instances by making a list() request.",
"description": "Returns the specified Instance resource. Gets a list of available instances by making a list() request.",
"httpMethod": "GET",
"id": "compute.instances.get",
"parameterOrder": [
@@ -7495,7 +7495,7 @@
]
},
"start": {
"description": "Starts an instance that was stopped using the using the instances().stop method. For more information, see Restart an instance.",
"description": "Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.",
"httpMethod": "POST",
"id": "compute.instances.start",
"parameterOrder": [
@@ -7541,7 +7541,7 @@
]
},
"startWithEncryptionKey": {
"description": "Starts an instance that was stopped using the using the instances().stop method. For more information, see Restart an instance.",
"description": "Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.",
"httpMethod": "POST",
"id": "compute.instances.startWithEncryptionKey",
"parameterOrder": [
@@ -8179,7 +8179,7 @@
"interconnectLocations": {
"methods": {
"get": {
"description": "Returns the details for the specified interconnect location. Get a list of available interconnect locations by making a list() request.",
"description": "Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.",
"httpMethod": "GET",
"id": "compute.interconnectLocations.get",
"parameterOrder": [
@@ -8304,7 +8304,7 @@
]
},
"get": {
"description": "Returns the specified interconnect. Get a list of available interconnects by making a list() request.",
"description": "Returns the specified interconnect. Gets a list of available interconnects by making a list() request.",
"httpMethod": "GET",
"id": "compute.interconnects.get",
"parameterOrder": [
@@ -8786,7 +8786,7 @@
]
},
"get": {
"description": "Returns the specified machine type. Get a list of available machine types by making a list() request.",
"description": "Returns the specified machine type. Gets a list of available machine types by making a list() request.",
"httpMethod": "GET",
"id": "compute.machineTypes.get",
"parameterOrder": [
@@ -8968,7 +8968,7 @@
]
},
"get": {
"description": "Returns the specified network. Get a list of available networks by making a list() request.",
"description": "Returns the specified network. Gets a list of available networks by making a list() request.",
"httpMethod": "GET",
"id": "compute.networks.get",
"parameterOrder": [
@@ -9397,7 +9397,7 @@
]
},
"getXpnHost": {
"description": "Get the shared VPC host project that this project links to. May be empty if no link exists.",
"description": "Gets the shared VPC host project that this project links to. May be empty if no link exists.",
"httpMethod": "GET",
"id": "compute.projects.getXpnHost",
"parameterOrder": [
@@ -9422,7 +9422,7 @@
]
},
"getXpnResources": {
"description": "Get service resources (a.k.a service project) associated with this host project.",
"description": "Gets service resources (a.k.a service project) associated with this host project.",
"httpMethod": "GET",
"id": "compute.projects.getXpnResources",
"parameterOrder": [
@@ -9466,7 +9466,7 @@
]
},
"listXpnHosts": {
"description": "List all shared VPC host projects visible to the user in an organization.",
"description": "Lists all shared VPC host projects visible to the user in an organization.",
"httpMethod": "POST",
"id": "compute.projects.listXpnHosts",
"parameterOrder": [
@@ -10440,7 +10440,7 @@
]
},
"get": {
"description": "Returns the specified commitment resource. Get a list of available commitments by making a list() request.",
"description": "Returns the specified commitment resource. Gets a list of available commitments by making a list() request.",
"httpMethod": "GET",
"id": "compute.regionCommitments.get",
"parameterOrder": [
@@ -10584,7 +10584,7 @@
"regionDiskTypes": {
"methods": {
"get": {
"description": "Returns the specified regional disk type. Get a list of available disk types by making a list() request.",
"description": "Returns the specified regional disk type. Gets a list of available disk types by making a list() request.",
"httpMethod": "GET",
"id": "compute.regionDiskTypes.get",
"parameterOrder": [
@@ -12189,7 +12189,7 @@
"regions": {
"methods": {
"get": {
"description": "Returns the specified Region resource. Get a list of available regions by making a list() request.",
"description": "Returns the specified Region resource. Gets a list of available regions by making a list() request.",
"httpMethod": "GET",
"id": "compute.regions.get",
"parameterOrder": [
@@ -12371,7 +12371,7 @@
]
},
"get": {
"description": "Returns the specified Router resource. Get a list of available routers by making a list() request.",
"description": "Returns the specified Router resource. Gets a list of available routers by making a list() request.",
"httpMethod": "GET",
"id": "compute.routers.get",
"parameterOrder": [
@@ -12783,7 +12783,7 @@
]
},
"get": {
"description": "Returns the specified Route resource. Get a list of available routes by making a list() request.",
"description": "Returns the specified Route resource. Gets a list of available routes by making a list() request.",
"httpMethod": "GET",
"id": "compute.routes.get",
"parameterOrder": [
@@ -13371,7 +13371,7 @@
]
},
"get": {
"description": "Returns the specified Snapshot resource. Get a list of available snapshots by making a list() request.",
"description": "Returns the specified Snapshot resource. Gets a list of available snapshots by making a list() request.",
"httpMethod": "GET",
"id": "compute.snapshots.get",
"parameterOrder": [
@@ -13569,7 +13569,7 @@
]
},
"get": {
"description": "Returns the specified SslCertificate resource. Get a list of available SSL certificates by making a list() request.",
"description": "Returns the specified SslCertificate resource. Gets a list of available SSL certificates by making a list() request.",
"httpMethod": "GET",
"id": "compute.sslCertificates.get",
"parameterOrder": [
@@ -13763,7 +13763,7 @@
]
},
"get": {
"description": "List all of the ordered rules present in a single specified policy.",
"description": "Lists all of the ordered rules present in a single specified policy.",
"httpMethod": "GET",
"id": "compute.sslPolicies.get",
"parameterOrder": [
@@ -13796,7 +13796,7 @@
]
},
"insert": {
"description": "Returns the specified SSL policy resource. Get a list of available SSL policies by making a list() request.",
"description": "Returns the specified SSL policy resource. Gets a list of available SSL policies by making a list() request.",
"httpMethod": "POST",
"id": "compute.sslPolicies.insert",
"parameterOrder": [
@@ -13829,7 +13829,7 @@
]
},
"list": {
"description": "List all the SSL policies that have been configured for the specified project.",
"description": "Lists all the SSL policies that have been configured for the specified project.",
"httpMethod": "GET",
"id": "compute.sslPolicies.list",
"parameterOrder": [
@@ -14152,7 +14152,7 @@
]
},
"get": {
"description": "Returns the specified subnetwork. Get a list of available subnetworks list() request.",
"description": "Returns the specified subnetwork. Gets a list of available subnetworks list() request.",
"httpMethod": "GET",
"id": "compute.subnetworks.get",
"parameterOrder": [
@@ -14383,7 +14383,7 @@
]
},
"patch": {
"description": "Patches the specified subnetwork with the data included in the request. Only the following fields within the subnetwork resource can be specified in the request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also mandatory to specify the current fingeprint of the subnetwork resource being patched.",
"description": "Patches the specified subnetwork with the data included in the request. Only the following fields within the subnetwork resource can be specified in the request: secondary_ip_range, allow_subnet_cidr_routes_overlap and role. It is also mandatory to specify the current fingeprint of the subnetwork resource being patched.",
"httpMethod": "PATCH",
"id": "compute.subnetworks.patch",
"parameterOrder": [
@@ -14612,7 +14612,7 @@
]
},
"get": {
"description": "Returns the specified TargetHttpProxy resource. Get a list of available target HTTP proxies by making a list() request.",
"description": "Returns the specified TargetHttpProxy resource. Gets a list of available target HTTP proxies by making a list() request.",
"httpMethod": "GET",
"id": "compute.targetHttpProxies.get",
"parameterOrder": [
@@ -14848,7 +14848,7 @@
]
},
"get": {
"description": "Returns the specified TargetHttpsProxy resource. Get a list of available target HTTPS proxies by making a list() request.",
"description": "Returns the specified TargetHttpsProxy resource. Gets a list of available target HTTPS proxies by making a list() request.",
"httpMethod": "GET",
"id": "compute.targetHttpsProxies.get",
"parameterOrder": [
@@ -15262,7 +15262,7 @@
]
},
"get": {
"description": "Returns the specified TargetInstance resource. Get a list of available target instances by making a list() request.",
"description": "Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.",
"httpMethod": "GET",
"id": "compute.targetInstances.get",
"parameterOrder": [
@@ -15644,7 +15644,7 @@
]
},
"get": {
"description": "Returns the specified target pool. Get a list of available target pools by making a list() request.",
"description": "Returns the specified target pool. Gets a list of available target pools by making a list() request.",
"httpMethod": "GET",
"id": "compute.targetPools.get",
"parameterOrder": [
@@ -16069,7 +16069,7 @@
]
},
"get": {
"description": "Returns the specified TargetSslProxy resource. Get a list of available target SSL proxies by making a list() request.",
"description": "Returns the specified TargetSslProxy resource. Gets a list of available target SSL proxies by making a list() request.",
"httpMethod": "GET",
"id": "compute.targetSslProxies.get",
"parameterOrder": [
@@ -16427,7 +16427,7 @@
]
},
"get": {
"description": "Returns the specified TargetTcpProxy resource. Get a list of available target TCP proxies by making a list() request.",
"description": "Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request.",
"httpMethod": "GET",
"id": "compute.targetTcpProxies.get",
"parameterOrder": [
@@ -16724,7 +16724,7 @@
]
},
"get": {
"description": "Returns the specified target VPN gateway. Get a list of available target VPN gateways by making a list() request.",
"description": "Returns the specified target VPN gateway. Gets a list of available target VPN gateways by making a list() request.",
"httpMethod": "GET",
"id": "compute.targetVpnGateways.get",
"parameterOrder": [
@@ -17000,7 +17000,7 @@
]
},
"get": {
"description": "Returns the specified UrlMap resource. Get a list of available URL maps by making a list() request.",
"description": "Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() request.",
"httpMethod": "GET",
"id": "compute.urlMaps.get",
"parameterOrder": [
@@ -17411,7 +17411,7 @@
]
},
"get": {
"description": "Returns the specified VpnTunnel resource. Get a list of available VPN tunnels by making a list() request.",
"description": "Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels by making a list() request.",
"httpMethod": "GET",
"id": "compute.vpnTunnels.get",
"parameterOrder": [
@@ -17790,7 +17790,7 @@
"zones": {
"methods": {
"get": {
"description": "Returns the specified Zone resource. Get a list of available zones by making a list() request.",
"description": "Returns the specified Zone resource. Gets a list of available zones by making a list() request.",
"httpMethod": "GET",
"id": "compute.zones.get",
"parameterOrder": [
@@ -17875,7 +17875,7 @@
}
}
},
"revision": "20180314",
"revision": "20180427",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
@@ -18169,7 +18169,7 @@
"id": "AcceleratorTypesScopedList",
"properties": {
"acceleratorTypes": {
"description": "[Output Only] List of accelerator types contained in this scope.",
"description": "[Output Only] A list of accelerator types contained in this scope.",
"items": {
"$ref": "AcceleratorType"
},
@@ -18660,7 +18660,7 @@
"id": "AddressesScopedList",
"properties": {
"addresses": {
"description": "[Output Only] List of addresses contained in this scope.",
"description": "[Output Only] A list of addresses contained in this scope.",
"items": {
"$ref": "Address"
},
@@ -19337,7 +19337,7 @@
"id": "AutoscalersScopedList",
"properties": {
"autoscalers": {
"description": "[Output Only] List of autoscalers contained in this scope.",
"description": "[Output Only] A list of autoscalers contained in this scope.",
"items": {
"$ref": "Autoscaler"
},
@@ -19790,6 +19790,13 @@
"description": "[Output Only] Creation timestamp in RFC3339 text format.",
"type": "string"
},
"customRequestHeaders": {
"description": "Headers that the HTTP/S load balancer should add to proxied requests.",
"items": {
"type": "string"
},
"type": "array"
},
"description": {
"description": "An optional description of this resource. Provide this property when you create the resource.",
"type": "string"
@@ -20196,7 +20203,7 @@
"id": "BackendServicesScopedList",
"properties": {
"backendServices": {
"description": "List of BackendServices contained in this scope.",
"description": "A list of BackendServices contained in this scope.",
"items": {
"$ref": "BackendService"
},
@@ -20404,7 +20411,7 @@
"type": "string"
},
"resources": {
"description": "List of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.",
"description": "A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.",
"items": {
"$ref": "ResourceCommitment"
},
@@ -20669,7 +20676,7 @@
"id": "CommitmentsScopedList",
"properties": {
"commitments": {
"description": "[Output Only] List of commitments contained in this scope.",
"description": "[Output Only] A list of commitments contained in this scope.",
"items": {
"$ref": "Commitment"
},
@@ -20857,12 +20864,16 @@
"description": "Represents a customer-supplied encryption key",
"id": "CustomerEncryptionKey",
"properties": {
"kmsKeyName": {
"description": "The name of the encryption key that is stored in Google Cloud KMS.",
"type": "string"
},
"rawKey": {
"description": "Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.",
"type": "string"
},
"rsaEncryptedKey": {
"description": "Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.\n\nThe key must meet the following requirements before you can provide it to Compute Engine: \n- The key is wrapped using a RSA public key certificate provided by Google. \n- After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:\nhttps://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem",
"description": "Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.\n\nThe key must meet the following requirements before you can provide it to Compute Engine: \n- The key is wrapped using a RSA public key certificate provided by Google. \n- After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Gets the RSA public key certificate provided by Google at:\nhttps://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem",
"type": "string"
},
"sha256": {
@@ -21653,7 +21664,7 @@
"id": "DiskTypesScopedList",
"properties": {
"diskTypes": {
"description": "[Output Only] List of disk types contained in this scope.",
"description": "[Output Only] A list of disk types contained in this scope.",
"items": {
"$ref": "DiskType"
},
@@ -21758,7 +21769,7 @@
"id": "DisksScopedList",
"properties": {
"disks": {
"description": "[Output Only] List of disks contained in this scope.",
"description": "[Output Only] A list of disks contained in this scope.",
"items": {
"$ref": "Disk"
},
@@ -22558,7 +22569,7 @@
"id": "ForwardingRulesScopedList",
"properties": {
"forwardingRules": {
"description": "List of forwarding rules contained in this scope.",
"description": "A list of forwarding rules contained in this scope.",
"items": {
"$ref": "ForwardingRule"
},
@@ -22693,6 +22704,45 @@
},
"type": "object"
},
"HTTP2HealthCheck": {
"id": "HTTP2HealthCheck",
"properties": {
"host": {
"description": "The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.",
"type": "string"
},
"port": {
"description": "The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.",
"format": "int32",
"type": "integer"
},
"portName": {
"description": "Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.",
"type": "string"
},
"proxyHeader": {
"description": "Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.",
"enum": [
"NONE",
"PROXY_V1"
],
"enumDescriptions": [
"",
""
],
"type": "string"
},
"requestPath": {
"description": "The request path of the HTTP/2 health check request. The default value is /.",
"type": "string"
},
"response": {
"description": "The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.",
"type": "string"
}
},
"type": "object"
},
"HTTPHealthCheck": {
"id": "HTTPHealthCheck",
"properties": {
@@ -22793,6 +22843,9 @@
"format": "int32",
"type": "integer"
},
"http2HealthCheck": {
"$ref": "HTTP2HealthCheck"
},
"httpHealthCheck": {
"$ref": "HTTPHealthCheck"
},
@@ -22833,6 +22886,7 @@
"description": "Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.",
"enum": [
"HTTP",
"HTTP2",
"HTTPS",
"INVALID",
"SSL",
@@ -22845,6 +22899,7 @@
"",
"",
"",
"",
""
],
"type": "string"
@@ -23723,7 +23778,7 @@
"type": "array"
},
"guestAccelerators": {
"description": "List of the type and count of accelerator cards attached to the instance.",
"description": "A list of the type and count of accelerator cards attached to the instance.",
"items": {
"$ref": "AcceleratorConfig"
},
@@ -23740,7 +23795,7 @@
"type": "string"
},
"labelFingerprint": {
"description": "A fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.\n\nTo see the latest fingerprint, make get() request to the instance.",
"description": "A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.\n\nTo see the latest fingerprint, make get() request to the instance.",
"format": "byte",
"type": "string"
},
@@ -24004,7 +24059,7 @@
"type": "string"
},
"region": {
"description": "The URL of the region where the instance group is located (for regional resources).",
"description": "[Output Only] The URL of the region where the instance group is located (for regional resources).",
"type": "string"
},
"selfLink": {
@@ -24017,7 +24072,7 @@
"type": "integer"
},
"subnetwork": {
"description": "The URL of the subnetwork to which all instances in the instance group belong.",
"description": "[Output Only] The URL of the subnetwork to which all instances in the instance group belong.",
"type": "string"
},
"zone": {
@@ -24301,7 +24356,7 @@
"type": "string"
},
"fingerprint": {
"description": "[Output Only] The fingerprint of the resource data. You can use this optional field for optimistic locking when you update the resource.",
"description": "Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to update the InstanceGroupManager or the field need to be unset.",
"format": "byte",
"type": "string"
},
@@ -24354,7 +24409,7 @@
"type": "string"
},
"serviceAccount": {
"description": "[Output Only] The service account to be used as credentials for all operations performed by the managed instance group on instances. The service accounts needs all permissions required to create and delete instances. By default, the service account {projectNumber}@cloudservices.gserviceaccount.com is used.",
"description": "The service account to be used as credentials for all operations performed by the managed instance group on instances. The service accounts needs all permissions required to create and delete instances. By default, the service account {projectNumber}@cloudservices.gserviceaccount.com is used.",
"type": "string"
},
"targetPools": {
@@ -25771,7 +25826,7 @@
"id": "InstancesScopedList",
"properties": {
"instances": {
"description": "[Output Only] List of instances contained in this scope.",
"description": "[Output Only] A list of instances contained in this scope.",
"items": {
"$ref": "Instance"
},
@@ -25882,7 +25937,7 @@
"id": "InstancesSetMachineResourcesRequest",
"properties": {
"guestAccelerators": {
"description": "List of the type and count of accelerator cards attached to the instance.",
"description": "A list of the type and count of accelerator cards attached to the instance.",
"items": {
"$ref": "AcceleratorConfig"
},
@@ -25950,7 +26005,7 @@
"type": "boolean"
},
"circuitInfos": {
"description": "[Output Only] List of CircuitInfo objects, that describe the individual circuits in this LAG.",
"description": "[Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG.",
"items": {
"$ref": "InterconnectCircuitInfo"
},
@@ -25969,7 +26024,7 @@
"type": "string"
},
"expectedOutages": {
"description": "[Output Only] List of outages expected for this Interconnect.",
"description": "[Output Only] A list of outages expected for this Interconnect.",
"items": {
"$ref": "InterconnectOutageNotification"
},
@@ -26550,7 +26605,7 @@
"id": "InterconnectAttachmentsScopedList",
"properties": {
"interconnectAttachments": {
"description": "List of interconnect attachments contained in this scope.",
"description": "A list of interconnect attachments contained in this scope.",
"items": {
"$ref": "InterconnectAttachment"
},
@@ -27012,7 +27067,7 @@
"id": "InterconnectOutageNotification",
"properties": {
"affectedCircuits": {
"description": "Iff issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be affected.",
"description": "If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be affected.",
"items": {
"type": "string"
},
@@ -27713,7 +27768,7 @@
"id": "MachineTypesScopedList",
"properties": {
"machineTypes": {
"description": "[Output Only] List of machine types contained in this scope.",
"description": "[Output Only] A list of machine types contained in this scope.",
"items": {
"$ref": "MachineType"
},
@@ -28034,7 +28089,7 @@
"type": "string"
},
"peerings": {
"description": "[Output Only] List of network peerings for the resource.",
"description": "[Output Only] A list of network peerings for the resource.",
"items": {
"$ref": "NetworkPeering"
},
@@ -28749,7 +28804,7 @@
"id": "OperationsScopedList",
"properties": {
"operations": {
"description": "[Output Only] List of operations contained in this scope.",
"description": "[Output Only] A list of operations contained in this scope.",
"items": {
"$ref": "Operation"
},
@@ -28884,7 +28939,7 @@
"type": "object"
},
"Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.\n\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.\n\n**Example**\n\n{ \"bindings\": [ { \"role\": \"roles/owner\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-other-app@appspot.gserviceaccount.com\", ] }, { \"role\": \"roles/viewer\", \"members\": [\"user:sean@example.com\"] } ] }\n\nFor a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).",
"description": "Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.\n\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.\n\n**JSON Example**\n\n{ \"bindings\": [ { \"role\": \"roles/owner\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-other-app@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/viewer\", \"members\": [\"user:sean@example.com\"] } ] }\n\n**YAML Example**\n\nbindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer\n\n\n\nFor a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy",
"properties": {
"auditConfigs": {
@@ -29106,6 +29161,8 @@
"INSTANCE_GROUP_MANAGERS",
"INSTANCE_TEMPLATES",
"INTERCONNECTS",
"INTERCONNECT_ATTACHMENTS_PER_REGION",
"INTERCONNECT_ATTACHMENTS_TOTAL_MBPS",
"INTERNAL_ADDRESSES",
"IN_USE_ADDRESSES",
"LOCAL_SSD_TOTAL_GB",
@@ -29185,6 +29242,8 @@
"",
"",
"",
"",
"",
""
],
"type": "string"
@@ -29772,7 +29831,7 @@
"id": "RegionInstanceGroupManagersListInstancesResponse",
"properties": {
"managedInstances": {
"description": "List of managed instances.",
"description": "A list of managed instances.",
"items": {
"$ref": "ManagedInstance"
},
@@ -30744,6 +30803,18 @@
"description": "IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.",
"type": "string"
},
"managementType": {
"description": "[Output Only] Type of how the resource/configuration of the BGP peer is managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT represents an BGP peer that is automatically created for PARTNER interconnectAttachment, Google will automatically create/delete this type of BGP peer when the PARTNER interconnectAttachment is created/deleted.",
"enum": [
"MANAGED_BY_ATTACHMENT",
"MANAGED_BY_USER"
],
"enumDescriptions": [
"",
""
],
"type": "string"
},
"name": {
"description": "Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035.",
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
@@ -30776,6 +30847,18 @@
"description": "URI of the linked VPN tunnel. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment.",
"type": "string"
},
"managementType": {
"description": "[Output Only] Type of how the resource/configuration of the interface is managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT represents an interface that is automatically created for PARTNER type interconnectAttachment, Google will automatically create/update/delete this type of interface when the PARTNER interconnectAttachment is created/provisioned/deleted.",
"enum": [
"MANAGED_BY_ATTACHMENT",
"MANAGED_BY_USER"
],
"enumDescriptions": [
"",
""
],
"type": "string"
},
"name": {
"description": "Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035.",
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
@@ -31014,7 +31097,7 @@
"id": "RoutersScopedList",
"properties": {
"routers": {
"description": "List of routers contained in this scope.",
"description": "A list of routers contained in this scope.",
"items": {
"$ref": "Router"
},
@@ -31265,7 +31348,7 @@
"type": "string"
},
"rules": {
"description": "List of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match \"*\"). If no rules are provided when creating a security policy, a default rule with action \"allow\" will be added.",
"description": "A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match \"*\"). If no rules are provided when creating a security policy, a default rule with action \"allow\" will be added.",
"items": {
"$ref": "SecurityPolicyRule"
},
@@ -31435,6 +31518,10 @@
"$ref": "SecurityPolicyRuleMatcherConfig",
"description": "The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified."
},
"expr": {
"$ref": "Expr",
"description": "User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header."
},
"srcIpRanges": {
"description": "CIDR IP address range.",
"items": {
@@ -32063,7 +32150,7 @@
"type": "string"
},
"customFeatures": {
"description": "List of features enabled when the selected profile is CUSTOM. The\n- method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM.",
"description": "A list of features enabled when the selected profile is CUSTOM. The\n- method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM.",
"items": {
"type": "string"
},
@@ -32096,15 +32183,13 @@
"type": "string"
},
"minTlsVersion": {
"description": "The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2, TLS_1_3.",
"description": "The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2.",
"enum": [
"TLS_1_0",
"TLS_1_1",
"TLS_1_2",
"TLS_1_3"
"TLS_1_2"
],
"enumDescriptions": [
"",
"",
"",
""
@@ -32560,7 +32645,7 @@
"id": "SubnetworksScopedList",
"properties": {
"subnetworks": {
"description": "List of subnetworks contained in this scope.",
"description": "A list of subnetworks contained in this scope.",
"items": {
"$ref": "Subnetwork"
},
@@ -32699,7 +32784,7 @@
"id": "Tags",
"properties": {
"fingerprint": {
"description": "Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.\n\nTo see the latest fingerprint, make get() request to the instance.",
"description": "Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags.\n\nTo see the latest fingerprint, make get() request to the instance.",
"format": "byte",
"type": "string"
},
@@ -33351,7 +33436,7 @@
"id": "TargetInstancesScopedList",
"properties": {
"targetInstances": {
"description": "List of target instances contained in this scope.",
"description": "A list of target instances contained in this scope.",
"items": {
"$ref": "TargetInstance"
},
@@ -33817,7 +33902,7 @@
"id": "TargetPoolsScopedList",
"properties": {
"targetPools": {
"description": "List of target pools contained in this scope.",
"description": "A list of target pools contained in this scope.",
"items": {
"$ref": "TargetPool"
},
@@ -34642,7 +34727,7 @@
"id": "TargetVpnGatewaysScopedList",
"properties": {
"targetVpnGateways": {
"description": "[Output Only] List of target vpn gateways contained in this scope.",
"description": "[Output Only] A list of target vpn gateways contained in this scope.",
"items": {
"$ref": "TargetVpnGateway"
},
@@ -35556,7 +35641,7 @@
"id": "VpnTunnelsScopedList",
"properties": {
"vpnTunnels": {
"description": "List of vpn tunnels contained in this scope.",
"description": "A list of vpn tunnels contained in this scope.",
"items": {
"$ref": "VpnTunnel"
},
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+3484 -139
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+138 -29
View File
@@ -117,6 +117,55 @@
"resources": {
"projects": {
"resources": {
"aggregated": {
"resources": {
"usableSubnetworks": {
"methods": {
"list": {
"description": "Lists subnetworks that are usable for creating clusters in a project.",
"flatPath": "v1beta1/projects/{projectsId}/aggregated/usableSubnetworks",
"httpMethod": "GET",
"id": "container.projects.aggregated.usableSubnetworks.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Filtering currently only supports equality on the networkProjectId and must\nbe in the form: \"networkProjectId=[PROJECTID]\", where `networkProjectId`\nis the project which owns the listed subnetworks. This defaults to the\nparent project ID.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "The max number of results per page that should be returned. If the number\nof available results is larger than `page_size`, a `next_page_token` is\nreturned which can be used to get the next page of results in subsequent\nrequests. Acceptable values are 0 to 500, inclusive. (Default: 500)",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Specifies a page token to use. Set this to the nextPageToken returned by\nprevious list requests to get the next page of results.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The parent project where subnetworks are usable.\nSpecified in the format 'projects/*'.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta1/{+parent}/aggregated/usableSubnetworks",
"response": {
"$ref": "ListUsableSubnetworksResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
},
"locations": {
"methods": {
"getServerConfig": {
@@ -168,7 +217,7 @@
],
"parameters": {
"name": {
"description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"description": "The name (project, location, cluster id) of the cluster to complete IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
@@ -535,7 +584,7 @@
],
"parameters": {
"name": {
"description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"description": "The name (project, location, cluster id) of the cluster to set networking\npolicy. Specified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
@@ -591,7 +640,7 @@
],
"parameters": {
"name": {
"description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"description": "The name (project, location, cluster id) of the cluster to start IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
@@ -679,7 +728,7 @@
],
"parameters": {
"parent": {
"description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
"description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
@@ -712,7 +761,7 @@
"type": "string"
},
"name": {
"description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
"description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
@@ -757,7 +806,7 @@
"type": "string"
},
"name": {
"description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
"description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
@@ -802,7 +851,7 @@
"type": "string"
},
"parent": {
"description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
@@ -949,7 +998,7 @@
],
"parameters": {
"name": {
"description": "The name (project, location, cluster, node pool) of the node pool to update.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
"description": "The name (project, location, cluster, node pool) of the node pool to\nupdate. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
@@ -1063,7 +1112,7 @@
"type": "string"
},
"zone": {
"description": "Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field has been deprecated and replaced by the parent field.",
"description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
"location": "query",
"type": "string"
}
@@ -1923,7 +1972,7 @@
"type": "string"
},
"name": {
"description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
"description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "query",
"type": "string"
},
@@ -1973,7 +2022,7 @@
"type": "string"
},
"name": {
"description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
"description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "query",
"type": "string"
},
@@ -2022,7 +2071,7 @@
"type": "string"
},
"parent": {
"description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
"location": "query",
"type": "string"
},
@@ -2351,7 +2400,7 @@
"type": "string"
},
"zone": {
"description": "Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field has been deprecated and replaced by the parent field.",
"description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
"location": "path",
"required": true,
"type": "string"
@@ -2372,7 +2421,7 @@
}
}
},
"revision": "20180312",
"revision": "20180412",
"rootUrl": "https://container.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
@@ -2524,7 +2573,7 @@
"type": "string"
},
"initialClusterVersion": {
"description": "The initial Kubernetes version for this cluster. Valid versions are those\nfound in validMasterVersions returned by getServerConfig. The version can\nbe upgraded over time; such upgrades are reflected in\ncurrentMasterVersion and currentNodeVersion.",
"description": "The initial Kubernetes version for this cluster. Valid versions are those\nfound in validMasterVersions returned by getServerConfig. The version can\nbe upgraded over time; such upgrades are reflected in\ncurrentMasterVersion and currentNodeVersion.\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"\",\"-\": picks the default Kubernetes version",
"type": "string"
},
"initialNodeCount": {
@@ -2591,9 +2640,13 @@
"type": "string"
},
"network": {
"description": "The name of the Google Compute Engine\n[network](/compute/docs/networks-and-firewalls#networks) to which the\ncluster is connected. If left unspecified, the `default` network\nwill be used.",
"description": "The name of the Google Compute Engine\n[network](/compute/docs/networks-and-firewalls#networks) to which the\ncluster is connected. If left unspecified, the `default` network\nwill be used. On output this shows the network ID instead of\nthe name.",
"type": "string"
},
"networkConfig": {
"$ref": "NetworkConfig",
"description": "Configuration for cluster networking."
},
"networkPolicy": {
"$ref": "NetworkPolicy",
"description": "Configuration options for the NetworkPolicy feature."
@@ -2626,7 +2679,7 @@
"additionalProperties": {
"type": "string"
},
"description": "The resource labels for the cluster to use to annotate any related GCE\nresources.",
"description": "The resource labels for the cluster to use to annotate any related\nGoogle Compute Engine resources.",
"type": "object"
},
"selfLink": {
@@ -2664,7 +2717,7 @@
"type": "string"
},
"subnetwork": {
"description": "The name of the Google Compute Engine\n[subnetwork](/compute/docs/subnetworks) to which the\ncluster is connected.",
"description": "The name of the Google Compute Engine\n[subnetwork](/compute/docs/subnetworks) to which the\ncluster is connected. On output this shows the subnetwork ID instead of\nthe name.",
"type": "string"
},
"zone": {
@@ -2698,7 +2751,7 @@
"description": "The desired configuration options for master authorized networks feature."
},
"desiredMasterVersion": {
"description": "The Kubernetes version to change the master to. The only valid value is the\nlatest supported version. Use \"-\" to have the server automatically select\nthe latest version.",
"description": "The Kubernetes version to change the master to. The only valid value is the\nlatest supported version.\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the default Kubernetes version",
"type": "string"
},
"desiredMonitoringService": {
@@ -2714,7 +2767,7 @@
"type": "string"
},
"desiredNodeVersion": {
"description": "The Kubernetes version to change the nodes to (typically an\nupgrade). Use `-` to upgrade to the latest version supported by\nthe server.",
"description": "The Kubernetes version to change the nodes to (typically an\nupgrade).\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the Kubernetes master version",
"type": "string"
},
"desiredPodSecurityPolicyConfig": {
@@ -2733,7 +2786,7 @@
"type": "string"
},
"name": {
"description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"description": "The name (project, location, cluster id) of the cluster to complete IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
"type": "string"
},
"projectId": {
@@ -2783,7 +2836,7 @@
"description": "The node pool to create."
},
"parent": {
"description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
"description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"type": "string"
},
"projectId": {
@@ -2973,6 +3026,24 @@
},
"type": "object"
},
"ListUsableSubnetworksResponse": {
"description": "ListUsableSubnetworksResponse is the response of\nListUsableSubnetworksRequest.",
"id": "ListUsableSubnetworksResponse",
"properties": {
"nextPageToken": {
"description": "This token allows you to get the next page of results for list requests.\nIf the number of results is larger than `page_size`, use the\n`next_page_token` as a value for the query parameter `page_token` in the\nnext request. The value will become empty when there are no more pages.",
"type": "string"
},
"subnetworks": {
"description": "A list of usable subnetworks in the specified network project.",
"items": {
"$ref": "UsableSubnetwork"
},
"type": "array"
}
},
"type": "object"
},
"MaintenancePolicy": {
"description": "MaintenancePolicy defines the maintenance policy to be used for the cluster.",
"id": "MaintenancePolicy",
@@ -3044,6 +3115,21 @@
},
"type": "object"
},
"NetworkConfig": {
"description": "NetworkConfig reports the relative names of network \u0026 subnetwork.",
"id": "NetworkConfig",
"properties": {
"network": {
"description": "Output only. The name of the Google Compute Engine\nnetwork(/compute/docs/networks-and-firewalls#networks).\nExample: projects/my-project/global/networks/my-network",
"type": "string"
},
"subnetwork": {
"description": "Output only. The name of the Google Compute Engine\n[subnetwork](/compute/docs/vpc).\nExample: projects/my-project/regions/us-central1/subnetworks/my-subnet",
"type": "string"
}
},
"type": "object"
},
"NetworkPolicy": {
"description": "Configuration options for the NetworkPolicy feature.\nhttps://kubernetes.io/docs/concepts/services-networking/networkpolicies/",
"id": "NetworkPolicy",
@@ -3122,7 +3208,7 @@
"type": "object"
},
"minCpuPlatform": {
"description": "Minimum CPU platform to be used by this instance. The instance may be\nscheduled on the specified or newer CPU platform. Applicable values are the\nfriendly names of CPU platforms, such as\n\u003ccode\u003eminCpuPlatform: \u0026quot;Intel Haswell\u0026quot;\u003c/code\u003e or\n\u003ccode\u003eminCpuPlatform: \u0026quot;Intel Sandy Bridge\u0026quot;\u003c/code\u003e. For more\ninformation, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)",
"description": "Minimum CPU platform to be used by this instance. The instance may be\nscheduled on the specified or newer CPU platform. Applicable values are the\nfriendly names of CPU platforms, such as\n\u003ccode\u003eminCpuPlatform: \u0026quot;Intel Haswell\u0026quot;\u003c/code\u003e or\n\u003ccode\u003eminCpuPlatform: \u0026quot;Intel Sandy Bridge\u0026quot;\u003c/code\u003e. For more\ninformation, read [how to specify min CPU\nplatform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)",
"type": "string"
},
"oauthScopes": {
@@ -3729,7 +3815,7 @@
"type": "string"
},
"name": {
"description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"description": "The name (project, location, cluster id) of the cluster to set networking\npolicy. Specified in the format 'projects/*/locations/*/clusters/*'.",
"type": "string"
},
"networkPolicy": {
@@ -3850,13 +3936,17 @@
"type": "string"
},
"name": {
"description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"description": "The name (project, location, cluster id) of the cluster to start IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
"type": "string"
},
"projectId": {
"description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
"type": "string"
},
"rotateCredentials": {
"description": "Whether to rotate credentials during IP rotation.",
"type": "boolean"
},
"zone": {
"description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
"type": "string"
@@ -3900,7 +3990,7 @@
"type": "string"
},
"masterVersion": {
"description": "The Kubernetes version to change the master to. The only valid value is the\nlatest supported version. Use \"-\" to have the server automatically select\nthe latest version.",
"description": "The Kubernetes version to change the master to.\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the default Kubernetes version",
"type": "string"
},
"name": {
@@ -3931,7 +4021,7 @@
"type": "string"
},
"name": {
"description": "The name (project, location, cluster, node pool) of the node pool to update.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
"description": "The name (project, location, cluster, node pool) of the node pool to\nupdate. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"type": "string"
},
"nodePoolId": {
@@ -3939,7 +4029,7 @@
"type": "string"
},
"nodeVersion": {
"description": "The Kubernetes version to change the nodes to (typically an\nupgrade). Use `-` to upgrade to the latest version supported by\nthe server.",
"description": "The Kubernetes version to change the nodes to (typically an\nupgrade).\n\nUsers may specify either explicit versions offered by Kubernetes Engine or\nversion aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the Kubernetes master version",
"type": "string"
},
"projectId": {
@@ -3953,6 +4043,25 @@
},
"type": "object"
},
"UsableSubnetwork": {
"description": "UsableSubnetwork resource returns the subnetwork name, its associated network\nand the primary CIDR range.",
"id": "UsableSubnetwork",
"properties": {
"ipCidrRange": {
"description": "The range of internal addresses that are owned by this subnetwork.",
"type": "string"
},
"network": {
"description": "Network Name.\nExample: projects/my-project/global/networks/my-network",
"type": "string"
},
"subnetwork": {
"description": "Subnetwork Name.\nExample: projects/my-project/regions/us-central1/subnetworks/my-subnet",
"type": "string"
}
},
"type": "object"
},
"WorkloadMetadataConfig": {
"description": "WorkloadMetadataConfig defines the metadata configuration to expose to\nworkloads on the node pool.",
"id": "WorkloadMetadataConfig",
@@ -3976,7 +4085,7 @@
}
},
"servicePath": "",
"title": "Google Kubernetes Engine API",
"title": "Kubernetes Engine API",
"version": "v1beta1",
"version_module": true
}
+475 -52
View File
@@ -1,4 +1,4 @@
// Package container provides access to the Google Kubernetes Engine API.
// Package container provides access to the Kubernetes Engine API.
//
// See https://cloud.google.com/container-engine/
//
@@ -77,6 +77,7 @@ func (s *Service) userAgent() string {
func NewProjectsService(s *Service) *ProjectsService {
rs := &ProjectsService{s: s}
rs.Aggregated = NewProjectsAggregatedService(s)
rs.Locations = NewProjectsLocationsService(s)
rs.Zones = NewProjectsZonesService(s)
return rs
@@ -85,11 +86,34 @@ func NewProjectsService(s *Service) *ProjectsService {
type ProjectsService struct {
s *Service
Aggregated *ProjectsAggregatedService
Locations *ProjectsLocationsService
Zones *ProjectsZonesService
}
func NewProjectsAggregatedService(s *Service) *ProjectsAggregatedService {
rs := &ProjectsAggregatedService{s: s}
rs.UsableSubnetworks = NewProjectsAggregatedUsableSubnetworksService(s)
return rs
}
type ProjectsAggregatedService struct {
s *Service
UsableSubnetworks *ProjectsAggregatedUsableSubnetworksService
}
func NewProjectsAggregatedUsableSubnetworksService(s *Service) *ProjectsAggregatedUsableSubnetworksService {
rs := &ProjectsAggregatedUsableSubnetworksService{s: s}
return rs
}
type ProjectsAggregatedUsableSubnetworksService struct {
s *Service
}
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
rs := &ProjectsLocationsService{s: s}
rs.Clusters = NewProjectsLocationsClustersService(s)
@@ -496,6 +520,17 @@ type Cluster struct {
// be upgraded over time; such upgrades are reflected
// in
// currentMasterVersion and currentNodeVersion.
//
// Users may specify either explicit versions offered by
// Kubernetes Engine or version aliases, which have the following
// behavior:
//
// - "latest": picks the highest valid Kubernetes version
// - "1.X": picks the highest valid patch+gke.N patch in the 1.X
// version
// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
// - "1.X.Y-gke.N": picks an explicit Kubernetes version
// - "","-": picks the default Kubernetes version
InitialClusterVersion string `json:"initialClusterVersion,omitempty"`
// InitialNodeCount: The number of nodes to create in this cluster. You
@@ -596,9 +631,13 @@ type Cluster struct {
// [network](/compute/docs/networks-and-firewalls#networks) to which
// the
// cluster is connected. If left unspecified, the `default` network
// will be used.
// will be used. On output this shows the network ID instead of
// the name.
Network string `json:"network,omitempty"`
// NetworkConfig: Configuration for cluster networking.
NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"`
// NetworkPolicy: Configuration options for the NetworkPolicy feature.
NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"`
@@ -643,8 +682,8 @@ type Cluster struct {
PrivateCluster bool `json:"privateCluster,omitempty"`
// ResourceLabels: The resource labels for the cluster to use to
// annotate any related GCE
// resources.
// annotate any related
// Google Compute Engine resources.
ResourceLabels map[string]string `json:"resourceLabels,omitempty"`
// SelfLink: [Output only] Server-defined URL for the resource.
@@ -693,7 +732,9 @@ type Cluster struct {
// Subnetwork: The name of the Google Compute
// Engine
// [subnetwork](/compute/docs/subnetworks) to which the
// cluster is connected.
// cluster is connected. On output this shows the subnetwork ID instead
// of
// the name.
Subnetwork string `json:"subnetwork,omitempty"`
// Zone: [Output only] The name of the Google Compute
@@ -764,9 +805,18 @@ type ClusterUpdate struct {
// DesiredMasterVersion: The Kubernetes version to change the master to.
// The only valid value is the
// latest supported version. Use "-" to have the server automatically
// select
// the latest version.
// latest supported version.
//
// Users may specify either explicit versions offered by
// Kubernetes Engine or version aliases, which have the following
// behavior:
//
// - "latest": picks the highest valid Kubernetes version
// - "1.X": picks the highest valid patch+gke.N patch in the 1.X
// version
// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
// - "1.X.Y-gke.N": picks an explicit Kubernetes version
// - "-": picks the default Kubernetes version
DesiredMasterVersion string `json:"desiredMasterVersion,omitempty"`
// DesiredMonitoringService: The monitoring service the cluster should
@@ -795,8 +845,18 @@ type ClusterUpdate struct {
// DesiredNodeVersion: The Kubernetes version to change the nodes to
// (typically an
// upgrade). Use `-` to upgrade to the latest version supported by
// the server.
// upgrade).
//
// Users may specify either explicit versions offered by
// Kubernetes Engine or version aliases, which have the following
// behavior:
//
// - "latest": picks the highest valid Kubernetes version
// - "1.X": picks the highest valid patch+gke.N patch in the 1.X
// version
// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
// - "1.X.Y-gke.N": picks an explicit Kubernetes version
// - "-": picks the Kubernetes master version
DesiredNodeVersion string `json:"desiredNodeVersion,omitempty"`
// DesiredPodSecurityPolicyConfig: The desired configuration options for
@@ -835,8 +895,9 @@ type CompleteIPRotationRequest struct {
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster id) of the cluster to
// complete IP rotation.
// Specified in the format 'projects/*/locations/*/clusters/*'.
// complete IP
// rotation. Specified in the format
// 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
// ProjectId: Deprecated. The Google Developers Console [project ID or
@@ -939,8 +1000,9 @@ type CreateNodePoolRequest struct {
NodePool *NodePool `json:"nodePool,omitempty"`
// Parent: The parent (project, location, cluster id) where the node
// pool will be created.
// Specified in the format
// pool will be
// created. Specified in the
// format
// 'projects/*/locations/*/clusters/*/nodePools/*'.
Parent string `json:"parent,omitempty"`
@@ -1450,6 +1512,51 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListUsableSubnetworksResponse: ListUsableSubnetworksResponse is the
// response of
// ListUsableSubnetworksRequest.
type ListUsableSubnetworksResponse struct {
// NextPageToken: This token allows you to get the next page of results
// for list requests.
// If the number of results is larger than `page_size`, use
// the
// `next_page_token` as a value for the query parameter `page_token` in
// the
// next request. The value will become empty when there are no more
// pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// Subnetworks: A list of usable subnetworks in the specified network
// project.
Subnetworks []*UsableSubnetwork `json:"subnetworks,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListUsableSubnetworksResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListUsableSubnetworksResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MaintenancePolicy: MaintenancePolicy defines the maintenance policy
// to be used for the cluster.
type MaintenancePolicy struct {
@@ -1617,6 +1724,46 @@ func (s *MasterAuthorizedNetworksConfig) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NetworkConfig: NetworkConfig reports the relative names of network &
// subnetwork.
type NetworkConfig struct {
// Network: Output only. The name of the Google Compute
// Engine
// network(/compute/docs/networks-and-firewalls#networks).
// Example
// : projects/my-project/global/networks/my-network
Network string `json:"network,omitempty"`
// Subnetwork: Output only. The name of the Google Compute
// Engine
// [subnetwork](/compute/docs/vpc).
// Example:
// projects/my-project/regions/us-central1/subnetworks/my-subnet
Subnetwork string `json:"subnetwork,omitempty"`
// ForceSendFields is a list of field names (e.g. "Network") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Network") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *NetworkConfig) MarshalJSON() ([]byte, error) {
type NoMethod NetworkConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NetworkPolicy: Configuration options for the NetworkPolicy
// feature.
// https://kubernetes.io/docs/concepts/services-networking/netwo
@@ -1783,9 +1930,10 @@ type NodeConfig struct {
// or
// <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For
// more
// information, read [how to specify min CPU
// platform](https://cloud.google.com/compute/docs/instances/specify-min-
// cpu-platform)
// information, read [how to specify min
// CPU
// platform](https://cloud.google.com/compute/docs/instances/specify-
// min-cpu-platform)
MinCpuPlatform string `json:"minCpuPlatform,omitempty"`
// OauthScopes: The set of Google API scopes to be made available on all
@@ -2825,8 +2973,8 @@ type SetNetworkPolicyRequest struct {
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster id) of the cluster to set
// networking policy.
// Specified in the format 'projects/*/locations/*/clusters/*'.
// networking
// policy. Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
// NetworkPolicy: Configuration options for the NetworkPolicy feature.
@@ -3058,8 +3206,9 @@ type StartIPRotationRequest struct {
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster id) of the cluster to
// start IP rotation.
// Specified in the format 'projects/*/locations/*/clusters/*'.
// start IP
// rotation. Specified in the format
// 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
// ProjectId: Deprecated. The Google Developers Console [project ID or
@@ -3069,6 +3218,9 @@ type StartIPRotationRequest struct {
// This field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
// RotateCredentials: Whether to rotate credentials during IP rotation.
RotateCredentials bool `json:"rotateCredentials,omitempty"`
// Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
@@ -3160,11 +3312,18 @@ type UpdateMasterRequest struct {
// This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// MasterVersion: The Kubernetes version to change the master to. The
// only valid value is the
// latest supported version. Use "-" to have the server automatically
// select
// the latest version.
// MasterVersion: The Kubernetes version to change the master to.
//
// Users may specify either explicit versions offered by
// Kubernetes Engine or version aliases, which have the following
// behavior:
//
// - "latest": picks the highest valid Kubernetes version
// - "1.X": picks the highest valid patch+gke.N patch in the 1.X
// version
// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
// - "1.X.Y-gke.N": picks an explicit Kubernetes version
// - "-": picks the default Kubernetes version
MasterVersion string `json:"masterVersion,omitempty"`
// Name: The name (project, location, cluster) of the cluster to
@@ -3221,8 +3380,9 @@ type UpdateNodePoolRequest struct {
ImageType string `json:"imageType,omitempty"`
// Name: The name (project, location, cluster, node pool) of the node
// pool to update.
// Specified in the format
// pool to
// update. Specified in the
// format
// 'projects/*/locations/*/clusters/*/nodePools/*'.
Name string `json:"name,omitempty"`
@@ -3232,8 +3392,18 @@ type UpdateNodePoolRequest struct {
// NodeVersion: The Kubernetes version to change the nodes to (typically
// an
// upgrade). Use `-` to upgrade to the latest version supported by
// the server.
// upgrade).
//
// Users may specify either explicit versions offered by Kubernetes
// Engine or
// version aliases, which have the following behavior:
//
// - "latest": picks the highest valid Kubernetes version
// - "1.X": picks the highest valid patch+gke.N patch in the 1.X
// version
// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
// - "1.X.Y-gke.N": picks an explicit Kubernetes version
// - "-": picks the Kubernetes master version
NodeVersion string `json:"nodeVersion,omitempty"`
// ProjectId: Deprecated. The Google Developers Console [project ID or
@@ -3274,6 +3444,46 @@ func (s *UpdateNodePoolRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UsableSubnetwork: UsableSubnetwork resource returns the subnetwork
// name, its associated network
// and the primary CIDR range.
type UsableSubnetwork struct {
// IpCidrRange: The range of internal addresses that are owned by this
// subnetwork.
IpCidrRange string `json:"ipCidrRange,omitempty"`
// Network: Network Name.
// Example: projects/my-project/global/networks/my-network
Network string `json:"network,omitempty"`
// Subnetwork: Subnetwork Name.
// Example:
// projects/my-project/regions/us-central1/subnetworks/my-subnet
Subnetwork string `json:"subnetwork,omitempty"`
// ForceSendFields is a list of field names (e.g. "IpCidrRange") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "IpCidrRange") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UsableSubnetwork) MarshalJSON() ([]byte, error) {
type NoMethod UsableSubnetwork
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// WorkloadMetadataConfig: WorkloadMetadataConfig defines the metadata
// configuration to expose to
// workloads on the node pool.
@@ -3323,6 +3533,215 @@ func (s *WorkloadMetadataConfig) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "container.projects.aggregated.usableSubnetworks.list":
type ProjectsAggregatedUsableSubnetworksListCall struct {
s *Service
parent string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Lists subnetworks that are usable for creating clusters in a
// project.
func (r *ProjectsAggregatedUsableSubnetworksService) List(parent string) *ProjectsAggregatedUsableSubnetworksListCall {
c := &ProjectsAggregatedUsableSubnetworksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
return c
}
// Filter sets the optional parameter "filter": Filtering currently only
// supports equality on the networkProjectId and must
// be in the form: "networkProjectId=[PROJECTID]", where
// `networkProjectId`
// is the project which owns the listed subnetworks. This defaults to
// the
// parent project ID.
func (c *ProjectsAggregatedUsableSubnetworksListCall) Filter(filter string) *ProjectsAggregatedUsableSubnetworksListCall {
c.urlParams_.Set("filter", filter)
return c
}
// PageSize sets the optional parameter "pageSize": The max number of
// results per page that should be returned. If the number
// of available results is larger than `page_size`, a `next_page_token`
// is
// returned which can be used to get the next page of results in
// subsequent
// requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
func (c *ProjectsAggregatedUsableSubnetworksListCall) PageSize(pageSize int64) *ProjectsAggregatedUsableSubnetworksListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": Specifies a page
// token to use. Set this to the nextPageToken returned by
// previous list requests to get the next page of results.
func (c *ProjectsAggregatedUsableSubnetworksListCall) PageToken(pageToken string) *ProjectsAggregatedUsableSubnetworksListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ProjectsAggregatedUsableSubnetworksListCall) Fields(s ...googleapi.Field) *ProjectsAggregatedUsableSubnetworksListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *ProjectsAggregatedUsableSubnetworksListCall) IfNoneMatch(entityTag string) *ProjectsAggregatedUsableSubnetworksListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *ProjectsAggregatedUsableSubnetworksListCall) Context(ctx context.Context) *ProjectsAggregatedUsableSubnetworksListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ProjectsAggregatedUsableSubnetworksListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsAggregatedUsableSubnetworksListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/aggregated/usableSubnetworks")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "container.projects.aggregated.usableSubnetworks.list" call.
// Exactly one of *ListUsableSubnetworksResponse or error will be
// non-nil. Any non-2xx status code is an error. Response headers are in
// either *ListUsableSubnetworksResponse.ServerResponse.Header or (if a
// response was returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *ProjectsAggregatedUsableSubnetworksListCall) Do(opts ...googleapi.CallOption) (*ListUsableSubnetworksResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListUsableSubnetworksResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Lists subnetworks that are usable for creating clusters in a project.",
// "flatPath": "v1beta1/projects/{projectsId}/aggregated/usableSubnetworks",
// "httpMethod": "GET",
// "id": "container.projects.aggregated.usableSubnetworks.list",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "filter": {
// "description": "Filtering currently only supports equality on the networkProjectId and must\nbe in the form: \"networkProjectId=[PROJECTID]\", where `networkProjectId`\nis the project which owns the listed subnetworks. This defaults to the\nparent project ID.",
// "location": "query",
// "type": "string"
// },
// "pageSize": {
// "description": "The max number of results per page that should be returned. If the number\nof available results is larger than `page_size`, a `next_page_token` is\nreturned which can be used to get the next page of results in subsequent\nrequests. Acceptable values are 0 to 500, inclusive. (Default: 500)",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "Specifies a page token to use. Set this to the nextPageToken returned by\nprevious list requests to get the next page of results.",
// "location": "query",
// "type": "string"
// },
// "parent": {
// "description": "The parent project where subnetworks are usable.\nSpecified in the format 'projects/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1beta1/{+parent}/aggregated/usableSubnetworks",
// "response": {
// "$ref": "ListUsableSubnetworksResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *ProjectsAggregatedUsableSubnetworksListCall) Pages(ctx context.Context, f func(*ListUsableSubnetworksResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "container.projects.locations.getServerConfig":
type ProjectsLocationsGetServerConfigCall struct {
@@ -3607,7 +4026,7 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) Do(opts ...googleapi.C
// ],
// "parameters": {
// "name": {
// "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
// "description": "The name (project, location, cluster id) of the cluster to complete IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
@@ -5380,7 +5799,7 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) Do(opts ...googleapi.Cal
// ],
// "parameters": {
// "name": {
// "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
// "description": "The name (project, location, cluster id) of the cluster to set networking\npolicy. Specified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
@@ -5650,7 +6069,7 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) Do(opts ...googleapi.Call
// ],
// "parameters": {
// "name": {
// "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
// "description": "The name (project, location, cluster id) of the cluster to start IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
@@ -6055,7 +6474,7 @@ func (c *ProjectsLocationsClustersNodePoolsCreateCall) Do(opts ...googleapi.Call
// ],
// "parameters": {
// "parent": {
// "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
// "description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
@@ -6226,7 +6645,7 @@ func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Do(opts ...googleapi.Call
// "type": "string"
// },
// "name": {
// "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
// "description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
@@ -6423,7 +6842,7 @@ func (c *ProjectsLocationsClustersNodePoolsGetCall) Do(opts ...googleapi.CallOpt
// "type": "string"
// },
// "name": {
// "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
// "description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
@@ -6612,7 +7031,7 @@ func (c *ProjectsLocationsClustersNodePoolsListCall) Do(opts ...googleapi.CallOp
// "type": "string"
// },
// "parent": {
// "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
// "description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
@@ -7298,7 +7717,7 @@ func (c *ProjectsLocationsClustersNodePoolsUpdateCall) Do(opts ...googleapi.Call
// ],
// "parameters": {
// "name": {
// "description": "The name (project, location, cluster, node pool) of the node pool to update.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
// "description": "The name (project, location, cluster, node pool) of the node pool to\nupdate. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
@@ -7669,9 +8088,11 @@ func (c *ProjectsLocationsOperationsListCall) ProjectId(projectId string) *Proje
}
// Zone sets the optional parameter "zone": Deprecated. The name of the
// Google Compute Engine [zone](/compute/docs/zones#available)
// to return operations for, or `-` for all zones.
// This field has been deprecated and replaced by the parent field.
// Google Compute Engine
// [zone](/compute/docs/zones#available) to return operations for, or
// `-` for
// all zones. This field has been deprecated and replaced by the parent
// field.
func (c *ProjectsLocationsOperationsListCall) Zone(zone string) *ProjectsLocationsOperationsListCall {
c.urlParams_.Set("zone", zone)
return c
@@ -7792,7 +8213,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (
// "type": "string"
// },
// "zone": {
// "description": "Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field has been deprecated and replaced by the parent field.",
// "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
// "location": "query",
// "type": "string"
// }
@@ -10982,8 +11403,9 @@ func (r *ProjectsZonesClustersNodePoolsService) Delete(projectId string, zone st
}
// Name sets the optional parameter "name": The name (project, location,
// cluster, node pool id) of the node pool to delete.
// Specified in the format
// cluster, node pool id) of the node pool to
// delete. Specified in the
// format
// 'projects/*/locations/*/clusters/*/nodePools/*'.
func (c *ProjectsZonesClustersNodePoolsDeleteCall) Name(name string) *ProjectsZonesClustersNodePoolsDeleteCall {
c.urlParams_.Set("name", name)
@@ -11092,7 +11514,7 @@ func (c *ProjectsZonesClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOpti
// "type": "string"
// },
// "name": {
// "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
// "description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "query",
// "type": "string"
// },
@@ -11151,8 +11573,9 @@ func (r *ProjectsZonesClustersNodePoolsService) Get(projectId string, zone strin
}
// Name sets the optional parameter "name": The name (project, location,
// cluster, node pool id) of the node pool to get.
// Specified in the format
// cluster, node pool id) of the node pool to
// get. Specified in the
// format
// 'projects/*/locations/*/clusters/*/nodePools/*'.
func (c *ProjectsZonesClustersNodePoolsGetCall) Name(name string) *ProjectsZonesClustersNodePoolsGetCall {
c.urlParams_.Set("name", name)
@@ -11274,7 +11697,7 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption)
// "type": "string"
// },
// "name": {
// "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
// "description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "query",
// "type": "string"
// },
@@ -11331,8 +11754,8 @@ func (r *ProjectsZonesClustersNodePoolsService) List(projectId string, zone stri
}
// Parent sets the optional parameter "parent": The parent (project,
// location, cluster id) where the node pools will be listed.
// Specified in the format 'projects/*/locations/*/clusters/*'.
// location, cluster id) where the node pools will be
// listed. Specified in the format 'projects/*/locations/*/clusters/*'.
func (c *ProjectsZonesClustersNodePoolsListCall) Parent(parent string) *ProjectsZonesClustersNodePoolsListCall {
c.urlParams_.Set("parent", parent)
return c
@@ -11451,7 +11874,7 @@ func (c *ProjectsZonesClustersNodePoolsListCall) Do(opts ...googleapi.CallOption
// "type": "string"
// },
// "parent": {
// "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
// "description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "query",
// "type": "string"
// },
@@ -12609,7 +13032,7 @@ func (c *ProjectsZonesOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis
// "type": "string"
// },
// "zone": {
// "description": "Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field has been deprecated and replaced by the parent field.",
// "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
// "location": "path",
// "required": true,
// "type": "string"
+203 -49
View File
@@ -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": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/viqemhmQQxAoxqj8nxZHD7zTSa8\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/PNUnFmurkt6UcyajxjbWsLH2mTY\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -398,6 +398,12 @@
"required": true,
"type": "string"
},
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"location": "query",
"repeated": true,
"type": "string"
},
"merchantId": {
"description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.",
"format": "uint64",
@@ -422,6 +428,12 @@
"merchantId"
],
"parameters": {
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"location": "query",
"repeated": true,
"type": "string"
},
"maxResults": {
"description": "The maximum number of account statuses to return in the response, used for paging.",
"format": "uint32",
@@ -681,6 +693,43 @@
"https://www.googleapis.com/auth/content"
]
},
"fetchnow": {
"description": "Invokes a fetch for the datafeed in your Merchant Center account.",
"httpMethod": "POST",
"id": "content.datafeeds.fetchnow",
"parameterOrder": [
"merchantId",
"datafeedId"
],
"parameters": {
"datafeedId": {
"description": "The ID of the datafeed to be fetched.",
"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 account that manages the datafeed. This account cannot be a multi-client account.",
"format": "uint64",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "{merchantId}/datafeeds/{datafeedId}/fetchNow",
"response": {
"$ref": "DatafeedsFetchNowResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"get": {
"description": "Retrieves a datafeed configuration from your Merchant Center account.",
"httpMethod": "GET",
@@ -1032,7 +1081,7 @@
"liasettings": {
"methods": {
"custombatch": {
"description": "Retrieves and updates the Lia settings of multiple accounts in a single request.",
"description": "Retrieves and/or updates the LIA settings of multiple accounts in a single request.",
"httpMethod": "POST",
"id": "content.liasettings.custombatch",
"parameters": {
@@ -1054,7 +1103,7 @@
]
},
"get": {
"description": "Retrieves the Lia settings of the account.",
"description": "Retrieves the LIA settings of the account.",
"httpMethod": "GET",
"id": "content.liasettings.get",
"parameterOrder": [
@@ -1063,7 +1112,7 @@
],
"parameters": {
"accountId": {
"description": "The ID of the account for which to get/update Lia settings.",
"description": "The ID of the account for which to get or update LIA settings.",
"format": "uint64",
"location": "path",
"required": true,
@@ -1086,7 +1135,7 @@
]
},
"getaccessiblegmbaccounts": {
"description": "Retrieves the list of accesable Google My Business accounts.",
"description": "Retrieves the list of accessible Google My Business accounts.",
"httpMethod": "GET",
"id": "content.liasettings.getaccessiblegmbaccounts",
"parameterOrder": [
@@ -1095,7 +1144,7 @@
],
"parameters": {
"accountId": {
"description": "The ID of the account for which to retrieve the accessible Google My Business accounts.",
"description": "The ID of the account for which to retrieve accessible Google My Business accounts.",
"format": "uint64",
"location": "path",
"required": true,
@@ -1118,7 +1167,7 @@
]
},
"list": {
"description": "Lists the Lia settings of the sub-accounts in your Merchant Center account.",
"description": "Lists the LIA settings of the sub-accounts in your Merchant Center account.",
"httpMethod": "GET",
"id": "content.liasettings.list",
"parameterOrder": [
@@ -1126,7 +1175,7 @@
],
"parameters": {
"maxResults": {
"description": "The maximum number of Lia settings to return in the response, used for paging.",
"description": "The maximum number of LIA settings to return in the response, used for paging.",
"format": "uint32",
"location": "query",
"type": "integer"
@@ -1153,7 +1202,7 @@
]
},
"patch": {
"description": "Updates the Lia settings of the account. This method supports patch semantics.",
"description": "Updates the LIA settings of the account. This method supports patch semantics.",
"httpMethod": "PATCH",
"id": "content.liasettings.patch",
"parameterOrder": [
@@ -1162,7 +1211,7 @@
],
"parameters": {
"accountId": {
"description": "The ID of the account for which to get/update Lia settings.",
"description": "The ID of the account for which to get or update LIA settings.",
"format": "uint64",
"location": "path",
"required": true,
@@ -1193,7 +1242,7 @@
]
},
"requestgmbaccess": {
"description": "Requests access to a specified Google By Business account.",
"description": "Requests access to a specified Google My Business account.",
"httpMethod": "POST",
"id": "content.liasettings.requestgmbaccess",
"parameterOrder": [
@@ -1209,7 +1258,7 @@
"type": "string"
},
"gmbEmail": {
"description": "The email of the Google My Business Account.",
"description": "The email of the Google My Business account.",
"location": "query",
"type": "string"
},
@@ -1230,7 +1279,7 @@
]
},
"requestinventoryverification": {
"description": "Requests the inventory validation for the specified country.",
"description": "Requests inventory validation for the specified country.",
"httpMethod": "POST",
"id": "content.liasettings.requestinventoryverification",
"parameterOrder": [
@@ -1247,7 +1296,7 @@
"type": "string"
},
"country": {
"description": "The country for which the inventory validation is requested.",
"description": "The country for which inventory validation is requested.",
"location": "path",
"required": true,
"type": "string"
@@ -1269,7 +1318,7 @@
]
},
"setinventoryverificationcontact": {
"description": "Sets the inventory validation verification for the specified country.",
"description": "Sets the inventory verification contract for the specified country.",
"httpMethod": "POST",
"id": "content.liasettings.setinventoryverificationcontact",
"parameterOrder": [
@@ -1285,7 +1334,7 @@
"type": "string"
},
"contactEmail": {
"description": "The email of the inventory check contact.",
"description": "The email of the inventory verification contact.",
"location": "query",
"type": "string"
},
@@ -1295,12 +1344,12 @@
"type": "string"
},
"country": {
"description": "The country for which the inventory verification is requested.",
"description": "The country for which inventory verification is requested.",
"location": "query",
"type": "string"
},
"language": {
"description": "The country for which the inventory verification is requested.",
"description": "The language for which inventory verification is requested.",
"location": "query",
"type": "string"
},
@@ -1321,7 +1370,7 @@
]
},
"update": {
"description": "Updates the Lia settings of the account.",
"description": "Updates the LIA settings of the account.",
"httpMethod": "PUT",
"id": "content.liasettings.update",
"parameterOrder": [
@@ -1330,7 +1379,7 @@
],
"parameters": {
"accountId": {
"description": "The ID of the account for which to get/update Lia settings.",
"description": "The ID of the account for which to get or update LIA settings.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2121,7 +2170,7 @@
"type": "boolean"
},
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2157,7 +2206,7 @@
],
"parameters": {
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2200,7 +2249,7 @@
"type": "boolean"
},
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2240,7 +2289,7 @@
"type": "boolean"
},
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2275,7 +2324,7 @@
],
"parameters": {
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2312,7 +2361,7 @@
"type": "boolean"
},
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2534,6 +2583,12 @@
"productId"
],
"parameters": {
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"location": "query",
"repeated": true,
"type": "string"
},
"includeAttributes": {
"description": "Flag to include full product data in the result of this get request. The default value is false.",
"location": "query",
@@ -2569,6 +2624,12 @@
"merchantId"
],
"parameters": {
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"location": "query",
"repeated": true,
"type": "string"
},
"includeAttributes": {
"description": "Flag to include full product data in the results of the list request. The default value is false.",
"location": "query",
@@ -2830,7 +2891,7 @@
}
}
},
"revision": "20180314",
"revision": "20180410",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Account": {
@@ -2992,6 +3053,10 @@
"description": "Country for which this issue is reported.",
"type": "string"
},
"destination": {
"description": "The destination the issue applies to.",
"type": "string"
},
"detail": {
"description": "Additional details about the issue.",
"type": "string"
@@ -3018,6 +3083,10 @@
"description": "Country for which this issue is reported.",
"type": "string"
},
"destination": {
"description": "The destination the issue applies to.",
"type": "string"
},
"detail": {
"description": "A more detailed description of the issue.",
"type": "string"
@@ -3348,6 +3417,13 @@
"format": "uint32",
"type": "integer"
},
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"items": {
"type": "string"
},
"type": "array"
},
"merchantId": {
"description": "The ID of the managing account.",
"format": "uint64",
@@ -3937,6 +4013,17 @@
},
"type": "object"
},
"DatafeedsFetchNowResponse": {
"id": "DatafeedsFetchNowResponse",
"properties": {
"kind": {
"default": "content#datafeedsFetchNowResponse",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedsFetchNowResponse\".",
"type": "string"
}
},
"type": "object"
},
"DatafeedsListResponse": {
"id": "DatafeedsListResponse",
"properties": {
@@ -4137,7 +4224,7 @@
"type": "string"
},
"gmbAccounts": {
"description": "A list of GMB account which are available to the merchant.",
"description": "A list of GMB accounts which are available to the merchant.",
"items": {
"$ref": "GmbAccountsGmbAccount"
},
@@ -4163,7 +4250,7 @@
"type": "string"
},
"type": {
"description": "Type of the GMB account (User or Business).",
"description": "The type of the GMB account (User or Business).",
"type": "string"
}
},
@@ -4487,11 +4574,11 @@
"id": "LiaAboutPageSettings",
"properties": {
"status": {
"description": "The status verification process.",
"description": "The status of the verification process for the About page.",
"type": "string"
},
"url": {
"description": "The about URL.",
"description": "The URL for the About page.",
"type": "string"
}
},
@@ -4502,7 +4589,7 @@
"properties": {
"about": {
"$ref": "LiaAboutPageSettings",
"description": "The about page settings."
"description": "The settings for the About page."
},
"country": {
"annotations": {
@@ -4519,7 +4606,7 @@
},
"inventory": {
"$ref": "LiaInventorySettings",
"description": "LIA inventory settings."
"description": "LIA inventory verification settings."
},
"onDisplayToOrder": {
"$ref": "LiaOnDisplayToOrderSettings",
@@ -4536,11 +4623,11 @@
"id": "LiaInventorySettings",
"properties": {
"inventoryVerificationContactEmail": {
"description": "The email of contact which will be contacted during the verification process.",
"description": "The email of the contact for the inventory verification process.",
"type": "string"
},
"inventoryVerificationContactName": {
"description": "The name of contact which will be contacted during the verification process.",
"description": "The name of the contact for the inventory verification process.",
"type": "string"
},
"inventoryVerificationContactStatus": {
@@ -4703,7 +4790,7 @@
"type": "string"
},
"gmbAccounts": {
"description": "A list of GMB account which are available to the merchant.",
"description": "A list of GMB accounts which are available to the merchant.",
"items": {
"$ref": "GmbAccountsGmbAccount"
},
@@ -4726,7 +4813,7 @@
"type": "string"
},
"nextPageToken": {
"description": "The token for the retrieval of the next page of Lia settings.",
"description": "The token for the retrieval of the next page of LIA settings.",
"type": "string"
},
"resources": {
@@ -4978,16 +5065,38 @@
"id": "OrderCustomer",
"properties": {
"email": {
"description": "Email address of the customer.",
"description": "Email address that should be used for order related communications. In certain cases this might not be a real users email, but a proxy email.",
"type": "string"
},
"explicitMarketingPreference": {
"description": "If set, this indicates the user explicitly chose to opt in or out of providing marketing rights to the merchant. If unset, this indicates the user has already made this choice in a previous purchase, and was thus not shown the marketing right opt in/out checkbox during the checkout flow.",
"description": "Deprecated. Please use marketingRightsInfo instead.",
"type": "boolean"
},
"fullName": {
"description": "Full name of the customer.",
"type": "string"
},
"marketingRightsInfo": {
"$ref": "OrderCustomerMarketingRightsInfo",
"description": "Customer's marketing preferences."
}
},
"type": "object"
},
"OrderCustomerMarketingRightsInfo": {
"id": "OrderCustomerMarketingRightsInfo",
"properties": {
"explicitMarketingPreference": {
"description": "Last known user selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty.",
"type": "string"
},
"lastUpdatedTimestamp": {
"description": "Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet.",
"type": "string"
},
"marketingEmailAddress": {
"description": "Email address that can be used for marketing purposes. This field is only filled when explicitMarketingPreference is equal to 'granted'.",
"type": "string"
}
},
"type": "object"
@@ -6648,7 +6757,7 @@
"description": "The store information to submit. Set this only if the method is insert."
},
"storeCode": {
"description": "The store code. Required only to get/submit store information.",
"description": "The store code. Set this only if the method is delete or get.",
"type": "string"
},
"targetMerchantId": {
@@ -6765,7 +6874,7 @@
"content.pos.inventory"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -6839,7 +6948,7 @@
"content.pos.inventory"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -6918,7 +7027,7 @@
"content.pos.inventory"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -7019,7 +7128,7 @@
"content.pos.sale"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -7097,7 +7206,7 @@
"content.pos.sale"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -7180,7 +7289,7 @@
"content.pos.sale"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -7854,6 +7963,10 @@
"ProductStatusDataQualityIssue": {
"id": "ProductStatusDataQualityIssue",
"properties": {
"destination": {
"description": "The destination the issue applies to.",
"type": "string"
},
"detail": {
"description": "A more detailed error string.",
"type": "string"
@@ -7922,10 +8035,22 @@
"description": "The error code of the issue.",
"type": "string"
},
"description": {
"description": "A short issue description in English.",
"type": "string"
},
"destination": {
"description": "The destination the issue applies to.",
"type": "string"
},
"detail": {
"description": "A detailed issue description in English.",
"type": "string"
},
"documentation": {
"description": "The URL of a web page to help with resolving this issue.",
"type": "string"
},
"resolution": {
"description": "Whether the issue can be resolved by the merchant.",
"type": "string"
@@ -8126,6 +8251,13 @@
"format": "uint32",
"type": "integer"
},
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"items": {
"type": "string"
},
"type": "array"
},
"includeAttributes": {
"type": "boolean"
},
@@ -8275,6 +8407,10 @@
"$ref": "DeliveryTime",
"description": "Time spent in various aspects from order to the delivery of the product. Required."
},
"eligibility": {
"description": "Eligibility for this service.",
"type": "string"
},
"minimumOrderValue": {
"$ref": "Price",
"description": "Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency."
@@ -8582,12 +8718,30 @@
"type": "string"
},
"explicitMarketingPreference": {
"description": "If set, this indicates the user explicitly chose to opt in or out of providing marketing rights to the merchant. If unset, this indicates the user has already made this choice in a previous purchase, and was thus not shown the marketing right opt in/out checkbox during the checkout flow. Optional.",
"description": "Deprecated. Please use marketingRightsInfo instead.",
"type": "boolean"
},
"fullName": {
"description": "Full name of the customer.",
"type": "string"
},
"marketingRightsInfo": {
"$ref": "TestOrderCustomerMarketingRightsInfo",
"description": "Customer's marketing preferences."
}
},
"type": "object"
},
"TestOrderCustomerMarketingRightsInfo": {
"id": "TestOrderCustomerMarketingRightsInfo",
"properties": {
"explicitMarketingPreference": {
"description": "Last know user use selection regards marketing preferences. In certain cases selection might not be known, so this field would be empty.",
"type": "string"
},
"lastUpdatedTimestamp": {
"description": "Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet.",
"type": "string"
}
},
"type": "object"
+427 -78
View File
@@ -449,6 +449,9 @@ type AccountStatusAccountLevelIssue struct {
// Country: Country for which this issue is reported.
Country string `json:"country,omitempty"`
// Destination: The destination the issue applies to.
Destination string `json:"destination,omitempty"`
// Detail: Additional details about the issue.
Detail string `json:"detail,omitempty"`
@@ -488,6 +491,9 @@ type AccountStatusDataQualityIssue struct {
// Country: Country for which this issue is reported.
Country string `json:"country,omitempty"`
// Destination: The destination the issue applies to.
Destination string `json:"destination,omitempty"`
// Detail: A more detailed description of the issue.
Detail string `json:"detail,omitempty"`
@@ -1036,6 +1042,10 @@ type AccountstatusesCustomBatchRequestEntry struct {
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
// Destinations: If set, only issues for the specified destinations are
// returned, otherwise only issues for the Shopping destination.
Destinations []string `json:"destinations,omitempty"`
// MerchantId: The ID of the managing account.
MerchantId uint64 `json:"merchantId,omitempty,string"`
@@ -1936,6 +1946,38 @@ func (s *DatafeedsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedsFetchNowResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#datafeedsFetchNowResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedsFetchNowResponse) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedsFetchNowResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedsListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#datafeedsListResponse".
@@ -2268,7 +2310,7 @@ type GmbAccounts struct {
// AccountId: The ID of the account.
AccountId uint64 `json:"accountId,omitempty,string"`
// GmbAccounts: A list of GMB account which are available to the
// GmbAccounts: A list of GMB accounts which are available to the
// merchant.
GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"`
@@ -2305,7 +2347,7 @@ type GmbAccountsGmbAccount struct {
// Name: The name of the GMB account.
Name string `json:"name,omitempty"`
// Type: Type of the GMB account (User or Business).
// Type: The type of the GMB account (User or Business).
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
@@ -2858,10 +2900,10 @@ func (s *InventorySetResponse) MarshalJSON() ([]byte, error) {
}
type LiaAboutPageSettings struct {
// Status: The status verification process.
// Status: The status of the verification process for the About page.
Status string `json:"status,omitempty"`
// Url: The about URL.
// Url: The URL for the About page.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Status") to
@@ -2888,7 +2930,7 @@ func (s *LiaAboutPageSettings) MarshalJSON() ([]byte, error) {
}
type LiaCountrySettings struct {
// About: The about page settings.
// About: The settings for the About page.
About *LiaAboutPageSettings `json:"about,omitempty"`
// Country: CLDR country code (e.g. "US").
@@ -2898,7 +2940,7 @@ type LiaCountrySettings struct {
// storefront" feature.
HostedLocalStorefrontActive bool `json:"hostedLocalStorefrontActive,omitempty"`
// Inventory: LIA inventory settings.
// Inventory: LIA inventory verification settings.
Inventory *LiaInventorySettings `json:"inventory,omitempty"`
// OnDisplayToOrder: LIA "On Display To Order" settings.
@@ -2931,12 +2973,12 @@ func (s *LiaCountrySettings) MarshalJSON() ([]byte, error) {
}
type LiaInventorySettings struct {
// InventoryVerificationContactEmail: The email of contact which will be
// contacted during the verification process.
// InventoryVerificationContactEmail: The email of the contact for the
// inventory verification process.
InventoryVerificationContactEmail string `json:"inventoryVerificationContactEmail,omitempty"`
// InventoryVerificationContactName: The name of contact which will be
// contacted during the verification process.
// InventoryVerificationContactName: The name of the contact for the
// inventory verification process.
InventoryVerificationContactName string `json:"inventoryVerificationContactName,omitempty"`
// InventoryVerificationContactStatus: The status of the verification
@@ -3203,7 +3245,7 @@ type LiasettingsGetAccessibleGmbAccountsResponse struct {
// AccountId: The ID of the account.
AccountId uint64 `json:"accountId,omitempty,string"`
// GmbAccounts: A list of GMB account which are available to the
// GmbAccounts: A list of GMB accounts which are available to the
// merchant.
GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"`
@@ -3243,7 +3285,7 @@ type LiasettingsListResponse struct {
// string "content#liasettingsListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: The token for the retrieval of the next page of Lia
// NextPageToken: The token for the retrieval of the next page of LIA
// settings.
NextPageToken string `json:"nextPageToken,omitempty"`
@@ -3641,19 +3683,21 @@ func (s *OrderCancellation) MarshalJSON() ([]byte, error) {
}
type OrderCustomer struct {
// Email: Email address of the customer.
// Email: Email address that should be used for order related
// communications. In certain cases this might not be a real users
// email, but a proxy email.
Email string `json:"email,omitempty"`
// ExplicitMarketingPreference: If set, this indicates the user
// explicitly chose to opt in or out of providing marketing rights to
// the merchant. If unset, this indicates the user has already made this
// choice in a previous purchase, and was thus not shown the marketing
// right opt in/out checkbox during the checkout flow.
// ExplicitMarketingPreference: Deprecated. Please use
// marketingRightsInfo instead.
ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`
// FullName: Full name of the customer.
FullName string `json:"fullName,omitempty"`
// MarketingRightsInfo: Customer's marketing preferences.
MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -3677,6 +3721,46 @@ func (s *OrderCustomer) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrderCustomerMarketingRightsInfo struct {
// ExplicitMarketingPreference: Last known user selection regarding
// marketing preferences. In certain cases this selection might not be
// known, so this field would be empty.
ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
// LastUpdatedTimestamp: Timestamp when last time marketing preference
// was updated. Could be empty, if user wasn't offered a selection yet.
LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
// MarketingEmailAddress: Email address that can be used for marketing
// purposes. This field is only filled when explicitMarketingPreference
// is equal to 'granted'.
MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
type NoMethod OrderCustomerMarketingRightsInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrderDeliveryDetails struct {
// Address: The delivery address
Address *OrderAddress `json:"address,omitempty"`
@@ -6328,8 +6412,8 @@ type PosCustomBatchRequestEntry struct {
// is insert.
Store *PosStore `json:"store,omitempty"`
// StoreCode: The store code. Required only to get/submit store
// information.
// StoreCode: The store code. Set this only if the method is delete or
// get.
StoreCode string `json:"storeCode,omitempty"`
// TargetMerchantId: The ID of the account for which to get/submit data.
@@ -6458,7 +6542,8 @@ type PosInventory struct {
// Quantity: The available quantity of the item.
Quantity int64 `json:"quantity,omitempty,string"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -6507,7 +6592,8 @@ type PosInventoryRequest struct {
// Quantity: The available quantity of the item.
Quantity int64 `json:"quantity,omitempty,string"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -6560,7 +6646,8 @@ type PosInventoryResponse struct {
// Quantity: The available quantity of the item.
Quantity int64 `json:"quantity,omitempty,string"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -6657,7 +6744,8 @@ type PosSale struct {
// SaleId: A unique ID to group items from the same sale event.
SaleId string `json:"saleId,omitempty"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -6710,7 +6798,8 @@ type PosSaleRequest struct {
// SaleId: A unique ID to group items from the same sale event.
SaleId string `json:"saleId,omitempty"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -6767,7 +6856,8 @@ type PosSaleResponse struct {
// SaleId: A unique ID to group items from the same sale event.
SaleId string `json:"saleId,omitempty"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -7612,6 +7702,9 @@ func (s *ProductStatus) MarshalJSON() ([]byte, error) {
}
type ProductStatusDataQualityIssue struct {
// Destination: The destination the issue applies to.
Destination string `json:"destination,omitempty"`
// Detail: A more detailed error string.
Detail string `json:"detail,omitempty"`
@@ -7637,7 +7730,7 @@ type ProductStatusDataQualityIssue struct {
// ValueProvided: The value the attribute had at time of evaluation.
ValueProvided string `json:"valueProvided,omitempty"`
// ForceSendFields is a list of field names (e.g. "Detail") to
// ForceSendFields is a list of field names (e.g. "Destination") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -7645,10 +7738,10 @@ type ProductStatusDataQualityIssue struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Detail") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "Destination") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@@ -7707,9 +7800,19 @@ type ProductStatusItemLevelIssue struct {
// Code: The error code of the issue.
Code string `json:"code,omitempty"`
// Description: A short issue description in English.
Description string `json:"description,omitempty"`
// Destination: The destination the issue applies to.
Destination string `json:"destination,omitempty"`
// Detail: A detailed issue description in English.
Detail string `json:"detail,omitempty"`
// Documentation: The URL of a web page to help with resolving this
// issue.
Documentation string `json:"documentation,omitempty"`
// Resolution: Whether the issue can be resolved by the merchant.
Resolution string `json:"resolution,omitempty"`
@@ -8089,6 +8192,10 @@ type ProductstatusesCustomBatchRequestEntry struct {
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
// Destinations: If set, only issues for the specified destinations are
// returned, otherwise only issues for the Shopping destination.
Destinations []string `json:"destinations,omitempty"`
IncludeAttributes bool `json:"includeAttributes,omitempty"`
// MerchantId: The ID of the managing account.
@@ -8329,6 +8436,9 @@ type Service struct {
// delivery of the product. Required.
DeliveryTime *DeliveryTime `json:"deliveryTime,omitempty"`
// Eligibility: Eligibility for this service.
Eligibility string `json:"eligibility,omitempty"`
// MinimumOrderValue: Minimum order value for this service. If set,
// indicates that customers will have to spend at least this amount. All
// prices within a service must have the same currency.
@@ -8762,16 +8872,16 @@ type TestOrderCustomer struct {
// Email: Email address of the customer.
Email string `json:"email,omitempty"`
// ExplicitMarketingPreference: If set, this indicates the user
// explicitly chose to opt in or out of providing marketing rights to
// the merchant. If unset, this indicates the user has already made this
// choice in a previous purchase, and was thus not shown the marketing
// right opt in/out checkbox during the checkout flow. Optional.
// ExplicitMarketingPreference: Deprecated. Please use
// marketingRightsInfo instead.
ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`
// FullName: Full name of the customer.
FullName string `json:"fullName,omitempty"`
// MarketingRightsInfo: Customer's marketing preferences.
MarketingRightsInfo *TestOrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -8795,6 +8905,41 @@ func (s *TestOrderCustomer) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestOrderCustomerMarketingRightsInfo struct {
// ExplicitMarketingPreference: Last know user use selection regards
// marketing preferences. In certain cases selection might not be known,
// so this field would be empty.
ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
// LastUpdatedTimestamp: Timestamp when last time marketing preference
// was updated. Could be empty, if user wasn't offered a selection yet.
LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestOrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
type NoMethod TestOrderCustomerMarketingRightsInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestOrderLineItem struct {
// Product: Product data from the time of the order placement.
Product *TestOrderLineItemProduct `json:"product,omitempty"`
@@ -10487,6 +10632,14 @@ func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *Accou
return c
}
// Destinations sets the optional parameter "destinations": If set, only
// issues for the specified destinations are returned, otherwise only
// issues for the Shopping destination.
func (c *AccountstatusesGetCall) Destinations(destinations ...string) *AccountstatusesGetCall {
c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
@@ -10597,6 +10750,12 @@ func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatu
// "required": true,
// "type": "string"
// },
// "destinations": {
// "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "merchantId": {
// "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.",
// "format": "uint64",
@@ -10635,6 +10794,14 @@ func (r *AccountstatusesService) List(merchantId uint64) *AccountstatusesListCal
return c
}
// Destinations sets the optional parameter "destinations": If set, only
// issues for the specified destinations are returned, otherwise only
// issues for the Shopping destination.
func (c *AccountstatusesListCall) Destinations(destinations ...string) *AccountstatusesListCall {
c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
return c
}
// MaxResults sets the optional parameter "maxResults": The maximum
// number of account statuses to return in the response, used for
// paging.
@@ -10751,6 +10918,12 @@ func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*Accountstat
// "merchantId"
// ],
// "parameters": {
// "destinations": {
// "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "maxResults": {
// "description": "The maximum number of account statuses to return in the response, used for paging.",
// "format": "uint32",
@@ -11833,6 +12006,154 @@ func (c *DatafeedsDeleteCall) Do(opts ...googleapi.CallOption) error {
}
// method id "content.datafeeds.fetchnow":
type DatafeedsFetchnowCall struct {
s *APIService
merchantId uint64
datafeedId uint64
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Fetchnow: Invokes a fetch for the datafeed in your Merchant Center
// account.
func (r *DatafeedsService) Fetchnow(merchantId uint64, datafeedId uint64) *DatafeedsFetchnowCall {
c := &DatafeedsFetchnowCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
c.datafeedId = datafeedId
return c
}
// DryRun sets the optional parameter "dryRun": Flag to run the request
// in dry-run mode.
func (c *DatafeedsFetchnowCall) DryRun(dryRun bool) *DatafeedsFetchnowCall {
c.urlParams_.Set("dryRun", fmt.Sprint(dryRun))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DatafeedsFetchnowCall) Fields(s ...googleapi.Field) *DatafeedsFetchnowCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *DatafeedsFetchnowCall) Context(ctx context.Context) *DatafeedsFetchnowCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DatafeedsFetchnowCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DatafeedsFetchnowCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}/fetchNow")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"merchantId": strconv.FormatUint(c.merchantId, 10),
"datafeedId": strconv.FormatUint(c.datafeedId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "content.datafeeds.fetchnow" call.
// Exactly one of *DatafeedsFetchNowResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *DatafeedsFetchNowResponse.ServerResponse.Header or (if a response
// was returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetchNowResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &DatafeedsFetchNowResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Invokes a fetch for the datafeed in your Merchant Center account.",
// "httpMethod": "POST",
// "id": "content.datafeeds.fetchnow",
// "parameterOrder": [
// "merchantId",
// "datafeedId"
// ],
// "parameters": {
// "datafeedId": {
// "description": "The ID of the datafeed to be fetched.",
// "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 account that manages the datafeed. This account cannot be a multi-client account.",
// "format": "uint64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "{merchantId}/datafeeds/{datafeedId}/fetchNow",
// "response": {
// "$ref": "DatafeedsFetchNowResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/content"
// ]
// }
}
// method id "content.datafeeds.get":
type DatafeedsGetCall struct {
@@ -13423,7 +13744,7 @@ type LiasettingsCustombatchCall struct {
header_ http.Header
}
// Custombatch: Retrieves and updates the Lia settings of multiple
// Custombatch: Retrieves and/or updates the LIA settings of multiple
// accounts in a single request.
func (r *LiasettingsService) Custombatch(liasettingscustombatchrequest *LiasettingsCustomBatchRequest) *LiasettingsCustombatchCall {
c := &LiasettingsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -13521,7 +13842,7 @@ func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*Liasetti
}
return ret, nil
// {
// "description": "Retrieves and updates the Lia settings of multiple accounts in a single request.",
// "description": "Retrieves and/or updates the LIA settings of multiple accounts in a single request.",
// "httpMethod": "POST",
// "id": "content.liasettings.custombatch",
// "parameters": {
@@ -13557,7 +13878,7 @@ type LiasettingsGetCall struct {
header_ http.Header
}
// Get: Retrieves the Lia settings of the account.
// Get: Retrieves the LIA settings of the account.
func (r *LiasettingsService) Get(merchantId uint64, accountId uint64) *LiasettingsGetCall {
c := &LiasettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@@ -13660,7 +13981,7 @@ func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, err
}
return ret, nil
// {
// "description": "Retrieves the Lia settings of the account.",
// "description": "Retrieves the LIA settings of the account.",
// "httpMethod": "GET",
// "id": "content.liasettings.get",
// "parameterOrder": [
@@ -13669,7 +13990,7 @@ func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, err
// ],
// "parameters": {
// "accountId": {
// "description": "The ID of the account for which to get/update Lia settings.",
// "description": "The ID of the account for which to get or update LIA settings.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -13706,7 +14027,7 @@ type LiasettingsGetaccessiblegmbaccountsCall struct {
header_ http.Header
}
// Getaccessiblegmbaccounts: Retrieves the list of accesable Google My
// Getaccessiblegmbaccounts: Retrieves the list of accessible Google My
// Business accounts.
func (r *LiasettingsService) Getaccessiblegmbaccounts(merchantId uint64, accountId uint64) *LiasettingsGetaccessiblegmbaccountsCall {
c := &LiasettingsGetaccessiblegmbaccountsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -13812,7 +14133,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOptio
}
return ret, nil
// {
// "description": "Retrieves the list of accesable Google My Business accounts.",
// "description": "Retrieves the list of accessible Google My Business accounts.",
// "httpMethod": "GET",
// "id": "content.liasettings.getaccessiblegmbaccounts",
// "parameterOrder": [
@@ -13821,7 +14142,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOptio
// ],
// "parameters": {
// "accountId": {
// "description": "The ID of the account for which to retrieve the accessible Google My Business accounts.",
// "description": "The ID of the account for which to retrieve accessible Google My Business accounts.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -13857,7 +14178,7 @@ type LiasettingsListCall struct {
header_ http.Header
}
// List: Lists the Lia settings of the sub-accounts in your Merchant
// List: Lists the LIA settings of the sub-accounts in your Merchant
// Center account.
func (r *LiasettingsService) List(merchantId uint64) *LiasettingsListCall {
c := &LiasettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -13866,7 +14187,7 @@ func (r *LiasettingsService) List(merchantId uint64) *LiasettingsListCall {
}
// MaxResults sets the optional parameter "maxResults": The maximum
// number of Lia settings to return in the response, used for paging.
// number of LIA settings to return in the response, used for paging.
func (c *LiasettingsListCall) MaxResults(maxResults int64) *LiasettingsListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
@@ -13973,7 +14294,7 @@ func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsList
}
return ret, nil
// {
// "description": "Lists the Lia settings of the sub-accounts in your Merchant Center account.",
// "description": "Lists the LIA settings of the sub-accounts in your Merchant Center account.",
// "httpMethod": "GET",
// "id": "content.liasettings.list",
// "parameterOrder": [
@@ -13981,7 +14302,7 @@ func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsList
// ],
// "parameters": {
// "maxResults": {
// "description": "The maximum number of Lia settings to return in the response, used for paging.",
// "description": "The maximum number of LIA settings to return in the response, used for paging.",
// "format": "uint32",
// "location": "query",
// "type": "integer"
@@ -14043,7 +14364,7 @@ type LiasettingsPatchCall struct {
header_ http.Header
}
// Patch: Updates the Lia settings of the account. This method supports
// Patch: Updates the LIA settings of the account. This method supports
// patch semantics.
func (r *LiasettingsService) Patch(merchantId uint64, accountId uint64, liasettings *LiaSettings) *LiasettingsPatchCall {
c := &LiasettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -14147,7 +14468,7 @@ func (c *LiasettingsPatchCall) Do(opts ...googleapi.CallOption) (*LiaSettings, e
}
return ret, nil
// {
// "description": "Updates the Lia settings of the account. This method supports patch semantics.",
// "description": "Updates the LIA settings of the account. This method supports patch semantics.",
// "httpMethod": "PATCH",
// "id": "content.liasettings.patch",
// "parameterOrder": [
@@ -14156,7 +14477,7 @@ func (c *LiasettingsPatchCall) Do(opts ...googleapi.CallOption) (*LiaSettings, e
// ],
// "parameters": {
// "accountId": {
// "description": "The ID of the account for which to get/update Lia settings.",
// "description": "The ID of the account for which to get or update LIA settings.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -14200,7 +14521,7 @@ type LiasettingsRequestgmbaccessCall struct {
header_ http.Header
}
// Requestgmbaccess: Requests access to a specified Google By Business
// Requestgmbaccess: Requests access to a specified Google My Business
// account.
func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint64) *LiasettingsRequestgmbaccessCall {
c := &LiasettingsRequestgmbaccessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -14210,7 +14531,7 @@ func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint6
}
// GmbEmail sets the optional parameter "gmbEmail": The email of the
// Google My Business Account.
// Google My Business account.
func (c *LiasettingsRequestgmbaccessCall) GmbEmail(gmbEmail string) *LiasettingsRequestgmbaccessCall {
c.urlParams_.Set("gmbEmail", gmbEmail)
return c
@@ -14299,7 +14620,7 @@ func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*Lia
}
return ret, nil
// {
// "description": "Requests access to a specified Google By Business account.",
// "description": "Requests access to a specified Google My Business account.",
// "httpMethod": "POST",
// "id": "content.liasettings.requestgmbaccess",
// "parameterOrder": [
@@ -14315,7 +14636,7 @@ func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*Lia
// "type": "string"
// },
// "gmbEmail": {
// "description": "The email of the Google My Business Account.",
// "description": "The email of the Google My Business account.",
// "location": "query",
// "type": "string"
// },
@@ -14350,8 +14671,8 @@ type LiasettingsRequestinventoryverificationCall struct {
header_ http.Header
}
// Requestinventoryverification: Requests the inventory validation for
// the specified country.
// Requestinventoryverification: Requests inventory validation for the
// specified country.
func (r *LiasettingsService) Requestinventoryverification(merchantId uint64, accountId uint64, country string) *LiasettingsRequestinventoryverificationCall {
c := &LiasettingsRequestinventoryverificationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@@ -14445,7 +14766,7 @@ func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallO
}
return ret, nil
// {
// "description": "Requests the inventory validation for the specified country.",
// "description": "Requests inventory validation for the specified country.",
// "httpMethod": "POST",
// "id": "content.liasettings.requestinventoryverification",
// "parameterOrder": [
@@ -14462,7 +14783,7 @@ func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallO
// "type": "string"
// },
// "country": {
// "description": "The country for which the inventory validation is requested.",
// "description": "The country for which inventory validation is requested.",
// "location": "path",
// "required": true,
// "type": "string"
@@ -14497,8 +14818,8 @@ type LiasettingsSetinventoryverificationcontactCall struct {
header_ http.Header
}
// Setinventoryverificationcontact: Sets the inventory validation
// verification for the specified country.
// Setinventoryverificationcontact: Sets the inventory verification
// contract for the specified country.
func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64) *LiasettingsSetinventoryverificationcontactCall {
c := &LiasettingsSetinventoryverificationcontactCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@@ -14507,7 +14828,7 @@ func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64,
}
// ContactEmail sets the optional parameter "contactEmail": The email of
// the inventory check contact.
// the inventory verification contact.
func (c *LiasettingsSetinventoryverificationcontactCall) ContactEmail(contactEmail string) *LiasettingsSetinventoryverificationcontactCall {
c.urlParams_.Set("contactEmail", contactEmail)
return c
@@ -14521,14 +14842,14 @@ func (c *LiasettingsSetinventoryverificationcontactCall) ContactName(contactName
}
// Country sets the optional parameter "country": The country for which
// the inventory verification is requested.
// inventory verification is requested.
func (c *LiasettingsSetinventoryverificationcontactCall) Country(country string) *LiasettingsSetinventoryverificationcontactCall {
c.urlParams_.Set("country", country)
return c
}
// Language sets the optional parameter "language": The country for
// which the inventory verification is requested.
// Language sets the optional parameter "language": The language for
// which inventory verification is requested.
func (c *LiasettingsSetinventoryverificationcontactCall) Language(language string) *LiasettingsSetinventoryverificationcontactCall {
c.urlParams_.Set("language", language)
return c
@@ -14618,7 +14939,7 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca
}
return ret, nil
// {
// "description": "Sets the inventory validation verification for the specified country.",
// "description": "Sets the inventory verification contract for the specified country.",
// "httpMethod": "POST",
// "id": "content.liasettings.setinventoryverificationcontact",
// "parameterOrder": [
@@ -14634,7 +14955,7 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca
// "type": "string"
// },
// "contactEmail": {
// "description": "The email of the inventory check contact.",
// "description": "The email of the inventory verification contact.",
// "location": "query",
// "type": "string"
// },
@@ -14644,12 +14965,12 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca
// "type": "string"
// },
// "country": {
// "description": "The country for which the inventory verification is requested.",
// "description": "The country for which inventory verification is requested.",
// "location": "query",
// "type": "string"
// },
// "language": {
// "description": "The country for which the inventory verification is requested.",
// "description": "The language for which inventory verification is requested.",
// "location": "query",
// "type": "string"
// },
@@ -14684,7 +15005,7 @@ type LiasettingsUpdateCall struct {
header_ http.Header
}
// Update: Updates the Lia settings of the account.
// Update: Updates the LIA settings of the account.
func (r *LiasettingsService) Update(merchantId uint64, accountId uint64, liasettings *LiaSettings) *LiasettingsUpdateCall {
c := &LiasettingsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@@ -14787,7 +15108,7 @@ func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings,
}
return ret, nil
// {
// "description": "Updates the Lia settings of the account.",
// "description": "Updates the LIA settings of the account.",
// "httpMethod": "PUT",
// "id": "content.liasettings.update",
// "parameterOrder": [
@@ -14796,7 +15117,7 @@ func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings,
// ],
// "parameters": {
// "accountId": {
// "description": "The ID of the account for which to get/update Lia settings.",
// "description": "The ID of the account for which to get or update LIA settings.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18106,7 +18427,7 @@ func (c *PosDeleteCall) Do(opts ...googleapi.CallOption) error {
// "type": "boolean"
// },
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18262,7 +18583,7 @@ func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error) {
// ],
// "parameters": {
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18422,7 +18743,7 @@ func (c *PosInsertCall) Do(opts ...googleapi.CallOption) (*PosStore, error) {
// "type": "boolean"
// },
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18579,7 +18900,7 @@ func (c *PosInventoryCall) Do(opts ...googleapi.CallOption) (*PosInventoryRespon
// "type": "boolean"
// },
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18731,7 +19052,7 @@ func (c *PosListCall) Do(opts ...googleapi.CallOption) (*PosListResponse, error)
// ],
// "parameters": {
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18885,7 +19206,7 @@ func (c *PosSaleCall) Do(opts ...googleapi.CallOption) (*PosSaleResponse, error)
// "type": "boolean"
// },
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -19811,6 +20132,14 @@ func (r *ProductstatusesService) Get(merchantId uint64, productId string) *Produ
return c
}
// Destinations sets the optional parameter "destinations": If set, only
// issues for the specified destinations are returned, otherwise only
// issues for the Shopping destination.
func (c *ProductstatusesGetCall) Destinations(destinations ...string) *ProductstatusesGetCall {
c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
return c
}
// IncludeAttributes sets the optional parameter "includeAttributes":
// Flag to include full product data in the result of this get request.
// The default value is false.
@@ -19922,6 +20251,12 @@ func (c *ProductstatusesGetCall) Do(opts ...googleapi.CallOption) (*ProductStatu
// "productId"
// ],
// "parameters": {
// "destinations": {
// "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "includeAttributes": {
// "description": "Flag to include full product data in the result of this get request. The default value is false.",
// "location": "query",
@@ -19971,6 +20306,14 @@ func (r *ProductstatusesService) List(merchantId uint64) *ProductstatusesListCal
return c
}
// Destinations sets the optional parameter "destinations": If set, only
// issues for the specified destinations are returned, otherwise only
// issues for the Shopping destination.
func (c *ProductstatusesListCall) Destinations(destinations ...string) *ProductstatusesListCall {
c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
return c
}
// IncludeAttributes sets the optional parameter "includeAttributes":
// Flag to include full product data in the results of the list request.
// The default value is false.
@@ -20104,6 +20447,12 @@ func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*Productstat
// "merchantId"
// ],
// "parameters": {
// "destinations": {
// "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "includeAttributes": {
// "description": "Flag to include full product data in the results of the list request. The default value is false.",
// "location": "query",
+47 -7
View File
@@ -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": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/QMVTzP4sO9_JHyigCiKlZqLj3Hc\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/LI6UdBai7-kwhskTkR_vgy6vg2U\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -792,7 +792,7 @@
}
}
},
"revision": "20180205",
"revision": "20180410",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Error": {
@@ -1011,16 +1011,38 @@
"id": "OrderCustomer",
"properties": {
"email": {
"description": "Email address of the customer.",
"description": "Email address that should be used for order related communications. In certain cases this might not be a real users email, but a proxy email.",
"type": "string"
},
"explicitMarketingPreference": {
"description": "If set, this indicates the user explicitly chose to opt in or out of providing marketing rights to the merchant. If unset, this indicates the user has already made this choice in a previous purchase, and was thus not shown the marketing right opt in/out checkbox during the checkout flow.",
"description": "Deprecated. Please use marketingRightsInfo instead.",
"type": "boolean"
},
"fullName": {
"description": "Full name of the customer.",
"type": "string"
},
"marketingRightsInfo": {
"$ref": "OrderCustomerMarketingRightsInfo",
"description": "Customer's marketing preferences."
}
},
"type": "object"
},
"OrderCustomerMarketingRightsInfo": {
"id": "OrderCustomerMarketingRightsInfo",
"properties": {
"explicitMarketingPreference": {
"description": "Last known user selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty.",
"type": "string"
},
"lastUpdatedTimestamp": {
"description": "Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet.",
"type": "string"
},
"marketingEmailAddress": {
"description": "Email address that can be used for marketing purposes. This field is only filled when explicitMarketingPreference is equal to 'granted'.",
"type": "string"
}
},
"type": "object"
@@ -2749,12 +2771,30 @@
"type": "string"
},
"explicitMarketingPreference": {
"description": "If set, this indicates the user explicitly chose to opt in or out of providing marketing rights to the merchant. If unset, this indicates the user has already made this choice in a previous purchase, and was thus not shown the marketing right opt in/out checkbox during the checkout flow. Optional.",
"description": "Deprecated. Please use marketingRightsInfo instead.",
"type": "boolean"
},
"fullName": {
"description": "Full name of the customer.",
"type": "string"
},
"marketingRightsInfo": {
"$ref": "TestOrderCustomerMarketingRightsInfo",
"description": "Customer's marketing preferences."
}
},
"type": "object"
},
"TestOrderCustomerMarketingRightsInfo": {
"id": "TestOrderCustomerMarketingRightsInfo",
"properties": {
"explicitMarketingPreference": {
"description": "Last know user use selection regards marketing preferences. In certain cases selection might not be known, so this field would be empty.",
"type": "string"
},
"lastUpdatedTimestamp": {
"description": "Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet.",
"type": "string"
}
},
"type": "object"
+88 -11
View File
@@ -343,19 +343,21 @@ func (s *OrderCancellation) MarshalJSON() ([]byte, error) {
}
type OrderCustomer struct {
// Email: Email address of the customer.
// Email: Email address that should be used for order related
// communications. In certain cases this might not be a real users
// email, but a proxy email.
Email string `json:"email,omitempty"`
// ExplicitMarketingPreference: If set, this indicates the user
// explicitly chose to opt in or out of providing marketing rights to
// the merchant. If unset, this indicates the user has already made this
// choice in a previous purchase, and was thus not shown the marketing
// right opt in/out checkbox during the checkout flow.
// ExplicitMarketingPreference: Deprecated. Please use
// marketingRightsInfo instead.
ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`
// FullName: Full name of the customer.
FullName string `json:"fullName,omitempty"`
// MarketingRightsInfo: Customer's marketing preferences.
MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -379,6 +381,46 @@ func (s *OrderCustomer) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrderCustomerMarketingRightsInfo struct {
// ExplicitMarketingPreference: Last known user selection regarding
// marketing preferences. In certain cases this selection might not be
// known, so this field would be empty.
ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
// LastUpdatedTimestamp: Timestamp when last time marketing preference
// was updated. Could be empty, if user wasn't offered a selection yet.
LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
// MarketingEmailAddress: Email address that can be used for marketing
// purposes. This field is only filled when explicitMarketingPreference
// is equal to 'granted'.
MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
type NoMethod OrderCustomerMarketingRightsInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrderDeliveryDetails struct {
// Address: The delivery address
Address *OrderAddress `json:"address,omitempty"`
@@ -3075,16 +3117,16 @@ type TestOrderCustomer struct {
// Email: Email address of the customer.
Email string `json:"email,omitempty"`
// ExplicitMarketingPreference: If set, this indicates the user
// explicitly chose to opt in or out of providing marketing rights to
// the merchant. If unset, this indicates the user has already made this
// choice in a previous purchase, and was thus not shown the marketing
// right opt in/out checkbox during the checkout flow. Optional.
// ExplicitMarketingPreference: Deprecated. Please use
// marketingRightsInfo instead.
ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`
// FullName: Full name of the customer.
FullName string `json:"fullName,omitempty"`
// MarketingRightsInfo: Customer's marketing preferences.
MarketingRightsInfo *TestOrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -3108,6 +3150,41 @@ func (s *TestOrderCustomer) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestOrderCustomerMarketingRightsInfo struct {
// ExplicitMarketingPreference: Last know user use selection regards
// marketing preferences. In certain cases selection might not be known,
// so this field would be empty.
ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
// LastUpdatedTimestamp: Timestamp when last time marketing preference
// was updated. Could be empty, if user wasn't offered a selection yet.
LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestOrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
type NoMethod TestOrderCustomerMarketingRightsInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestOrderLineItem struct {
// Product: Product data from the time of the order placement.
Product *TestOrderLineItemProduct `json:"product,omitempty"`
+3 -3
View File
@@ -5,7 +5,7 @@
"description": "Searches over a website or collection of websites",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/custom-search/v1/using_rest",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/WZw06ascIaWh_DLEVTvERCFA66s\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/lvel_UW7sfv_P1yvkKNXdVuRLvY\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -52,12 +52,12 @@
"type": "boolean"
},
"quotaUser": {
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}

Some files were not shown because too many files have changed in this diff Show More