Update vendored dependencies

This commit is contained in:
Alexander Neumann 2017-09-21 17:48:45 +02:00
parent 81473f4538
commit 02fc16e97d
254 changed files with 107898 additions and 82739 deletions

View file

@ -1,12 +1,4 @@
{
"basePath": "",
"ownerDomain": "google.com",
"name": "acceleratedmobilepageurl",
"batchPath": "batch",
"id": "acceleratedmobilepageurl:v1",
"documentationLink": "https://developers.google.com/amp/cache/",
"revision": "20170718",
"title": "Accelerated Mobile Pages (AMP) URL API",
"ownerName": "Google",
"discoveryVersion": "v1",
"version_module": "True",
@ -14,19 +6,19 @@
"ampUrls": {
"methods": {
"batchGet": {
"request": {
"$ref": "BatchGetAmpUrlsRequest"
},
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
"httpMethod": "POST",
"parameterOrder": [],
"response": {
"$ref": "BatchGetAmpUrlsResponse"
},
"parameterOrder": [],
"httpMethod": "POST",
"parameters": {},
"flatPath": "v1/ampUrls:batchGet",
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
"path": "v1/ampUrls:batchGet",
"id": "acceleratedmobilepageurl.ampUrls.batchGet"
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
"request": {
"$ref": "BatchGetAmpUrlsRequest"
}
}
}
}
@ -38,18 +30,18 @@
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
"type": "boolean",
"location": "query"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
},
@ -59,6 +51,8 @@
"location": "query"
},
"$.xgafv": {
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
@ -67,17 +61,9 @@
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string"
]
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
@ -85,38 +71,44 @@
],
"location": "query",
"description": "Data format for response.",
"default": "json"
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string"
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
"type": "string"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
"location": "query"
"type": "boolean"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
"type": "string",
"location": "query"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
"type": "string",
"location": "query"
}
},
"schemas": {
@ -224,13 +216,21 @@
},
"protocol": "rest",
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"version": "v1",
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"kind": "discovery#restDescription",
"description": "Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).\n",
"servicePath": "",
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/"
"description": "Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).\n",
"kind": "discovery#restDescription",
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "acceleratedmobilepageurl",
"batchPath": "batch",
"revision": "20170718",
"documentationLink": "https://developers.google.com/amp/cache/",
"id": "acceleratedmobilepageurl:v1",
"title": "Accelerated Mobile Pages (AMP) URL API"
}

View file

@ -21,7 +21,7 @@
"basePath": "/adexchangebuyer/v1.2/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangebuyer/v1.2/",
"batchPath": "batch",
"batchPath": "batch/adexchangebuyer/v1.2",
"parameters": {
"alt": {
"type": "string",

View file

@ -21,7 +21,7 @@
"basePath": "/adexchangebuyer/v1.3/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangebuyer/v1.3/",
"batchPath": "batch",
"batchPath": "batch/adexchangebuyer/v1.3",
"parameters": {
"alt": {
"type": "string",

View file

@ -21,7 +21,7 @@
"basePath": "/adexchangebuyer/v1.4/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangebuyer/v1.4/",
"batchPath": "batch",
"batchPath": "batch/adexchangebuyer/v1.4",
"parameters": {
"alt": {
"type": "string",

File diff suppressed because it is too large Load diff

View file

@ -5255,10 +5255,12 @@ func (c *AccountsCreativesListCall) PageToken(pageToken string) *AccountsCreativ
// not_checked}
// <li>attribute: {a numeric attribute from the list of
// attributes}
// <li>disapprovalReason: {a reason from
// <li>disapprovalReason: {a reason
// from
// DisapprovalReason
// </ul>
// Example: 'accountId=12345 AND (dealsStatus:disapproved AND
// Example: 'accountId=12345 AND (dealsStatus:disapproved
// AND
// disapprovalReason:unacceptable_content) OR attribute:47'
func (c *AccountsCreativesListCall) Query(query string) *AccountsCreativesListCall {
c.urlParams_.Set("query", query)
@ -5385,7 +5387,7 @@ func (c *AccountsCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCreat
// "type": "string"
// },
// "query": {
// "description": "An optional query string to filter creatives. If no filter is specified,\nall active creatives will be returned.\nSupported queries are:\n\u003cul\u003e\n\u003cli\u003eaccountId=\u003ci\u003eaccount_id_string\u003c/i\u003e\n\u003cli\u003ecreativeId=\u003ci\u003ecreative_id_string\u003c/i\u003e\n\u003cli\u003edealsStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eopenAuctionStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eattribute: {a numeric attribute from the list of attributes}\n\u003cli\u003edisapprovalReason: {a reason from DisapprovalReason\n\u003c/ul\u003e\nExample: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR attribute:47'",
// "description": "An optional query string to filter creatives. If no filter is specified,\nall active creatives will be returned.\nSupported queries are:\n\u003cul\u003e\n\u003cli\u003eaccountId=\u003ci\u003eaccount_id_string\u003c/i\u003e\n\u003cli\u003ecreativeId=\u003ci\u003ecreative_id_string\u003c/i\u003e\n\u003cli\u003edealsStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eopenAuctionStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eattribute: {a numeric attribute from the list of attributes}\n\u003cli\u003edisapprovalReason: {a reason from\nDisapprovalReason\n\u003c/ul\u003e\nExample: 'accountId=12345 AND (dealsStatus:disapproved AND\ndisapprovalReason:unacceptable_content) OR attribute:47'",
// "location": "query",
// "type": "string"
// }

View file

@ -21,7 +21,7 @@
"basePath": "/adexchangeseller/v1.1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangeseller/v1.1/",
"batchPath": "batch",
"batchPath": "batch/adexchangeseller/v1.1",
"parameters": {
"alt": {
"type": "string",

View file

@ -21,7 +21,7 @@
"basePath": "/adexchangeseller/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangeseller/v1/",
"batchPath": "batch",
"batchPath": "batch/adexchangeseller/v1",
"parameters": {
"alt": {
"type": "string",

View file

@ -21,7 +21,7 @@
"basePath": "/adexchangeseller/v2.0/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangeseller/v2.0/",
"batchPath": "batch",
"batchPath": "batch/adexchangeseller/v2.0",
"parameters": {
"alt": {
"type": "string",

View file

@ -1,4 +1,15 @@
{
"canonicalName": "Ad Experience Report",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/xapi.zoo": {
"description": "Test scope for access to the Zoo service"
}
}
}
},
"rootUrl": "https://adexperiencereport.googleapis.com/",
"ownerDomain": "google.com",
"name": "adexperiencereport",
"batchPath": "batch",
@ -8,29 +19,29 @@
"sites": {
"methods": {
"get": {
"response": {
"$ref": "SiteSummaryResponse"
},
"description": "Gets a summary of the ad experience rating of a site.",
"httpMethod": "GET",
"parameterOrder": [
"name"
],
"httpMethod": "GET",
"response": {
"$ref": "SiteSummaryResponse"
},
"parameters": {
"name": {
"pattern": "^sites/[^/]+$",
"location": "path",
"description": "The required site name. It should be the site property whose ad experiences\nmay have been reviewed, and it should be URL-encoded. For example,\nsites/https%3A%2F%2Fwww.google.com. The server will return an error of\nBAD_REQUEST if this field is not filled in. Note that if the site property\nis not yet verified in Search Console, the reportUrl field returned by the\nAPI will lead to the verification page, prompting the user to go through\nthat process before they can gain access to the Ad Experience Report.",
"type": "string",
"required": true,
"pattern": "^sites/[^/]+$"
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/xapi.zoo"
],
"flatPath": "v1/sites/{sitesId}",
"id": "adexperiencereport.sites.get",
"path": "v1/{+name}",
"description": "Gets a summary of the ad experience rating of a site."
"id": "adexperiencereport.sites.get"
}
}
},
@ -38,23 +49,75 @@
"methods": {
"list": {
"description": "Lists sites with Ad Experience Report statuses of \"Failing\" or \"Warning\".",
"httpMethod": "GET",
"parameterOrder": [],
"response": {
"$ref": "ViolatingSitesResponse"
},
"parameterOrder": [],
"httpMethod": "GET",
"parameters": {},
"scopes": [
"https://www.googleapis.com/auth/xapi.zoo"
],
"flatPath": "v1/violatingSites",
"path": "v1/violatingSites",
"id": "adexperiencereport.violatingSites.list"
"id": "adexperiencereport.violatingSites.list",
"path": "v1/violatingSites"
}
}
}
},
"parameters": {
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"default": "true",
"type": "boolean"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean",
"location": "query"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
@ -74,6 +137,12 @@
"location": "query"
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
@ -81,65 +150,7 @@
],
"location": "query",
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
"pp": {
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
"location": "query"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
"default": "json"
}
},
"version": "v1",
@ -148,15 +159,13 @@
"description": "View Ad Experience Report data, and get a list of sites that have a significant number of annoying ads.",
"servicePath": "",
"basePath": "",
"revision": "20170819",
"revision": "20170918",
"documentationLink": "https://developers.google.com/ad-experience-report/",
"id": "adexperiencereport:v1",
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"ViolatingSitesResponse": {
"description": "Response message for ListViolatingSites.",
"type": "object",
"properties": {
"violatingSites": {
"description": "A list of summaries of violating sites.",
@ -166,15 +175,15 @@
"type": "array"
}
},
"id": "ViolatingSitesResponse"
"id": "ViolatingSitesResponse",
"description": "Response message for ListViolatingSites.",
"type": "object"
},
"SiteSummaryResponse": {
"description": "Response message for GetSiteSummary.",
"type": "object",
"properties": {
"mobileSummary": {
"$ref": "PlatformSummary",
"description": "Summary for the mobile review of the site."
"description": "Summary for the mobile review of the site.",
"$ref": "PlatformSummary"
},
"reviewedSite": {
"description": "The name of the site reviewed.",
@ -185,12 +194,19 @@
"description": "Summary for the desktop review of the site."
}
},
"id": "SiteSummaryResponse"
"id": "SiteSummaryResponse",
"description": "Response message for GetSiteSummary.",
"type": "object"
},
"PlatformSummary": {
"description": "Summary of the ad experience rating of a site for a specific platform.",
"type": "object",
"properties": {
"lastChangeTime": {
"format": "google-datetime",
"description": "The last time that the site changed status.",
"type": "string"
},
"betterAdsStatus": {
"enumDescriptions": [
"Not reviewed.",
@ -207,29 +223,20 @@
"description": "The status of the site reviewed for the Better Ads Standards.",
"type": "string"
},
"abusiveStatus": {
"description": "The status of the site reviewed for abusive ads.",
"type": "string",
"enumDescriptions": [
"Not reviewed.",
"Passing.",
"Failing."
],
"enum": [
"UNKNOWN",
"PASSING",
"FAILING"
]
"enforcementTime": {
"format": "google-datetime",
"description": "The date on which ad filtering begins.",
"type": "string"
},
"region": {
"description": "The assigned regions for the site and platform.",
"items": {
"type": "string",
"enum": [
"REGION_UNKNOWN",
"REGION_A",
"REGION_B"
]
],
"type": "string"
},
"type": "array",
"enumDescriptions": [
@ -238,12 +245,9 @@
"Region B."
]
},
"enforcementTime": {
"format": "google-datetime",
"description": "The date on which ad filtering begins.",
"type": "string"
},
"filterStatus": {
"description": "The ad filtering status of the site.",
"type": "string",
"enumDescriptions": [
"N/A.",
"Ad filtering is on.",
@ -257,9 +261,7 @@
"OFF",
"PAUSED",
"PENDING"
],
"description": "The ad filtering status of the site.",
"type": "string"
]
},
"underReview": {
"description": "Whether the site is currently under review.",
@ -268,11 +270,6 @@
"reportUrl": {
"description": "A link that leads to a full ad experience report.",
"type": "string"
},
"lastChangeTime": {
"format": "google-datetime",
"description": "The last time that the site changed status.",
"type": "string"
}
},
"id": "PlatformSummary"
@ -282,16 +279,5 @@
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"canonicalName": "Ad Experience Report",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/xapi.zoo": {
"description": "Test scope for access to the Zoo service"
}
}
}
},
"rootUrl": "https://adexperiencereport.googleapis.com/"
}
}

View file

@ -99,14 +99,6 @@ type ViolatingSitesService struct {
// PlatformSummary: Summary of the ad experience rating of a site for a
// specific platform.
type PlatformSummary struct {
// AbusiveStatus: The status of the site reviewed for abusive ads.
//
// Possible values:
// "UNKNOWN" - Not reviewed.
// "PASSING" - Passing.
// "FAILING" - Failing.
AbusiveStatus string `json:"abusiveStatus,omitempty"`
// BetterAdsStatus: The status of the site reviewed for the Better Ads
// Standards.
//
@ -147,7 +139,7 @@ type PlatformSummary struct {
// UnderReview: Whether the site is currently under review.
UnderReview bool `json:"underReview,omitempty"`
// ForceSendFields is a list of field names (e.g. "AbusiveStatus") to
// ForceSendFields is a list of field names (e.g. "BetterAdsStatus") 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
@ -155,12 +147,13 @@ type PlatformSummary struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AbusiveStatus") 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. "BetterAdsStatus") 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:"-"`
}

View file

@ -22,7 +22,7 @@
"basePath": "/admin/datatransfer/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "admin/datatransfer/v1/",
"batchPath": "batch",
"batchPath": "batch/admin/datatransfer_v1",
"parameters": {
"alt": {
"type": "string",

View file

@ -22,7 +22,7 @@
"basePath": "/admin/directory/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "admin/directory/v1/",
"batchPath": "batch",
"batchPath": "batch/admin/directory_v1",
"parameters": {
"alt": {
"type": "string",

View file

@ -22,7 +22,7 @@
"basePath": "/admin/reports/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "admin/reports/v1/",
"batchPath": "batch",
"batchPath": "batch/admin/reports_v1",
"parameters": {
"alt": {
"type": "string",

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/JUHnWdtkgRO5aAK7_Wqm8rZ_rJ8\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/5dfOA4TQ4h1l0_SNvBmZicECrgQ\"",
"discoveryVersion": "v1",
"id": "adsense:v1.4",
"name": "adsense",
"canonicalName": "AdSense",
"version": "v1.4",
"revision": "20170910",
"revision": "20170912",
"title": "AdSense Management API",
"description": "Accesses AdSense publishers' inventory and generates performance reports.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/adsense/v1.4/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adsense/v1.4/",
"batchPath": "batch",
"batchPath": "batch/adsense/v1.4",
"parameters": {
"alt": {
"type": "string",

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/QFztQ_ABS3emSn-gE83ENFOi4tE\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/HzRIN4Gi3jUuNGWAsKKaxu4tH4k\"",
"discoveryVersion": "v1",
"id": "adsensehost:v4.1",
"name": "adsensehost",
"canonicalName": "AdSense Host",
"version": "v4.1",
"revision": "20170910",
"revision": "20170912",
"title": "AdSense Host API",
"description": "Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts.",
"ownerDomain": "google.com",
@ -24,7 +24,7 @@
"basePath": "/adsensehost/v4.1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adsensehost/v4.1/",
"batchPath": "batch",
"batchPath": "batch/adsensehost/v4.1",
"parameters": {
"alt": {
"type": "string",

View file

@ -20,7 +20,7 @@
"basePath": "/analytics/v2.4/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "analytics/v2.4/",
"batchPath": "batch",
"batchPath": "batch/analytics/v2.4",
"parameters": {
"alt": {
"type": "string",

File diff suppressed because it is too large Load diff

View file

@ -220,28 +220,37 @@ func (s *ClaimDevicesRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Company: Company
// Company: A customer resource in the zero-touch enrollment API.
type Company struct {
// AdminEmails: Admin emails.
// Admins are able to operate on the portal.
// This field is a write-only field at creation time.
// AdminEmails: Input only. Optional. Email address of customer's users
// in the admin role.
// Each email address must be associated with a Google Account.
AdminEmails []string `json:"adminEmails,omitempty"`
// CompanyId: Company ID.
// CompanyId: Output only. The ID of the company. Assigned by the
// server.
CompanyId int64 `json:"companyId,omitempty,string"`
// CompanyName: Company name.
// CompanyName: Required. The name of the company. For example _XYZ
// Corp_. Characters
// allowed are: Latin letters, numerals, hyphens, and spaces. Displayed
// to the
// customer's employees in the zero-touch enrollment portal.
CompanyName string `json:"companyName,omitempty"`
// Name: The API resource name of the company in the
// Name: Output only. The API resource name of the company in the
// format
// `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`.
// `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`. Assigned by the
// server.
Name string `json:"name,omitempty"`
// OwnerEmails: Owner emails.
// Owners are able to operate on the portal, and modify admins or
// other
// owners. This field is a write-only field at creation time.
// OwnerEmails: Input only. Email address of customer's users in the
// owner role. At least
// one `owner_email` is required. Each email address must be associated
// with a
// Google Account. Owners share the same access as admins but can also
// add,
// delete, and edit your organization's portal users.
OwnerEmails []string `json:"ownerEmails,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -273,7 +282,12 @@ func (s *Company) MarshalJSON() ([]byte, error) {
// CreateCustomerRequest: Request message to create a customer.
type CreateCustomerRequest struct {
// Customer: The customer to create.
// Customer: Required. The company data to populate the new customer.
// Must contain a
// value for `companyName` and at least one `owner_email` that's
// associated
// with a Google Account. The values for `companyId` and `name` must be
// empty.
Customer *Company `json:"customer,omitempty"`
// ForceSendFields is a list of field names (e.g. "Customer") to
@ -1392,10 +1406,13 @@ type PartnersCustomersCreateCall struct {
header_ http.Header
}
// Create: A customer for Zero Touch Provisioning will be created.
// After a Customer is created, their admins and owners will be able to
// manage
// devices on partner.android.com/zerotouch or via their API.
// Create: Creates a customer for zero-touch enrollment. After the
// method returns
// successfully, admin and owner roles can manage devices and EMM
// configs
// by calling API methods or using their zero-touch enrollment portal.
// The API
// doesn't notify the customer that they have access.
func (r *PartnersCustomersService) Create(parent string, createcustomerrequest *CreateCustomerRequest) *PartnersCustomersCreateCall {
c := &PartnersCustomersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@ -1489,7 +1506,7 @@ func (c *PartnersCustomersCreateCall) Do(opts ...googleapi.CallOption) (*Company
}
return ret, nil
// {
// "description": "A customer for Zero Touch Provisioning will be created.\nAfter a Customer is created, their admins and owners will be able to manage\ndevices on partner.android.com/zerotouch or via their API.",
// "description": "Creates a customer for zero-touch enrollment. After the method returns\nsuccessfully, admin and owner roles can manage devices and EMM configs\nby calling API methods or using their zero-touch enrollment portal. The API\ndoesn't notify the customer that they have access.",
// "flatPath": "v1/partners/{partnersId}/customers",
// "httpMethod": "POST",
// "id": "androiddeviceprovisioning.partners.customers.create",
@ -1498,7 +1515,7 @@ func (c *PartnersCustomersCreateCall) Do(opts ...googleapi.CallOption) (*Company
// ],
// "parameters": {
// "parent": {
// "description": "The parent resource in format `partners/[PARTNER_ID]'.",
// "description": "Required. The parent resource ID in format `partners/[PARTNER_ID]` that\nidentifies the reseller.",
// "location": "path",
// "pattern": "^partners/[^/]+$",
// "required": true,
@ -1527,8 +1544,8 @@ type PartnersCustomersListCall struct {
header_ http.Header
}
// List: List the customers that are enrolled to the reseller identified
// by the
// List: Lists the customers that are enrolled to the reseller
// identified by the
// `partnerId` argument. This list includes customers that the
// reseller
// created and customers that enrolled themselves using the portal.
@ -1632,7 +1649,7 @@ func (c *PartnersCustomersListCall) Do(opts ...googleapi.CallOption) (*ListCusto
}
return ret, nil
// {
// "description": "List the customers that are enrolled to the reseller identified by the\n`partnerId` argument. This list includes customers that the reseller\ncreated and customers that enrolled themselves using the portal.",
// "description": "Lists the customers that are enrolled to the reseller identified by the\n`partnerId` argument. This list includes customers that the reseller\ncreated and customers that enrolled themselves using the portal.",
// "flatPath": "v1/partners/{partnersId}/customers",
// "httpMethod": "GET",
// "id": "androiddeviceprovisioning.partners.customers.list",

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/RhIHx1SwfJ96Awey5il5_fqGJDg\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/eOnhI7vohdeU44iGbzR45SHL-EI\"",
"discoveryVersion": "v1",
"id": "androidenterprise:v1",
"name": "androidenterprise",
"canonicalName": "Android Enterprise",
"version": "v1",
"revision": "20170830",
"revision": "20170911",
"title": "Google Play EMM API",
"description": "Manages the deployment of apps to Android for Work users.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/androidenterprise/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "androidenterprise/v1/",
"batchPath": "batch",
"batchPath": "batch/androidenterprise/v1",
"parameters": {
"alt": {
"type": "string",

View file

@ -1115,7 +1115,7 @@
"The policy is not supported by the version of Android Device Policy on the device.",
"A blocked application is installed.",
"The setting was not applied yet at the time of the report, but is expected to be applied shortly.",
"The setting cannot be applied to the application because its target SDK version is not high enough.",
"The setting cannot be applied to the application because the application doesn't support it, for example because its target SDK version is not high enough.",
"The application is installed but not updated to the minimum version code specified by policy"
],
"type": "string"
@ -1125,7 +1125,7 @@
"type": "string"
},
"packageName": {
"description": "The package name indicating which application is out of compliance. If not set, then this condition matches any package name. If this field is set, then setting_name must be unset or set to applications; otherwise, the condition would never be satisfied.",
"description": "The package name indicating which application is out of compliance. If not set, then this condition matches any package name.",
"type": "string"
}
},
@ -1206,7 +1206,7 @@
"The policy is not supported by the version of Android Device Policy on the device.",
"A blocked application is installed.",
"The setting was not applied yet at the time of the report, but is expected to be applied shortly.",
"The setting cannot be applied to the application because its target SDK version is not high enough.",
"The setting cannot be applied to the application because the application doesn't support it, for example because its target SDK version is not high enough.",
"The application is installed but not updated to the minimum version code specified by policy"
],
"type": "string"
@ -1403,7 +1403,7 @@
}
},
"networkEscapeHatchEnabled": {
"description": "Flag to specify if network escape hatch is enabled. If this flag has been enabled then upon device boot if device has no network connection, then an activity will be shown that allows the user to temporarily connect to a network to fetch the latest policy. The launched activity will time out if no network has been connected for a given while and will return to the previous activity that was shown.",
"description": "Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings.",
"type": "boolean"
},
"systemUpdate": {
@ -2250,7 +2250,7 @@
"id": "HardwareStatus"
}
},
"revision": "20170905",
"revision": "20170911",
"basePath": "",
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",

View file

@ -1418,7 +1418,8 @@ type NonComplianceDetail struct {
// "PENDING" - The setting was not applied yet at the time of the
// report, but is expected to be applied shortly.
// "APP_INCOMPATIBLE" - The setting cannot be applied to the
// application because its target SDK version is not high enough.
// application because the application doesn't support it, for example
// because its target SDK version is not high enough.
// "APP_NOT_UPDATED" - The application is installed but not updated to
// the minimum version code specified by policy
NonComplianceReason string `json:"nonComplianceReason,omitempty"`
@ -1481,15 +1482,14 @@ type NonComplianceDetailCondition struct {
// "PENDING" - The setting was not applied yet at the time of the
// report, but is expected to be applied shortly.
// "APP_INCOMPATIBLE" - The setting cannot be applied to the
// application because its target SDK version is not high enough.
// application because the application doesn't support it, for example
// because its target SDK version is not high enough.
// "APP_NOT_UPDATED" - The application is installed but not updated to
// the minimum version code specified by policy
NonComplianceReason string `json:"nonComplianceReason,omitempty"`
// PackageName: The package name indicating which application is out of
// compliance. If not set, then this condition matches any package name.
// If this field is set, then setting_name must be unset or set to
// applications; otherwise, the condition would never be satisfied.
PackageName string `json:"packageName,omitempty"`
// SettingName: The name of the policy setting. This is the JSON field
@ -1846,13 +1846,15 @@ type Policy struct {
// enterprises/{enterpriseId}/policies/{policyId}
Name string `json:"name,omitempty"`
// NetworkEscapeHatchEnabled: Flag to specify if network escape hatch is
// enabled. If this flag has been enabled then upon device boot if
// device has no network connection, then an activity will be shown that
// allows the user to temporarily connect to a network to fetch the
// latest policy. The launched activity will time out if no network has
// been connected for a given while and will return to the previous
// activity that was shown.
// NetworkEscapeHatchEnabled: Whether the network escape hatch is
// enabled. If a network connection can't be made at boot time, the
// escape hatch prompts the user to temporarily connect to a network in
// order to refresh the device policy. After applying policy, the
// temporary network will be forgotten and the device will continue
// booting. This prevents being unable to connect to a network if there
// is no suitable network in the last policy and the device boots into
// an app in lock task mode, or the user is otherwise unable to reach
// device settings.
NetworkEscapeHatchEnabled bool `json:"networkEscapeHatchEnabled,omitempty"`
// OpenNetworkConfiguration: Network configuration for the device. See

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/LIbYVZb_4AVNYXTI7gW6jjbQKZE\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/EKUDjWuy8xhU5dHne-WullXJgWw\"",
"discoveryVersion": "v1",
"id": "androidpublisher:v1.1",
"name": "androidpublisher",
"canonicalName": "Android Publisher",
"version": "v1.1",
"revision": "20170815",
"revision": "20170913",
"title": "Google Play Developer API",
"description": "Lets Android application developers access their Google Play accounts.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/androidpublisher/v1.1/applications/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "androidpublisher/v1.1/applications/",
"batchPath": "batch",
"batchPath": "batch/androidpublisher/v1.1",
"parameters": {
"alt": {
"type": "string",

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/GFmAPKnOg_ftPo6thNMuQykGE_I\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/Ex2nsAPYjRP0NRWSGg4yyxwNJ18\"",
"discoveryVersion": "v1",
"id": "androidpublisher:v1",
"name": "androidpublisher",
"canonicalName": "Android Publisher",
"version": "v1",
"revision": "20170815",
"revision": "20170913",
"title": "Google Play Developer API",
"description": "Lets Android application developers access their Google Play accounts.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/androidpublisher/v1/applications/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "androidpublisher/v1/applications/",
"batchPath": "batch",
"batchPath": "batch/androidpublisher/v1",
"parameters": {
"alt": {
"type": "string",

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/e4AtolObWHB9RMWbWiGGnmazpNA\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/QjVvqrUMRW1tTVdJHVqdnKd9gLQ\"",
"discoveryVersion": "v1",
"id": "androidpublisher:v2",
"name": "androidpublisher",
"canonicalName": "Android Publisher",
"version": "v2",
"revision": "20170815",
"revision": "20170913",
"title": "Google Play Developer API",
"description": "Lets Android application developers access their Google Play accounts.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/androidpublisher/v2/applications/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "androidpublisher/v2/applications/",
"batchPath": "batch",
"batchPath": "batch/androidpublisher/v2",
"parameters": {
"alt": {
"type": "string",
@ -985,7 +985,7 @@
},
"cancelReason": {
"type": "integer",
"description": "The reason why a subscription was cancelled or is not auto-renewing. Possible values are: \n- User cancelled the subscription \n- Subscription was cancelled by the system, for example because of a billing problem",
"description": "The reason why a subscription was cancelled or is not auto-renewing. Possible values are: \n- User cancelled the subscription \n- Subscription was cancelled by the system, for example because of a billing problem \n- Subscription was replaced with a new subscription",
"format": "int32"
},
"countryCode": {

View file

@ -2022,6 +2022,7 @@ type SubscriptionPurchase struct {
// - User cancelled the subscription
// - Subscription was cancelled by the system, for example because of a
// billing problem
// - Subscription was replaced with a new subscription
CancelReason *int64 `json:"cancelReason,omitempty"`
// CountryCode: ISO 3166-1 alpha-2 billing country/region code of the

View file

@ -495,7 +495,7 @@
"id": "bigquerydatatransfer:v1",
"name": "bigquerydatatransfer",
"version": "v1",
"title": "BigQuery Data Transfer Service API",
"title": "BigQuery Data Transfer API",
"description": "Transfers data from partner SaaS applications to Google BigQuery on a scheduled, managed basis.",
"discoveryRestUrl": "https://bigquerydatatransfer.googleapis.com/$discovery/rest?version=v1",
"icons": {
@ -772,6 +772,21 @@
"documentationLink": "https://cloud.google.com/resource-manager",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "cloudtasks:v2beta2",
"name": "cloudtasks",
"version": "v2beta2",
"title": "Cloud Tasks API",
"description": "Manages the execution of large numbers of distributed requests. Cloud Tasks is in Alpha.",
"discoveryRestUrl": "https://cloudtasks.googleapis.com/$discovery/rest?version=v2beta2",
"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/cloud-tasks/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "cloudtrace:v1",
@ -929,21 +944,6 @@
},
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "container:v1alpha1",
"name": "container",
"version": "v1alpha1",
"title": "Google Container Engine API",
"description": "The Google Container 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=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/container-engine/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "container:v1",
@ -1804,6 +1804,21 @@
"documentationLink": "https://cloud.google.com/compute/docs/oslogin/rest/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "oslogin:v1beta",
"name": "oslogin",
"version": "v1beta",
"title": "Google Cloud OS Login API",
"description": "Manages OS login configuration for Directory API users.",
"discoveryRestUrl": "https://oslogin.googleapis.com/$discovery/rest?version=v1beta",
"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/compute/docs/oslogin/rest/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "pagespeedonline:v1",
@ -2670,22 +2685,6 @@
"documentationLink": "https://developers.google.com/cloud-test-lab/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "toolresults:v1beta3firstparty",
"name": "toolresults",
"version": "v1beta3firstparty",
"title": "Cloud Tool Results firstparty API",
"description": "Reads and publishes results from Firebase Test Lab.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/toolresults/v1beta3firstparty/rest",
"discoveryLink": "./apis/toolresults/v1beta3firstparty/rest",
"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://firebase.google.com/docs/test-lab/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "toolresults:v1beta3",
@ -2739,13 +2738,13 @@
"name": "vault",
"version": "v1",
"title": "Google Vault API",
"description": "",
"description": "Archiving and eDiscovery for G Suite.",
"discoveryRestUrl": "https://vault.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://apps.google.com/products/vault/",
"documentationLink": "https://developers.google.com/vault",
"preferred": true
},
{

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

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -20,7 +20,7 @@
"basePath": "/appsactivity/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "appsactivity/v1/",
"batchPath": "batch",
"batchPath": "batch/appsactivity/v1",
"parameters": {
"alt": {
"type": "string",

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/mbrci8GXE-W50F0APQRstWksGH8\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/ANNk7azl5zRYtDCCrlgSBbC8-4Y\"",
"discoveryVersion": "v1",
"id": "appstate:v1",
"name": "appstate",
"canonicalName": "App State",
"version": "v1",
"revision": "20170831",
"revision": "20170911",
"title": "Google App State API",
"description": "The Google App State API.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/appstate/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "appstate/v1/",
"batchPath": "batch",
"batchPath": "batch/appstate/v1",
"parameters": {
"alt": {
"type": "string",

View file

@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/9Y-B0QHiU2mw4FGTgPCBJA_ja7U\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/RJ9KKUbfMw7IvtOPKrwn45TxAuo\"",
"discoveryVersion": "v1",
"id": "bigquery:v2",
"name": "bigquery",
"version": "v2",
"revision": "20170903",
"revision": "20170910",
"title": "BigQuery API",
"description": "A data platform for customers to create, manage, share and query data.",
"ownerDomain": "google.com",
@ -1242,6 +1242,11 @@
"description": "[Output-only] Total bytes processed for the job.",
"format": "int64"
},
"totalSlotMs": {
"type": "string",
"description": "[Output-only] Slot-milliseconds for the job.",
"format": "int64"
},
"undeclaredQueryParameters": {
"type": "array",
"description": "[Output-only, Experimental] Standard SQL only: list of undeclared query parameters detected during a dry run validation.",

View file

@ -1954,6 +1954,9 @@ type JobStatistics2 struct {
// TotalBytesProcessed: [Output-only] Total bytes processed for the job.
TotalBytesProcessed int64 `json:"totalBytesProcessed,omitempty,string"`
// TotalSlotMs: [Output-only] Slot-milliseconds for the job.
TotalSlotMs int64 `json:"totalSlotMs,omitempty,string"`
// UndeclaredQueryParameters: [Output-only, Experimental] Standard SQL
// only: list of undeclared query parameters detected during a dry run
// validation.

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
// Package bigquerydatatransfer provides access to the BigQuery Data Transfer Service API.
// Package bigquerydatatransfer provides access to the BigQuery Data Transfer API.
//
// See https://cloud.google.com/bigquery/
//
@ -524,44 +524,6 @@ type Empty struct {
googleapi.ServerResponse `json:"-"`
}
// IsEnabledRequest: A request to determine whether data transfer is
// enabled for the project.
type IsEnabledRequest struct {
}
// IsEnabledResponse: A response to indicate whether data transfer is
// enabled for the project.
type IsEnabledResponse struct {
// Enabled: Indicates whether the project is enabled.
Enabled bool `json:"enabled,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *IsEnabledResponse) MarshalJSON() ([]byte, error) {
type noMethod IsEnabledResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListDataSourcesResponse: Returns list of supported data sources and
// their metadata.
type ListDataSourcesResponse struct {
@ -574,7 +536,7 @@ type ListDataSourcesResponse struct {
// this token can be used as the
// `ListDataSourcesRequest.page_token`
// to request the next page of list results.
// @OutputOnly
// Output only.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -819,13 +781,17 @@ func (s *Location) MarshalJSON() ([]byte, error) {
// ScheduleTransferRunsRequest: A request to schedule transfer runs for
// a time range.
type ScheduleTransferRunsRequest struct {
// RangeEndTime: End time of the range of transfer runs.
RangeEndTime string `json:"rangeEndTime,omitempty"`
// EndTime: End time of the range of transfer runs. For
// example,
// "2017-05-30T00:00:00+00:00".
EndTime string `json:"endTime,omitempty"`
// RangeStartTime: Start time of the range of transfer runs.
RangeStartTime string `json:"rangeStartTime,omitempty"`
// StartTime: Start time of the range of transfer runs. For
// example,
// "2017-05-25T00:00:00+00:00".
StartTime string `json:"startTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "RangeEndTime") to
// 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
@ -833,10 +799,10 @@ type ScheduleTransferRunsRequest struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "RangeEndTime") 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. "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 []string `json:"-"`
@ -851,14 +817,14 @@ func (s *ScheduleTransferRunsRequest) MarshalJSON() ([]byte, error) {
// ScheduleTransferRunsResponse: A response to schedule transfer runs
// for a time range.
type ScheduleTransferRunsResponse struct {
// CreatedRuns: The transfer runs that were created.
CreatedRuns []*TransferRun `json:"createdRuns,omitempty"`
// Runs: The transfer runs that were scheduled.
Runs []*TransferRun `json:"runs,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CreatedRuns") to
// ForceSendFields is a list of field names (e.g. "Runs") 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
@ -866,38 +832,8 @@ type ScheduleTransferRunsResponse struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreatedRuns") 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 *ScheduleTransferRunsResponse) MarshalJSON() ([]byte, error) {
type noMethod ScheduleTransferRunsResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SetEnabledRequest: A request to set whether data transfer is enabled
// or disabled for a project.
type SetEnabledRequest struct {
// Enabled: Whether data transfer should be enabled or disabled for the
// project.
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") to include in
// API requests with the JSON null value. By default, fields with empty
// NullFields is a list of field names (e.g. "Runs") 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.
@ -905,8 +841,8 @@ type SetEnabledRequest struct {
NullFields []string `json:"-"`
}
func (s *SetEnabledRequest) MarshalJSON() ([]byte, error) {
type noMethod SetEnabledRequest
func (s *ScheduleTransferRunsResponse) MarshalJSON() ([]byte, error) {
type noMethod ScheduleTransferRunsResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -955,13 +891,14 @@ type TransferConfig struct {
// DisplayName: User specified display name for the data transfer.
DisplayName string `json:"displayName,omitempty"`
// Name: The resource name of the transfer run.
// Transfer run names have the
// Name: The resource name of the transfer config.
// Transfer config names have the
// form
// `projects/{project_id}/transferConfigs/{config_id}`.
// Where `config_id` is usually a uuid, even though it is not
// guaranteed or required. The name is ignored when creating a transfer
// run.
// guaranteed or required. The name is ignored when creating a
// transfer
// config.
Name string `json:"name,omitempty"`
// NextRunTime: Next time when data transfer will run.
@ -1009,7 +946,7 @@ type TransferConfig struct {
// Output only.
UpdateTime string `json:"updateTime,omitempty"`
// UserId: GaiaID of the user on whose behalf transfer is done.
// UserId: Unique ID of the user on whose behalf transfer is done.
// Applicable only
// to data sources that do not support service accounts. When set to
// 0,
@ -1163,7 +1100,11 @@ type TransferRun struct {
// Output only.
UpdateTime string `json:"updateTime,omitempty"`
// UserId: The user id for this transfer run.
// UserId: Unique ID of the user on whose behalf transfer is done.
// Applicable only
// to data sources that do not support service accounts. When set to
// 0,
// the data source service account credentials are used.
// Output only.
UserId int64 `json:"userId,omitempty,string"`
@ -1194,283 +1135,6 @@ func (s *TransferRun) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "bigquerydatatransfer.projects.isEnabled":
type ProjectsIsEnabledCall struct {
s *Service
name string
isenabledrequest *IsEnabledRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// IsEnabled: Returns true if data transfer is enabled for a project.
func (r *ProjectsService) IsEnabled(name string, isenabledrequest *IsEnabledRequest) *ProjectsIsEnabledCall {
c := &ProjectsIsEnabledCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
c.isenabledrequest = isenabledrequest
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 *ProjectsIsEnabledCall) Fields(s ...googleapi.Field) *ProjectsIsEnabledCall {
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 *ProjectsIsEnabledCall) Context(ctx context.Context) *ProjectsIsEnabledCall {
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 *ProjectsIsEnabledCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsIsEnabledCall) 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.isenabledrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:isEnabled")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "bigquerydatatransfer.projects.isEnabled" call.
// Exactly one of *IsEnabledResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *IsEnabledResponse.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 *ProjectsIsEnabledCall) Do(opts ...googleapi.CallOption) (*IsEnabledResponse, 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 := &IsEnabledResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Returns true if data transfer is enabled for a project.",
// "flatPath": "v1/projects/{projectsId}:isEnabled",
// "httpMethod": "POST",
// "id": "bigquerydatatransfer.projects.isEnabled",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The name of the project resource in the form:\n`projects/{project_id}`",
// "location": "path",
// "pattern": "^projects/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/{+name}:isEnabled",
// "request": {
// "$ref": "IsEnabledRequest"
// },
// "response": {
// "$ref": "IsEnabledResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/bigquery",
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/cloud-platform.read-only"
// ]
// }
}
// method id "bigquerydatatransfer.projects.setEnabled":
type ProjectsSetEnabledCall struct {
s *Service
name string
setenabledrequest *SetEnabledRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetEnabled: Enables or disables data transfer for a project.
// This
// method requires the additional scope
// of
// 'https://www.googleapis.com/auth/cloudplatformprojects'
// to manage the cloud project permissions.
func (r *ProjectsService) SetEnabled(name string, setenabledrequest *SetEnabledRequest) *ProjectsSetEnabledCall {
c := &ProjectsSetEnabledCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
c.setenabledrequest = setenabledrequest
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 *ProjectsSetEnabledCall) Fields(s ...googleapi.Field) *ProjectsSetEnabledCall {
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 *ProjectsSetEnabledCall) Context(ctx context.Context) *ProjectsSetEnabledCall {
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 *ProjectsSetEnabledCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsSetEnabledCall) 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.setenabledrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setEnabled")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "bigquerydatatransfer.projects.setEnabled" call.
// Exactly one of *Empty or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Empty.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 *ProjectsSetEnabledCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Enables or disables data transfer for a project. This\nmethod requires the additional scope of\n'https://www.googleapis.com/auth/cloudplatformprojects'\nto manage the cloud project permissions.",
// "flatPath": "v1/projects/{projectsId}:setEnabled",
// "httpMethod": "POST",
// "id": "bigquerydatatransfer.projects.setEnabled",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The name of the project resource in the form:\n`projects/{project_id}`",
// "location": "path",
// "pattern": "^projects/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/{+name}:setEnabled",
// "request": {
// "$ref": "SetEnabledRequest"
// },
// "response": {
// "$ref": "Empty"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "bigquerydatatransfer.projects.dataSources.checkValidCreds":
type ProjectsDataSourcesCheckValidCredsCall struct {
@ -1485,6 +1149,13 @@ type ProjectsDataSourcesCheckValidCredsCall struct {
// CheckValidCreds: Returns true if valid credentials exist for the
// given data source and
// requesting user.
// Some data sources doesn't support service account, so we need to talk
// to
// them on behalf of the end user. This API just checks whether we have
// OAuth
// token for the particular user, which is a pre-requisite before user
// can
// create a transfer config.
func (r *ProjectsDataSourcesService) CheckValidCreds(name string, checkvalidcredsrequest *CheckValidCredsRequest) *ProjectsDataSourcesCheckValidCredsCall {
c := &ProjectsDataSourcesCheckValidCredsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
@ -1578,7 +1249,7 @@ func (c *ProjectsDataSourcesCheckValidCredsCall) Do(opts ...googleapi.CallOption
}
return ret, nil
// {
// "description": "Returns true if valid credentials exist for the given data source and\nrequesting user.",
// "description": "Returns true if valid credentials exist for the given data source and\nrequesting user.\nSome data sources doesn't support service account, so we need to talk to\nthem on behalf of the end user. This API just checks whether we have OAuth\ntoken for the particular user, which is a pre-requisite before user can\ncreate a transfer config.",
// "flatPath": "v1/projects/{projectsId}/dataSources/{dataSourcesId}:checkValidCreds",
// "httpMethod": "POST",
// "id": "bigquerydatatransfer.projects.dataSources.checkValidCreds",
@ -2086,143 +1757,6 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,
}
// method id "bigquerydatatransfer.projects.locations.isEnabled":
type ProjectsLocationsIsEnabledCall struct {
s *Service
name string
isenabledrequest *IsEnabledRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// IsEnabled: Returns true if data transfer is enabled for a project.
func (r *ProjectsLocationsService) IsEnabled(name string, isenabledrequest *IsEnabledRequest) *ProjectsLocationsIsEnabledCall {
c := &ProjectsLocationsIsEnabledCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
c.isenabledrequest = isenabledrequest
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 *ProjectsLocationsIsEnabledCall) Fields(s ...googleapi.Field) *ProjectsLocationsIsEnabledCall {
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 *ProjectsLocationsIsEnabledCall) Context(ctx context.Context) *ProjectsLocationsIsEnabledCall {
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 *ProjectsLocationsIsEnabledCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsIsEnabledCall) 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.isenabledrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:isEnabled")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "bigquerydatatransfer.projects.locations.isEnabled" call.
// Exactly one of *IsEnabledResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *IsEnabledResponse.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 *ProjectsLocationsIsEnabledCall) Do(opts ...googleapi.CallOption) (*IsEnabledResponse, 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 := &IsEnabledResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Returns true if data transfer is enabled for a project.",
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:isEnabled",
// "httpMethod": "POST",
// "id": "bigquerydatatransfer.projects.locations.isEnabled",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The name of the project resource in the form:\n`projects/{project_id}`",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/{+name}:isEnabled",
// "request": {
// "$ref": "IsEnabledRequest"
// },
// "response": {
// "$ref": "IsEnabledResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/bigquery",
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/cloud-platform.read-only"
// ]
// }
}
// method id "bigquerydatatransfer.projects.locations.list":
type ProjectsLocationsListCall struct {
@ -2423,146 +1957,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat
}
}
// method id "bigquerydatatransfer.projects.locations.setEnabled":
type ProjectsLocationsSetEnabledCall struct {
s *Service
name string
setenabledrequest *SetEnabledRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetEnabled: Enables or disables data transfer for a project.
// This
// method requires the additional scope
// of
// 'https://www.googleapis.com/auth/cloudplatformprojects'
// to manage the cloud project permissions.
func (r *ProjectsLocationsService) SetEnabled(name string, setenabledrequest *SetEnabledRequest) *ProjectsLocationsSetEnabledCall {
c := &ProjectsLocationsSetEnabledCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
c.setenabledrequest = setenabledrequest
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 *ProjectsLocationsSetEnabledCall) Fields(s ...googleapi.Field) *ProjectsLocationsSetEnabledCall {
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 *ProjectsLocationsSetEnabledCall) Context(ctx context.Context) *ProjectsLocationsSetEnabledCall {
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 *ProjectsLocationsSetEnabledCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsSetEnabledCall) 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.setenabledrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setEnabled")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "bigquerydatatransfer.projects.locations.setEnabled" call.
// Exactly one of *Empty or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Empty.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 *ProjectsLocationsSetEnabledCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Enables or disables data transfer for a project. This\nmethod requires the additional scope of\n'https://www.googleapis.com/auth/cloudplatformprojects'\nto manage the cloud project permissions.",
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:setEnabled",
// "httpMethod": "POST",
// "id": "bigquerydatatransfer.projects.locations.setEnabled",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The name of the project resource in the form:\n`projects/{project_id}`",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/{+name}:setEnabled",
// "request": {
// "$ref": "SetEnabledRequest"
// },
// "response": {
// "$ref": "Empty"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "bigquerydatatransfer.projects.locations.dataSources.checkValidCreds":
type ProjectsLocationsDataSourcesCheckValidCredsCall struct {
@ -2577,6 +1971,13 @@ type ProjectsLocationsDataSourcesCheckValidCredsCall struct {
// CheckValidCreds: Returns true if valid credentials exist for the
// given data source and
// requesting user.
// Some data sources doesn't support service account, so we need to talk
// to
// them on behalf of the end user. This API just checks whether we have
// OAuth
// token for the particular user, which is a pre-requisite before user
// can
// create a transfer config.
func (r *ProjectsLocationsDataSourcesService) CheckValidCreds(name string, checkvalidcredsrequest *CheckValidCredsRequest) *ProjectsLocationsDataSourcesCheckValidCredsCall {
c := &ProjectsLocationsDataSourcesCheckValidCredsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
@ -2670,7 +2071,7 @@ func (c *ProjectsLocationsDataSourcesCheckValidCredsCall) Do(opts ...googleapi.C
}
return ret, nil
// {
// "description": "Returns true if valid credentials exist for the given data source and\nrequesting user.",
// "description": "Returns true if valid credentials exist for the given data source and\nrequesting user.\nSome data sources doesn't support service account, so we need to talk to\nthem on behalf of the end user. This API just checks whether we have OAuth\ntoken for the particular user, which is a pre-requisite before user can\ncreate a transfer config.",
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataSources/{dataSourcesId}:checkValidCreds",
// "httpMethod": "POST",
// "id": "bigquerydatatransfer.projects.locations.dataSources.checkValidCreds",
@ -3840,7 +3241,7 @@ func (c *ProjectsLocationsTransferConfigsPatchCall) Do(opts ...googleapi.CallOpt
// "type": "string"
// },
// "name": {
// "description": "The resource name of the transfer run.\nTransfer run names have the form\n`projects/{project_id}/transferConfigs/{config_id}`.\nWhere `config_id` is usually a uuid, even though it is not\nguaranteed or required. The name is ignored when creating a transfer run.",
// "description": "The resource name of the transfer config.\nTransfer config names have the form\n`projects/{project_id}/transferConfigs/{config_id}`.\nWhere `config_id` is usually a uuid, even though it is not\nguaranteed or required. The name is ignored when creating a transfer\nconfig.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+$",
// "required": true,
@ -5538,7 +4939,7 @@ func (c *ProjectsTransferConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Tr
// "type": "string"
// },
// "name": {
// "description": "The resource name of the transfer run.\nTransfer run names have the form\n`projects/{project_id}/transferConfigs/{config_id}`.\nWhere `config_id` is usually a uuid, even though it is not\nguaranteed or required. The name is ignored when creating a transfer run.",
// "description": "The resource name of the transfer config.\nTransfer config names have the form\n`projects/{project_id}/transferConfigs/{config_id}`.\nWhere `config_id` is usually a uuid, even though it is not\nguaranteed or required. The name is ignored when creating a transfer\nconfig.",
// "location": "path",
// "pattern": "^projects/[^/]+/transferConfigs/[^/]+$",
// "required": true,

View file

@ -23,7 +23,7 @@
"basePath": "/blogger/v2/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "blogger/v2/",
"batchPath": "batch",
"batchPath": "batch/blogger/v2",
"parameters": {
"alt": {
"type": "string",

View file

@ -23,7 +23,7 @@
"basePath": "/blogger/v3/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "blogger/v3/",
"batchPath": "batch",
"batchPath": "batch/blogger/v3",
"parameters": {
"alt": {
"type": "string",

View file

@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/o_EybjCqMtVYBedHGweVn2CP_Ko\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/uAzZjTyNjvCXQxJAVHPs_CfUo-M\"",
"discoveryVersion": "v1",
"id": "calendar:v3",
"name": "calendar",
"version": "v3",
"revision": "20170903",
"revision": "20170905",
"title": "Calendar API",
"description": "Manipulates events and other calendar data.",
"ownerDomain": "google.com",
@ -20,7 +20,7 @@
"basePath": "/calendar/v3/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "calendar/v3/",
"batchPath": "batch",
"batchPath": "batch/calendar/v3",
"parameters": {
"alt": {
"type": "string",

View file

@ -21,7 +21,7 @@
"basePath": "/civicinfo/v2/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "civicinfo/v2/",
"batchPath": "batch",
"batchPath": "batch/civicinfo/v2",
"parameters": {
"alt": {
"type": "string",

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -141,6 +141,7 @@ type ProjectsTriggersService struct {
// - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource
// or
// resolved from the specified branch or tag.
// - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
type Build struct {
// BuildTriggerId: The ID of the BuildTrigger that triggered this build,
// if it was

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,15 @@
{
"canonicalName": "Clouderrorreporting",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},
"rootUrl": "https://clouderrorreporting.googleapis.com/",
"ownerDomain": "google.com",
"name": "clouderrorreporting",
"batchPath": "batch",
@ -6,51 +17,57 @@
"ownerName": "Google",
"resources": {
"projects": {
"methods": {
"deleteEvents": {
"httpMethod": "DELETE",
"response": {
"$ref": "DeleteEventsResponse"
},
"parameterOrder": [
"projectName"
],
"parameters": {
"projectName": {
"description": "[Required] The resource name of the Google Cloud Platform project. Written\nas `projects/` plus the\n[Google Cloud Platform project\nID](https://support.google.com/cloud/answer/6158840).\nExample: `projects/my-project-123`.",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+$",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1beta1/projects/{projectsId}/events",
"path": "v1beta1/{+projectName}/events",
"id": "clouderrorreporting.projects.deleteEvents",
"description": "Deletes all error events of a given project."
}
},
"resources": {
"events": {
"methods": {
"list": {
"description": "Lists the specified events.",
"httpMethod": "GET",
"response": {
"$ref": "ListEventsResponse"
},
"parameterOrder": [
"projectName"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"groupId": {
"description": "[Required] The group for which events shall be returned.",
"type": "string",
"location": "query"
},
"serviceFilter.service": {
"description": "[Optional] The exact value to match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).",
"type": "string",
"location": "query"
},
"pageToken": {
"description": "[Optional] A `next_page_token` provided by a previous response.",
"type": "string",
"location": "query"
},
"pageSize": {
"format": "int32",
"description": "[Optional] The maximum number of results to return per response.",
"type": "integer",
"location": "query"
},
"serviceFilter.version": {
"serviceFilter.resourceType": {
"location": "query",
"description": "[Optional] The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
"description": "[Optional] The exact value to match against\n[`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).",
"type": "string"
},
"serviceFilter.resourceType": {
"description": "[Optional] The exact value to match against\n[`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).",
"type": "string",
"location": "query"
},
"timeRange.period": {
"description": "Restricts the query to the specified time range.",
"type": "string",
"location": "query",
"enum": [
"PERIOD_UNSPECIFIED",
"PERIOD_1_HOUR",
@ -58,27 +75,54 @@
"PERIOD_1_DAY",
"PERIOD_1_WEEK",
"PERIOD_30_DAYS"
],
"description": "Restricts the query to the specified time range.",
]
},
"projectName": {
"description": "[Required] The resource name of the Google Cloud Platform project. Written\nas `projects/` plus the\n[Google Cloud Platform project\nID](https://support.google.com/cloud/answer/6158840).\nExample: `projects/my-project-123`.",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+$",
"location": "path"
},
"groupId": {
"description": "[Required] The group for which events shall be returned.",
"type": "string",
"location": "query"
},
"projectName": {
"pattern": "^projects/[^/]+$",
"location": "path",
"description": "[Required] The resource name of the Google Cloud Platform project. Written\nas `projects/` plus the\n[Google Cloud Platform project\nID](https://support.google.com/cloud/answer/6158840).\nExample: `projects/my-project-123`.",
"serviceFilter.service": {
"location": "query",
"description": "[Optional] The exact value to match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).",
"type": "string"
},
"pageToken": {
"location": "query",
"description": "[Optional] A `next_page_token` provided by a previous response.",
"type": "string"
},
"pageSize": {
"location": "query",
"format": "int32",
"description": "[Optional] The maximum number of results to return per response.",
"type": "integer"
},
"serviceFilter.version": {
"description": "[Optional] The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
"type": "string",
"required": true
"location": "query"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1beta1/projects/{projectsId}/events",
"id": "clouderrorreporting.projects.events.list",
"path": "v1beta1/{+projectName}/events",
"id": "clouderrorreporting.projects.events.list"
"description": "Lists the specified events."
},
"report": {
"path": "v1beta1/{+projectName}/events:report",
"id": "clouderrorreporting.projects.events.report",
"request": {
"$ref": "ReportedErrorEvent"
},
"description": "Report an individual error event.\n\nThis endpoint accepts \u003cstrong\u003eeither\u003c/strong\u003e an OAuth token,\n\u003cstrong\u003eor\u003c/strong\u003e an\n\u003ca href=\"https://support.google.com/cloud/answer/6158862\"\u003eAPI key\u003c/a\u003e\nfor authentication. To use an API key, append it to the URL as the value of\na `key` parameter. For example:\n\u003cpre\u003ePOST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456\u003c/pre\u003e",
"httpMethod": "POST",
"parameterOrder": [
"projectName"
@ -86,6 +130,9 @@
"response": {
"$ref": "ReportErrorEventResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"projectName": {
"pattern": "^projects/[^/]+$",
@ -95,45 +142,31 @@
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1beta1/projects/{projectsId}/events:report",
"path": "v1beta1/{+projectName}/events:report",
"id": "clouderrorreporting.projects.events.report",
"description": "Report an individual error event.\n\nThis endpoint accepts \u003cstrong\u003eeither\u003c/strong\u003e an OAuth token,\n\u003cstrong\u003eor\u003c/strong\u003e an\n\u003ca href=\"https://support.google.com/cloud/answer/6158862\"\u003eAPI key\u003c/a\u003e\nfor authentication. To use an API key, append it to the URL as the value of\na `key` parameter. For example:\n\u003cpre\u003ePOST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456\u003c/pre\u003e",
"request": {
"$ref": "ReportedErrorEvent"
}
"flatPath": "v1beta1/projects/{projectsId}/events:report"
}
}
},
"groupStats": {
"methods": {
"list": {
"httpMethod": "GET",
"response": {
"$ref": "ListGroupStatsResponse"
},
"parameterOrder": [
"projectName"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"timedCountDuration": {
"format": "google-duration",
"description": "[Optional] The preferred duration for a single returned `TimedCount`.\nIf not set, no timed counts are returned.",
"type": "string",
"location": "query"
},
"pageToken": {
"location": "query",
"description": "[Optional] A `next_page_token` provided by a previous response. To view\nadditional results, pass this token along with the identical query\nparameters as the first request.",
"type": "string",
"location": "query"
"type": "string"
},
"timeRange.period": {
"location": "query",
"enum": [
"PERIOD_UNSPECIFIED",
"PERIOD_1_HOUR",
@ -143,8 +176,7 @@
"PERIOD_30_DAYS"
],
"description": "Restricts the query to the specified time range.",
"type": "string",
"location": "query"
"type": "string"
},
"alignment": {
"location": "query",
@ -163,9 +195,9 @@
"location": "query"
},
"serviceFilter.service": {
"location": "query",
"description": "[Optional] The exact value to match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).",
"type": "string"
"type": "string",
"location": "query"
},
"pageSize": {
"location": "query",
@ -173,11 +205,6 @@
"description": "[Optional] The maximum number of results to return per response.\nDefault is 20.",
"type": "integer"
},
"serviceFilter.version": {
"description": "[Optional] The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
"type": "string",
"location": "query"
},
"order": {
"location": "query",
"enum": [
@ -190,69 +217,52 @@
"description": "[Optional] The sort order in which the results are returned.\nDefault is `COUNT_DESC`.",
"type": "string"
},
"serviceFilter.version": {
"description": "[Optional] The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
"type": "string",
"location": "query"
},
"serviceFilter.resourceType": {
"description": "[Optional] The exact value to match against\n[`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).",
"type": "string",
"location": "query"
},
"alignmentTime": {
"format": "google-datetime",
"description": "[Optional] Time where the timed counts shall be aligned if rounded\nalignment is chosen. Default is 00:00 UTC.",
"type": "string",
"location": "query"
},
"serviceFilter.resourceType": {
"location": "query",
"description": "[Optional] The exact value to match against\n[`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).",
"type": "string"
},
"projectName": {
"location": "path",
"description": "[Required] The resource name of the Google Cloud Platform project. Written\nas \u003ccode\u003eprojects/\u003c/code\u003e plus the\n\u003ca href=\"https://support.google.com/cloud/answer/6158840\"\u003eGoogle Cloud\nPlatform project ID\u003c/a\u003e.\n\nExample: \u003ccode\u003eprojects/my-project-123\u003c/code\u003e.",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+$",
"location": "path"
"pattern": "^projects/[^/]+$"
},
"timedCountDuration": {
"location": "query",
"format": "google-duration",
"description": "[Optional] The preferred duration for a single returned `TimedCount`.\nIf not set, no timed counts are returned.",
"type": "string"
}
},
"flatPath": "v1beta1/projects/{projectsId}/groupStats",
"path": "v1beta1/{+projectName}/groupStats",
"id": "clouderrorreporting.projects.groupStats.list",
"path": "v1beta1/{+projectName}/groupStats",
"description": "Lists the specified groups."
}
}
},
"groups": {
"methods": {
"update": {
"description": "Replace the data for the specified group.\nFails if the group does not exist.",
"request": {
"$ref": "ErrorGroup"
},
"httpMethod": "PUT",
"parameterOrder": [
"name"
],
"response": {
"$ref": "ErrorGroup"
},
"parameters": {
"name": {
"pattern": "^projects/[^/]+/groups/[^/]+$",
"location": "path",
"description": "The group resource name.\nExample: \u003ccode\u003eprojects/my-project-123/groups/my-groupid\u003c/code\u003e",
"type": "string",
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1beta1/projects/{projectsId}/groups/{groupsId}",
"path": "v1beta1/{+name}",
"id": "clouderrorreporting.projects.groups.update"
},
"get": {
"response": {
"$ref": "ErrorGroup"
},
"parameterOrder": [
"groupName"
],
"response": {
"$ref": "ErrorGroup"
},
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
@ -270,78 +280,89 @@
"id": "clouderrorreporting.projects.groups.get",
"path": "v1beta1/{+groupName}",
"description": "Get the specified group."
},
"update": {
"response": {
"$ref": "ErrorGroup"
},
"parameterOrder": [
"name"
],
"httpMethod": "PUT",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"name": {
"location": "path",
"description": "The group resource name.\nExample: \u003ccode\u003eprojects/my-project-123/groups/my-groupid\u003c/code\u003e",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+/groups/[^/]+$"
}
},
"flatPath": "v1beta1/projects/{projectsId}/groups/{groupsId}",
"id": "clouderrorreporting.projects.groups.update",
"path": "v1beta1/{+name}",
"request": {
"$ref": "ErrorGroup"
},
"description": "Replace the data for the specified group.\nFails if the group does not exist."
}
}
}
},
"methods": {
"deleteEvents": {
"response": {
"$ref": "DeleteEventsResponse"
},
"parameterOrder": [
"projectName"
],
"httpMethod": "DELETE",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"projectName": {
"description": "[Required] The resource name of the Google Cloud Platform project. Written\nas `projects/` plus the\n[Google Cloud Platform project\nID](https://support.google.com/cloud/answer/6158840).\nExample: `projects/my-project-123`.",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+$",
"location": "path"
}
},
"flatPath": "v1beta1/projects/{projectsId}/events",
"id": "clouderrorreporting.projects.deleteEvents",
"path": "v1beta1/{+projectName}/events",
"description": "Deletes all error events of a given project."
}
}
}
},
"parameters": {
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string",
"location": "query"
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean"
"type": "boolean",
"location": "query"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
"type": "string"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
"type": "string"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string",
"location": "query"
"type": "string"
},
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query"
"type": "string"
},
"alt": {
"enum": [
@ -359,57 +380,91 @@
"description": "Data format for response.",
"default": "json"
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
"type": "string"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
"location": "query"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
},
"bearer_token": {
"description": "OAuth bearer token.",
"type": "string",
"location": "query"
"type": "boolean"
}
},
"version": "v1beta1",
"baseUrl": "https://clouderrorreporting.googleapis.com/",
"servicePath": "",
"description": "Groups and counts similar errors from cloud services and applications, reports new errors, and provides access to error groups and their associated errors.\n",
"kind": "discovery#restDescription",
"servicePath": "",
"basePath": "",
"documentationLink": "https://cloud.google.com/error-reporting/",
"revision": "20170825",
"id": "clouderrorreporting:v1beta1",
"documentationLink": "https://cloud.google.com/error-reporting/",
"revision": "20170914",
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"ListGroupStatsResponse": {
"description": "Contains a set of requested error group stats.",
"type": "object",
"properties": {
"timeRangeBegin": {
"format": "google-datetime",
"description": "The timestamp specifies the start time to which the request was restricted.\nThe start time is set based on the requested time range. It may be adjusted\nto a later time if a project has exceeded the storage quota and older data\nhas been deleted.",
"type": "string"
},
"errorGroupStats": {
"description": "The error group stats which match the given request.",
"items": {
"$ref": "ErrorGroupStats"
},
"type": "array"
},
"nextPageToken": {
"description": "If non-empty, more results are available.\nPass this token, along with the same query parameters as the first\nrequest, to view the next page of results.",
"type": "string"
}
},
"id": "ListGroupStatsResponse"
},
"SourceReference": {
"description": "A reference to a particular snapshot of the source tree used to build and\ndeploy an application.",
"type": "object",
"properties": {
"repository": {
"description": "Optional. A URI string identifying the repository.\nExample: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
"type": "string"
},
"revisionId": {
"description": "The canonical and persistent identifier of the deployed revision.\nExample (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\"",
"type": "string"
}
},
"id": "SourceReference"
},
"DeleteEventsResponse": {
"description": "Response message for deleting error events.",
"type": "object",
"properties": {},
"id": "DeleteEventsResponse"
},
"ErrorEvent": {
"description": "An error event which is returned by the Error Reporting system.",
"type": "object",
"properties": {
"context": {
"description": "Data about the context in which the error occurred.",
"$ref": "ErrorContext"
"$ref": "ErrorContext",
"description": "Data about the context in which the error occurred."
},
"message": {
"description": "The stack trace that was reported or logged by the service.",
@ -432,8 +487,8 @@
"type": "object",
"properties": {
"context": {
"description": "[Optional] A description of the context in which the error occurred.",
"$ref": "ErrorContext"
"$ref": "ErrorContext",
"description": "[Optional] A description of the context in which the error occurred."
},
"message": {
"description": "[Required] The error message.\nIf no `context.reportLocation` is provided, the message must contain a\nheader (typically consisting of the exception type name and an error\nmessage) and an exception stack trace in one of the supported programming\nlanguages and formats.\nSupported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.\nSupported stack trace formats are:\n\n* **Java**: Must be the return value of [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).\n* **Python**: Must be the return value of [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).\n* **JavaScript**: Must be the value of [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API)\nas returned by V8.\n* **Ruby**: Must contain frames returned by [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).\n* **C#**: Must be the return value of [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).\n* **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`\nand contain the result of [`(string)$exception`](http://php.net/manual/en/exception.tostring.php).\n* **Go**: Must be the return value of [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).",
@ -452,7 +507,13 @@
"id": "ReportedErrorEvent"
},
"ErrorContext": {
"description": "A description of the context in which an error occurred.\nThis data should be provided by the application when reporting an error,\nunless the\nerror report has been generated automatically from Google App Engine logs.",
"type": "object",
"properties": {
"user": {
"description": "The user who caused or was affected by the crash.\nThis can be a user ID, an email address, or an arbitrary token that\nuniquely identifies the user.\nWhen sending an error report, leave this field empty if the user was not\nlogged in. In this case the\nError Reporting system will use other data, such as remote IP address, to\ndistinguish affected users. See `affected_users_count` in\n`ErrorGroupStats`.",
"type": "string"
},
"sourceReferences": {
"description": "Source code that was used to build the executable which has\ncaused the given error message.",
"items": {
@ -465,17 +526,11 @@
"description": "The location in the source code where the decision was made to\nreport the error, usually the place where it was logged.\nFor a logged exception this would be the source line where the\nexception is logged, usually close to the place where it was\ncaught."
},
"httpRequest": {
"description": "The HTTP request which was processed when the error was\ntriggered.",
"$ref": "HttpRequestContext"
},
"user": {
"description": "The user who caused or was affected by the crash.\nThis can be a user ID, an email address, or an arbitrary token that\nuniquely identifies the user.\nWhen sending an error report, leave this field empty if the user was not\nlogged in. In this case the\nError Reporting system will use other data, such as remote IP address, to\ndistinguish affected users. See `affected_users_count` in\n`ErrorGroupStats`.",
"type": "string"
"$ref": "HttpRequestContext",
"description": "The HTTP request which was processed when the error was\ntriggered."
}
},
"id": "ErrorContext",
"description": "A description of the context in which an error occurred.\nThis data should be provided by the application when reporting an error,\nunless the\nerror report has been generated automatically from Google App Engine logs.",
"type": "object"
"id": "ErrorContext"
},
"TrackingIssue": {
"properties": {
@ -492,6 +547,13 @@
"description": "Data extracted for a specific group based on certain filter criteria,\nsuch as a given time period and/or service filter.",
"type": "object",
"properties": {
"timedCounts": {
"description": "Approximate number of occurrences over time.\nTimed counts returned by ListGroups are guaranteed to be:\n\n- Inside the requested time interval\n- Non-overlapping, and\n- Ordered by ascending time.",
"items": {
"$ref": "TimedCount"
},
"type": "array"
},
"group": {
"$ref": "ErrorGroup",
"description": "Group data that is independent of the filter criteria."
@ -516,11 +578,6 @@
"description": "Approximate last occurrence that was ever seen for this group and\nwhich matches the given filter criteria, ignoring the time_range\nthat was specified in the request.",
"type": "string"
},
"numAffectedServices": {
"format": "int32",
"description": "The total number of services with a non-zero error count for the given\nfilter criteria.",
"type": "integer"
},
"affectedServices": {
"description": "Service contexts with a non-zero error count for the given filter\ncriteria. This list can be truncated if multiple services are affected.\nRefer to `num_affected_services` for the total count.",
"items": {
@ -528,23 +585,19 @@
},
"type": "array"
},
"numAffectedServices": {
"format": "int32",
"description": "The total number of services with a non-zero error count for the given\nfilter criteria.",
"type": "integer"
},
"representative": {
"$ref": "ErrorEvent",
"description": "An arbitrary event that is chosen as representative for the whole group.\nThe representative event is intended to be used as a quick preview for\nthe whole group. Events in the group are usually sufficiently similar\nto each other such that showing an arbitrary representative provides\ninsight into the characteristics of the group as a whole."
},
"timedCounts": {
"description": "Approximate number of occurrences over time.\nTimed counts returned by ListGroups are guaranteed to be:\n\n- Inside the requested time interval\n- Non-overlapping, and\n- Ordered by ascending time.",
"items": {
"$ref": "TimedCount"
},
"type": "array"
}
},
"id": "ErrorGroupStats"
},
"ListEventsResponse": {
"description": "Contains a set of requested error events.",
"type": "object",
"properties": {
"timeRangeBegin": {
"format": "google-datetime",
@ -563,15 +616,14 @@
"type": "string"
}
},
"id": "ListEventsResponse"
"id": "ListEventsResponse",
"description": "Contains a set of requested error events.",
"type": "object"
},
"TimedCount": {
"description": "The number of errors in a given time period.\nAll numbers are approximate since the error events are sampled\nbefore counting them.",
"type": "object",
"properties": {
"endTime": {
"format": "google-datetime",
"description": "End of the time period to which `count` refers (excluded).",
"type": "string"
},
"startTime": {
"format": "google-datetime",
"description": "Start of the time period to which `count` refers (included).",
@ -581,15 +633,16 @@
"format": "int64",
"description": "Approximate number of occurrences in the given time period.",
"type": "string"
},
"endTime": {
"format": "google-datetime",
"description": "End of the time period to which `count` refers (excluded).",
"type": "string"
}
},
"id": "TimedCount",
"description": "The number of errors in a given time period.\nAll numbers are approximate since the error events are sampled\nbefore counting them.",
"type": "object"
"id": "TimedCount"
},
"ErrorGroup": {
"description": "Description of a group of similar error events.",
"type": "object",
"properties": {
"trackingIssues": {
"description": "Associated tracking issues.",
@ -607,7 +660,9 @@
"type": "string"
}
},
"id": "ErrorGroup"
"id": "ErrorGroup",
"description": "Description of a group of similar error events.",
"type": "object"
},
"SourceLocation": {
"properties": {
@ -631,6 +686,10 @@
},
"ServiceContext": {
"properties": {
"resourceType": {
"description": "Type of the MonitoredResource. List of possible values:\nhttps://cloud.google.com/monitoring/api/resources\n\nValue is set automatically for incoming errors and must not be set when\nreporting errors.",
"type": "string"
},
"version": {
"description": "Represents the source code version that the developer provided,\nwhich could represent a version label or a Git SHA-1 hash, for example.\nFor App Engine standard environment, the version is set to the version of\nthe app.",
"type": "string"
@ -638,10 +697,6 @@
"service": {
"description": "An identifier of the service, such as the name of the\nexecutable, job, or Google App Engine service name. This field is expected\nto have a low number of values that are relatively stable over time, as\nopposed to `version`, which can be changed whenever new code is deployed.\n\nContains the service name for error reports extracted from Google\nApp Engine logs or `default` if the App Engine default service is used.",
"type": "string"
},
"resourceType": {
"description": "Type of the MonitoredResource. List of possible values:\nhttps://cloud.google.com/monitoring/api/resources\n\nValue is set automatically for incoming errors and must not be set when\nreporting errors.",
"type": "string"
}
},
"id": "ServiceContext",
@ -649,15 +704,20 @@
"type": "object"
},
"ReportErrorEventResponse": {
"properties": {},
"id": "ReportErrorEventResponse",
"description": "Response for reporting an individual error event.\nData may be added to this message in the future.",
"type": "object"
"type": "object",
"properties": {},
"id": "ReportErrorEventResponse"
},
"HttpRequestContext": {
"description": "HTTP request data that is related to a reported error.\nThis data should be provided by the application when reporting an error,\nunless the\nerror report has been generated automatically from Google App Engine logs.",
"type": "object",
"properties": {
"responseStatusCode": {
"format": "int32",
"description": "The HTTP response status code for the request.",
"type": "integer"
},
"method": {
"description": "The type of HTTP request, such as `GET`, `POST`, etc.",
"type": "string"
@ -677,74 +737,14 @@
"url": {
"description": "The URL of the request.",
"type": "string"
},
"responseStatusCode": {
"format": "int32",
"description": "The HTTP response status code for the request.",
"type": "integer"
}
},
"id": "HttpRequestContext"
},
"ListGroupStatsResponse": {
"description": "Contains a set of requested error group stats.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "If non-empty, more results are available.\nPass this token, along with the same query parameters as the first\nrequest, to view the next page of results.",
"type": "string"
},
"timeRangeBegin": {
"format": "google-datetime",
"description": "The timestamp specifies the start time to which the request was restricted.\nThe start time is set based on the requested time range. It may be adjusted\nto a later time if a project has exceeded the storage quota and older data\nhas been deleted.",
"type": "string"
},
"errorGroupStats": {
"description": "The error group stats which match the given request.",
"items": {
"$ref": "ErrorGroupStats"
},
"type": "array"
}
},
"id": "ListGroupStatsResponse"
},
"SourceReference": {
"description": "A reference to a particular snapshot of the source tree used to build and\ndeploy an application.",
"type": "object",
"properties": {
"revisionId": {
"description": "The canonical and persistent identifier of the deployed revision.\nExample (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\"",
"type": "string"
},
"repository": {
"description": "Optional. A URI string identifying the repository.\nExample: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
"type": "string"
}
},
"id": "SourceReference"
},
"DeleteEventsResponse": {
"properties": {},
"id": "DeleteEventsResponse",
"description": "Response message for deleting error events.",
"type": "object"
}
},
"protocol": "rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"canonicalName": "Clouderrorreporting",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},
"rootUrl": "https://clouderrorreporting.googleapis.com/"
"protocol": "rest"
}

View file

@ -1,4 +1,14 @@
{
"canonicalName": "Cloud Functions",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},
"rootUrl": "https://cloudfunctions.googleapis.com/",
"ownerDomain": "google.com",
"name": "cloudfunctions",
@ -10,66 +20,66 @@
"operations": {
"methods": {
"get": {
"path": "v1/{+name}",
"flatPath": "v1/operations/{operationsId}",
"id": "cloudfunctions.operations.get",
"path": "v1/{+name}",
"description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
"httpMethod": "GET",
"response": {
"$ref": "Operation"
},
"parameterOrder": [
"name"
],
"httpMethod": "GET",
"parameters": {
"name": {
"description": "The name of the operation resource.",
"type": "string",
"required": true,
"pattern": "^operations/[^/]+$",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
"response": {
"$ref": "ListOperationsResponse"
},
"parameterOrder": [],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"name": {
"type": "string",
"required": true,
"pattern": "^operations/[^/]+$",
"location": "path",
"description": "The name of the operation resource."
}
},
"flatPath": "v1/operations/{operationsId}"
},
"list": {
"description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
"httpMethod": "GET",
"parameterOrder": [],
"response": {
"$ref": "ListOperationsResponse"
},
"parameters": {
"filter": {
"location": "query",
"description": "The standard list filter.",
"type": "string"
},
"pageToken": {
"location": "query",
"description": "The standard list page token.",
"type": "string"
},
"name": {
"location": "query",
"description": "The name of the operation's parent resource.",
"type": "string"
},
"pageSize": {
"type": "integer",
"location": "query",
"format": "int32",
"description": "The standard list page size."
},
"filter": {
"description": "The standard list filter.",
"type": "string",
"location": "query"
},
"pageSize": {
"location": "query",
"format": "int32",
"description": "The standard list page size.",
"type": "integer"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1/operations",
"path": "v1/operations",
"id": "cloudfunctions.operations.list"
"id": "cloudfunctions.operations.list",
"path": "v1/operations"
}
}
},
@ -78,45 +88,45 @@
"locations": {
"methods": {
"list": {
"path": "v1/{+name}/locations",
"id": "cloudfunctions.projects.locations.list",
"description": "Lists information about the supported locations for this service.",
"httpMethod": "GET",
"response": {
"$ref": "ListLocationsResponse"
},
"parameterOrder": [
"name"
],
"response": {
"$ref": "ListLocationsResponse"
},
"parameters": {
"filter": {
"description": "The standard list filter.",
"type": "string",
"location": "query"
},
"pageToken": {
"location": "query",
"description": "The standard list page token.",
"type": "string"
},
"name": {
"pattern": "^projects/[^/]+$",
"location": "path",
"description": "The resource that owns the locations collection, if applicable.",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+$",
"location": "path"
"required": true
},
"pageSize": {
"type": "integer",
"location": "query",
"format": "int32",
"description": "The standard list page size.",
"type": "integer"
},
"filter": {
"location": "query",
"description": "The standard list filter.",
"type": "string"
"description": "The standard list page size."
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1/projects/{projectsId}/locations"
"flatPath": "v1/projects/{projectsId}/locations",
"path": "v1/{+name}/locations",
"id": "cloudfunctions.projects.locations.list",
"description": "Lists information about the supported locations for this service."
}
}
}
@ -124,31 +134,30 @@
}
},
"parameters": {
"pp": {
"oauth_token": {
"type": "string",
"location": "query",
"description": "Pretty-print response.",
"default": "true",
"type": "boolean"
"description": "OAuth 2.0 token for the current user."
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean",
"type": "boolean"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
},
"fields": {
@ -156,12 +165,13 @@
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
"callback": {
"description": "JSONP",
"type": "string",
"location": "query"
},
"$.xgafv": {
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
@ -171,15 +181,15 @@
"1",
"2"
],
"description": "V1 error format.",
"type": "string"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
"description": "V1 error format."
},
"alt": {
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response.",
"default": "json",
@ -187,18 +197,12 @@
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
]
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string",
"location": "query"
"type": "string"
},
"key": {
"location": "query",
@ -209,61 +213,40 @@
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
},
"pp": {
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
"location": "query"
}
},
"version": "v1",
"baseUrl": "https://cloudfunctions.googleapis.com/",
"servicePath": "",
"description": "API for managing lightweight user-provided functions executed in response to events.",
"kind": "discovery#restDescription",
"description": "API for managing lightweight user-provided functions executed in response to events.",
"servicePath": "",
"basePath": "",
"documentationLink": "https://cloud.google.com/functions",
"revision": "20170912",
"id": "cloudfunctions:v1",
"documentationLink": "https://cloud.google.com/functions",
"revision": "20170920",
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client."
},
"details": {
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
"items": {
"additionalProperties": {
"type": "any",
"description": "Properties of the object. Contains field @type with type URL."
},
"type": "object"
},
"type": "array"
},
"code": {
"format": "int32",
"description": "The status code, which should be an enum value of google.rpc.Code.",
"type": "integer"
}
},
"id": "Status"
},
"ListLocationsResponse": {
"description": "The response message for Locations.ListLocations.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
},
"locations": {
"description": "A list of locations that matches the specified filter in the request.",
"items": {
"$ref": "Location"
},
"type": "array"
},
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
}
},
"id": "ListLocationsResponse"
@ -272,65 +255,36 @@
"description": "A resource that represents Google Cloud Platform location.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Resource name for the location, which may vary between implementations.\nFor example: `\"projects/example-project/locations/us-east1\"`"
},
"locationId": {
"type": "string",
"description": "The canonical id for this location. For example: `\"us-east1\"`."
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata. For example the available capacity at the given\nlocation.",
"type": "object"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Cross-service attributes for the location. For example\n\n {\"cloud.googleapis.com/region\": \"us-east1\"}",
"type": "object"
},
"name": {
"description": "Resource name for the location, which may vary between implementations.\nFor example: `\"projects/example-project/locations/us-east1\"`",
"type": "string"
},
"locationId": {
"description": "The canonical id for this location. For example: `\"us-east1\"`.",
"type": "string"
},
"metadata": {
"description": "Service-specific metadata. For example the available capacity at the given\nlocation.",
"type": "object",
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
}
}
},
"id": "Location"
},
"ListOperationsResponse": {
"properties": {
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
},
"operations": {
"description": "A list of operations that matches the specified filter in the request.",
"items": {
"$ref": "Operation"
},
"type": "array"
}
},
"id": "ListOperationsResponse",
"description": "The response message for Operations.ListOperations.",
"type": "object"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
"type": "object",
"properties": {
"error": {
"description": "The error result of the operation in case of failure or cancellation.",
"$ref": "Status"
},
"metadata": {
"additionalProperties": {
"type": "any",
"description": "Properties of the object. Contains field @type with type URL."
},
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
"type": "object"
},
"done": {
"description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable.",
"type": "boolean"
@ -346,16 +300,49 @@
"name": {
"description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.",
"type": "string"
},
"error": {
"$ref": "Status",
"description": "The error result of the operation in case of failure or cancellation."
},
"metadata": {
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
"type": "object",
"additionalProperties": {
"type": "any",
"description": "Properties of the object. Contains field @type with type URL."
}
}
},
"id": "Operation",
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call."
"id": "Operation"
},
"ListOperationsResponse": {
"properties": {
"operations": {
"description": "A list of operations that matches the specified filter in the request.",
"items": {
"$ref": "Operation"
},
"type": "array"
},
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
}
},
"id": "ListOperationsResponse",
"description": "The response message for Operations.ListOperations.",
"type": "object"
},
"OperationMetadataV1Beta2": {
"description": "Metadata describing an Operation",
"type": "object",
"properties": {
"type": {
"enumDescriptions": [
"Unknown operation type.",
"Triggered by CreateFunction call",
"Triggered by UpdateFunction call",
"Triggered by DeleteFunction call."
],
"enum": [
"OPERATION_UNSPECIFIED",
"CREATE_FUNCTION",
@ -363,17 +350,16 @@
"DELETE_FUNCTION"
],
"description": "Type of operation.",
"type": "string",
"enumDescriptions": [
"Unknown operation type.",
"Triggered by CreateFunction call",
"Triggered by UpdateFunction call",
"Triggered by DeleteFunction call."
]
"type": "string"
},
"target": {
"type": "string",
"description": "Target of the operation - for example\nprojects/project-1/locations/region-1/functions/function-1"
"description": "Target of the operation - for example\nprojects/project-1/locations/region-1/functions/function-1",
"type": "string"
},
"versionId": {
"format": "int64",
"description": "Version id of the function created or updated by an API call.\nThis field is only pupulated for Create and Update operations.",
"type": "string"
},
"request": {
"description": "The original request that started the operation.",
@ -384,22 +370,41 @@
}
}
},
"id": "OperationMetadataV1Beta2"
"id": "OperationMetadataV1Beta2",
"description": "Metadata describing an Operation",
"type": "object"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object",
"properties": {
"code": {
"format": "int32",
"description": "The status code, which should be an enum value of google.rpc.Code.",
"type": "integer"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
},
"details": {
"items": {
"type": "object",
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
}
},
"type": "array",
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use."
}
},
"id": "Status"
}
},
"protocol": "rest",
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"canonicalName": "Cloud Functions",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
}
"protocol": "rest"
}

View file

@ -320,6 +320,11 @@ type OperationMetadataV1Beta2 struct {
// "DELETE_FUNCTION" - Triggered by DeleteFunction call.
Type string `json:"type,omitempty"`
// VersionId: Version id of the function created or updated by an API
// call.
// This field is only pupulated for Create and Update operations.
VersionId int64 `json:"versionId,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Request") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,

File diff suppressed because it is too large Load diff

View file

@ -221,6 +221,9 @@ type CloudFunction struct {
// via URL.
HttpsTrigger *HTTPSTrigger `json:"httpsTrigger,omitempty"`
// Labels: Labels associated with this Cloud Function.
Labels map[string]string `json:"labels,omitempty"`
// LatestOperation: Output only. Name of the most recent operation
// modifying the function. If
// the function status is `DEPLOYING` or `DELETING`, then it points to
@ -291,6 +294,12 @@ type CloudFunction struct {
// Function.
UpdateTime string `json:"updateTime,omitempty"`
// VersionId: Output only.
// The version identifier of the Cloud Function. Each deployment
// attempt
// results in a new version of a function being created.
VersionId int64 `json:"versionId,omitempty,string"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
@ -353,6 +362,15 @@ type EventTrigger struct {
// project (`projects/*`)
Resource string `json:"resource,omitempty"`
// Service: The hostname of the service that should be observed.
//
// If no string is provided, the default service implementing the API
// will
// be used. For example, `storage.googleapis.com` is the default for
// all
// event types in the 'google.storage` namespace.
Service string `json:"service,omitempty"`
// ForceSendFields is a list of field names (e.g. "EventType") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@ -689,6 +707,11 @@ type OperationMetadataV1Beta2 struct {
// "DELETE_FUNCTION" - Triggered by DeleteFunction call.
Type string `json:"type,omitempty"`
// VersionId: Version id of the function created or updated by an API
// call.
// This field is only pupulated for Create and Update operations.
VersionId int64 `json:"versionId,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Request") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,

File diff suppressed because it is too large Load diff

View file

@ -21,7 +21,7 @@
"basePath": "/cloudmonitoring/v2beta2/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "cloudmonitoring/v2beta2/projects/",
"batchPath": "batch/cloudmonitoring/v2beta2",
"batchPath": "batch",
"parameters": {
"alt": {
"type": "string",

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

File diff suppressed because it is too large Load diff

View file

@ -395,35 +395,10 @@ func (s *AppEngineHttpTarget) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AppEngineQueueConfig: App Engine queue config.
//
// An App Engine queue is a queue that has AppEngineQueueConfig
// set.
//
// The task will be delivered to the App Engine application
// URL
// specified by its AppEngineQueueConfig and AppEngineTaskTarget.
// The documentation for AppEngineTaskTarget explains how the
// task's host URL is constructed.
//
// Using this type of queue configuration
// requires
// [`appengine.applications.get`](/appengine/docs/admin-api/acce
// ss-control)
// Google IAM permission for the project
// and the following
// scope:
//
// `https://www.googleapis.com/auth/cloud-platform`
// AppEngineQueueConfig: Deprecated. Use AppEngineTarget.
type AppEngineQueueConfig struct {
// AppEngineRoutingOverride: Overrides for the
// task-level app_engine_routing.
//
// If set, AppEngineQueueConfig.app_engine_routing_override is used
// for
// all tasks in the queue, no matter what the setting is for
// the
// task-level app_engine_routing.
// AppEngineRoutingOverride: Deprecated. Use
// AppEngineTarget.app_engine_routing_override.
AppEngineRoutingOverride *AppEngineRouting `json:"appEngineRoutingOverride,omitempty"`
// ForceSendFields is a list of field names (e.g.
@ -621,140 +596,16 @@ func (s *AppEngineRouting) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AppEngineTaskTarget: App Engine task target.
//
// An App Engine task is a task that has AppEngineTaskTarget set.
//
// This proto can only be used for tasks in a queue which
// has
// Queue.app_engine_queue_config set.
//
// Using this type of task target
// requires
// [`appengine.applications.get`](/appengine/docs/admin-api/acce
// ss-control)
// Google IAM permission for the project
// and the following
// scope:
//
// `https://www.googleapis.com/auth/cloud-platform`
//
// The task will be delivered to the URL specified by
// the
// AppEngineQueueConfig and AppEngineTaskTarget in the App Engine
// app
// which belongs to the same project as the queue. For more information,
// see
// [How Requests are
// Routed](/appengine/docs/standard/python/how-requests-are-routed)
// and how routing is affected by
// [dispatch files](/appengine/docs/python/config/dispatchref).
//
// The AppEngineRouting used to construct the URL can be set at
// the queue-level or task-level:
//
// * If set, AppEngineQueueConfig.app_engine_routing_override is used
// for
// all tasks in the queue, no matter what the setting is for the
// task-level app_engine_routing.
//
//
// The `url` that the task will be sent to is:
//
// * `url =` AppEngineRouting.host `+`
// AppEngineTaskTarget.relative_url
//
// The task will be sent to a task handler by an HTTP
// request using the specified AppEngineTaskTarget.http_method (for
// example
// POST, HTTP GET, etc). The task attempt has succeeded if the task
// handler
// returns an HTTP response code in the range [200 - 299]. Error 503
// is
// considered an App Engine system error instead of an application
// error.
// Requests returning error 503 will be retried regardless of
// retry
// configuration and not counted against retry counts.
// Any other response code or a failure to receive a response before
// the
// deadline is a failed attempt.
// AppEngineTaskTarget: Deprecated. Use AppEngineHttpRequest.
type AppEngineTaskTarget struct {
// AppEngineRouting: Task-level setting for App Engine routing.
//
// If set, AppEngineQueueConfig.app_engine_routing_override is used
// for
// all tasks in the queue, no matter what the setting is for
// the
// task-level app_engine_routing.
// AppEngineRouting: Deprecated. Use
// AppEngineHttpRequest.app_engine_routing.
AppEngineRouting *AppEngineRouting `json:"appEngineRouting,omitempty"`
// Headers: HTTP request headers.
//
// This map contains the header field names and values.
// Headers can be set when the
// [task is
// created](google.cloud.tasks.v2beta2.CloudTasks.CreateTask).
// Repeated headers are not supported but a header value can contain
// commas.
//
// Cloud Tasks sets some headers to default values:
//
// * `User-Agent`: By default, this header is
// "AppEngine-Google; (+http://code.google.com/appengine)".
// This header can be modified, but Cloud Tasks will append
// "AppEngine-Google; (+http://code.google.com/appengine)" to the
// modified `User-Agent`.
//
// If the task has an AppEngineTaskTarget.payload, Cloud Tasks sets
// the
// following headers:
//
// * `Content-Type`: By default, the `Content-Type` header is set to
// "application/octet-stream". The default can be overridden by
// explictly
// setting `Content-Type` to a particular media type when the
// [task is
// created](google.cloud.tasks.v2beta2.CloudTasks.CreateTask).
// For example, `Content-Type` can be set to "application/json".
// * `Content-Length`: This is computed by Cloud Tasks. This value is
// output only. It cannot be changed.
//
// The headers below cannot be set or overridden:
//
// * `Host`
// * `X-Google-*`
// * `X-AppEngine-*`
//
// In addition, some App Engine headers, which contain
// task-specific information, are also be sent to the task handler;
// see
// [request
// headers](/appengine/docs/python/taskqueue/push/creating-handlers#readi
// ng_request_headers).
// Headers: Deprecated. Use AppEngineHttpRequest.headers.
Headers map[string]string `json:"headers,omitempty"`
// HttpMethod: The HTTP method to use for the request. The default is
// POST.
//
// The app's request handler for the task's target URL must be able to
// handle
// HTTP requests with this http_method, otherwise the task attempt will
// fail
// with error code 405 "Method Not Allowed" because "the method
// specified in
// the Request-Line is not allowed for the resource identified by
// the
// Request-URI". See
// [Writing a push task request
// handler](/appengine/docs/java/taskqueue/push/creating-handlers#writing
// _a_push_task_request_handler)
// and the documentation for the request handlers in the language your
// app is
// written in e.g.
// [python
// RequestHandler](/appengine/docs/python/tools/webapp/requesthandlerclas
// s).
// HttpMethod: Deprecated. Use AppEngineHttpRequest.http_method.
//
// Possible values:
// "HTTP_METHOD_UNSPECIFIED" - HTTP method unspecified
@ -765,22 +616,10 @@ type AppEngineTaskTarget struct {
// "DELETE" - HTTP Delete
HttpMethod string `json:"httpMethod,omitempty"`
// Payload: Payload.
//
// The payload will be sent as the HTTP message body. A message
// body, and thus a payload, is allowed only if the HTTP method is
// POST or PUT. It is an error to set a data payload on a task with
// an incompatible HttpMethod.
// Payload: Deprecated. Use AppEngineHttpRequest.payload.
Payload string `json:"payload,omitempty"`
// RelativeUrl: The relative URL.
//
// The relative URL must begin with "/" and must be a valid HTTP
// relative URL.
// It can contain a path, query string arguments, and `#` fragments.
// If the relative URL is empty, then the root path "/" will be used.
// No spaces are allowed, and the maximum length allowed is 2083
// characters.
// RelativeUrl: Deprecated. Use AppEngineHttpRequest.relative_url.
RelativeUrl string `json:"relativeUrl,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppEngineRouting") to
@ -1120,6 +959,43 @@ type Empty struct {
type GetIamPolicyRequest struct {
}
// ListLocationsResponse: The response message for
// Locations.ListLocations.
type ListLocationsResponse struct {
// Locations: A list of locations that matches the specified filter in
// the request.
Locations []*Location `json:"locations,omitempty"`
// NextPageToken: The standard List next-page token.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Locations") 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. "Locations") 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 *ListLocationsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListLocationsResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListQueuesResponse: Response message for CloudTasks.ListQueues.
type ListQueuesResponse struct {
// NextPageToken: A token to retrieve next page of results.
@ -1207,6 +1083,54 @@ func (s *ListTasksResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Location: A resource that represents Google Cloud Platform location.
type Location struct {
// Labels: Cross-service attributes for the location. For example
//
// {"cloud.googleapis.com/region": "us-east1"}
Labels map[string]string `json:"labels,omitempty"`
// LocationId: The canonical id for this location. For example:
// "us-east1".
LocationId string `json:"locationId,omitempty"`
// Metadata: Service-specific metadata. For example the available
// capacity at the given
// location.
Metadata googleapi.RawMessage `json:"metadata,omitempty"`
// Name: Resource name for the location, which may vary between
// implementations.
// For example: "projects/example-project/locations/us-east1"
Name string `json:"name,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Labels") 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. "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
// 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 *Location) MarshalJSON() ([]byte, error) {
type noMethod Location
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PauseQueueRequest: Request message for CloudTasks.PauseQueue.
type PauseQueueRequest struct {
}
@ -1346,9 +1270,7 @@ func (s *PullMessage) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PullQueueConfig: Pull queue config.
//
// A pull queue is a queue that has PullQueueConfig set.
// PullQueueConfig: Deprecated. Use PullTarget.
type PullQueueConfig struct {
}
@ -1356,25 +1278,12 @@ type PullQueueConfig struct {
type PullTarget struct {
}
// PullTaskTarget: Pull task target.
//
// A pull task is a task that has PullTaskTarget set.
//
// This proto can only be used for tasks in a queue which
// has
// Queue.pull_queue_config set.
// PullTaskTarget: Deprecated. Use PullMessage.
type PullTaskTarget struct {
// Payload: A data payload consumed by the task worker to execute the
// task.
// Payload: Deprecated. Use PullMessage.payload.
Payload string `json:"payload,omitempty"`
// Tag: A meta-data tag for this task.
//
// This value is used by CloudTasks.PullTasks calls
// when
// PullTasksRequest.filter is `tag=<tag>`.
//
// The tag must be less than 500 bytes.
// Tag: Deprecated. Use PullMessage.tag.
Tag string `json:"tag,omitempty"`
// ForceSendFields is a list of field names (e.g. "Payload") to
@ -1408,7 +1317,7 @@ type PullTasksRequest struct {
//
// When `filter` is set to `tag=<my-tag>` then the
// PullTasksResponse will contain only tasks whose
// PullTaskTarget.tag is equal to `<my-tag>`. `<my-tag>` can be
// PullMessage.tag is equal to `<my-tag>`. `<my-tag>` can be
// a bytes encoded as a string and must be less than 500 bytes.
// If `<my-tag>` includes whitespace or special characters (characters
// which
@ -1578,8 +1487,7 @@ type Queue struct {
// An App Engine queue is a queue that has an AppEngineHttpTarget.
AppEngineHttpTarget *AppEngineHttpTarget `json:"appEngineHttpTarget,omitempty"`
// AppEngineQueueConfig:
// App Engine queue config.
// AppEngineQueueConfig: Deprecated. Use Queue.app_engine_http_target.
AppEngineQueueConfig *AppEngineQueueConfig `json:"appEngineQueueConfig,omitempty"`
// Name: The queue name.
@ -1601,8 +1509,7 @@ type Queue struct {
// it becomes output only.
Name string `json:"name,omitempty"`
// PullQueueConfig:
// Pull queue config.
// PullQueueConfig: Deprecated. Use Queue.pull_target.
PullQueueConfig *PullQueueConfig `json:"pullQueueConfig,omitempty"`
// PullTarget: Pull target.
@ -1644,13 +1551,15 @@ type Queue struct {
// still be added to it by the user. When a pull queue is paused,
// all CloudTasks.PullTasks calls will return a
// `FAILED_PRECONDITION` error.
// "DISABLED" - Disabled indicates that queue has been removed from
// queue.yaml.
// "DISABLED" - The queue is disabled.
//
// When you remove a queue
// from
// [queue.yaml](/appengine/docs/python/config/queueref),
// it is marked as `DISABLED`. You cannot directly disable a
// A queue becomes `DISABLED`
// when
// [queue.yaml](/appengine/docs/python/config/queueref)
// or
// [queue.xml](appengine/docs/standard/java/config/queueref) is
// uploaded
// which does not contain the queue. You cannot directly disable a
// queue.
//
// When a queue is disabled, tasks can still be added to a queue
@ -2122,10 +2031,7 @@ type Task struct {
// An App Engine task is a task that has AppEngineHttpRequest set.
AppEngineHttpRequest *AppEngineHttpRequest `json:"appEngineHttpRequest,omitempty"`
// AppEngineTaskTarget:
// App Engine task target. Can be set only
// if
// Queue.app_engine_queue_config is set.
// AppEngineTaskTarget: Deprecated. Use Task.app_engine_http_request.
AppEngineTaskTarget *AppEngineTaskTarget `json:"appEngineTaskTarget,omitempty"`
// CreateTime: Output only.
@ -2166,8 +2072,7 @@ type Task struct {
// A pull task is a task that has PullMessage set.
PullMessage *PullMessage `json:"pullMessage,omitempty"`
// PullTaskTarget:
// Pull task target. Can be set only if Queue.pull_queue_config is set.
// PullTaskTarget: Deprecated. Use Task.pull_message.
PullTaskTarget *PullTaskTarget `json:"pullTaskTarget,omitempty"`
// ScheduleTime: The time when the task is scheduled to be
@ -2405,7 +2310,7 @@ type ThrottleConfig struct {
// [bucket_size in
// queue.yaml](/appengine/docs/standard/python/config/queueref#bucket_siz
// e).
MaxBurstSize float64 `json:"maxBurstSize,omitempty"`
MaxBurstSize int64 `json:"maxBurstSize,omitempty"`
// MaxOutstandingTasks: The maximum number of outstanding tasks that
// Cloud Tasks allows
@ -2467,7 +2372,6 @@ func (s *ThrottleConfig) MarshalJSON() ([]byte, error) {
func (s *ThrottleConfig) UnmarshalJSON(data []byte) error {
type noMethod ThrottleConfig
var s1 struct {
MaxBurstSize gensupport.JSONFloat64 `json:"maxBurstSize"`
MaxTasksDispatchedPerSecond gensupport.JSONFloat64 `json:"maxTasksDispatchedPerSecond"`
*noMethod
}
@ -2475,11 +2379,347 @@ func (s *ThrottleConfig) UnmarshalJSON(data []byte) error {
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.MaxBurstSize = float64(s1.MaxBurstSize)
s.MaxTasksDispatchedPerSecond = float64(s1.MaxTasksDispatchedPerSecond)
return nil
}
// method id "cloudtasks.projects.locations.get":
type ProjectsLocationsGetCall struct {
s *Service
name string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Get information about a location.
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
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 *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
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 *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
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 *ProjectsLocationsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsGetCall) 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, "v2beta2/{+name}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "cloudtasks.projects.locations.get" call.
// Exactly one of *Location or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, 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 := &Location{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Get information about a location.",
// "flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}",
// "httpMethod": "GET",
// "id": "cloudtasks.projects.locations.get",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "Resource name for the location.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta2/{+name}",
// "response": {
// "$ref": "Location"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "cloudtasks.projects.locations.list":
type ProjectsLocationsListCall struct {
s *Service
name string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Lists information about the supported locations for this
// service.
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
return c
}
// Filter sets the optional parameter "filter": The standard list
// filter.
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
c.urlParams_.Set("filter", filter)
return c
}
// PageSize sets the optional parameter "pageSize": The standard list
// page size.
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": The standard list
// page token.
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
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 *ProjectsLocationsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsListCall) 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, "v2beta2/{+name}/locations")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "cloudtasks.projects.locations.list" call.
// Exactly one of *ListLocationsResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Lists information about the supported locations for this service.",
// "flatPath": "v2beta2/projects/{projectsId}/locations",
// "httpMethod": "GET",
// "id": "cloudtasks.projects.locations.list",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "filter": {
// "description": "The standard list filter.",
// "location": "query",
// "type": "string"
// },
// "name": {
// "description": "The resource that owns the locations collection, if applicable.",
// "location": "path",
// "pattern": "^projects/[^/]+$",
// "required": true,
// "type": "string"
// },
// "pageSize": {
// "description": "The standard list page size.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "The standard list page token.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v2beta2/{+name}/locations",
// "response": {
// "$ref": "ListLocationsResponse"
// },
// "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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) 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 "cloudtasks.projects.locations.queues.create":
type ProjectsLocationsQueuesCreateCall struct {
@ -3072,7 +3312,7 @@ func (r *ProjectsLocationsQueuesService) List(parent string) *ProjectsLocationsQ
// [Stackdriver's Advanced Logs
// Filters](/logging/docs/view/advanced_filters).
//
// Sample filter "app_engine_queue_config: *".
// Sample filter "app_engine_http_target: *".
//
// Note that using filters might cause fewer queues than
// the
@ -3214,7 +3454,7 @@ func (c *ProjectsLocationsQueuesListCall) Do(opts ...googleapi.CallOption) (*Lis
// ],
// "parameters": {
// "filter": {
// "description": "`filter` can be used to specify a subset of queues. Any Queue\nfield can be used as a filter and several operators as supported.\nFor example: `\u003c=, \u003c, \u003e=, \u003e, !=, =, :`. The filter syntax is the same as\ndescribed in\n[Stackdriver's Advanced Logs Filters](/logging/docs/view/advanced_filters).\n\nSample filter \"app_engine_queue_config: *\".\n\nNote that using filters might cause fewer queues than the\nrequested_page size to be returned.",
// "description": "`filter` can be used to specify a subset of queues. Any Queue\nfield can be used as a filter and several operators as supported.\nFor example: `\u003c=, \u003c, \u003e=, \u003e, !=, =, :`. The filter syntax is the same as\ndescribed in\n[Stackdriver's Advanced Logs Filters](/logging/docs/view/advanced_filters).\n\nSample filter \"app_engine_http_target: *\".\n\nNote that using filters might cause fewer queues than the\nrequested_page size to be returned.",
// "location": "query",
// "type": "string"
// },
@ -4932,7 +5172,7 @@ func (r *ProjectsLocationsQueuesTasksService) List(parent string) *ProjectsLocat
// OrderBy sets the optional parameter "orderBy": Sort order used for
// the query. The fields supported for sorting
// are Task.schedule_time and PullTaskTarget.tag. All results will
// are Task.schedule_time and PullMessage.tag. All results will
// be
// returned in ascending order. The default ordering is
// by
@ -5101,7 +5341,7 @@ func (c *ProjectsLocationsQueuesTasksListCall) Do(opts ...googleapi.CallOption)
// ],
// "parameters": {
// "orderBy": {
// "description": "\nSort order used for the query. The fields supported for sorting\nare Task.schedule_time and PullTaskTarget.tag. All results will be\nreturned in ascending order. The default ordering is by\nTask.schedule_time.",
// "description": "\nSort order used for the query. The fields supported for sorting\nare Task.schedule_time and PullMessage.tag. All results will be\nreturned in ascending order. The default ordering is by\nTask.schedule_time.",
// "location": "query",
// "type": "string"
// },

View file

@ -1,29 +1,9 @@
{
"name": "cloudtrace",
"batchPath": "batch",
"title": "Stackdriver Trace API",
"ownerName": "Google",
"resources": {
"projects": {
"methods": {
"patchTraces": {
"path": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.patchTraces",
"request": {
"$ref": "Traces"
},
"description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing trace data. If the\nID does not match, a new trace is created.",
"httpMethod": "PATCH",
"parameterOrder": [
"projectId"
],
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"parameters": {
"projectId": {
"description": "ID of the Cloud project where the trace data is stored.",
@ -32,21 +12,39 @@
"location": "path"
}
},
"flatPath": "v1/projects/{projectId}/traces"
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"flatPath": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.patchTraces",
"path": "v1/projects/{projectId}/traces",
"description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing trace data. If the\nID does not match, a new trace is created.",
"request": {
"$ref": "Traces"
},
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"projectId"
],
"httpMethod": "PATCH"
}
},
"resources": {
"traces": {
"methods": {
"get": {
"response": {
"$ref": "Trace"
},
"description": "Gets a single trace by its ID.",
"httpMethod": "GET",
"parameterOrder": [
"projectId",
"traceId"
],
"httpMethod": "GET",
"response": {
"$ref": "Trace"
},
"parameters": {
"projectId": {
"location": "path",
@ -66,23 +64,52 @@
"https://www.googleapis.com/auth/trace.readonly"
],
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
"id": "cloudtrace.projects.traces.get",
"path": "v1/projects/{projectId}/traces/{traceId}",
"description": "Gets a single trace by its ID."
"id": "cloudtrace.projects.traces.get"
},
"list": {
"response": {
"$ref": "ListTracesResponse"
},
"httpMethod": "GET",
"parameterOrder": [
"projectId"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"response": {
"$ref": "ListTracesResponse"
},
"parameters": {
"endTime": {
"type": "string",
"location": "query",
"format": "google-datetime",
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application."
},
"pageToken": {
"type": "string",
"location": "query",
"description": "Token identifying the page of results to return. If provided, use the\nvalue of the `next_page_token` field from a previous request. Optional."
},
"startTime": {
"format": "google-datetime",
"description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.",
"type": "string",
"location": "query"
},
"pageSize": {
"location": "query",
"format": "int32",
"description": "Maximum number of traces to return. If not specified or \u003c= 0, the\nimplementation selects a reasonable value. The implementation may\nreturn fewer traces than the requested page size. Optional.",
"type": "integer"
},
"view": {
"description": "Type of data returned for traces in the list. Optional. Default is\n`MINIMAL`.",
"type": "string",
"location": "query",
"enum": [
"VIEW_TYPE_UNSPECIFIED",
"MINIMAL",
"ROOTSPAN",
"COMPLETE"
]
},
"orderBy": {
"location": "query",
"description": "Field used to sort the returned traces. Optional.\nCan be one of the following:\n\n* `trace_id`\n* `name` (`name` field of root span in the trace)\n* `duration` (difference between `end_time` and `start_time` fields of\n the root span)\n* `start` (`start_time` field of the root span)\n\nDescending order can be specified by appending `desc` to the sort field\n(for example, `name desc`).\n\nOnly one sort field is permitted.",
@ -98,45 +125,15 @@
"location": "query",
"description": "An optional filter against labels for the request.\n\nBy default, searches use prefix matching. To specify exact match, prepend\na plus symbol (`+`) to the search term.\nMultiple terms are ANDed. Syntax:\n\n* `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root\n span starts with `NAME_PREFIX`.\n* `+root:NAME` or `+NAME`: Return traces where any root span's name is\n exactly `NAME`.\n* `span:NAME_PREFIX`: Return traces where any span starts with\n `NAME_PREFIX`.\n* `+span:NAME`: Return traces where any span's name is exactly\n `NAME`.\n* `latency:DURATION`: Return traces whose overall latency is\n greater or equal to than `DURATION`. Accepted units are nanoseconds\n (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For\n example, `latency:24ms` returns traces whose overall latency\n is greater than or equal to 24 milliseconds.\n* `label:LABEL_KEY`: Return all traces containing the specified\n label key (exact match, case-sensitive) regardless of the key:value\n pair's value (including empty values).\n* `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified\n label key (exact match, case-sensitive) whose value starts with\n `VALUE_PREFIX`. Both a key and a value must be specified.\n* `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair\n exactly matching the specified text. Both a key and a value must be\n specified.\n* `method:VALUE`: Equivalent to `/http/method:VALUE`.\n* `url:VALUE`: Equivalent to `/http/url:VALUE`.",
"type": "string"
},
"endTime": {
"location": "query",
"format": "google-datetime",
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.",
"type": "string"
},
"pageToken": {
"location": "query",
"description": "Token identifying the page of results to return. If provided, use the\nvalue of the `next_page_token` field from a previous request. Optional.",
"type": "string"
},
"startTime": {
"location": "query",
"format": "google-datetime",
"description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.",
"type": "string"
},
"pageSize": {
"format": "int32",
"description": "Maximum number of traces to return. If not specified or \u003c= 0, the\nimplementation selects a reasonable value. The implementation may\nreturn fewer traces than the requested page size. Optional.",
"type": "integer",
"location": "query"
},
"view": {
"location": "query",
"enum": [
"VIEW_TYPE_UNSPECIFIED",
"MINIMAL",
"ROOTSPAN",
"COMPLETE"
],
"description": "Type of data returned for traces in the list. Optional. Default is\n`MINIMAL`.",
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"flatPath": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.traces.list",
"path": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.traces.list",
"description": "Returns of a list of traces that match the specified filter conditions."
}
}
@ -161,48 +158,50 @@
"type": "string"
},
"pp": {
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
"location": "query",
"description": "Pretty-print response."
},
"bearer_token": {
"description": "OAuth bearer token.",
"type": "string",
"location": "query"
},
"oauth_token": {
"type": "string",
"location": "query",
"description": "OAuth 2.0 token for the current user."
},
"upload_protocol": {
"type": "string",
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
},
"prettyPrint": {
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean",
"location": "query"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string",
"location": "query"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"$.xgafv": {
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
@ -211,25 +210,23 @@
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string"
]
},
"alt": {
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query"
"location": "query",
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
"proto"
]
}
},
"version": "v1",
@ -238,17 +235,20 @@
"description": "Send and retrieve trace data from Stackdriver Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Stackdriver Trace for display, reporting, and analysis.\n",
"kind": "discovery#restDescription",
"basePath": "",
"id": "cloudtrace:v1",
"revision": "20170905",
"revision": "20170913",
"documentationLink": "https://cloud.google.com/trace",
"id": "cloudtrace:v1",
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"TraceSpan": {
"id": "TraceSpan",
"description": "A span represents a single timed event within a trace. Spans can be nested\nand form a trace tree. Often, a trace contains a root span that describes the\nend-to-end latency of an operation and, optionally, one or more subspans for\nits suboperations. Spans do not need to be contiguous. There may be gaps\nbetween spans in a trace.",
"type": "object",
"properties": {
"name": {
"description": "Name of the span. Must be less than 128 bytes. The span name is sanitized\nand displayed in the Stackdriver Trace tool in the\n{% dynamic print site_values.console_name %}.\nThe name may be a method name or some other per-call site name.\nFor the same executable and the same call point, a best practice is\nto use a consistent name, which makes it easier to correlate\ncross-trace spans.",
"type": "string"
},
"spanId": {
"format": "uint64",
"description": "Identifier for the span. Must be a 64-bit integer other than 0 and\nunique within a trace.",
@ -270,8 +270,6 @@
"type": "string"
},
"kind": {
"description": "Distinguishes between spans generated in a particular context. For example,\ntwo spans with the same name may be distinguished using `RPC_CLIENT`\nand `RPC_SERVER` to identify queueing latency associated with the span.",
"type": "string",
"enumDescriptions": [
"Unspecified.",
"Indicates that the span covers server-side handling of an RPC or other\nremote network request.",
@ -281,20 +279,19 @@
"SPAN_KIND_UNSPECIFIED",
"RPC_SERVER",
"RPC_CLIENT"
]
],
"description": "Distinguishes between spans generated in a particular context. For example,\ntwo spans with the same name may be distinguished using `RPC_CLIENT`\nand `RPC_SERVER` to identify queueing latency associated with the span.",
"type": "string"
},
"labels": {
"description": "Collection of labels associated with the span. Label keys must be less than\n128 bytes. Label values must be less than 16 kilobytes (10MB for\n`/stacktrace` values).\n\nSome predefined label keys exist, or you may create your own. When creating\nyour own, we recommend the following formats:\n\n* `/category/product/key` for agents of well-known products (e.g.\n `/db/mongodb/read_size`).\n* `short_host/path/key` for domain-specific keys (e.g.\n `foo.com/myproduct/bar`)\n\nPredefined labels include:\n\n* `/agent`\n* `/component`\n* `/error/message`\n* `/error/name`\n* `/http/client_city`\n* `/http/client_country`\n* `/http/client_protocol`\n* `/http/client_region`\n* `/http/host`\n* `/http/method`\n* `/http/redirected_url`\n* `/http/request/size`\n* `/http/response/size`\n* `/http/status_code`\n* `/http/url`\n* `/http/user_agent`\n* `/pid`\n* `/stacktrace`\n* `/tid`",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"description": "Name of the span. Must be less than 128 bytes. The span name is sanitized\nand displayed in the Stackdriver Trace tool in the\n{% dynamic print site_values.console_name %}.\nThe name may be a method name or some other per-call site name.\nFor the same executable and the same call point, a best practice is\nto use a consistent name, which makes it easier to correlate\ncross-trace spans.",
"type": "string"
},
"description": "Collection of labels associated with the span. Label keys must be less than\n128 bytes. Label values must be less than 16 kilobytes (10MB for\n`/stacktrace` values).\n\nSome predefined label keys exist, or you may create your own. When creating\nyour own, we recommend the following formats:\n\n* `/category/product/key` for agents of well-known products (e.g.\n `/db/mongodb/read_size`).\n* `short_host/path/key` for domain-specific keys (e.g.\n `foo.com/myproduct/bar`)\n\nPredefined labels include:\n\n* `/agent`\n* `/component`\n* `/error/message`\n* `/error/name`\n* `/http/client_city`\n* `/http/client_country`\n* `/http/client_protocol`\n* `/http/client_region`\n* `/http/host`\n* `/http/method`\n* `/http/redirected_url`\n* `/http/request/size`\n* `/http/response/size`\n* `/http/status_code`\n* `/http/url`\n* `/http/user_agent`\n* `/pid`\n* `/stacktrace`\n* `/tid`",
"type": "object"
}
}
},
"id": "TraceSpan"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
@ -303,7 +300,6 @@
"id": "Empty"
},
"ListTracesResponse": {
"description": "The response message for the `ListTraces` method.",
"type": "object",
"properties": {
"nextPageToken": {
@ -311,19 +307,17 @@
"type": "string"
},
"traces": {
"description": "List of trace records returned.",
"items": {
"$ref": "Trace"
},
"type": "array"
"type": "array",
"description": "List of trace records returned."
}
},
"id": "ListTracesResponse"
"id": "ListTracesResponse",
"description": "The response message for the `ListTraces` method."
},
"Trace": {
"id": "Trace",
"description": "A trace describes how long it takes for an application to perform an\noperation. It consists of a set of spans, each of which represent a single\ntimed event within the operation.",
"type": "object",
"properties": {
"spans": {
"description": "Collection of spans in the trace.",
@ -333,17 +327,19 @@
"type": "array"
},
"projectId": {
"description": "Project ID of the Cloud project where the trace data is stored.",
"type": "string"
"type": "string",
"description": "Project ID of the Cloud project where the trace data is stored."
},
"traceId": {
"description": "Globally unique identifier for the trace. This identifier is a 128-bit\nnumeric value formatted as a 32-byte hex string.",
"type": "string"
"type": "string",
"description": "Globally unique identifier for the trace. This identifier is a 128-bit\nnumeric value formatted as a 32-byte hex string."
}
}
},
"id": "Trace",
"description": "A trace describes how long it takes for an application to perform an\noperation. It consists of a set of spans, each of which represent a single\ntimed event within the operation.",
"type": "object"
},
"Traces": {
"id": "Traces",
"description": "List of new or updated traces.",
"type": "object",
"properties": {
@ -354,7 +350,8 @@
},
"type": "array"
}
}
},
"id": "Traces"
}
},
"icons": {
@ -366,18 +363,21 @@
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/trace.readonly": {
"description": "Read Trace data for a project or application"
},
"https://www.googleapis.com/auth/trace.append": {
"description": "Write Trace data for a project or application"
},
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
},
"https://www.googleapis.com/auth/trace.readonly": {
"description": "Read Trace data for a project or application"
}
}
}
},
"rootUrl": "https://cloudtrace.googleapis.com/",
"ownerDomain": "google.com"
"ownerDomain": "google.com",
"name": "cloudtrace",
"batchPath": "batch",
"title": "Stackdriver Trace API"
}

View file

@ -1,95 +1,18 @@
{
"servicePath": "",
"description": "Send and retrieve trace data from Stackdriver Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Stackdriver Trace for display, reporting, and analysis.\n",
"kind": "discovery#restDescription",
"basePath": "",
"revision": "20170905",
"documentationLink": "https://cloud.google.com/trace",
"id": "cloudtrace:v2",
"documentationLink": "https://cloud.google.com/trace",
"revision": "20170913",
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"TruncatableString": {
"properties": {
"truncatedByteCount": {
"format": "int32",
"description": "The number of bytes removed from the original string. If this\nvalue is 0, then the string was not shortened.",
"type": "integer"
},
"value": {
"description": "The shortened string. For example, if the original string was 500\nbytes long and the limit of the string was 128 bytes, then this\nvalue contains the first 128 bytes of the 500-byte string. Note that\ntruncation always happens on the character boundary, to ensure that\ntruncated string is still valid UTF8. In case of multi-byte characters,\nsize of truncated string can be less than truncation limit.",
"type": "string"
}
},
"id": "TruncatableString",
"description": "Represents a string that might be shortened to a specified length.",
"type": "object"
},
"StackTrace": {
"properties": {
"stackFrames": {
"$ref": "StackFrames",
"description": "Stack frames in this stack trace. A maximum of 128 frames are allowed."
},
"stackTraceHashId": {
"format": "uint64",
"description": "The hash ID is used to conserve network bandwidth for duplicate\nstack traces within a single trace.\n\nOften multiple spans will have identical stack traces.\nThe first occurrence of a stack trace should contain both the\n`stackFrame` content and a value in `stackTraceHashId`.\n\nSubsequent spans within the same request can refer\nto that stack trace by only setting `stackTraceHashId`.",
"type": "string"
}
},
"id": "StackTrace",
"description": "A call stack appearing in a trace.",
"type": "object"
},
"TimeEvent": {
"description": "A time-stamped annotation or network event in the Span.",
"type": "object",
"properties": {
"time": {
"format": "google-datetime",
"description": "The timestamp indicating the time the event occurred.",
"type": "string"
},
"networkEvent": {
"description": "An event describing an RPC message sent/received on the network.",
"$ref": "NetworkEvent"
},
"annotation": {
"description": "One or more key:value pairs.",
"$ref": "Annotation"
}
},
"id": "TimeEvent"
},
"ListSpansResponse": {
"properties": {
"nextPageToken": {
"description": "If defined, indicates that there might be more spans that match the\nrequest. Pass this as the value of `pageToken` in a subsequent request to\nretrieve additional spans.",
"type": "string"
},
"spans": {
"description": "The requested spans, if there are any in the specified trace.",
"items": {
"$ref": "Span"
},
"type": "array"
}
},
"id": "ListSpansResponse",
"description": "The response message for the `ListSpans` method.",
"type": "object"
},
"NetworkEvent": {
"description": "An event describing an RPC message sent or received on the network.",
"type": "object",
"properties": {
"messageId": {
"format": "uint64",
"description": "An identifier for the message, which must be unique in this span.",
"type": "string"
},
"compressedMessageSize": {
"format": "uint64",
"description": "The number of compressed bytes sent or received.",
"type": "string"
},
"time": {
"format": "google-datetime",
"description": "For sent messages, this is the time at which the first bit was sent.\nFor received messages, this is the time at which the last bit was\nreceived.",
@ -113,17 +36,41 @@
"Indicates a sent RPC message.",
"Indicates a received RPC message."
]
},
"messageId": {
"format": "uint64",
"description": "An identifier for the message, which must be unique in this span.",
"type": "string"
},
"compressedMessageSize": {
"type": "string",
"format": "uint64",
"description": "The number of compressed bytes sent or received."
}
},
"id": "NetworkEvent"
},
"StackFrame": {
"type": "object",
"properties": {
"columnNumber": {
"functionName": {
"$ref": "TruncatableString",
"description": "The fully-qualified name that uniquely identifies the function or\nmethod that is active in this frame (up to 1024 bytes)."
},
"lineNumber": {
"format": "int64",
"description": "The column number where the function call appears, if available.\nThis is important in JavaScript because of its anonymous functions.",
"description": "The line number in `file_name` where the function call appears.",
"type": "string"
},
"loadModule": {
"$ref": "Module",
"description": "The binary module from where the code was loaded."
},
"columnNumber": {
"type": "string",
"format": "int64",
"description": "The column number where the function call appears, if available.\nThis is important in JavaScript because of its anonymous functions."
},
"fileName": {
"$ref": "TruncatableString",
"description": "The name of the source file where the function call appears (up to 256\nbytes)."
@ -133,76 +80,64 @@
"description": "The version of the deployed source code (up to 128 bytes)."
},
"originalFunctionName": {
"description": "An un-mangled function name, if `function_name` is\n[mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can\nbe fully-qualified (up to 1024 bytes).",
"$ref": "TruncatableString"
},
"functionName": {
"description": "The fully-qualified name that uniquely identifies the function or\nmethod that is active in this frame (up to 1024 bytes).",
"$ref": "TruncatableString"
},
"lineNumber": {
"format": "int64",
"description": "The line number in `file_name` where the function call appears.",
"type": "string"
},
"loadModule": {
"$ref": "Module",
"description": "The binary module from where the code was loaded."
"$ref": "TruncatableString",
"description": "An un-mangled function name, if `function_name` is\n[mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can\nbe fully-qualified (up to 1024 bytes)."
}
},
"id": "StackFrame",
"description": "Represents a single stack frame in a stack trace.",
"type": "object"
"description": "Represents a single stack frame in a stack trace."
},
"Link": {
"description": "A pointer from the current span to another span in the same trace or in a\ndifferent trace. For example, this can be used in batching operations,\nwhere a single batch handler processes multiple requests from different\ntraces or when the handler receives a request from a different project.",
"type": "object",
"properties": {
"type": {
"enum": [
"TYPE_UNSPECIFIED",
"CHILD_LINKED_SPAN",
"PARENT_LINKED_SPAN"
],
"description": "The relationship of the current span relative to the linked span.",
"type": "string",
"enumDescriptions": [
"The relationship of the two spans is unknown.",
"The linked span is a child of the current span.",
"The linked span is a parent of the current span."
]
],
"enum": [
"TYPE_UNSPECIFIED",
"CHILD_LINKED_SPAN",
"PARENT_LINKED_SPAN"
],
"description": "The relationship of the current span relative to the linked span."
},
"attributes": {
"$ref": "Attributes",
"description": "A set of attributes on the link. There is a limit of 32 attributes per\nlink."
},
"traceId": {
"description": "`TRACE_ID` identifies a trace within a project.",
"type": "string"
"type": "string",
"description": "`TRACE_ID` identifies a trace within a project."
},
"spanId": {
"description": "`SPAN_ID` identifies a span within a trace.",
"type": "string"
"type": "string",
"description": "`SPAN_ID` identifies a span within a trace."
}
},
"id": "Link",
"description": "A pointer from the current span to another span in the same trace or in a\ndifferent trace. For example, this can be used in batching operations,\nwhere a single batch handler processes multiple requests from different\ntraces or when the handler receives a request from a different project.",
"type": "object"
"id": "Link"
},
"Annotation": {
"description": "Text annotation with a set of attributes.",
"type": "object",
"properties": {
"description": {
"$ref": "TruncatableString",
"description": "A user-supplied message describing the event. The maximum length for\nthe description is 256 bytes."
},
"attributes": {
"$ref": "Attributes",
"description": "A set of attributes on the annotation. There is a limit of 4 attributes\nper Annotation."
},
"description": {
"$ref": "TruncatableString",
"description": "A user-supplied message describing the event. The maximum length for\nthe description is 256 bytes."
}
},
"id": "Annotation",
"description": "Text annotation with a set of attributes.",
"type": "object"
"id": "Annotation"
},
"StackFrames": {
"description": "A collection of stack frames, which can be truncated.",
"type": "object",
"properties": {
"droppedFramesCount": {
"format": "int32",
@ -217,41 +152,28 @@
"type": "array"
}
},
"id": "StackFrames",
"description": "A collection of stack frames, which can be truncated.",
"type": "object"
},
"Trace": {
"properties": {
"name": {
"description": "The resource name of the trace in the following format:\n\n projects/[PROJECT_ID]/traces/TRACE_ID is a unique identifier for a trace within a project.\nThe ID is assigned when the trace is created.",
"type": "string"
}
},
"id": "Trace",
"description": "A trace describes how long it takes for an application to perform some\noperations. It consists of a set of spans, each representing\nan operation and including time information and operation details.",
"type": "object"
"id": "StackFrames"
},
"TimeEvents": {
"description": "A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation\non the span, consisting of either user-supplied key:value pairs, or\ndetails of an RPC message sent/received on the network.",
"type": "object",
"properties": {
"droppedNetworkEventsCount": {
"type": "integer",
"format": "int32",
"description": "The number of dropped network events in all the included time events.\nIf the value is 0, then no network events were dropped.",
"type": "integer"
"description": "The number of dropped network events in all the included time events.\nIf the value is 0, then no network events were dropped."
},
"droppedAnnotationsCount": {
"type": "integer",
"format": "int32",
"description": "The number of dropped annotations in all the included time events.\nIf the value is 0, then no annotations were dropped.",
"type": "integer"
"description": "The number of dropped annotations in all the included time events.\nIf the value is 0, then no annotations were dropped."
},
"timeEvent": {
"description": "A collection of `TimeEvent`s.",
"items": {
"$ref": "TimeEvent"
},
"type": "array"
"type": "array",
"description": "A collection of `TimeEvent`s."
}
},
"id": "TimeEvents"
@ -261,64 +183,65 @@
"type": "object",
"properties": {
"module": {
"description": "For example: main binary, kernel modules, and dynamic libraries\nsuch as libc.so, sharedlib.so (up to 256 bytes).",
"$ref": "TruncatableString"
"$ref": "TruncatableString",
"description": "For example: main binary, kernel modules, and dynamic libraries\nsuch as libc.so, sharedlib.so (up to 256 bytes)."
},
"buildId": {
"description": "A unique identifier for the module, usually a hash of its\ncontents (up to 128 bytes).",
"$ref": "TruncatableString"
"$ref": "TruncatableString",
"description": "A unique identifier for the module, usually a hash of its\ncontents (up to 128 bytes)."
}
},
"id": "Module"
},
"Status": {
"type": "object",
"properties": {
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
},
"details": {
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
"items": {
"type": "object",
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
"type": "any",
"description": "Properties of the object. Contains field @type with type URL."
}
},
"type": "array"
},
"code": {
"type": "integer",
"format": "int32",
"description": "The status code, which should be an enum value of google.rpc.Code.",
"type": "integer"
"description": "The status code, which should be an enum value of google.rpc.Code."
},
"message": {
"type": "string",
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client."
}
},
"id": "Status",
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object"
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons."
},
"BatchWriteSpansRequest": {
"description": "The request message for the `BatchWriteSpans` method.",
"type": "object",
"properties": {
"spans": {
"description": "A collection of spans.",
"items": {
"$ref": "Span"
},
"type": "array"
"type": "array",
"description": "A collection of spans."
}
},
"id": "BatchWriteSpansRequest"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"type": "object",
"properties": {},
"id": "Empty"
"id": "Empty",
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`."
},
"Span": {
"type": "object",
"properties": {
"parentSpanId": {
"description": "The [SPAN_ID] of this span's parent span. If this is a root span,\nthen this field must be empty.",
@ -330,75 +253,57 @@
"type": "string"
},
"startTime": {
"type": "string",
"format": "google-datetime",
"description": "The start time of the span. On the client side, this is the time kept by\nthe local machine where the span execution starts. On the server side, this\nis the time when the server's application handler starts running.",
"type": "string"
"description": "The start time of the span. On the client side, this is the time kept by\nthe local machine where the span execution starts. On the server side, this\nis the time when the server's application handler starts running."
},
"displayName": {
"$ref": "TruncatableString",
"description": "A description of the span's operation (up to 128 bytes).\nStackdriver Trace displays the description in the\n{% dynamic print site_values.console_name %}.\nFor example, the display name can be a qualified method name or a file name\nand a line number where the operation is called. A best practice is to use\nthe same display name within an application and at the same call point.\nThis makes it easier to correlate spans in different traces."
},
"timeEvents": {
"description": "The included time events. There can be up to 32 annotations and 128 network\nevents per span.",
"$ref": "TimeEvents"
"$ref": "TimeEvents",
"description": "The included time events. There can be up to 32 annotations and 128 network\nevents per span."
},
"links": {
"description": "A maximum of 128 links are allowed per Span.",
"$ref": "Links"
"$ref": "Links",
"description": "A maximum of 128 links are allowed per Span."
},
"attributes": {
"description": "A set of attributes on the span. There is a limit of 32 attributes per\nspan.",
"$ref": "Attributes"
"$ref": "Attributes",
"description": "A set of attributes on the span. There is a limit of 32 attributes per\nspan."
},
"spanId": {
"description": "The [SPAN_ID] portion of the span's resource name.",
"type": "string"
},
"childSpanCount": {
"type": "integer",
"format": "uint32",
"description": "An optional number of child spans that were generated while this span\nwas active. If set, allows implementation to detect missing child spans.",
"type": "integer"
"description": "An optional number of child spans that were generated while this span\nwas active. If set, allows implementation to detect missing child spans."
},
"sameProcessAsParentSpan": {
"description": "A highly recommended but not required flag that identifies when a trace\ncrosses a process boundary. True when the parent_span belongs to the\nsame process as the current span.",
"type": "boolean"
},
"status": {
"description": "An optional final status for this span.",
"$ref": "Status"
"$ref": "Status",
"description": "An optional final status for this span."
},
"name": {
"description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created.",
"type": "string"
"type": "string",
"description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created."
},
"stackTrace": {
"description": "Stack trace captured at the start of the span.",
"$ref": "StackTrace"
"$ref": "StackTrace",
"description": "Stack trace captured at the start of the span."
}
},
"id": "Span",
"description": "A span represents a single operation within a trace. Spans can be\nnested to form a trace tree. Often, a trace contains a root span\nthat describes the end-to-end latency, and one or more subspans for\nits sub-operations. A trace can also contain multiple root spans,\nor none at all. Spans do not need to be contiguous&mdash;there may be\ngaps or overlaps between spans in a trace.",
"type": "object"
},
"ListTracesResponse": {
"description": "The response message for the `ListTraces` method.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "If there might be more results than those appearing in this response, then\n`next_page_token` is included. To get the next set of results, call this\nmethod again using the value of `next_page_token` as `page_token`.",
"type": "string"
},
"traces": {
"description": "List of trace records returned.",
"items": {
"$ref": "Trace"
},
"type": "array"
}
},
"id": "ListTracesResponse"
"description": "A span represents a single operation within a trace. Spans can be\nnested to form a trace tree. Often, a trace contains a root span\nthat describes the end-to-end latency, and one or more subspans for\nits sub-operations. A trace can also contain multiple root spans,\nor none at all. Spans do not need to be contiguous&mdash;there may be\ngaps or overlaps between spans in a trace."
},
"AttributeValue": {
"type": "object",
"properties": {
"intValue": {
"format": "int64",
@ -410,39 +315,39 @@
"type": "boolean"
},
"stringValue": {
"description": "A string up to 256 bytes long.",
"$ref": "TruncatableString"
"$ref": "TruncatableString",
"description": "A string up to 256 bytes long."
}
},
"id": "AttributeValue",
"description": "The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.",
"type": "object"
"description": "The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute."
},
"Attributes": {
"description": "A set of attributes, each in the format `[KEY]:[VALUE]`.",
"type": "object",
"properties": {
"droppedAttributesCount": {
"type": "integer",
"format": "int32",
"description": "The number of attributes that were discarded. Attributes can be discarded\nbecause their keys are too long or because there are too many attributes.\nIf this value is 0 then all attributes are valid."
},
"attributeMap": {
"type": "object",
"additionalProperties": {
"$ref": "AttributeValue"
},
"description": "The set of attributes. Each attribute's key can be up to 128 bytes\nlong. The value can be a string up to 256 bytes, an integer, or the\nBoolean values `true` and `false`. For example:\n\n \"/instance_id\": \"my-instance\"\n \"/http/user_agent\": \"\"\n \"/http/request_bytes\": 300\n \"abc.com/myattribute\": true",
"type": "object"
},
"droppedAttributesCount": {
"format": "int32",
"description": "The number of attributes that were discarded. Attributes can be discarded\nbecause their keys are too long or because there are too many attributes.\nIf this value is 0 then all attributes are valid.",
"type": "integer"
"description": "The set of attributes. Each attribute's key can be up to 128 bytes\nlong. The value can be a string up to 256 bytes, an integer, or the\nBoolean values `true` and `false`. For example:\n\n \"/instance_id\": \"my-instance\"\n \"/http/user_agent\": \"\"\n \"/http/request_bytes\": 300\n \"abc.com/myattribute\": true"
}
},
"id": "Attributes"
},
"Links": {
"type": "object",
"properties": {
"droppedLinksCount": {
"type": "integer",
"format": "int32",
"description": "The number of dropped links after the maximum size was enforced. If\nthis value is 0, then no links were dropped.",
"type": "integer"
"description": "The number of dropped links after the maximum size was enforced. If\nthis value is 0, then no links were dropped."
},
"link": {
"description": "A collection of links.",
@ -453,8 +358,59 @@
}
},
"id": "Links",
"description": "A collection of links, which are references from this span to a span\nin the same or different trace.",
"type": "object"
"description": "A collection of links, which are references from this span to a span\nin the same or different trace."
},
"TruncatableString": {
"type": "object",
"properties": {
"truncatedByteCount": {
"type": "integer",
"format": "int32",
"description": "The number of bytes removed from the original string. If this\nvalue is 0, then the string was not shortened."
},
"value": {
"type": "string",
"description": "The shortened string. For example, if the original string was 500\nbytes long and the limit of the string was 128 bytes, then this\nvalue contains the first 128 bytes of the 500-byte string. Note that\ntruncation always happens on the character boundary, to ensure that\ntruncated string is still valid UTF8. In case of multi-byte characters,\nsize of truncated string can be less than truncation limit."
}
},
"id": "TruncatableString",
"description": "Represents a string that might be shortened to a specified length."
},
"StackTrace": {
"type": "object",
"properties": {
"stackFrames": {
"$ref": "StackFrames",
"description": "Stack frames in this stack trace. A maximum of 128 frames are allowed."
},
"stackTraceHashId": {
"format": "uint64",
"description": "The hash ID is used to conserve network bandwidth for duplicate\nstack traces within a single trace.\n\nOften multiple spans will have identical stack traces.\nThe first occurrence of a stack trace should contain both the\n`stackFrame` content and a value in `stackTraceHashId`.\n\nSubsequent spans within the same request can refer\nto that stack trace by only setting `stackTraceHashId`.",
"type": "string"
}
},
"id": "StackTrace",
"description": "A call stack appearing in a trace."
},
"TimeEvent": {
"type": "object",
"properties": {
"annotation": {
"$ref": "Annotation",
"description": "One or more key:value pairs."
},
"time": {
"type": "string",
"format": "google-datetime",
"description": "The timestamp indicating the time the event occurred."
},
"networkEvent": {
"$ref": "NetworkEvent",
"description": "An event describing an RPC message sent/received on the network."
}
},
"id": "TimeEvent",
"description": "A time-stamped annotation or network event in the Span."
}
},
"protocol": "rest",
@ -466,14 +422,11 @@
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
},
"https://www.googleapis.com/auth/trace.readonly": {
"description": "Read Trace data for a project or application"
},
"https://www.googleapis.com/auth/trace.append": {
"description": "Write Trace data for a project or application"
},
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
@ -489,72 +442,7 @@
"resources": {
"traces": {
"methods": {
"list": {
"description": "Returns of a list of traces that match the specified filter conditions.",
"response": {
"$ref": "ListTracesResponse"
},
"httpMethod": "GET",
"parameterOrder": [
"parent"
],
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"parameters": {
"parent": {
"pattern": "^projects/[^/]+$",
"location": "path",
"description": "Required. The project where the trace data is stored. The format\nis `projects/PROJECT_ID`.",
"type": "string",
"required": true
},
"orderBy": {
"location": "query",
"description": "Optional. A single field used to sort the returned traces.\nOnly the following field names can be used:\n\n* `trace_id`: the trace's ID field\n* `name`: the root span's resource name\n* `duration`: the difference between the root span's start time and end time\n* `start`: the start time of the root span\n\nSorting is in ascending order unless `desc` is appended to the sort field name.\nExample: `\"name desc\"`).",
"type": "string"
},
"filter": {
"location": "query",
"description": "Opional. Return only traces that match this\n[trace filter](/trace/docs/trace-filters). Example:\n\n \"label:/http/url root:/_ah/background my_label:17\"",
"type": "string"
},
"endTime": {
"location": "query",
"format": "google-datetime",
"description": "Optional. Do not return traces whose start time is later than this time.",
"type": "string"
},
"pageToken": {
"description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
"type": "string",
"location": "query"
},
"startTime": {
"format": "google-datetime",
"description": "Optional. Do not return traces whose end time is earlier than this time.",
"type": "string",
"location": "query"
},
"pageSize": {
"location": "query",
"format": "int32",
"description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `next_page_token` in the\nresponse indicates that more results might be available, even if fewer than\nthe maximum number of results is returned by this request.",
"type": "integer"
}
},
"flatPath": "v2/projects/{projectsId}/traces",
"id": "cloudtrace.projects.traces.list",
"path": "v2/{+parent}/traces"
},
"batchWrite": {
"path": "v2/{+name}/traces:batchWrite",
"id": "cloudtrace.projects.traces.batchWrite",
"description": "Sends new spans to Stackdriver Trace or updates existing traces. If the\nname of a trace that you send matches that of an existing trace, new spans\nare added to the existing trace. Attempt to update existing spans results\nundefined behavior. If the name does not match, a new trace is created\nwith given set of spans.",
"request": {
"$ref": "BatchWriteSpansRequest"
},
"httpMethod": "POST",
"parameterOrder": [
"name"
@ -562,84 +450,59 @@
"response": {
"$ref": "Empty"
},
"parameters": {
"name": {
"pattern": "^projects/[^/]+$",
"location": "path",
"description": "Required. Name of the project where the spans belong. The format is\n`projects/PROJECT_ID`.",
"type": "string",
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"flatPath": "v2/projects/{projectsId}/traces:batchWrite"
},
"listSpans": {
"response": {
"$ref": "ListSpansResponse"
},
"parameterOrder": [
"parent"
],
"httpMethod": "GET",
"parameters": {
"pageToken": {
"location": "query",
"description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
"type": "string"
},
"parent": {
"pattern": "^projects/[^/]+/traces/[^/]+$",
"name": {
"location": "path",
"description": "Required: The resource name of the trace containing the spans to list.\nThe format is `projects/PROJECT_ID/traces/TRACE_ID`.",
"description": "Required. Name of the project where the spans belong. The format is\n`projects/PROJECT_ID`.",
"type": "string",
"required": true
"required": true,
"pattern": "^projects/[^/]+$"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"flatPath": "v2/projects/{projectsId}/traces/{tracesId}:listSpans",
"id": "cloudtrace.projects.traces.listSpans",
"path": "v2/{+parent}:listSpans",
"description": "Returns a list of spans within a trace."
"flatPath": "v2/projects/{projectsId}/traces:batchWrite",
"path": "v2/{+name}/traces:batchWrite",
"id": "cloudtrace.projects.traces.batchWrite",
"request": {
"$ref": "BatchWriteSpansRequest"
},
"description": "Sends new spans to Stackdriver Trace or updates existing traces. If the\nname of a trace that you send matches that of an existing trace, new spans\nare added to the existing trace. Attempt to update existing spans results\nundefined behavior. If the name does not match, a new trace is created\nwith given set of spans."
}
},
"resources": {
"spans": {
"methods": {
"create": {
"response": {
"flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans/{spansId}",
"path": "v2/{+name}",
"id": "cloudtrace.projects.traces.spans.create",
"request": {
"$ref": "Span"
},
"description": "Creates a new Span.",
"httpMethod": "PUT",
"parameterOrder": [
"name"
],
"httpMethod": "PUT",
"response": {
"$ref": "Span"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"parameters": {
"name": {
"description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created.",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+/traces/[^/]+/spans/[^/]+$",
"location": "path"
"location": "path",
"description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created."
}
},
"flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans/{spansId}",
"id": "cloudtrace.projects.traces.spans.create",
"path": "v2/{+name}",
"request": {
"$ref": "Span"
},
"description": "Creates a new Span."
}
}
}
}
@ -649,69 +512,46 @@
}
},
"parameters": {
"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.",
"type": "string",
"location": "query"
},
"pp": {
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
"location": "query"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"upload_protocol": {
"type": "string",
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean",
"location": "query"
"type": "boolean"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string"
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
]
},
"callback": {
"type": "string",
"location": "query",
"description": "JSONP"
},
"alt": {
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
@ -723,22 +563,42 @@
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query"
"location": "query",
"description": "Data format for response.",
"default": "json"
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
"type": "string"
},
"access_token": {
"type": "string",
"location": "query",
"description": "OAuth access token.",
"description": "OAuth access token."
},
"quotaUser": {
"type": "string",
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters."
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"default": "true",
"type": "boolean"
},
"bearer_token": {
"type": "string",
"location": "query",
"description": "OAuth bearer token."
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
}
},
"version": "v2",
"baseUrl": "https://cloudtrace.googleapis.com/",
"description": "Send and retrieve trace data from Stackdriver Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Stackdriver Trace for display, reporting, and analysis.\n",
"kind": "discovery#restDescription",
"servicePath": ""
"baseUrl": "https://cloudtrace.googleapis.com/"
}

View file

@ -52,9 +52,6 @@ const (
// Write Trace data for a project or application
TraceAppendScope = "https://www.googleapis.com/auth/trace.append"
// Read Trace data for a project or application
TraceReadonlyScope = "https://www.googleapis.com/auth/trace.readonly"
)
func New(client *http.Client) (*Service, error) {
@ -365,84 +362,6 @@ func (s *Links) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListSpansResponse: The response message for the `ListSpans` method.
type ListSpansResponse struct {
// NextPageToken: If defined, indicates that there might be more spans
// that match the
// request. Pass this as the value of `pageToken` in a subsequent
// request to
// retrieve additional spans.
NextPageToken string `json:"nextPageToken,omitempty"`
// Spans: The requested spans, if there are any in the specified trace.
Spans []*Span `json:"spans,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 *ListSpansResponse) MarshalJSON() ([]byte, error) {
type noMethod ListSpansResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListTracesResponse: The response message for the `ListTraces` method.
type ListTracesResponse struct {
// NextPageToken: If there might be more results than those appearing in
// this response, then
// `next_page_token` is included. To get the next set of results, call
// this
// method again using the value of `next_page_token` as `page_token`.
NextPageToken string `json:"nextPageToken,omitempty"`
// Traces: List of trace records returned.
Traces []*Trace `json:"traces,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 *ListTracesResponse) MarshalJSON() ([]byte, error) {
type noMethod ListTracesResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Module: Binary module.
type Module struct {
// BuildId: A unique identifier for the module, usually a hash of
@ -980,41 +899,6 @@ func (s *TimeEvents) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Trace: A trace describes how long it takes for an application to
// perform some
// operations. It consists of a set of spans, each representing
// an operation and including time information and operation details.
type Trace struct {
// Name: The resource name of the trace in the following format:
//
// projects/[PROJECT_ID]/traces/TRACE_ID is a unique identifier for
// a trace within a project.
// The ID is assigned when the trace is created.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *Trace) MarshalJSON() ([]byte, error) {
type noMethod Trace
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TruncatableString: Represents a string that might be shortened to a
// specified length.
type TruncatableString struct {
@ -1203,445 +1087,6 @@ func (c *ProjectsTracesBatchWriteCall) Do(opts ...googleapi.CallOption) (*Empty,
}
// method id "cloudtrace.projects.traces.list":
type ProjectsTracesListCall struct {
s *Service
parent string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Returns of a list of traces that match the specified filter
// conditions.
func (r *ProjectsTracesService) List(parent string) *ProjectsTracesListCall {
c := &ProjectsTracesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
return c
}
// EndTime sets the optional parameter "endTime": Do not return traces
// whose start time is later than this time.
func (c *ProjectsTracesListCall) EndTime(endTime string) *ProjectsTracesListCall {
c.urlParams_.Set("endTime", endTime)
return c
}
// Filter sets the optional parameter "filter": Opional. Return only
// traces that match this
// [trace filter](/trace/docs/trace-filters). Example:
//
// "label:/http/url root:/_ah/background my_label:17"
func (c *ProjectsTracesListCall) Filter(filter string) *ProjectsTracesListCall {
c.urlParams_.Set("filter", filter)
return c
}
// OrderBy sets the optional parameter "orderBy": A single field used to
// sort the returned traces.
// Only the following field names can be used:
//
// * `trace_id`: the trace's ID field
// * `name`: the root span's resource name
// * `duration`: the difference between the root span's start time and
// end time
// * `start`: the start time of the root span
//
// Sorting is in ascending order unless `desc` is appended to the sort
// field name.
// Example: "name desc").
func (c *ProjectsTracesListCall) OrderBy(orderBy string) *ProjectsTracesListCall {
c.urlParams_.Set("orderBy", orderBy)
return c
}
// PageSize sets the optional parameter "pageSize": The maximum number
// of results to return from this request.
// Non-positive values are ignored. The presence of `next_page_token` in
// the
// response indicates that more results might be available, even if
// fewer than
// the maximum number of results is returned by this request.
func (c *ProjectsTracesListCall) PageSize(pageSize int64) *ProjectsTracesListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": If present, then
// retrieve the next batch of results from the
// preceding call to this method. `page_token` must be the value
// of
// `next_page_token` from the previous response. The values of other
// method
// parameters should be identical to those in the previous call.
func (c *ProjectsTracesListCall) PageToken(pageToken string) *ProjectsTracesListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// StartTime sets the optional parameter "startTime": Do not return
// traces whose end time is earlier than this time.
func (c *ProjectsTracesListCall) StartTime(startTime string) *ProjectsTracesListCall {
c.urlParams_.Set("startTime", startTime)
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 *ProjectsTracesListCall) Fields(s ...googleapi.Field) *ProjectsTracesListCall {
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 *ProjectsTracesListCall) IfNoneMatch(entityTag string) *ProjectsTracesListCall {
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 *ProjectsTracesListCall) Context(ctx context.Context) *ProjectsTracesListCall {
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 *ProjectsTracesListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsTracesListCall) 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, "v2/{+parent}/traces")
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 "cloudtrace.projects.traces.list" call.
// Exactly one of *ListTracesResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListTracesResponse.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 *ProjectsTracesListCall) Do(opts ...googleapi.CallOption) (*ListTracesResponse, 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 := &ListTracesResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Returns of a list of traces that match the specified filter conditions.",
// "flatPath": "v2/projects/{projectsId}/traces",
// "httpMethod": "GET",
// "id": "cloudtrace.projects.traces.list",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "endTime": {
// "description": "Optional. Do not return traces whose start time is later than this time.",
// "format": "google-datetime",
// "location": "query",
// "type": "string"
// },
// "filter": {
// "description": "Opional. Return only traces that match this\n[trace filter](/trace/docs/trace-filters). Example:\n\n \"label:/http/url root:/_ah/background my_label:17\"",
// "location": "query",
// "type": "string"
// },
// "orderBy": {
// "description": "Optional. A single field used to sort the returned traces.\nOnly the following field names can be used:\n\n* `trace_id`: the trace's ID field\n* `name`: the root span's resource name\n* `duration`: the difference between the root span's start time and end time\n* `start`: the start time of the root span\n\nSorting is in ascending order unless `desc` is appended to the sort field name.\nExample: `\"name desc\"`).",
// "location": "query",
// "type": "string"
// },
// "pageSize": {
// "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `next_page_token` in the\nresponse indicates that more results might be available, even if fewer than\nthe maximum number of results is returned by this request.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
// "location": "query",
// "type": "string"
// },
// "parent": {
// "description": "Required. The project where the trace data is stored. The format\nis `projects/PROJECT_ID`.",
// "location": "path",
// "pattern": "^projects/[^/]+$",
// "required": true,
// "type": "string"
// },
// "startTime": {
// "description": "Optional. Do not return traces whose end time is earlier than this time.",
// "format": "google-datetime",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v2/{+parent}/traces",
// "response": {
// "$ref": "ListTracesResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/trace.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 *ProjectsTracesListCall) Pages(ctx context.Context, f func(*ListTracesResponse) 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 "cloudtrace.projects.traces.listSpans":
type ProjectsTracesListSpansCall struct {
s *Service
parent string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// ListSpans: Returns a list of spans within a trace.
func (r *ProjectsTracesService) ListSpans(parent string) *ProjectsTracesListSpansCall {
c := &ProjectsTracesListSpansCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
return c
}
// PageToken sets the optional parameter "pageToken": If present, then
// retrieve the next batch of results from the
// preceding call to this method. `page_token` must be the value
// of
// `next_page_token` from the previous response. The values of other
// method
// parameters should be identical to those in the previous call.
func (c *ProjectsTracesListSpansCall) PageToken(pageToken string) *ProjectsTracesListSpansCall {
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 *ProjectsTracesListSpansCall) Fields(s ...googleapi.Field) *ProjectsTracesListSpansCall {
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 *ProjectsTracesListSpansCall) IfNoneMatch(entityTag string) *ProjectsTracesListSpansCall {
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 *ProjectsTracesListSpansCall) Context(ctx context.Context) *ProjectsTracesListSpansCall {
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 *ProjectsTracesListSpansCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsTracesListSpansCall) 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, "v2/{+parent}:listSpans")
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 "cloudtrace.projects.traces.listSpans" call.
// Exactly one of *ListSpansResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListSpansResponse.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 *ProjectsTracesListSpansCall) Do(opts ...googleapi.CallOption) (*ListSpansResponse, 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 := &ListSpansResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Returns a list of spans within a trace.",
// "flatPath": "v2/projects/{projectsId}/traces/{tracesId}:listSpans",
// "httpMethod": "GET",
// "id": "cloudtrace.projects.traces.listSpans",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "pageToken": {
// "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
// "location": "query",
// "type": "string"
// },
// "parent": {
// "description": "Required: The resource name of the trace containing the spans to list.\nThe format is `projects/PROJECT_ID/traces/TRACE_ID`.",
// "location": "path",
// "pattern": "^projects/[^/]+/traces/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2/{+parent}:listSpans",
// "response": {
// "$ref": "ListSpansResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/trace.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 *ProjectsTracesListSpansCall) Pages(ctx context.Context, f func(*ListSpansResponse) 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 "cloudtrace.projects.traces.spans.create":
type ProjectsTracesSpansCreateCall struct {

View file

@ -21,7 +21,7 @@
"basePath": "/clouduseraccounts/alpha/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "clouduseraccounts/alpha/projects/",
"batchPath": "batch",
"batchPath": "batch/clouduseraccounts/alpha",
"parameters": {
"alt": {
"type": "string",

View file

@ -21,7 +21,7 @@
"basePath": "/clouduseraccounts/beta/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "clouduseraccounts/beta/projects/",
"batchPath": "batch",
"batchPath": "batch/clouduseraccounts/beta",
"parameters": {
"alt": {
"type": "string",

View file

@ -21,7 +21,7 @@
"basePath": "/clouduseraccounts/vm_alpha/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "clouduseraccounts/vm_alpha/projects/",
"batchPath": "batch",
"batchPath": "batch/clouduseraccounts/vm_alpha",
"parameters": {
"alt": {
"type": "string",

View file

@ -21,7 +21,7 @@
"basePath": "/clouduseraccounts/vm_beta/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "clouduseraccounts/vm_beta/projects/",
"batchPath": "batch",
"batchPath": "batch/clouduseraccounts/vm_beta",
"parameters": {
"alt": {
"type": "string",

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

File diff suppressed because it is too large Load diff

View file

@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/NmnDcMrRPBfXrpllirstA-3cT3k\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/bvUbOBPnfuX4gDZ5aBr7PZU4ZJM\"",
"discoveryVersion": "v1",
"id": "compute:v1",
"name": "compute",
"version": "v1",
"revision": "20170816",
"revision": "20170905",
"title": "Compute Engine API",
"description": "Creates and runs virtual machines on Google Cloud Platform.",
"ownerDomain": "google.com",
@ -591,7 +591,7 @@
},
"index": {
"type": "integer",
"description": "Assigns a zero-based index to this disk, where 0 is reserved for the boot disk. For example, if you have many disks attached to an instance, each disk would have a unique index number. If not specified, the server will choose an appropriate value.",
"description": "[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.",
"format": "int32"
},
"initializeParams": {

View file

@ -1432,10 +1432,9 @@ type AttachedDisk struct {
// group.
DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"`
// Index: Assigns a zero-based index to this disk, where 0 is reserved
// for the boot disk. For example, if you have many disks attached to an
// instance, each disk would have a unique index number. If not
// specified, the server will choose an appropriate value.
// Index: [Output Only] A zero-based index to this disk, where 0 is
// reserved for the boot disk. If you have many disks attached to an
// instance, each disk would have a unique index number.
Index int64 `json:"index,omitempty"`
// InitializeParams: [Input Only] Specifies the parameters for a new

View file

@ -20,7 +20,7 @@
"basePath": "/consumersurveys/v2/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "consumersurveys/v2/",
"batchPath": "batch",
"batchPath": "batch/consumersurveys/v2",
"parameters": {
"alt": {
"type": "string",

File diff suppressed because it is too large Load diff

View file

@ -446,6 +446,9 @@ type Cluster struct {
// * if left as an empty string,`logging.googleapis.com` will be used.
LoggingService string `json:"loggingService,omitempty"`
// MaintenancePolicy: Configure the maintenance policy for this cluster.
MaintenancePolicy *MaintenancePolicy `json:"maintenancePolicy,omitempty"`
// MasterAuth: The authentication information for accessing the master
// endpoint.
MasterAuth *MasterAuth `json:"masterAuth,omitempty"`
@ -758,6 +761,47 @@ func (s *CreateNodePoolRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DailyMaintenanceWindow: Time window specified for daily maintenance
// operations.
type DailyMaintenanceWindow struct {
// Duration: [Output only] Duration of the time window, automatically
// chosen to be
// smallest possible in the given scenario.
// Duration will be in
// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
// format "PTnHnMnS".
Duration string `json:"duration,omitempty"`
// StartTime: Time within the maintenance window to start the
// maintenance operations.
// Time format should be in
// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
// format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
StartTime string `json:"startTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "Duration") 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. "Duration") 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 *DailyMaintenanceWindow) MarshalJSON() ([]byte, error) {
type noMethod DailyMaintenanceWindow
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Empty: A generic empty message that you can re-use to avoid defining
// duplicated
// empty messages in your APIs. A typical example is to use it as the
@ -1169,6 +1213,68 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MaintenancePolicy: MaintenancePolicy defines the maintenance policy
// to be used for the cluster.
type MaintenancePolicy struct {
// Window: Specifies the maintenance window in which maintenance may be
// performed.
Window *MaintenanceWindow `json:"window,omitempty"`
// ForceSendFields is a list of field names (e.g. "Window") 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. "Window") 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 *MaintenancePolicy) MarshalJSON() ([]byte, error) {
type noMethod MaintenancePolicy
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MaintenanceWindow: MaintenanceWindow defines the maintenance window
// to be used for the cluster.
type MaintenanceWindow struct {
// DailyMaintenanceWindow: DailyMaintenanceWindow specifies a daily
// maintenance operation window.
DailyMaintenanceWindow *DailyMaintenanceWindow `json:"dailyMaintenanceWindow,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "DailyMaintenanceWindow") 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. "DailyMaintenanceWindow")
// 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)
}
// MasterAuth: The authentication information for accessing the master
// endpoint.
// Authentication can be done using HTTP basic auth or using
@ -1394,6 +1500,20 @@ type NodeConfig struct {
// The total size of all keys and values must be less than 512 KB.
Metadata map[string]string `json:"metadata,omitempty"`
// MinCpuPlatform: Minimum cpu/platform to be used by this instance. The
// instance may be
// scheduled on the specified or newer cpu/platform. Applicable values
// are the
// friendly names of CPU platforms, such as
// <code>minCpuPlatform: &quot;Intel Haswell&quot;</code>
// or
// <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For
// more
// information, read <a
// href="/compute/docs/instances/specify-min-cpu-platform">Specifying a
// Minimum CPU Platform</a>.
MinCpuPlatform string `json:"minCpuPlatform,omitempty"`
// OauthScopes: The set of Google API scopes to be made available on all
// of the
// node VMs under the "default" service account.
@ -1984,6 +2104,38 @@ func (s *SetLoggingServiceRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SetMaintenancePolicyRequest: SetMaintenancePolicyRequest sets the
// maintenance policy for a cluster.
type SetMaintenancePolicyRequest struct {
// MaintenancePolicy: The maintenance policy to be set for the cluster.
// An empty field
// clears the existing maintenance policy.
MaintenancePolicy *MaintenancePolicy `json:"maintenancePolicy,omitempty"`
// ForceSendFields is a list of field names (e.g. "MaintenancePolicy")
// 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. "MaintenancePolicy") 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 *SetMaintenancePolicyRequest) MarshalJSON() ([]byte, error) {
type noMethod SetMaintenancePolicyRequest
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SetMasterAuthRequest: SetMasterAuthRequest updates the admin password
// of a cluster.
type SetMasterAuthRequest struct {
@ -4282,6 +4434,160 @@ func (c *ProjectsZonesClustersResourceLabelsCall) Do(opts ...googleapi.CallOptio
}
// method id "container.projects.zones.clusters.setMaintenancePolicy":
type ProjectsZonesClustersSetMaintenancePolicyCall struct {
s *Service
projectId string
zone string
clusterId string
setmaintenancepolicyrequest *SetMaintenancePolicyRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
func (r *ProjectsZonesClustersService) SetMaintenancePolicy(projectId string, zone string, clusterId string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsZonesClustersSetMaintenancePolicyCall {
c := &ProjectsZonesClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
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 *ProjectsZonesClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMaintenancePolicyCall {
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 *ProjectsZonesClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsZonesClustersSetMaintenancePolicyCall {
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 *ProjectsZonesClustersSetMaintenancePolicyCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsZonesClustersSetMaintenancePolicyCall) 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.setmaintenancepolicyrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
"zone": c.zone,
"clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "container.projects.zones.clusters.setMaintenancePolicy" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.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 *ProjectsZonesClustersSetMaintenancePolicyCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Sets the maintenance policy for a cluster.",
// "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
// "httpMethod": "POST",
// "id": "container.projects.zones.clusters.setMaintenancePolicy",
// "parameterOrder": [
// "projectId",
// "zone",
// "clusterId"
// ],
// "parameters": {
// "clusterId": {
// "description": "The name of the cluster to update.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
// "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
// "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
// "request": {
// "$ref": "SetMaintenancePolicyRequest"
// },
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "container.projects.zones.clusters.setMasterAuth":
type ProjectsZonesClustersSetMasterAuthCall struct {

File diff suppressed because it is too large Load diff

View file

@ -540,6 +540,9 @@ type Cluster struct {
// * if left as an empty string,`logging.googleapis.com` will be used.
LoggingService string `json:"loggingService,omitempty"`
// MaintenancePolicy: Configure the maintenance policy for this cluster.
MaintenancePolicy *MaintenancePolicy `json:"maintenancePolicy,omitempty"`
// MasterAuth: The authentication information for accessing the master
// endpoint.
MasterAuth *MasterAuth `json:"masterAuth,omitempty"`
@ -936,6 +939,43 @@ func (s *CreateNodePoolRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DailyMaintenanceWindow: Time window specified for daily maintenance
// operations.
type DailyMaintenanceWindow struct {
// Duration: [Output only] Duration of the time window, automatically
// chosen to be
// smallest possible in the given scenario.
Duration string `json:"duration,omitempty"`
// StartTime: Time within the maintenance window to start the
// maintenance operations.
// It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59]
// GMT.
StartTime string `json:"startTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "Duration") 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. "Duration") 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 *DailyMaintenanceWindow) MarshalJSON() ([]byte, error) {
type noMethod DailyMaintenanceWindow
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Empty: A generic empty message that you can re-use to avoid defining
// duplicated
// empty messages in your APIs. A typical example is to use it as the
@ -1311,6 +1351,68 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MaintenancePolicy: MaintenancePolicy defines the maintenance policy
// to be used for the cluster.
type MaintenancePolicy struct {
// Window: Specifies the maintenance window in which maintenance may be
// performed.
Window *MaintenanceWindow `json:"window,omitempty"`
// ForceSendFields is a list of field names (e.g. "Window") 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. "Window") 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 *MaintenancePolicy) MarshalJSON() ([]byte, error) {
type noMethod MaintenancePolicy
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MaintenanceWindow: MaintenanceWindow defines the maintenance window
// to be used for the cluster.
type MaintenanceWindow struct {
// DailyMaintenanceWindow: DailyMaintenanceWindow specifies a daily
// maintenance operation window.
DailyMaintenanceWindow *DailyMaintenanceWindow `json:"dailyMaintenanceWindow,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "DailyMaintenanceWindow") 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. "DailyMaintenanceWindow")
// 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)
}
// MasterAuth: The authentication information for accessing the master
// endpoint.
// Authentication can be done using HTTP basic auth or using
@ -1534,6 +1636,20 @@ type NodeConfig struct {
// The total size of all keys and values must be less than 512 KB.
Metadata map[string]string `json:"metadata,omitempty"`
// MinCpuPlatform: Minimum cpu/platform to be used by this instance. The
// instance may be
// scheduled on the specified or newer cpu/platform. Applicable values
// are the
// friendly names of CPU platforms, such as
// <code>minCpuPlatform: &quot;Intel Haswell&quot;</code>
// or
// <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For
// more
// information, read <a
// href="/compute/docs/instances/specify-min-cpu-platform">Specifying a
// Minimum CPU Platform</a>.
MinCpuPlatform string `json:"minCpuPlatform,omitempty"`
// OauthScopes: The set of Google API scopes to be made available on all
// of the
// node VMs under the "default" service account.
@ -1579,6 +1695,14 @@ type NodeConfig struct {
// must comply with RFC1035.
Tags []string `json:"tags,omitempty"`
// Taints: List of kubernetes taints to be applied to each node.
//
// For more information, including usage and the valid values,
// see:
// https://kubernetes.io/docs/concepts/configuration/taint-and-toler
// ation/
Taints []*NodeTaint `json:"taints,omitempty"`
// ForceSendFields is a list of field names (e.g. "Accelerators") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@ -1784,6 +1908,53 @@ func (s *NodePoolAutoscaling) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NodeTaint: Kubernetes taint is comprised of three fields: key, value,
// and effect. Effect
// can only be one of three types: NoSchedule, PreferNoSchedule or
// NoExecute.
//
// For more information, including usage and the valid values,
// see:
// https://kubernetes.io/docs/concepts/configuration/taint-and-toler
// ation/
type NodeTaint struct {
// Effect: Effect for taint.
//
// Possible values:
// "NO_SCHEDULE" - NoSchedule
// "PREFER_NO_SCHEDULE" - PreferNoSchedule
// "NO_EXECUTE" - NoExecute
Effect string `json:"effect,omitempty"`
// Key: Key for taint.
Key string `json:"key,omitempty"`
// Value: Value for taint.
Value string `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "Effect") 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. "Effect") 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 *NodeTaint) MarshalJSON() ([]byte, error) {
type noMethod NodeTaint
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Operation: This operation resource represents operations that may
// have happened or are
// happening on the cluster. All fields are output only.
@ -2118,6 +2289,57 @@ func (s *SetLegacyAbacRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SetMaintenancePolicyRequest: SetMaintenancePolicyRequest sets the
// maintenance policy for a cluster.
type SetMaintenancePolicyRequest struct {
// ClusterId: The name of the cluster to update.
ClusterId string `json:"clusterId,omitempty"`
// MaintenancePolicy: The maintenance policy to be set for the cluster.
// An empty field
// clears the existing maintenance policy.
MaintenancePolicy *MaintenancePolicy `json:"maintenancePolicy,omitempty"`
// Name: The name (project, location, cluster id) of the cluster to set
// maintenance
// policy.
// Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
// ProjectId: The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
ProjectId string `json:"projectId,omitempty"`
// Zone: The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the cluster
// resides.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *SetMaintenancePolicyRequest) MarshalJSON() ([]byte, error) {
type noMethod SetMaintenancePolicyRequest
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SetMasterAuthRequest: SetMasterAuthRequest updates the admin password
// of a cluster.
type SetMasterAuthRequest struct {
@ -3525,6 +3747,141 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) Do(opts ...googleapi.CallOp
}
// method id "container.projects.locations.clusters.setMaintenancePolicy":
type ProjectsLocationsClustersSetMaintenancePolicyCall struct {
s *Service
name string
setmaintenancepolicyrequest *SetMaintenancePolicyRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
func (r *ProjectsLocationsClustersService) SetMaintenancePolicy(name string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsLocationsClustersSetMaintenancePolicyCall {
c := &ProjectsLocationsClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMaintenancePolicyCall {
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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMaintenancePolicyCall {
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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) 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.setmaintenancepolicyrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setMaintenancePolicy")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "container.projects.locations.clusters.setMaintenancePolicy" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Sets the maintenance policy for a cluster.",
// "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
// "httpMethod": "POST",
// "id": "container.projects.locations.clusters.setMaintenancePolicy",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1beta1/{+name}:setMaintenancePolicy",
// "request": {
// "$ref": "SetMaintenancePolicyRequest"
// },
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "container.projects.locations.clusters.setMasterAuth":
type ProjectsLocationsClustersSetMasterAuthCall struct {
@ -6952,6 +7309,160 @@ func (c *ProjectsZonesClustersResourceLabelsCall) Do(opts ...googleapi.CallOptio
}
// method id "container.projects.zones.clusters.setMaintenancePolicy":
type ProjectsZonesClustersSetMaintenancePolicyCall struct {
s *Service
projectId string
zone string
clusterId string
setmaintenancepolicyrequest *SetMaintenancePolicyRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
func (r *ProjectsZonesClustersService) SetMaintenancePolicy(projectId string, zone string, clusterId string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsZonesClustersSetMaintenancePolicyCall {
c := &ProjectsZonesClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
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 *ProjectsZonesClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMaintenancePolicyCall {
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 *ProjectsZonesClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsZonesClustersSetMaintenancePolicyCall {
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 *ProjectsZonesClustersSetMaintenancePolicyCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsZonesClustersSetMaintenancePolicyCall) 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.setmaintenancepolicyrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
"zone": c.zone,
"clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "container.projects.zones.clusters.setMaintenancePolicy" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.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 *ProjectsZonesClustersSetMaintenancePolicyCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Sets the maintenance policy for a cluster.",
// "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
// "httpMethod": "POST",
// "id": "container.projects.zones.clusters.setMaintenancePolicy",
// "parameterOrder": [
// "projectId",
// "zone",
// "clusterId"
// ],
// "parameters": {
// "clusterId": {
// "description": "The name of the cluster to update.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
// "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
// "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
// "request": {
// "$ref": "SetMaintenancePolicyRequest"
// },
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "container.projects.zones.clusters.setMasterAuth":
type ProjectsZonesClustersSetMasterAuthCall struct {

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/7DxE-WvhKyxBCPMjpNGA9QTXnO8\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/Ogd-A7sPcNqrkouPfVxTAQBSYIA\"",
"discoveryVersion": "v1",
"id": "content:v2",
"name": "content",
"canonicalName": "Shopping Content",
"version": "v2",
"revision": "20170905",
"revision": "20170914",
"title": "Content API for Shopping",
"description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/content/v2/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "content/v2/",
"batchPath": "batch",
"batchPath": "batch/content/v2",
"parameters": {
"alt": {
"type": "string",

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/R4bc8bYIPV7Xpbth35g-aCtObI0\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/w6LYVfU7tamoBXESYq-QJFacBzs\"",
"discoveryVersion": "v1",
"id": "content:v2sandbox",
"name": "content",
"canonicalName": "Shopping Content",
"version": "v2sandbox",
"revision": "20170905",
"revision": "20170912",
"title": "Content API for Shopping",
"description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/content/v2sandbox/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "content/v2sandbox/",
"batchPath": "batch",
"batchPath": "batch/content/v2sandbox",
"parameters": {
"alt": {
"type": "string",

View file

@ -20,7 +20,7 @@
"basePath": "/customsearch/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "customsearch/",
"batchPath": "batch",
"batchPath": "batch/customsearch/v1",
"parameters": {
"alt": {
"type": "string",

File diff suppressed because it is too large Load diff

View file

@ -1327,10 +1327,6 @@ type DistributionUpdate struct {
// distribution.
Count *SplitInt64 `json:"count,omitempty"`
// LogBuckets: (Optional) Logarithmic histogram of values.
// Each log may be in no more than one bucket. Order does not matter.
LogBuckets []*LogBucket `json:"logBuckets,omitempty"`
// Max: The maximum value present in the distribution.
Max *SplitInt64 `json:"max,omitempty"`
@ -2908,44 +2904,6 @@ func (s *ListJobsResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LogBucket: Bucket of values for Distribution's logarithmic histogram.
type LogBucket struct {
// Count: Number of values in this bucket.
Count int64 `json:"count,omitempty,string"`
// Log: floor(log2(value)); defined to be zero for nonpositive values.
// log(-1) = 0
// log(0) = 0
// log(1) = 0
// log(2) = 1
// log(3) = 1
// log(4) = 2
// log(5) = 2
Log int64 `json:"log,omitempty"`
// ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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 *LogBucket) MarshalJSON() ([]byte, error) {
type noMethod LogBucket
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MapTask: MapTask consists of an ordered set of instructions, each of
// which
// describes one particular low-level operation for the worker
@ -5959,6 +5917,10 @@ type WorkItemStatus struct {
// P' and R' must be together equivalent to P, etc.
StopPosition *Position `json:"stopPosition,omitempty"`
// TotalThrottlerWaitTimeSeconds: Total time the worker spent being
// throttled by external systems.
TotalThrottlerWaitTimeSeconds float64 `json:"totalThrottlerWaitTimeSeconds,omitempty"`
// WorkItemId: Identifies the WorkItem.
WorkItemId string `json:"workItemId,omitempty"`
@ -5985,6 +5947,20 @@ func (s *WorkItemStatus) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *WorkItemStatus) UnmarshalJSON(data []byte) error {
type noMethod WorkItemStatus
var s1 struct {
TotalThrottlerWaitTimeSeconds gensupport.JSONFloat64 `json:"totalThrottlerWaitTimeSeconds"`
*noMethod
}
s1.noMethod = (*noMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.TotalThrottlerWaitTimeSeconds = float64(s1.TotalThrottlerWaitTimeSeconds)
return nil
}
// WorkerHealthReport: WorkerHealthReport contains information about the
// health of a worker.
//

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

View file

@ -550,10 +550,10 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// Labels: The client-assigned labels which were provided when the
// operation was
// created. May also include additional labels.
// created. May also include additional labels.
Labels map[string]string `json:"labels,omitempty"`
// OperationType: The type of the operation. Can be used as a filter
// OperationType: The type of the operation. Can be used as a filter
// in
// ListOperationsRequest.
//
@ -561,8 +561,6 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// "OPERATION_TYPE_UNSPECIFIED" - Unspecified.
// "EXPORT_ENTITIES" - ExportEntities.
// "IMPORT_ENTITIES" - ImportEntities.
// "BUILD_INDEX" - Build an index.
// "CLEAR_INDEX" - Clear an index.
OperationType string `json:"operationType,omitempty"`
// StartTime: The time that work began on the operation.
@ -576,7 +574,7 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// "PROCESSING" - Request is actively being processed.
// "CANCELLING" - Request is in the process of being cancelled after
// user called
// longrunning.Operations.CancelOperation on the operation.
// google.longrunning.Operations.CancelOperation on the operation.
// "FINALIZING" - Request has been processed and is in its
// finalization stage.
// "SUCCESSFUL" - Request has completed successfully.
@ -584,7 +582,7 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// error.
// "CANCELLED" - Request has finished being cancelled after user
// called
// longrunning.Operations.CancelOperation.
// google.longrunning.Operations.CancelOperation.
State string `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
@ -611,9 +609,9 @@ func (s *GoogleDatastoreAdminV1beta1CommonMetadata) MarshalJSON() ([]byte, error
}
// GoogleDatastoreAdminV1beta1EntityFilter: Identifies a subset of
// entities in a project. This is specified as
// combinations of kind + namespace (either or both of which may be all,
// as
// entities in a project. This is specified as
// combinations of kinds and namespaces (either or both of which may be
// all, as
// described in the following examples).
// Example usage:
//
@ -635,12 +633,12 @@ type GoogleDatastoreAdminV1beta1EntityFilter struct {
// Kinds: If empty, then this represents all kinds.
Kinds []string `json:"kinds,omitempty"`
// NamespaceIds: An empty list represents all namespaces. This is the
// NamespaceIds: An empty list represents all namespaces. This is the
// preferred
// usage for projects that don't use namespaces.
//
// An empty string element represents the default namespace. This
// should be
// An empty string element represents the default namespace. This should
// be
// used if the project has data in non-default namespaces, but doesn't
// want to
// include them.
@ -804,7 +802,9 @@ func (s *GoogleDatastoreAdminV1beta1ImportEntitiesMetadata) MarshalJSON() ([]byt
// GoogleDatastoreAdminV1beta1Progress: Measures the progress of a
// particular metric.
type GoogleDatastoreAdminV1beta1Progress struct {
// WorkCompleted: Note that this may be greater than work_estimated.
// WorkCompleted: The amount of work that has been completed. Note that
// this may be greater
// than work_estimated.
WorkCompleted int64 `json:"workCompleted,omitempty,string"`
// WorkEstimated: An estimate of how much work needs to be performed.
@ -878,8 +878,8 @@ func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error)
type GoogleLongrunningOperation struct {
// Done: If the value is `false`, it means the operation is still in
// progress.
// If true, the operation is completed, and either `error` or `response`
// is
// If `true`, the operation is completed, and either `error` or
// `response` is
// available.
Done bool `json:"done,omitempty"`

View file

@ -1,29 +1,10 @@
{
"version": "v1beta1",
"baseUrl": "https://datastore.googleapis.com/",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/datastore": {
"description": "View and manage your Google Cloud Datastore data"
},
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},
"description": "Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.\n",
"kind": "discovery#restDescription",
"servicePath": "",
"rootUrl": "https://datastore.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "datastore",
"batchPath": "batch",
"documentationLink": "https://cloud.google.com/datastore/",
"id": "datastore:v1beta1",
"revision": "20170821",
"documentationLink": "https://cloud.google.com/datastore/",
"revision": "20170912",
"title": "Google Cloud Datastore API",
"ownerName": "Google",
"discoveryVersion": "v1",
@ -39,10 +20,6 @@
"projectId"
],
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"
],
"parameters": {
"projectId": {
"location": "path",
@ -51,21 +28,23 @@
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"
],
"flatPath": "v1beta1/projects/{projectId}:export",
"id": "datastore.projects.export",
"path": "v1beta1/projects/{projectId}:export",
"description": "Exports a copy of all or a subset of entities from Google Cloud Datastore\nto another storage system, such as Google Cloud Storage. Recent updates to\nentities may not be reflected in the export. The export occurs in the\nbackground and its progress can be monitored and managed via the\nOperation resource that is created. The output of an export may only be\nused once the associated operation is done. If an export operation is\ncancelled before completion it may leave partial data behind in Google\nCloud Storage.",
"request": {
"$ref": "GoogleDatastoreAdminV1beta1ExportEntitiesRequest"
},
"description": "Exports a copy of all or a subset of entities from Google Cloud Datastore\nto another storage system, such as Google Cloud Storage. Recent updates to\nentities may not be reflected in the export. The export occurs in the\nbackground and its progress can be monitored and managed via the\nOperation resource that is created. The output of an export may only be\nused once the associated operation is done. If an export operation is\ncancelled before completion it may leave partial data behind in Google\nCloud Storage."
}
},
"import": {
"path": "v1beta1/projects/{projectId}:import",
"id": "datastore.projects.import",
"description": "Imports entities into Google Cloud Datastore. Existing entities with the\nsame key are overwritten. The import occurs in the background and its\nprogress can be monitored and managed via the Operation resource that is\ncreated. If an ImportEntities operation is cancelled, it is possible\nthat a subset of the data has already been imported to Cloud Datastore.",
"request": {
"$ref": "GoogleDatastoreAdminV1beta1ImportEntitiesRequest"
},
"description": "Imports entities into Google Cloud Datastore. Existing entities with the\nsame key are overwritten. The import occurs in the background and its\nprogress can be monitored and managed via the Operation resource that is\ncreated. If an ImportEntities operation is cancelled, it is possible\nthat a subset of the data has already been imported to Cloud Datastore.",
"httpMethod": "POST",
"parameterOrder": [
"projectId"
@ -73,10 +52,6 @@
"response": {
"$ref": "GoogleLongrunningOperation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"
],
"parameters": {
"projectId": {
"description": "Project ID against which to make the request.",
@ -85,22 +60,91 @@
"location": "path"
}
},
"flatPath": "v1beta1/projects/{projectId}:import"
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"
],
"flatPath": "v1beta1/projects/{projectId}:import",
"path": "v1beta1/projects/{projectId}:import",
"id": "datastore.projects.import"
}
}
}
},
"parameters": {
"fields": {
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"description": "Data format for response.",
"default": "json"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"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.",
"type": "string",
"location": "query"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"default": "true",
"type": "boolean"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"$.xgafv": {
"enum": [
"1",
@ -113,290 +157,16 @@
"v2 error format"
],
"location": "query"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"alt": {
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"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.",
"type": "string",
"location": "query"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"default": "true",
"type": "boolean"
},
"bearer_token": {
"description": "OAuth bearer token.",
"type": "string",
"location": "query"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean",
"location": "query"
}
},
"schemas": {
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object",
"properties": {
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
},
"details": {
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"type": "array"
},
"code": {
"format": "int32",
"description": "The status code, which should be an enum value of google.rpc.Code.",
"type": "integer"
}
},
"id": "Status"
},
"GoogleDatastoreAdminV1beta1ExportEntitiesRequest": {
"description": "The request for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.",
"type": "object",
"properties": {
"outputUrlPrefix": {
"description": "Location for the export metadata and data files.\n\nThe full resource URL of the external storage location. Currently, only\nGoogle Cloud Storage is supported. So output_url_prefix should be of the\nform: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the\nname of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud\nStorage namespace path (this is not a Cloud Datastore namespace). For more\ninformation about Cloud Storage namespace paths, see\n[Object name\nconsiderations](https://cloud.google.com/storage/docs/naming#object-considerations).\n\nThe resulting files will be nested deeper than the specified URL prefix.\nThe final output URL will be provided in the\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url\nfield. That value should be used for subsequent ImportEntities operations.\n\nBy nesting the data files deeper, the same Cloud Storage bucket can be used\nin multiple ExportEntities operations without conflict.",
"type": "string"
},
"entityFilter": {
"description": "Description of what data from the project is included in the export.",
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Client-assigned labels.",
"type": "object"
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesRequest"
},
"GoogleDatastoreAdminV1beta1ExportEntitiesMetadata": {
"properties": {
"progressEntities": {
"$ref": "GoogleDatastoreAdminV1beta1Progress",
"description": "An estimate of the number of entities processed."
},
"common": {
"description": "Metadata common to all Datastore Admin operations.",
"$ref": "GoogleDatastoreAdminV1beta1CommonMetadata"
},
"progressBytes": {
"description": "An estimate of the number of bytes processed.",
"$ref": "GoogleDatastoreAdminV1beta1Progress"
},
"outputUrlPrefix": {
"description": "Location for the export metadata and data files. This will be the same\nvalue as the\ngoogle.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix\nfield. The final output location is provided in\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.",
"type": "string"
},
"entityFilter": {
"description": "Description of which entities are being exported.",
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter"
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesMetadata",
"description": "Metadata for ExportEntities operations.",
"type": "object"
},
"GoogleDatastoreAdminV1beta1ExportEntitiesResponse": {
"properties": {
"outputUrl": {
"description": "Location of the output metadata file. This can be used to begin an import\ninto Cloud Datastore (this project or another project). See\ngoogle.datastore.admin.v1beta1.ImportEntitiesRequest.input_url.\nOnly present if the operation completed successfully.",
"type": "string"
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesResponse",
"description": "The response for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.",
"type": "object"
},
"GoogleDatastoreAdminV1beta1ImportEntitiesRequest": {
"description": "The request for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities.",
"type": "object",
"properties": {
"inputUrl": {
"description": "The full resource URL of the external storage location. Currently, only\nGoogle Cloud Storage is supported. So input_url should be of the form:\n`gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where\n`BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is\nan optional Cloud Storage namespace path (this is not a Cloud Datastore\nnamespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written\nby the ExportEntities operation. For more information about Cloud Storage\nnamespace paths, see\n[Object name\nconsiderations](https://cloud.google.com/storage/docs/naming#object-considerations).\n\nFor more information, see\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.",
"type": "string"
},
"entityFilter": {
"description": "Optionally specify which kinds/namespaces are to be imported. If provided,\nthe list must be a subset of the EntityFilter used in creating the export,\notherwise a FAILED_PRECONDITION error will be returned. If no filter is\nspecified then all entities from the export are imported.",
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Client-assigned labels.",
"type": "object"
}
},
"id": "GoogleDatastoreAdminV1beta1ImportEntitiesRequest"
},
"GoogleDatastoreAdminV1beta1ImportEntitiesMetadata": {
"properties": {
"common": {
"description": "Metadata common to all Datastore Admin operations.",
"$ref": "GoogleDatastoreAdminV1beta1CommonMetadata"
},
"inputUrl": {
"description": "The location of the import metadata file. This will be the same value as\nthe google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url\nfield.",
"type": "string"
},
"progressBytes": {
"$ref": "GoogleDatastoreAdminV1beta1Progress",
"description": "An estimate of the number of bytes processed."
},
"entityFilter": {
"description": "Description of which entities are being imported.",
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter"
},
"progressEntities": {
"$ref": "GoogleDatastoreAdminV1beta1Progress",
"description": "An estimate of the number of entities processed."
}
},
"id": "GoogleDatastoreAdminV1beta1ImportEntitiesMetadata",
"description": "Metadata for ImportEntities operations.",
"type": "object"
},
"GoogleDatastoreAdminV1beta1Progress": {
"description": "Measures the progress of a particular metric.",
"type": "object",
"properties": {
"workEstimated": {
"format": "int64",
"description": "An estimate of how much work needs to be performed. May be zero if the\nwork estimate is unavailable.",
"type": "string"
},
"workCompleted": {
"format": "int64",
"description": "Note that this may be greater than work_estimated.",
"type": "string"
}
},
"id": "GoogleDatastoreAdminV1beta1Progress"
},
"GoogleDatastoreAdminV1beta1EntityFilter": {
"properties": {
"namespaceIds": {
"description": "An empty list represents all namespaces. This is the preferred\nusage for projects that don't use namespaces.\n\nAn empty string element represents the default namespace. This should be\nused if the project has data in non-default namespaces, but doesn't want to\ninclude them.\nEach namespace in this list must be unique.",
"items": {
"type": "string"
},
"type": "array"
},
"kinds": {
"description": "If empty, then this represents all kinds.",
"items": {
"type": "string"
},
"type": "array"
}
},
"id": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Identifies a subset of entities in a project. This is specified as\ncombinations of kind + namespace (either or both of which may be all, as\ndescribed in the following examples).\nExample usage:\n\nEntire project:\n kinds=[], namespace_ids=[]\n\nKinds Foo and Bar in all namespaces:\n kinds=['Foo', 'Bar'], namespace_ids=[]\n\nKinds Foo and Bar only in the default namespace:\n kinds=['Foo', 'Bar'], namespace_ids=['']\n\nKinds Foo and Bar in both the default and Baz namespaces:\n kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']\n\nThe entire Baz namespace:\n kinds=[], namespace_ids=['Baz']",
"type": "object"
},
"GoogleLongrunningOperation": {
"properties": {
"done": {
"description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.",
"type": "boolean"
},
"response": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
"type": "object"
},
"name": {
"description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.",
"type": "string"
},
"error": {
"$ref": "Status",
"description": "The error result of the operation in case of failure or cancellation."
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
"type": "object"
}
},
"id": "GoogleLongrunningOperation",
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
"type": "object"
},
"GoogleDatastoreAdminV1beta1CommonMetadata": {
"description": "Metadata common to all Datastore Admin operations.",
"type": "object",
"properties": {
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "The client-assigned labels which were provided when the operation was\ncreated. May also include additional labels.",
"description": "The client-assigned labels which were provided when the operation was\ncreated. May also include additional labels.",
"type": "object"
},
"endTime": {
@ -421,30 +191,26 @@
"Unspecified.",
"Request is being prepared for processing.",
"Request is actively being processed.",
"Request is in the process of being cancelled after user called\nlongrunning.Operations.CancelOperation on the operation.",
"Request is in the process of being cancelled after user called\ngoogle.longrunning.Operations.CancelOperation on the operation.",
"Request has been processed and is in its finalization stage.",
"Request has completed successfully.",
"Request has finished being processed, but encountered an error.",
"Request has finished being cancelled after user called\nlongrunning.Operations.CancelOperation."
"Request has finished being cancelled after user called\ngoogle.longrunning.Operations.CancelOperation."
]
},
"operationType": {
"enumDescriptions": [
"Unspecified.",
"ExportEntities.",
"ImportEntities.",
"Build an index.",
"Clear an index."
],
"enum": [
"OPERATION_TYPE_UNSPECIFIED",
"EXPORT_ENTITIES",
"IMPORT_ENTITIES",
"BUILD_INDEX",
"CLEAR_INDEX"
"IMPORT_ENTITIES"
],
"description": "The type of the operation. Can be used as a filter in\nListOperationsRequest.",
"type": "string"
"description": "The type of the operation. Can be used as a filter in\nListOperationsRequest.",
"type": "string",
"enumDescriptions": [
"Unspecified.",
"ExportEntities.",
"ImportEntities."
]
},
"startTime": {
"format": "google-datetime",
@ -452,12 +218,242 @@
"type": "string"
}
},
"id": "GoogleDatastoreAdminV1beta1CommonMetadata"
"id": "GoogleDatastoreAdminV1beta1CommonMetadata",
"description": "Metadata common to all Datastore Admin operations.",
"type": "object"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object",
"properties": {
"details": {
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"type": "array"
},
"code": {
"format": "int32",
"description": "The status code, which should be an enum value of google.rpc.Code.",
"type": "integer"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
}
},
"id": "Status"
},
"GoogleDatastoreAdminV1beta1ExportEntitiesMetadata": {
"description": "Metadata for ExportEntities operations.",
"type": "object",
"properties": {
"common": {
"description": "Metadata common to all Datastore Admin operations.",
"$ref": "GoogleDatastoreAdminV1beta1CommonMetadata"
},
"progressBytes": {
"description": "An estimate of the number of bytes processed.",
"$ref": "GoogleDatastoreAdminV1beta1Progress"
},
"outputUrlPrefix": {
"description": "Location for the export metadata and data files. This will be the same\nvalue as the\ngoogle.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix\nfield. The final output location is provided in\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.",
"type": "string"
},
"entityFilter": {
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Description of which entities are being exported."
},
"progressEntities": {
"description": "An estimate of the number of entities processed.",
"$ref": "GoogleDatastoreAdminV1beta1Progress"
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesMetadata"
},
"GoogleDatastoreAdminV1beta1ExportEntitiesRequest": {
"properties": {
"outputUrlPrefix": {
"description": "Location for the export metadata and data files.\n\nThe full resource URL of the external storage location. Currently, only\nGoogle Cloud Storage is supported. So output_url_prefix should be of the\nform: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the\nname of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud\nStorage namespace path (this is not a Cloud Datastore namespace). For more\ninformation about Cloud Storage namespace paths, see\n[Object name\nconsiderations](https://cloud.google.com/storage/docs/naming#object-considerations).\n\nThe resulting files will be nested deeper than the specified URL prefix.\nThe final output URL will be provided in the\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url\nfield. That value should be used for subsequent ImportEntities operations.\n\nBy nesting the data files deeper, the same Cloud Storage bucket can be used\nin multiple ExportEntities operations without conflict.",
"type": "string"
},
"entityFilter": {
"description": "Description of what data from the project is included in the export.",
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Client-assigned labels.",
"type": "object"
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesRequest",
"description": "The request for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.",
"type": "object"
},
"GoogleDatastoreAdminV1beta1ExportEntitiesResponse": {
"properties": {
"outputUrl": {
"description": "Location of the output metadata file. This can be used to begin an import\ninto Cloud Datastore (this project or another project). See\ngoogle.datastore.admin.v1beta1.ImportEntitiesRequest.input_url.\nOnly present if the operation completed successfully.",
"type": "string"
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesResponse",
"description": "The response for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.",
"type": "object"
},
"GoogleDatastoreAdminV1beta1ImportEntitiesRequest": {
"properties": {
"inputUrl": {
"description": "The full resource URL of the external storage location. Currently, only\nGoogle Cloud Storage is supported. So input_url should be of the form:\n`gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where\n`BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is\nan optional Cloud Storage namespace path (this is not a Cloud Datastore\nnamespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written\nby the ExportEntities operation. For more information about Cloud Storage\nnamespace paths, see\n[Object name\nconsiderations](https://cloud.google.com/storage/docs/naming#object-considerations).\n\nFor more information, see\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.",
"type": "string"
},
"entityFilter": {
"description": "Optionally specify which kinds/namespaces are to be imported. If provided,\nthe list must be a subset of the EntityFilter used in creating the export,\notherwise a FAILED_PRECONDITION error will be returned. If no filter is\nspecified then all entities from the export are imported.",
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Client-assigned labels.",
"type": "object"
}
},
"id": "GoogleDatastoreAdminV1beta1ImportEntitiesRequest",
"description": "The request for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities.",
"type": "object"
},
"GoogleDatastoreAdminV1beta1ImportEntitiesMetadata": {
"properties": {
"progressEntities": {
"description": "An estimate of the number of entities processed.",
"$ref": "GoogleDatastoreAdminV1beta1Progress"
},
"common": {
"description": "Metadata common to all Datastore Admin operations.",
"$ref": "GoogleDatastoreAdminV1beta1CommonMetadata"
},
"inputUrl": {
"description": "The location of the import metadata file. This will be the same value as\nthe google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url\nfield.",
"type": "string"
},
"progressBytes": {
"description": "An estimate of the number of bytes processed.",
"$ref": "GoogleDatastoreAdminV1beta1Progress"
},
"entityFilter": {
"description": "Description of which entities are being imported.",
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter"
}
},
"id": "GoogleDatastoreAdminV1beta1ImportEntitiesMetadata",
"description": "Metadata for ImportEntities operations.",
"type": "object"
},
"GoogleDatastoreAdminV1beta1Progress": {
"description": "Measures the progress of a particular metric.",
"type": "object",
"properties": {
"workCompleted": {
"format": "int64",
"description": "The amount of work that has been completed. Note that this may be greater\nthan work_estimated.",
"type": "string"
},
"workEstimated": {
"format": "int64",
"description": "An estimate of how much work needs to be performed. May be zero if the\nwork estimate is unavailable.",
"type": "string"
}
},
"id": "GoogleDatastoreAdminV1beta1Progress"
},
"GoogleLongrunningOperation": {
"properties": {
"response": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
"type": "object"
},
"name": {
"description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.",
"type": "string"
},
"error": {
"$ref": "Status",
"description": "The error result of the operation in case of failure or cancellation."
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
"type": "object"
},
"done": {
"description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable.",
"type": "boolean"
}
},
"id": "GoogleLongrunningOperation",
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
"type": "object"
},
"GoogleDatastoreAdminV1beta1EntityFilter": {
"description": "Identifies a subset of entities in a project. This is specified as\ncombinations of kinds and namespaces (either or both of which may be all, as\ndescribed in the following examples).\nExample usage:\n\nEntire project:\n kinds=[], namespace_ids=[]\n\nKinds Foo and Bar in all namespaces:\n kinds=['Foo', 'Bar'], namespace_ids=[]\n\nKinds Foo and Bar only in the default namespace:\n kinds=['Foo', 'Bar'], namespace_ids=['']\n\nKinds Foo and Bar in both the default and Baz namespaces:\n kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']\n\nThe entire Baz namespace:\n kinds=[], namespace_ids=['Baz']",
"type": "object",
"properties": {
"kinds": {
"description": "If empty, then this represents all kinds.",
"items": {
"type": "string"
},
"type": "array"
},
"namespaceIds": {
"description": "An empty list represents all namespaces. This is the preferred\nusage for projects that don't use namespaces.\n\nAn empty string element represents the default namespace. This should be\nused if the project has data in non-default namespaces, but doesn't want to\ninclude them.\nEach namespace in this list must be unique.",
"items": {
"type": "string"
},
"type": "array"
}
},
"id": "GoogleDatastoreAdminV1beta1EntityFilter"
}
},
"protocol": "rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
}
},
"version": "v1beta1",
"baseUrl": "https://datastore.googleapis.com/",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/datastore": {
"description": "View and manage your Google Cloud Datastore data"
},
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},
"servicePath": "",
"description": "Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.\n",
"kind": "discovery#restDescription",
"rootUrl": "https://datastore.googleapis.com/",
"basePath": ""
}

View file

@ -96,10 +96,10 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// Labels: The client-assigned labels which were provided when the
// operation was
// created. May also include additional labels.
// created. May also include additional labels.
Labels map[string]string `json:"labels,omitempty"`
// OperationType: The type of the operation. Can be used as a filter
// OperationType: The type of the operation. Can be used as a filter
// in
// ListOperationsRequest.
//
@ -107,8 +107,6 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// "OPERATION_TYPE_UNSPECIFIED" - Unspecified.
// "EXPORT_ENTITIES" - ExportEntities.
// "IMPORT_ENTITIES" - ImportEntities.
// "BUILD_INDEX" - Build an index.
// "CLEAR_INDEX" - Clear an index.
OperationType string `json:"operationType,omitempty"`
// StartTime: The time that work began on the operation.
@ -122,7 +120,7 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// "PROCESSING" - Request is actively being processed.
// "CANCELLING" - Request is in the process of being cancelled after
// user called
// longrunning.Operations.CancelOperation on the operation.
// google.longrunning.Operations.CancelOperation on the operation.
// "FINALIZING" - Request has been processed and is in its
// finalization stage.
// "SUCCESSFUL" - Request has completed successfully.
@ -130,7 +128,7 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// error.
// "CANCELLED" - Request has finished being cancelled after user
// called
// longrunning.Operations.CancelOperation.
// google.longrunning.Operations.CancelOperation.
State string `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
@ -157,9 +155,9 @@ func (s *GoogleDatastoreAdminV1beta1CommonMetadata) MarshalJSON() ([]byte, error
}
// GoogleDatastoreAdminV1beta1EntityFilter: Identifies a subset of
// entities in a project. This is specified as
// combinations of kind + namespace (either or both of which may be all,
// as
// entities in a project. This is specified as
// combinations of kinds and namespaces (either or both of which may be
// all, as
// described in the following examples).
// Example usage:
//
@ -181,12 +179,12 @@ type GoogleDatastoreAdminV1beta1EntityFilter struct {
// Kinds: If empty, then this represents all kinds.
Kinds []string `json:"kinds,omitempty"`
// NamespaceIds: An empty list represents all namespaces. This is the
// NamespaceIds: An empty list represents all namespaces. This is the
// preferred
// usage for projects that don't use namespaces.
//
// An empty string element represents the default namespace. This
// should be
// An empty string element represents the default namespace. This should
// be
// used if the project has data in non-default namespaces, but doesn't
// want to
// include them.
@ -481,7 +479,9 @@ func (s *GoogleDatastoreAdminV1beta1ImportEntitiesRequest) MarshalJSON() ([]byte
// GoogleDatastoreAdminV1beta1Progress: Measures the progress of a
// particular metric.
type GoogleDatastoreAdminV1beta1Progress struct {
// WorkCompleted: Note that this may be greater than work_estimated.
// WorkCompleted: The amount of work that has been completed. Note that
// this may be greater
// than work_estimated.
WorkCompleted int64 `json:"workCompleted,omitempty,string"`
// WorkEstimated: An estimate of how much work needs to be performed.
@ -518,8 +518,8 @@ func (s *GoogleDatastoreAdminV1beta1Progress) MarshalJSON() ([]byte, error) {
type GoogleLongrunningOperation struct {
// Done: If the value is `false`, it means the operation is still in
// progress.
// If true, the operation is completed, and either `error` or `response`
// is
// If `true`, the operation is completed, and either `error` or
// `response` is
// available.
Done bool `json:"done,omitempty"`
@ -725,7 +725,7 @@ type ProjectsExportCall struct {
// the
// background and its progress can be monitored and managed via
// the
// Operation resource that is created. The output of an export may only
// Operation resource that is created. The output of an export may only
// be
// used once the associated operation is done. If an export operation
// is
@ -825,7 +825,7 @@ func (c *ProjectsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin
}
return ret, nil
// {
// "description": "Exports a copy of all or a subset of entities from Google Cloud Datastore\nto another storage system, such as Google Cloud Storage. Recent updates to\nentities may not be reflected in the export. The export occurs in the\nbackground and its progress can be monitored and managed via the\nOperation resource that is created. The output of an export may only be\nused once the associated operation is done. If an export operation is\ncancelled before completion it may leave partial data behind in Google\nCloud Storage.",
// "description": "Exports a copy of all or a subset of entities from Google Cloud Datastore\nto another storage system, such as Google Cloud Storage. Recent updates to\nentities may not be reflected in the export. The export occurs in the\nbackground and its progress can be monitored and managed via the\nOperation resource that is created. The output of an export may only be\nused once the associated operation is done. If an export operation is\ncancelled before completion it may leave partial data behind in Google\nCloud Storage.",
// "flatPath": "v1beta1/projects/{projectId}:export",
// "httpMethod": "POST",
// "id": "datastore.projects.export",
@ -872,7 +872,7 @@ type ProjectsImportCall struct {
// its
// progress can be monitored and managed via the Operation resource that
// is
// created. If an ImportEntities operation is cancelled, it is
// created. If an ImportEntities operation is cancelled, it is
// possible
// that a subset of the data has already been imported to Cloud
// Datastore.
@ -969,7 +969,7 @@ func (c *ProjectsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin
}
return ret, nil
// {
// "description": "Imports entities into Google Cloud Datastore. Existing entities with the\nsame key are overwritten. The import occurs in the background and its\nprogress can be monitored and managed via the Operation resource that is\ncreated. If an ImportEntities operation is cancelled, it is possible\nthat a subset of the data has already been imported to Cloud Datastore.",
// "description": "Imports entities into Google Cloud Datastore. Existing entities with the\nsame key are overwritten. The import occurs in the background and its\nprogress can be monitored and managed via the Operation resource that is\ncreated. If an ImportEntities operation is cancelled, it is possible\nthat a subset of the data has already been imported to Cloud Datastore.",
// "flatPath": "v1beta1/projects/{projectId}:import",
// "httpMethod": "POST",
// "id": "datastore.projects.import",

File diff suppressed because it is too large Load diff

View file

@ -520,10 +520,10 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// Labels: The client-assigned labels which were provided when the
// operation was
// created. May also include additional labels.
// created. May also include additional labels.
Labels map[string]string `json:"labels,omitempty"`
// OperationType: The type of the operation. Can be used as a filter
// OperationType: The type of the operation. Can be used as a filter
// in
// ListOperationsRequest.
//
@ -531,8 +531,6 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// "OPERATION_TYPE_UNSPECIFIED" - Unspecified.
// "EXPORT_ENTITIES" - ExportEntities.
// "IMPORT_ENTITIES" - ImportEntities.
// "BUILD_INDEX" - Build an index.
// "CLEAR_INDEX" - Clear an index.
OperationType string `json:"operationType,omitempty"`
// StartTime: The time that work began on the operation.
@ -546,7 +544,7 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// "PROCESSING" - Request is actively being processed.
// "CANCELLING" - Request is in the process of being cancelled after
// user called
// longrunning.Operations.CancelOperation on the operation.
// google.longrunning.Operations.CancelOperation on the operation.
// "FINALIZING" - Request has been processed and is in its
// finalization stage.
// "SUCCESSFUL" - Request has completed successfully.
@ -554,7 +552,7 @@ type GoogleDatastoreAdminV1beta1CommonMetadata struct {
// error.
// "CANCELLED" - Request has finished being cancelled after user
// called
// longrunning.Operations.CancelOperation.
// google.longrunning.Operations.CancelOperation.
State string `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
@ -581,9 +579,9 @@ func (s *GoogleDatastoreAdminV1beta1CommonMetadata) MarshalJSON() ([]byte, error
}
// GoogleDatastoreAdminV1beta1EntityFilter: Identifies a subset of
// entities in a project. This is specified as
// combinations of kind + namespace (either or both of which may be all,
// as
// entities in a project. This is specified as
// combinations of kinds and namespaces (either or both of which may be
// all, as
// described in the following examples).
// Example usage:
//
@ -605,12 +603,12 @@ type GoogleDatastoreAdminV1beta1EntityFilter struct {
// Kinds: If empty, then this represents all kinds.
Kinds []string `json:"kinds,omitempty"`
// NamespaceIds: An empty list represents all namespaces. This is the
// NamespaceIds: An empty list represents all namespaces. This is the
// preferred
// usage for projects that don't use namespaces.
//
// An empty string element represents the default namespace. This
// should be
// An empty string element represents the default namespace. This should
// be
// used if the project has data in non-default namespaces, but doesn't
// want to
// include them.
@ -774,7 +772,9 @@ func (s *GoogleDatastoreAdminV1beta1ImportEntitiesMetadata) MarshalJSON() ([]byt
// GoogleDatastoreAdminV1beta1Progress: Measures the progress of a
// particular metric.
type GoogleDatastoreAdminV1beta1Progress struct {
// WorkCompleted: Note that this may be greater than work_estimated.
// WorkCompleted: The amount of work that has been completed. Note that
// this may be greater
// than work_estimated.
WorkCompleted int64 `json:"workCompleted,omitempty,string"`
// WorkEstimated: An estimate of how much work needs to be performed.

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/PsbV54STic97ire0OJuiC5JKfrE\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/lQo0mHP8UNg2mFCLeIXYgmR2aTQ\"",
"discoveryVersion": "v1",
"id": "deploymentmanager:alpha",
"name": "deploymentmanager",
"canonicalName": "Deployment Manager Alpha",
"version": "alpha",
"revision": "20170907",
"revision": "20170914",
"title": "Google Cloud Deployment Manager Alpha API",
"description": "The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/deploymentmanager/alpha/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "deploymentmanager/alpha/projects/",
"batchPath": "batch",
"batchPath": "batch/deploymentmanager/alpha",
"parameters": {
"alt": {
"type": "string",
@ -201,12 +201,12 @@
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the composite type was created, in RFC3339 text format."
"description": "Output only. Timestamp when the composite type was created, in RFC3339 text format."
},
"labels": {
"type": "array",
@ -221,11 +221,11 @@
},
"operation": {
"$ref": "Operation",
"description": "[Output Only] The Operation that most recently ran, or is currently running, on this composite type."
"description": "Output only. The Operation that most recently ran, or is currently running, on this composite type."
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the type provider."
"description": "Output only. Self link for the type provider."
},
"status": {
"type": "string"
@ -255,7 +255,7 @@
"properties": {
"compositeTypes": {
"type": "array",
"description": "[Output Only] A list of resource composite types supported by Deployment Manager.",
"description": "Output only. A list of resource composite types supported by Deployment Manager.",
"items": {
"$ref": "CompositeType"
}
@ -372,12 +372,12 @@
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the deployment was created, in RFC3339 text format ."
"description": "Output only. Timestamp when the deployment was created, in RFC3339 text format ."
},
"labels": {
"type": "array",
@ -388,7 +388,7 @@
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the last manifest that was successfully deployed."
"description": "Output only. URL of the manifest representing the last manifest that was successfully deployed."
},
"name": {
"type": "string",
@ -396,18 +396,18 @@
},
"operation": {
"$ref": "Operation",
"description": "[Output Only] The Operation that most recently ran, or is currently running, on this deployment."
"description": "Output only. The Operation that most recently ran, or is currently running, on this deployment."
},
"outputs": {
"type": "array",
"description": "api-linter: output-only-format=disabled [Output Only] Map of outputs from the last manifest that deployed successfully.",
"description": "Output only. Map of outputs from the last manifest that deployed successfully.",
"items": {
"$ref": "DeploymentOutputsEntry"
}
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the deployment."
"description": "Output only. Self link for the deployment."
},
"target": {
"$ref": "TargetConfiguration",
@ -415,7 +415,7 @@
},
"update": {
"$ref": "DeploymentUpdate",
"description": "[Output Only] If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here."
"description": "Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here."
}
}
},
@ -450,18 +450,18 @@
"properties": {
"description": {
"type": "string",
"description": "[Output Only] An optional user-provided description of the deployment after the current update has been applied."
"description": "Output only. An optional user-provided description of the deployment after the current update has been applied."
},
"labels": {
"type": "array",
"description": "[Output Only] Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?",
"description": "Output only. Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?",
"items": {
"$ref": "DeploymentUpdateLabelEntry"
}
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the update configuration of this deployment."
"description": "Output only. URL of the manifest representing the update configuration of this deployment."
}
}
},
@ -496,14 +496,14 @@
"properties": {
"deployments": {
"type": "array",
"description": "[Output Only] The deployments contained in this response.",
"description": "Output only. The deployments contained in this response.",
"items": {
"$ref": "Deployment"
}
},
"nextPageToken": {
"type": "string",
"description": "[Output Only] A token used to continue a truncated list request."
"description": "Output only. A token used to continue a truncated list request."
}
}
},
@ -647,39 +647,39 @@
"properties": {
"config": {
"$ref": "ConfigFile",
"description": "[Output Only] The YAML configuration for this manifest."
"description": "Output only. The YAML configuration for this manifest."
},
"expandedConfig": {
"type": "string",
"description": "[Output Only] The fully-expanded configuration file, including any templates and references."
"description": "Output only. The fully-expanded configuration file, including any templates and references."
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"imports": {
"type": "array",
"description": "[Output Only] The imported files for this manifest.",
"description": "Output only. The imported files for this manifest.",
"items": {
"$ref": "ImportFile"
}
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the manifest was created, in RFC3339 text format."
"description": "Output only. Timestamp when the manifest was created, in RFC3339 text format."
},
"layout": {
"type": "string",
"description": "[Output Only] The YAML layout for this manifest."
"description": "Output only. The YAML layout for this manifest."
},
"name": {
"type": "string",
"description": "[Output Only] The name of the manifest."
"description": "Output only.\n\nThe name of the manifest."
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the manifest."
"description": "Output only. Self link for the manifest."
}
}
},
@ -690,14 +690,14 @@
"properties": {
"manifests": {
"type": "array",
"description": "[Output Only] Manifests contained in this list response.",
"description": "Output only. Manifests contained in this list response.",
"items": {
"$ref": "Manifest"
}
},
"nextPageToken": {
"type": "string",
"description": "[Output Only] A token used to continue a truncated list request."
"description": "Output only. A token used to continue a truncated list request."
}
}
},
@ -865,11 +865,11 @@
"properties": {
"nextPageToken": {
"type": "string",
"description": "[Output Only] A token used to continue a truncated list request."
"description": "Output only. A token used to continue a truncated list request."
},
"operations": {
"type": "array",
"description": "[Output Only] Operations contained in this list response.",
"description": "Output only. Operations contained in this list response.",
"items": {
"$ref": "Operation"
}
@ -951,48 +951,48 @@
},
"finalProperties": {
"type": "string",
"description": "[Output Only] The evaluated properties of the resource with references expanded. Returned as serialized YAML."
"description": "Output only. The evaluated properties of the resource with references expanded. Returned as serialized YAML."
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the resource was created or acquired, in RFC3339 text format ."
"description": "Output only. Timestamp when the resource was created or acquired, in RFC3339 text format ."
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the current configuration of this resource."
"description": "Output only. URL of the manifest representing the current configuration of this resource."
},
"name": {
"type": "string",
"description": "[Output Only] The name of the resource as it appears in the YAML config."
"description": "Output only. The name of the resource as it appears in the YAML config."
},
"properties": {
"type": "string",
"description": "[Output Only] The current properties of the resource before any references have been filled in. Returned as serialized YAML."
"description": "Output only. The current properties of the resource before any references have been filled in. Returned as serialized YAML."
},
"type": {
"type": "string",
"description": "[Output Only] The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function."
"description": "Output only. The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function."
},
"update": {
"$ref": "ResourceUpdate",
"description": "[Output Only] If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here."
"description": "Output only. If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here."
},
"updateTime": {
"type": "string",
"description": "[Output Only] Timestamp when the resource was updated, in RFC3339 text format ."
"description": "Output only. Timestamp when the resource was updated, in RFC3339 text format ."
},
"url": {
"type": "string",
"description": "[Output Only] The URL of the actual resource."
"description": "Output only. The URL of the actual resource."
},
"warnings": {
"type": "array",
"description": "[Output Only] If warning messages are generated during processing of this resource, this field will be populated.",
"description": "Output only. If warning messages are generated during processing of this resource, this field will be populated.",
"items": {
"type": "object",
"properties": {
@ -1048,7 +1048,7 @@
},
"error": {
"type": "object",
"description": "[Output Only] If errors are generated during update of the resource, this field will be populated.",
"description": "Output only. If errors are generated during update of the resource, this field will be populated.",
"properties": {
"errors": {
"type": "array",
@ -1075,27 +1075,27 @@
},
"finalProperties": {
"type": "string",
"description": "[Output Only] The expanded properties of the resource with reference values expanded. Returned as serialized YAML."
"description": "Output only. The expanded properties of the resource with reference values expanded. Returned as serialized YAML."
},
"intent": {
"type": "string",
"description": "[Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL."
"description": "Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL."
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the update configuration of this resource."
"description": "Output only. URL of the manifest representing the update configuration of this resource."
},
"properties": {
"type": "string",
"description": "[Output Only] The set of updated properties for this resource, before references are expanded. Returned as serialized YAML."
"description": "Output only. The set of updated properties for this resource, before references are expanded. Returned as serialized YAML."
},
"state": {
"type": "string",
"description": "[Output Only] The state of the resource."
"description": "Output only. The state of the resource."
},
"warnings": {
"type": "array",
"description": "[Output Only] If warning messages are generated during processing of this resource, this field will be populated.",
"description": "Output only. If warning messages are generated during processing of this resource, this field will be populated.",
"items": {
"type": "object",
"properties": {
@ -1293,12 +1293,12 @@
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the type was created, in RFC3339 text format."
"description": "Output only. Timestamp when the type was created, in RFC3339 text format."
},
"labels": {
"type": "array",
@ -1313,11 +1313,11 @@
},
"operation": {
"$ref": "Operation",
"description": "[Output Only] The Operation that most recently ran, or is currently running, on this type."
"description": "Output only. The Operation that most recently ran, or is currently running, on this type."
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the type."
"description": "Output only. Self link for the type."
}
}
},
@ -1336,7 +1336,7 @@
},
"kind": {
"type": "string",
"description": "[Output Only] Type of the output. Always deploymentManager#TypeInfo for TypeInfo.",
"description": "Output only. Type of the output. Always deploymentManager#TypeInfo for TypeInfo.",
"default": "deploymentmanager#typeInfo"
},
"name": {
@ -1349,7 +1349,7 @@
},
"selfLink": {
"type": "string",
"description": "[Output Only] Server-defined URL for the resource."
"description": "Output only. Server-defined URL for the resource."
},
"title": {
"type": "string",
@ -1410,12 +1410,12 @@
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the type provider was created, in RFC3339 text format."
"description": "Output only. Timestamp when the type provider was created, in RFC3339 text format."
},
"labels": {
"type": "array",
@ -1430,7 +1430,7 @@
},
"operation": {
"$ref": "Operation",
"description": "[Output Only] The Operation that most recently ran, or is currently running, on this type provider."
"description": "Output only. The Operation that most recently ran, or is currently running, on this type provider."
},
"options": {
"$ref": "Options",
@ -1438,7 +1438,7 @@
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the type provider."
"description": "Output only. Self link for the type provider."
}
}
},
@ -1465,7 +1465,7 @@
},
"typeProviders": {
"type": "array",
"description": "[Output Only] A list of resource type providers supported by Deployment Manager.",
"description": "Output only. A list of resource type providers supported by Deployment Manager.",
"items": {
"$ref": "TypeProvider"
}
@ -1483,7 +1483,7 @@
},
"types": {
"type": "array",
"description": "[Output Only] A list of resource type info.",
"description": "Output only. A list of resource type info.",
"items": {
"$ref": "TypeInfo"
}
@ -1501,7 +1501,7 @@
},
"types": {
"type": "array",
"description": "[Output Only] A list of resource types supported by Deployment Manager.",
"description": "Output only. A list of resource types supported by Deployment Manager.",
"items": {
"$ref": "Type"
}

View file

@ -430,11 +430,11 @@ type CompositeType struct {
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the composite type was
// InsertTime: Output only. Timestamp when the composite type was
// created, in RFC3339 text format.
InsertTime string `json:"insertTime,omitempty"`
@ -449,11 +449,11 @@ type CompositeType struct {
// Name: Name of the composite type.
Name string `json:"name,omitempty"`
// Operation: [Output Only] The Operation that most recently ran, or is
// Operation: Output only. The Operation that most recently ran, or is
// currently running, on this composite type.
Operation *Operation `json:"operation,omitempty"`
// SelfLink: [Output Only] Self link for the type provider.
// SelfLink: Output only. Self link for the type provider.
SelfLink string `json:"selfLink,omitempty"`
Status string `json:"status,omitempty"`
@ -519,7 +519,7 @@ func (s *CompositeTypeLabelEntry) MarshalJSON() ([]byte, error) {
// CompositeTypesListResponse: A response that returns all Composite
// Types supported by Deployment Manager
type CompositeTypesListResponse struct {
// CompositeTypes: [Output Only] A list of resource composite types
// CompositeTypes: Output only. A list of resource composite types
// supported by Deployment Manager.
CompositeTypes []*CompositeType `json:"compositeTypes,omitempty"`
@ -718,11 +718,11 @@ type Deployment struct {
// fingerprint value, perform a get() request to a deployment.
Fingerprint string `json:"fingerprint,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the deployment was created,
// InsertTime: Output only. Timestamp when the deployment was created,
// in RFC3339 text format .
InsertTime string `json:"insertTime,omitempty"`
@ -734,7 +734,7 @@ type Deployment struct {
// ([a-z]([-a-z0-9]*[a-z0-9])?)?
Labels []*DeploymentLabelEntry `json:"labels,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the last
// Manifest: Output only. URL of the manifest representing the last
// manifest that was successfully deployed.
Manifest string `json:"manifest,omitempty"`
@ -747,22 +747,22 @@ type Deployment struct {
// last character, which cannot be a dash.
Name string `json:"name,omitempty"`
// Operation: [Output Only] The Operation that most recently ran, or is
// Operation: Output only. The Operation that most recently ran, or is
// currently running, on this deployment.
Operation *Operation `json:"operation,omitempty"`
// Outputs: api-linter: output-only-format=disabled [Output Only] Map of
// outputs from the last manifest that deployed successfully.
// Outputs: Output only. Map of outputs from the last manifest that
// deployed successfully.
Outputs []*DeploymentOutputsEntry `json:"outputs,omitempty"`
// SelfLink: [Output Only] Self link for the deployment.
// SelfLink: Output only. Self link for the deployment.
SelfLink string `json:"selfLink,omitempty"`
// Target: [Input Only] The parameters that define your deployment,
// including the deployment configuration and relevant templates.
Target *TargetConfiguration `json:"target,omitempty"`
// Update: [Output Only] If Deployment Manager is currently updating or
// Update: Output only. If Deployment Manager is currently updating or
// previewing an update to this deployment, the updated configuration
// appears here.
Update *DeploymentUpdate `json:"update,omitempty"`
@ -851,11 +851,11 @@ func (s *DeploymentOutputsEntry) MarshalJSON() ([]byte, error) {
}
type DeploymentUpdate struct {
// Description: [Output Only] An optional user-provided description of
// Description: Output only. An optional user-provided description of
// the deployment after the current update has been applied.
Description string `json:"description,omitempty"`
// Labels: [Output Only] Map of labels; provided by the client when the
// Labels: Output only. Map of labels; provided by the client when the
// resource is created or updated. Specifically: Label keys must be
// between 1 and 63 characters long and must conform to the following
// regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be
@ -863,7 +863,7 @@ type DeploymentUpdate struct {
// expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
Labels []*DeploymentUpdateLabelEntry `json:"labels,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the update
// Manifest: Output only. URL of the manifest representing the update
// configuration of this deployment.
Manifest string `json:"manifest,omitempty"`
@ -959,12 +959,11 @@ func (s *DeploymentsCancelPreviewRequest) MarshalJSON() ([]byte, error) {
// deployments and a page token used to build the next request if the
// request has been truncated.
type DeploymentsListResponse struct {
// Deployments: [Output Only] The deployments contained in this
// response.
// Deployments: Output only. The deployments contained in this response.
Deployments []*Deployment `json:"deployments,omitempty"`
// NextPageToken: [Output Only] A token used to continue a truncated
// list request.
// NextPageToken: Output only. A token used to continue a truncated list
// request.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -1302,31 +1301,33 @@ func (s *LogConfigDataAccessOptions) MarshalJSON() ([]byte, error) {
}
type Manifest struct {
// Config: [Output Only] The YAML configuration for this manifest.
// Config: Output only. The YAML configuration for this manifest.
Config *ConfigFile `json:"config,omitempty"`
// ExpandedConfig: [Output Only] The fully-expanded configuration file,
// ExpandedConfig: Output only. The fully-expanded configuration file,
// including any templates and references.
ExpandedConfig string `json:"expandedConfig,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// Imports: [Output Only] The imported files for this manifest.
// Imports: Output only. The imported files for this manifest.
Imports []*ImportFile `json:"imports,omitempty"`
// InsertTime: [Output Only] Timestamp when the manifest was created, in
// InsertTime: Output only. Timestamp when the manifest was created, in
// RFC3339 text format.
InsertTime string `json:"insertTime,omitempty"`
// Layout: [Output Only] The YAML layout for this manifest.
// Layout: Output only. The YAML layout for this manifest.
Layout string `json:"layout,omitempty"`
// Name: [Output Only] The name of the manifest.
// Name: Output only.
//
// The name of the manifest.
Name string `json:"name,omitempty"`
// SelfLink: [Output Only] Self link for the manifest.
// SelfLink: Output only. Self link for the manifest.
SelfLink string `json:"selfLink,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -1360,11 +1361,11 @@ func (s *Manifest) MarshalJSON() ([]byte, error) {
// manifests and a page token used to build the next request if the
// request has been truncated.
type ManifestsListResponse struct {
// Manifests: [Output Only] Manifests contained in this list response.
// Manifests: Output only. Manifests contained in this list response.
Manifests []*Manifest `json:"manifests,omitempty"`
// NextPageToken: [Output Only] A token used to continue a truncated
// list request.
// NextPageToken: Output only. A token used to continue a truncated list
// request.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -1661,11 +1662,11 @@ func (s *OperationWarningsData) MarshalJSON() ([]byte, error) {
// operations and a page token used to build the next request if the
// request has been truncated.
type OperationsListResponse struct {
// NextPageToken: [Output Only] A token used to continue a truncated
// list request.
// NextPageToken: Output only. A token used to continue a truncated list
// request.
NextPageToken string `json:"nextPageToken,omitempty"`
// Operations: [Output Only] Operations contained in this list response.
// Operations: Output only. Operations contained in this list response.
Operations []*Operation `json:"operations,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -1823,48 +1824,48 @@ type Resource struct {
// AccessControl: The Access Control Policy set on this resource.
AccessControl *ResourceAccessControl `json:"accessControl,omitempty"`
// FinalProperties: [Output Only] The evaluated properties of the
// FinalProperties: Output only. The evaluated properties of the
// resource with references expanded. Returned as serialized YAML.
FinalProperties string `json:"finalProperties,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the resource was created or
// InsertTime: Output only. Timestamp when the resource was created or
// acquired, in RFC3339 text format .
InsertTime string `json:"insertTime,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the current
// Manifest: Output only. URL of the manifest representing the current
// configuration of this resource.
Manifest string `json:"manifest,omitempty"`
// Name: [Output Only] The name of the resource as it appears in the
// YAML config.
// Name: Output only. The name of the resource as it appears in the YAML
// config.
Name string `json:"name,omitempty"`
// Properties: [Output Only] The current properties of the resource
// Properties: Output only. The current properties of the resource
// before any references have been filled in. Returned as serialized
// YAML.
Properties string `json:"properties,omitempty"`
// Type: [Output Only] The type of the resource, for example
// Type: Output only. The type of the resource, for example
// compute.v1.instance, or cloudfunctions.v1beta1.function.
Type string `json:"type,omitempty"`
// Update: [Output Only] If Deployment Manager is currently updating or
// Update: Output only. If Deployment Manager is currently updating or
// previewing an update to this resource, the updated configuration
// appears here.
Update *ResourceUpdate `json:"update,omitempty"`
// UpdateTime: [Output Only] Timestamp when the resource was updated, in
// UpdateTime: Output only. Timestamp when the resource was updated, in
// RFC3339 text format .
UpdateTime string `json:"updateTime,omitempty"`
// Url: [Output Only] The URL of the actual resource.
// Url: Output only. The URL of the actual resource.
Url string `json:"url,omitempty"`
// Warnings: [Output Only] If warning messages are generated during
// Warnings: Output only. If warning messages are generated during
// processing of this resource, this field will be populated.
Warnings []*ResourceWarnings `json:"warnings,omitempty"`
@ -2003,31 +2004,31 @@ type ResourceUpdate struct {
// after updating the resource itself.
AccessControl *ResourceAccessControl `json:"accessControl,omitempty"`
// Error: [Output Only] If errors are generated during update of the
// Error: Output only. If errors are generated during update of the
// resource, this field will be populated.
Error *ResourceUpdateError `json:"error,omitempty"`
// FinalProperties: [Output Only] The expanded properties of the
// resource with reference values expanded. Returned as serialized YAML.
// FinalProperties: Output only. The expanded properties of the resource
// with reference values expanded. Returned as serialized YAML.
FinalProperties string `json:"finalProperties,omitempty"`
// Intent: [Output Only] The intent of the resource: PREVIEW, UPDATE, or
// Intent: Output only. The intent of the resource: PREVIEW, UPDATE, or
// CANCEL.
Intent string `json:"intent,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the update
// Manifest: Output only. URL of the manifest representing the update
// configuration of this resource.
Manifest string `json:"manifest,omitempty"`
// Properties: [Output Only] The set of updated properties for this
// Properties: Output only. The set of updated properties for this
// resource, before references are expanded. Returned as serialized
// YAML.
Properties string `json:"properties,omitempty"`
// State: [Output Only] The state of the resource.
// State: Output only. The state of the resource.
State string `json:"state,omitempty"`
// Warnings: [Output Only] If warning messages are generated during
// Warnings: Output only. If warning messages are generated during
// processing of this resource, this field will be populated.
Warnings []*ResourceUpdateWarnings `json:"warnings,omitempty"`
@ -2054,7 +2055,7 @@ func (s *ResourceUpdate) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ResourceUpdateError: [Output Only] If errors are generated during
// ResourceUpdateError: Output only. If errors are generated during
// update of the resource, this field will be populated.
type ResourceUpdateError struct {
// Errors: [Output Only] The array of errors encountered while
@ -2453,11 +2454,11 @@ type Type struct {
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the type was created, in
// InsertTime: Output only. Timestamp when the type was created, in
// RFC3339 text format.
InsertTime string `json:"insertTime,omitempty"`
@ -2472,11 +2473,11 @@ type Type struct {
// Name: Name of the type.
Name string `json:"name,omitempty"`
// Operation: [Output Only] The Operation that most recently ran, or is
// Operation: Output only. The Operation that most recently ran, or is
// currently running, on this type.
Operation *Operation `json:"operation,omitempty"`
// SelfLink: [Output Only] Self link for the type.
// SelfLink: Output only. Self link for the type.
SelfLink string `json:"selfLink,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -2517,7 +2518,7 @@ type TypeInfo struct {
// For swagger 1.2 this field will be empty.
DocumentationLink string `json:"documentationLink,omitempty"`
// Kind: [Output Only] Type of the output. Always
// Kind: Output only. Type of the output. Always
// deploymentManager#TypeInfo for TypeInfo.
Kind string `json:"kind,omitempty"`
@ -2528,7 +2529,7 @@ type TypeInfo struct {
// documentation link For template types, we return only a schema
Schema *TypeInfoSchemaInfo `json:"schema,omitempty"`
// SelfLink: [Output Only] Server-defined URL for the resource.
// SelfLink: Output only. Server-defined URL for the resource.
SelfLink string `json:"selfLink,omitempty"`
// Title: The title on the API descriptor URL provided.
@ -2639,11 +2640,11 @@ type TypeProvider struct {
// DescriptorUrl: Descriptor Url for the this type provider.
DescriptorUrl string `json:"descriptorUrl,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the type provider was
// InsertTime: Output only. Timestamp when the type provider was
// created, in RFC3339 text format.
InsertTime string `json:"insertTime,omitempty"`
@ -2658,7 +2659,7 @@ type TypeProvider struct {
// Name: Name of the type provider.
Name string `json:"name,omitempty"`
// Operation: [Output Only] The Operation that most recently ran, or is
// Operation: Output only. The Operation that most recently ran, or is
// currently running, on this type provider.
Operation *Operation `json:"operation,omitempty"`
@ -2666,7 +2667,7 @@ type TypeProvider struct {
// service.
Options *Options `json:"options,omitempty"`
// SelfLink: [Output Only] Self link for the type provider.
// SelfLink: Output only. Self link for the type provider.
SelfLink string `json:"selfLink,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -2731,7 +2732,7 @@ type TypeProvidersListResponse struct {
// NextPageToken: A token used to continue a truncated list request.
NextPageToken string `json:"nextPageToken,omitempty"`
// TypeProviders: [Output Only] A list of resource type providers
// TypeProviders: Output only. A list of resource type providers
// supported by Deployment Manager.
TypeProviders []*TypeProvider `json:"typeProviders,omitempty"`
@ -2766,7 +2767,7 @@ type TypeProvidersListTypesResponse struct {
// NextPageToken: A token used to continue a truncated list request.
NextPageToken string `json:"nextPageToken,omitempty"`
// Types: [Output Only] A list of resource type info.
// Types: Output only. A list of resource type info.
Types []*TypeInfo `json:"types,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -2802,7 +2803,7 @@ type TypesListResponse struct {
// NextPageToken: A token used to continue a truncated list request.
NextPageToken string `json:"nextPageToken,omitempty"`
// Types: [Output Only] A list of resource types supported by Deployment
// Types: Output only. A list of resource types supported by Deployment
// Manager.
Types []*Type `json:"types,omitempty"`

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/Wel7paJC_1D4E1HCo-ynj9yjUZ0\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/daUhnbBTIdWllhB4C_Sl3rPArXs\"",
"discoveryVersion": "v1",
"id": "deploymentmanager:v2",
"name": "deploymentmanager",
"canonicalName": "Deployment Manager",
"version": "v2",
"revision": "20170907",
"revision": "20170914",
"title": "Google Cloud Deployment Manager API",
"description": "Declares, configures, and deploys complex solutions on Google Cloud Platform.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/deploymentmanager/v2/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "deploymentmanager/v2/projects/",
"batchPath": "batch",
"batchPath": "batch/deploymentmanager/v2",
"parameters": {
"alt": {
"type": "string",
@ -223,12 +223,12 @@
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the deployment was created, in RFC3339 text format ."
"description": "Output only. Timestamp when the deployment was created, in RFC3339 text format ."
},
"labels": {
"type": "array",
@ -239,7 +239,7 @@
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the last manifest that was successfully deployed."
"description": "Output only. URL of the manifest representing the last manifest that was successfully deployed."
},
"name": {
"type": "string",
@ -247,11 +247,11 @@
},
"operation": {
"$ref": "Operation",
"description": "[Output Only] The Operation that most recently ran, or is currently running, on this deployment."
"description": "Output only. The Operation that most recently ran, or is currently running, on this deployment."
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the deployment."
"description": "Output only. Self link for the deployment."
},
"target": {
"$ref": "TargetConfiguration",
@ -259,7 +259,7 @@
},
"update": {
"$ref": "DeploymentUpdate",
"description": "[Output Only] If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here."
"description": "Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here."
}
}
},
@ -282,18 +282,18 @@
"properties": {
"description": {
"type": "string",
"description": "[Output Only] An optional user-provided description of the deployment after the current update has been applied."
"description": "Output only. An optional user-provided description of the deployment after the current update has been applied."
},
"labels": {
"type": "array",
"description": "[Output Only] Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?",
"description": "Output only. Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?",
"items": {
"$ref": "DeploymentUpdateLabelEntry"
}
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the update configuration of this deployment."
"description": "Output only. URL of the manifest representing the update configuration of this deployment."
}
}
},
@ -328,14 +328,14 @@
"properties": {
"deployments": {
"type": "array",
"description": "[Output Only] The deployments contained in this response.",
"description": "Output only. The deployments contained in this response.",
"items": {
"$ref": "Deployment"
}
},
"nextPageToken": {
"type": "string",
"description": "[Output Only] A token used to continue a truncated list request."
"description": "Output only. A token used to continue a truncated list request."
}
}
},
@ -456,39 +456,39 @@
"properties": {
"config": {
"$ref": "ConfigFile",
"description": "[Output Only] The YAML configuration for this manifest."
"description": "Output only. The YAML configuration for this manifest."
},
"expandedConfig": {
"type": "string",
"description": "[Output Only] The fully-expanded configuration file, including any templates and references."
"description": "Output only. The fully-expanded configuration file, including any templates and references."
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"imports": {
"type": "array",
"description": "[Output Only] The imported files for this manifest.",
"description": "Output only. The imported files for this manifest.",
"items": {
"$ref": "ImportFile"
}
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the manifest was created, in RFC3339 text format."
"description": "Output only. Timestamp when the manifest was created, in RFC3339 text format."
},
"layout": {
"type": "string",
"description": "[Output Only] The YAML layout for this manifest."
"description": "Output only. The YAML layout for this manifest."
},
"name": {
"type": "string",
"description": "[Output Only] The name of the manifest."
"description": "Output only.\n\nThe name of the manifest."
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the manifest."
"description": "Output only. Self link for the manifest."
}
}
},
@ -499,14 +499,14 @@
"properties": {
"manifests": {
"type": "array",
"description": "[Output Only] Manifests contained in this list response.",
"description": "Output only. Manifests contained in this list response.",
"items": {
"$ref": "Manifest"
}
},
"nextPageToken": {
"type": "string",
"description": "[Output Only] A token used to continue a truncated list request."
"description": "Output only. A token used to continue a truncated list request."
}
}
},
@ -674,11 +674,11 @@
"properties": {
"nextPageToken": {
"type": "string",
"description": "[Output Only] A token used to continue a truncated list request."
"description": "Output only. A token used to continue a truncated list request."
},
"operations": {
"type": "array",
"description": "[Output Only] Operations contained in this list response.",
"description": "Output only. Operations contained in this list response.",
"items": {
"$ref": "Operation"
}
@ -738,48 +738,48 @@
},
"finalProperties": {
"type": "string",
"description": "[Output Only] The evaluated properties of the resource with references expanded. Returned as serialized YAML."
"description": "Output only. The evaluated properties of the resource with references expanded. Returned as serialized YAML."
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the resource was created or acquired, in RFC3339 text format ."
"description": "Output only. Timestamp when the resource was created or acquired, in RFC3339 text format ."
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the current configuration of this resource."
"description": "Output only. URL of the manifest representing the current configuration of this resource."
},
"name": {
"type": "string",
"description": "[Output Only] The name of the resource as it appears in the YAML config."
"description": "Output only. The name of the resource as it appears in the YAML config."
},
"properties": {
"type": "string",
"description": "[Output Only] The current properties of the resource before any references have been filled in. Returned as serialized YAML."
"description": "Output only. The current properties of the resource before any references have been filled in. Returned as serialized YAML."
},
"type": {
"type": "string",
"description": "[Output Only] The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function."
"description": "Output only. The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function."
},
"update": {
"$ref": "ResourceUpdate",
"description": "[Output Only] If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here."
"description": "Output only. If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here."
},
"updateTime": {
"type": "string",
"description": "[Output Only] Timestamp when the resource was updated, in RFC3339 text format ."
"description": "Output only. Timestamp when the resource was updated, in RFC3339 text format ."
},
"url": {
"type": "string",
"description": "[Output Only] The URL of the actual resource."
"description": "Output only. The URL of the actual resource."
},
"warnings": {
"type": "array",
"description": "[Output Only] If warning messages are generated during processing of this resource, this field will be populated.",
"description": "Output only. If warning messages are generated during processing of this resource, this field will be populated.",
"items": {
"type": "object",
"properties": {
@ -835,7 +835,7 @@
},
"error": {
"type": "object",
"description": "[Output Only] If errors are generated during update of the resource, this field will be populated.",
"description": "Output only. If errors are generated during update of the resource, this field will be populated.",
"properties": {
"errors": {
"type": "array",
@ -862,27 +862,27 @@
},
"finalProperties": {
"type": "string",
"description": "[Output Only] The expanded properties of the resource with reference values expanded. Returned as serialized YAML."
"description": "Output only. The expanded properties of the resource with reference values expanded. Returned as serialized YAML."
},
"intent": {
"type": "string",
"description": "[Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL."
"description": "Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL."
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the update configuration of this resource."
"description": "Output only. URL of the manifest representing the update configuration of this resource."
},
"properties": {
"type": "string",
"description": "[Output Only] The set of updated properties for this resource, before references are expanded. Returned as serialized YAML."
"description": "Output only. The set of updated properties for this resource, before references are expanded. Returned as serialized YAML."
},
"state": {
"type": "string",
"description": "[Output Only] The state of the resource."
"description": "Output only. The state of the resource."
},
"warnings": {
"type": "array",
"description": "[Output Only] If warning messages are generated during processing of this resource, this field will be populated.",
"description": "Output only. If warning messages are generated during processing of this resource, this field will be populated.",
"items": {
"type": "object",
"properties": {
@ -1035,12 +1035,12 @@
"properties": {
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the type was created, in RFC3339 text format."
"description": "Output only. Timestamp when the type was created, in RFC3339 text format."
},
"name": {
"type": "string",
@ -1048,11 +1048,11 @@
},
"operation": {
"$ref": "Operation",
"description": "[Output Only] The Operation that most recently ran, or is currently running, on this type."
"description": "Output only. The Operation that most recently ran, or is currently running, on this type."
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the type."
"description": "Output only. Self link for the type."
}
}
},
@ -1067,7 +1067,7 @@
},
"types": {
"type": "array",
"description": "[Output Only] A list of resource types supported by Deployment Manager.",
"description": "Output only. A list of resource types supported by Deployment Manager.",
"items": {
"$ref": "Type"
}

View file

@ -426,11 +426,11 @@ type Deployment struct {
// fingerprint value, perform a get() request to a deployment.
Fingerprint string `json:"fingerprint,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the deployment was created,
// InsertTime: Output only. Timestamp when the deployment was created,
// in RFC3339 text format .
InsertTime string `json:"insertTime,omitempty"`
@ -442,7 +442,7 @@ type Deployment struct {
// ([a-z]([-a-z0-9]*[a-z0-9])?)?
Labels []*DeploymentLabelEntry `json:"labels,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the last
// Manifest: Output only. URL of the manifest representing the last
// manifest that was successfully deployed.
Manifest string `json:"manifest,omitempty"`
@ -455,18 +455,18 @@ type Deployment struct {
// last character, which cannot be a dash.
Name string `json:"name,omitempty"`
// Operation: [Output Only] The Operation that most recently ran, or is
// Operation: Output only. The Operation that most recently ran, or is
// currently running, on this deployment.
Operation *Operation `json:"operation,omitempty"`
// SelfLink: [Output Only] Self link for the deployment.
// SelfLink: Output only. Self link for the deployment.
SelfLink string `json:"selfLink,omitempty"`
// Target: [Input Only] The parameters that define your deployment,
// including the deployment configuration and relevant templates.
Target *TargetConfiguration `json:"target,omitempty"`
// Update: [Output Only] If Deployment Manager is currently updating or
// Update: Output only. If Deployment Manager is currently updating or
// previewing an update to this deployment, the updated configuration
// appears here.
Update *DeploymentUpdate `json:"update,omitempty"`
@ -527,11 +527,11 @@ func (s *DeploymentLabelEntry) MarshalJSON() ([]byte, error) {
}
type DeploymentUpdate struct {
// Description: [Output Only] An optional user-provided description of
// Description: Output only. An optional user-provided description of
// the deployment after the current update has been applied.
Description string `json:"description,omitempty"`
// Labels: [Output Only] Map of labels; provided by the client when the
// Labels: Output only. Map of labels; provided by the client when the
// resource is created or updated. Specifically: Label keys must be
// between 1 and 63 characters long and must conform to the following
// regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be
@ -539,7 +539,7 @@ type DeploymentUpdate struct {
// expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
Labels []*DeploymentUpdateLabelEntry `json:"labels,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the update
// Manifest: Output only. URL of the manifest representing the update
// configuration of this deployment.
Manifest string `json:"manifest,omitempty"`
@ -635,12 +635,11 @@ func (s *DeploymentsCancelPreviewRequest) MarshalJSON() ([]byte, error) {
// deployments and a page token used to build the next request if the
// request has been truncated.
type DeploymentsListResponse struct {
// Deployments: [Output Only] The deployments contained in this
// response.
// Deployments: Output only. The deployments contained in this response.
Deployments []*Deployment `json:"deployments,omitempty"`
// NextPageToken: [Output Only] A token used to continue a truncated
// list request.
// NextPageToken: Output only. A token used to continue a truncated list
// request.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -939,31 +938,33 @@ func (s *LogConfigDataAccessOptions) MarshalJSON() ([]byte, error) {
}
type Manifest struct {
// Config: [Output Only] The YAML configuration for this manifest.
// Config: Output only. The YAML configuration for this manifest.
Config *ConfigFile `json:"config,omitempty"`
// ExpandedConfig: [Output Only] The fully-expanded configuration file,
// ExpandedConfig: Output only. The fully-expanded configuration file,
// including any templates and references.
ExpandedConfig string `json:"expandedConfig,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// Imports: [Output Only] The imported files for this manifest.
// Imports: Output only. The imported files for this manifest.
Imports []*ImportFile `json:"imports,omitempty"`
// InsertTime: [Output Only] Timestamp when the manifest was created, in
// InsertTime: Output only. Timestamp when the manifest was created, in
// RFC3339 text format.
InsertTime string `json:"insertTime,omitempty"`
// Layout: [Output Only] The YAML layout for this manifest.
// Layout: Output only. The YAML layout for this manifest.
Layout string `json:"layout,omitempty"`
// Name: [Output Only] The name of the manifest.
// Name: Output only.
//
// The name of the manifest.
Name string `json:"name,omitempty"`
// SelfLink: [Output Only] Self link for the manifest.
// SelfLink: Output only. Self link for the manifest.
SelfLink string `json:"selfLink,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -997,11 +998,11 @@ func (s *Manifest) MarshalJSON() ([]byte, error) {
// manifests and a page token used to build the next request if the
// request has been truncated.
type ManifestsListResponse struct {
// Manifests: [Output Only] Manifests contained in this list response.
// Manifests: Output only. Manifests contained in this list response.
Manifests []*Manifest `json:"manifests,omitempty"`
// NextPageToken: [Output Only] A token used to continue a truncated
// list request.
// NextPageToken: Output only. A token used to continue a truncated list
// request.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -1298,11 +1299,11 @@ func (s *OperationWarningsData) MarshalJSON() ([]byte, error) {
// operations and a page token used to build the next request if the
// request has been truncated.
type OperationsListResponse struct {
// NextPageToken: [Output Only] A token used to continue a truncated
// list request.
// NextPageToken: Output only. A token used to continue a truncated list
// request.
NextPageToken string `json:"nextPageToken,omitempty"`
// Operations: [Output Only] Operations contained in this list response.
// Operations: Output only. Operations contained in this list response.
Operations []*Operation `json:"operations,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -1422,48 +1423,48 @@ type Resource struct {
// AccessControl: The Access Control Policy set on this resource.
AccessControl *ResourceAccessControl `json:"accessControl,omitempty"`
// FinalProperties: [Output Only] The evaluated properties of the
// FinalProperties: Output only. The evaluated properties of the
// resource with references expanded. Returned as serialized YAML.
FinalProperties string `json:"finalProperties,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the resource was created or
// InsertTime: Output only. Timestamp when the resource was created or
// acquired, in RFC3339 text format .
InsertTime string `json:"insertTime,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the current
// Manifest: Output only. URL of the manifest representing the current
// configuration of this resource.
Manifest string `json:"manifest,omitempty"`
// Name: [Output Only] The name of the resource as it appears in the
// YAML config.
// Name: Output only. The name of the resource as it appears in the YAML
// config.
Name string `json:"name,omitempty"`
// Properties: [Output Only] The current properties of the resource
// Properties: Output only. The current properties of the resource
// before any references have been filled in. Returned as serialized
// YAML.
Properties string `json:"properties,omitempty"`
// Type: [Output Only] The type of the resource, for example
// Type: Output only. The type of the resource, for example
// compute.v1.instance, or cloudfunctions.v1beta1.function.
Type string `json:"type,omitempty"`
// Update: [Output Only] If Deployment Manager is currently updating or
// Update: Output only. If Deployment Manager is currently updating or
// previewing an update to this resource, the updated configuration
// appears here.
Update *ResourceUpdate `json:"update,omitempty"`
// UpdateTime: [Output Only] Timestamp when the resource was updated, in
// UpdateTime: Output only. Timestamp when the resource was updated, in
// RFC3339 text format .
UpdateTime string `json:"updateTime,omitempty"`
// Url: [Output Only] The URL of the actual resource.
// Url: Output only. The URL of the actual resource.
Url string `json:"url,omitempty"`
// Warnings: [Output Only] If warning messages are generated during
// Warnings: Output only. If warning messages are generated during
// processing of this resource, this field will be populated.
Warnings []*ResourceWarnings `json:"warnings,omitempty"`
@ -1602,31 +1603,31 @@ type ResourceUpdate struct {
// after updating the resource itself.
AccessControl *ResourceAccessControl `json:"accessControl,omitempty"`
// Error: [Output Only] If errors are generated during update of the
// Error: Output only. If errors are generated during update of the
// resource, this field will be populated.
Error *ResourceUpdateError `json:"error,omitempty"`
// FinalProperties: [Output Only] The expanded properties of the
// resource with reference values expanded. Returned as serialized YAML.
// FinalProperties: Output only. The expanded properties of the resource
// with reference values expanded. Returned as serialized YAML.
FinalProperties string `json:"finalProperties,omitempty"`
// Intent: [Output Only] The intent of the resource: PREVIEW, UPDATE, or
// Intent: Output only. The intent of the resource: PREVIEW, UPDATE, or
// CANCEL.
Intent string `json:"intent,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the update
// Manifest: Output only. URL of the manifest representing the update
// configuration of this resource.
Manifest string `json:"manifest,omitempty"`
// Properties: [Output Only] The set of updated properties for this
// Properties: Output only. The set of updated properties for this
// resource, before references are expanded. Returned as serialized
// YAML.
Properties string `json:"properties,omitempty"`
// State: [Output Only] The state of the resource.
// State: Output only. The state of the resource.
State string `json:"state,omitempty"`
// Warnings: [Output Only] If warning messages are generated during
// Warnings: Output only. If warning messages are generated during
// processing of this resource, this field will be populated.
Warnings []*ResourceUpdateWarnings `json:"warnings,omitempty"`
@ -1653,7 +1654,7 @@ func (s *ResourceUpdate) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ResourceUpdateError: [Output Only] If errors are generated during
// ResourceUpdateError: Output only. If errors are generated during
// update of the resource, this field will be populated.
type ResourceUpdateError struct {
// Errors: [Output Only] The array of errors encountered while
@ -1976,22 +1977,22 @@ func (s *TestPermissionsResponse) MarshalJSON() ([]byte, error) {
// Type: A resource type supported by Deployment Manager.
type Type struct {
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the type was created, in
// InsertTime: Output only. Timestamp when the type was created, in
// RFC3339 text format.
InsertTime string `json:"insertTime,omitempty"`
// Name: Name of the type.
Name string `json:"name,omitempty"`
// Operation: [Output Only] The Operation that most recently ran, or is
// Operation: Output only. The Operation that most recently ran, or is
// currently running, on this type.
Operation *Operation `json:"operation,omitempty"`
// SelfLink: [Output Only] Self link for the type.
// SelfLink: Output only. Self link for the type.
SelfLink string `json:"selfLink,omitempty"`
// ForceSendFields is a list of field names (e.g. "Id") to
@ -2023,7 +2024,7 @@ type TypesListResponse struct {
// NextPageToken: A token used to continue a truncated list request.
NextPageToken string `json:"nextPageToken,omitempty"`
// Types: [Output Only] A list of resource types supported by Deployment
// Types: Output only. A list of resource types supported by Deployment
// Manager.
Types []*Type `json:"types,omitempty"`

View file

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/pIU6gkhdkztp310WN4djWTN4XKE\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/pNhnika0vHNoLBFUO60LmseDNyE\"",
"discoveryVersion": "v1",
"id": "deploymentmanager:v2beta",
"name": "deploymentmanager",
"canonicalName": "Deployment Manager V2Beta",
"version": "v2beta",
"revision": "20170907",
"revision": "20170914",
"title": "Google Cloud Deployment Manager API V2Beta Methods",
"description": "The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/deploymentmanager/v2beta/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "deploymentmanager/v2beta/projects/",
"batchPath": "batch",
"batchPath": "batch/deploymentmanager/v2beta",
"parameters": {
"alt": {
"type": "string",
@ -227,12 +227,12 @@
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the composite type was created, in RFC3339 text format."
"description": "Output only. Timestamp when the composite type was created, in RFC3339 text format."
},
"labels": {
"type": "array",
@ -247,11 +247,11 @@
},
"operation": {
"$ref": "Operation",
"description": "[Output Only] The Operation that most recently ran, or is currently running, on this composite type."
"description": "Output only. The Operation that most recently ran, or is currently running, on this composite type."
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the type provider."
"description": "Output only. Self link for the type provider."
},
"status": {
"type": "string"
@ -281,7 +281,7 @@
"properties": {
"compositeTypes": {
"type": "array",
"description": "[Output Only] A list of resource composite types supported by Deployment Manager.",
"description": "Output only. A list of resource composite types supported by Deployment Manager.",
"items": {
"$ref": "CompositeType"
}
@ -372,12 +372,12 @@
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the deployment was created, in RFC3339 text format ."
"description": "Output only. Timestamp when the deployment was created, in RFC3339 text format ."
},
"labels": {
"type": "array",
@ -388,7 +388,7 @@
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the last manifest that was successfully deployed."
"description": "Output only. URL of the manifest representing the last manifest that was successfully deployed."
},
"name": {
"type": "string",
@ -396,11 +396,11 @@
},
"operation": {
"$ref": "Operation",
"description": "[Output Only] The Operation that most recently ran, or is currently running, on this deployment."
"description": "Output only. The Operation that most recently ran, or is currently running, on this deployment."
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the deployment."
"description": "Output only. Self link for the deployment."
},
"target": {
"$ref": "TargetConfiguration",
@ -408,7 +408,7 @@
},
"update": {
"$ref": "DeploymentUpdate",
"description": "[Output Only] If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here."
"description": "Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here."
}
}
},
@ -431,18 +431,18 @@
"properties": {
"description": {
"type": "string",
"description": "[Output Only] An optional user-provided description of the deployment after the current update has been applied."
"description": "Output only. An optional user-provided description of the deployment after the current update has been applied."
},
"labels": {
"type": "array",
"description": "[Output Only] Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?",
"description": "Output only. Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?",
"items": {
"$ref": "DeploymentUpdateLabelEntry"
}
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the update configuration of this deployment."
"description": "Output only. URL of the manifest representing the update configuration of this deployment."
}
}
},
@ -477,14 +477,14 @@
"properties": {
"deployments": {
"type": "array",
"description": "[Output Only] The deployments contained in this response.",
"description": "Output only. The deployments contained in this response.",
"items": {
"$ref": "Deployment"
}
},
"nextPageToken": {
"type": "string",
"description": "[Output Only] A token used to continue a truncated list request."
"description": "Output only. A token used to continue a truncated list request."
}
}
},
@ -628,39 +628,39 @@
"properties": {
"config": {
"$ref": "ConfigFile",
"description": "[Output Only] The YAML configuration for this manifest."
"description": "Output only. The YAML configuration for this manifest."
},
"expandedConfig": {
"type": "string",
"description": "[Output Only] The fully-expanded configuration file, including any templates and references."
"description": "Output only. The fully-expanded configuration file, including any templates and references."
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"imports": {
"type": "array",
"description": "[Output Only] The imported files for this manifest.",
"description": "Output only. The imported files for this manifest.",
"items": {
"$ref": "ImportFile"
}
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the manifest was created, in RFC3339 text format."
"description": "Output only. Timestamp when the manifest was created, in RFC3339 text format."
},
"layout": {
"type": "string",
"description": "[Output Only] The YAML layout for this manifest."
"description": "Output only. The YAML layout for this manifest."
},
"name": {
"type": "string",
"description": "[Output Only] The name of the manifest."
"description": "Output only.\n\nThe name of the manifest."
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the manifest."
"description": "Output only. Self link for the manifest."
}
}
},
@ -671,14 +671,14 @@
"properties": {
"manifests": {
"type": "array",
"description": "[Output Only] Manifests contained in this list response.",
"description": "Output only. Manifests contained in this list response.",
"items": {
"$ref": "Manifest"
}
},
"nextPageToken": {
"type": "string",
"description": "[Output Only] A token used to continue a truncated list request."
"description": "Output only. A token used to continue a truncated list request."
}
}
},
@ -846,11 +846,11 @@
"properties": {
"nextPageToken": {
"type": "string",
"description": "[Output Only] A token used to continue a truncated list request."
"description": "Output only. A token used to continue a truncated list request."
},
"operations": {
"type": "array",
"description": "[Output Only] Operations contained in this list response.",
"description": "Output only. Operations contained in this list response.",
"items": {
"$ref": "Operation"
}
@ -932,48 +932,48 @@
},
"finalProperties": {
"type": "string",
"description": "[Output Only] The evaluated properties of the resource with references expanded. Returned as serialized YAML."
"description": "Output only. The evaluated properties of the resource with references expanded. Returned as serialized YAML."
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the resource was created or acquired, in RFC3339 text format ."
"description": "Output only. Timestamp when the resource was created or acquired, in RFC3339 text format ."
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the current configuration of this resource."
"description": "Output only. URL of the manifest representing the current configuration of this resource."
},
"name": {
"type": "string",
"description": "[Output Only] The name of the resource as it appears in the YAML config."
"description": "Output only. The name of the resource as it appears in the YAML config."
},
"properties": {
"type": "string",
"description": "[Output Only] The current properties of the resource before any references have been filled in. Returned as serialized YAML."
"description": "Output only. The current properties of the resource before any references have been filled in. Returned as serialized YAML."
},
"type": {
"type": "string",
"description": "[Output Only] The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function."
"description": "Output only. The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function."
},
"update": {
"$ref": "ResourceUpdate",
"description": "[Output Only] If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here."
"description": "Output only. If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here."
},
"updateTime": {
"type": "string",
"description": "[Output Only] Timestamp when the resource was updated, in RFC3339 text format ."
"description": "Output only. Timestamp when the resource was updated, in RFC3339 text format ."
},
"url": {
"type": "string",
"description": "[Output Only] The URL of the actual resource."
"description": "Output only. The URL of the actual resource."
},
"warnings": {
"type": "array",
"description": "[Output Only] If warning messages are generated during processing of this resource, this field will be populated.",
"description": "Output only. If warning messages are generated during processing of this resource, this field will be populated.",
"items": {
"type": "object",
"properties": {
@ -1029,7 +1029,7 @@
},
"error": {
"type": "object",
"description": "[Output Only] If errors are generated during update of the resource, this field will be populated.",
"description": "Output only. If errors are generated during update of the resource, this field will be populated.",
"properties": {
"errors": {
"type": "array",
@ -1056,27 +1056,27 @@
},
"finalProperties": {
"type": "string",
"description": "[Output Only] The expanded properties of the resource with reference values expanded. Returned as serialized YAML."
"description": "Output only. The expanded properties of the resource with reference values expanded. Returned as serialized YAML."
},
"intent": {
"type": "string",
"description": "[Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL."
"description": "Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL."
},
"manifest": {
"type": "string",
"description": "[Output Only] URL of the manifest representing the update configuration of this resource."
"description": "Output only. URL of the manifest representing the update configuration of this resource."
},
"properties": {
"type": "string",
"description": "[Output Only] The set of updated properties for this resource, before references are expanded. Returned as serialized YAML."
"description": "Output only. The set of updated properties for this resource, before references are expanded. Returned as serialized YAML."
},
"state": {
"type": "string",
"description": "[Output Only] The state of the resource."
"description": "Output only. The state of the resource."
},
"warnings": {
"type": "array",
"description": "[Output Only] If warning messages are generated during processing of this resource, this field will be populated.",
"description": "Output only. If warning messages are generated during processing of this resource, this field will be populated.",
"items": {
"type": "object",
"properties": {
@ -1274,12 +1274,12 @@
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the type was created, in RFC3339 text format."
"description": "Output only. Timestamp when the type was created, in RFC3339 text format."
},
"labels": {
"type": "array",
@ -1294,11 +1294,11 @@
},
"operation": {
"$ref": "Operation",
"description": "[Output Only] The Operation that most recently ran, or is currently running, on this type."
"description": "Output only. The Operation that most recently ran, or is currently running, on this type."
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the type."
"description": "Output only. Self link for the type."
}
}
},
@ -1317,7 +1317,7 @@
},
"kind": {
"type": "string",
"description": "[Output Only] Type of the output. Always deploymentManager#TypeInfo for TypeInfo.",
"description": "Output only. Type of the output. Always deploymentManager#TypeInfo for TypeInfo.",
"default": "deploymentmanager#typeInfo"
},
"name": {
@ -1330,7 +1330,7 @@
},
"selfLink": {
"type": "string",
"description": "[Output Only] Server-defined URL for the resource."
"description": "Output only. Server-defined URL for the resource."
},
"title": {
"type": "string",
@ -1391,12 +1391,12 @@
},
"id": {
"type": "string",
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
"description": "Output only. Unique identifier for the resource; defined by the server.",
"format": "uint64"
},
"insertTime": {
"type": "string",
"description": "[Output Only] Timestamp when the type provider was created, in RFC3339 text format."
"description": "Output only. Timestamp when the type provider was created, in RFC3339 text format."
},
"labels": {
"type": "array",
@ -1411,7 +1411,7 @@
},
"operation": {
"$ref": "Operation",
"description": "[Output Only] The Operation that most recently ran, or is currently running, on this type provider."
"description": "Output only. The Operation that most recently ran, or is currently running, on this type provider."
},
"options": {
"$ref": "Options",
@ -1419,7 +1419,7 @@
},
"selfLink": {
"type": "string",
"description": "[Output Only] Self link for the type provider."
"description": "Output only. Self link for the type provider."
}
}
},
@ -1446,7 +1446,7 @@
},
"typeProviders": {
"type": "array",
"description": "[Output Only] A list of resource type providers supported by Deployment Manager.",
"description": "Output only. A list of resource type providers supported by Deployment Manager.",
"items": {
"$ref": "TypeProvider"
}
@ -1464,7 +1464,7 @@
},
"types": {
"type": "array",
"description": "[Output Only] A list of resource type info.",
"description": "Output only. A list of resource type info.",
"items": {
"$ref": "TypeInfo"
}
@ -1482,7 +1482,7 @@
},
"types": {
"type": "array",
"description": "[Output Only] A list of resource types supported by Deployment Manager.",
"description": "Output only. A list of resource types supported by Deployment Manager.",
"items": {
"$ref": "Type"
}

View file

@ -470,11 +470,11 @@ type CompositeType struct {
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the composite type was
// InsertTime: Output only. Timestamp when the composite type was
// created, in RFC3339 text format.
InsertTime string `json:"insertTime,omitempty"`
@ -489,11 +489,11 @@ type CompositeType struct {
// Name: Name of the composite type.
Name string `json:"name,omitempty"`
// Operation: [Output Only] The Operation that most recently ran, or is
// Operation: Output only. The Operation that most recently ran, or is
// currently running, on this composite type.
Operation *Operation `json:"operation,omitempty"`
// SelfLink: [Output Only] Self link for the type provider.
// SelfLink: Output only. Self link for the type provider.
SelfLink string `json:"selfLink,omitempty"`
Status string `json:"status,omitempty"`
@ -559,7 +559,7 @@ func (s *CompositeTypeLabelEntry) MarshalJSON() ([]byte, error) {
// CompositeTypesListResponse: A response that returns all Composite
// Types supported by Deployment Manager
type CompositeTypesListResponse struct {
// CompositeTypes: [Output Only] A list of resource composite types
// CompositeTypes: Output only. A list of resource composite types
// supported by Deployment Manager.
CompositeTypes []*CompositeType `json:"compositeTypes,omitempty"`
@ -718,11 +718,11 @@ type Deployment struct {
// fingerprint value, perform a get() request to a deployment.
Fingerprint string `json:"fingerprint,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the deployment was created,
// InsertTime: Output only. Timestamp when the deployment was created,
// in RFC3339 text format .
InsertTime string `json:"insertTime,omitempty"`
@ -734,7 +734,7 @@ type Deployment struct {
// ([a-z]([-a-z0-9]*[a-z0-9])?)?
Labels []*DeploymentLabelEntry `json:"labels,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the last
// Manifest: Output only. URL of the manifest representing the last
// manifest that was successfully deployed.
Manifest string `json:"manifest,omitempty"`
@ -747,18 +747,18 @@ type Deployment struct {
// last character, which cannot be a dash.
Name string `json:"name,omitempty"`
// Operation: [Output Only] The Operation that most recently ran, or is
// Operation: Output only. The Operation that most recently ran, or is
// currently running, on this deployment.
Operation *Operation `json:"operation,omitempty"`
// SelfLink: [Output Only] Self link for the deployment.
// SelfLink: Output only. Self link for the deployment.
SelfLink string `json:"selfLink,omitempty"`
// Target: [Input Only] The parameters that define your deployment,
// including the deployment configuration and relevant templates.
Target *TargetConfiguration `json:"target,omitempty"`
// Update: [Output Only] If Deployment Manager is currently updating or
// Update: Output only. If Deployment Manager is currently updating or
// previewing an update to this deployment, the updated configuration
// appears here.
Update *DeploymentUpdate `json:"update,omitempty"`
@ -819,11 +819,11 @@ func (s *DeploymentLabelEntry) MarshalJSON() ([]byte, error) {
}
type DeploymentUpdate struct {
// Description: [Output Only] An optional user-provided description of
// Description: Output only. An optional user-provided description of
// the deployment after the current update has been applied.
Description string `json:"description,omitempty"`
// Labels: [Output Only] Map of labels; provided by the client when the
// Labels: Output only. Map of labels; provided by the client when the
// resource is created or updated. Specifically: Label keys must be
// between 1 and 63 characters long and must conform to the following
// regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be
@ -831,7 +831,7 @@ type DeploymentUpdate struct {
// expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
Labels []*DeploymentUpdateLabelEntry `json:"labels,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the update
// Manifest: Output only. URL of the manifest representing the update
// configuration of this deployment.
Manifest string `json:"manifest,omitempty"`
@ -927,12 +927,11 @@ func (s *DeploymentsCancelPreviewRequest) MarshalJSON() ([]byte, error) {
// deployments and a page token used to build the next request if the
// request has been truncated.
type DeploymentsListResponse struct {
// Deployments: [Output Only] The deployments contained in this
// response.
// Deployments: Output only. The deployments contained in this response.
Deployments []*Deployment `json:"deployments,omitempty"`
// NextPageToken: [Output Only] A token used to continue a truncated
// list request.
// NextPageToken: Output only. A token used to continue a truncated list
// request.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -1270,31 +1269,33 @@ func (s *LogConfigDataAccessOptions) MarshalJSON() ([]byte, error) {
}
type Manifest struct {
// Config: [Output Only] The YAML configuration for this manifest.
// Config: Output only. The YAML configuration for this manifest.
Config *ConfigFile `json:"config,omitempty"`
// ExpandedConfig: [Output Only] The fully-expanded configuration file,
// ExpandedConfig: Output only. The fully-expanded configuration file,
// including any templates and references.
ExpandedConfig string `json:"expandedConfig,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// Imports: [Output Only] The imported files for this manifest.
// Imports: Output only. The imported files for this manifest.
Imports []*ImportFile `json:"imports,omitempty"`
// InsertTime: [Output Only] Timestamp when the manifest was created, in
// InsertTime: Output only. Timestamp when the manifest was created, in
// RFC3339 text format.
InsertTime string `json:"insertTime,omitempty"`
// Layout: [Output Only] The YAML layout for this manifest.
// Layout: Output only. The YAML layout for this manifest.
Layout string `json:"layout,omitempty"`
// Name: [Output Only] The name of the manifest.
// Name: Output only.
//
// The name of the manifest.
Name string `json:"name,omitempty"`
// SelfLink: [Output Only] Self link for the manifest.
// SelfLink: Output only. Self link for the manifest.
SelfLink string `json:"selfLink,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -1328,11 +1329,11 @@ func (s *Manifest) MarshalJSON() ([]byte, error) {
// manifests and a page token used to build the next request if the
// request has been truncated.
type ManifestsListResponse struct {
// Manifests: [Output Only] Manifests contained in this list response.
// Manifests: Output only. Manifests contained in this list response.
Manifests []*Manifest `json:"manifests,omitempty"`
// NextPageToken: [Output Only] A token used to continue a truncated
// list request.
// NextPageToken: Output only. A token used to continue a truncated list
// request.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -1629,11 +1630,11 @@ func (s *OperationWarningsData) MarshalJSON() ([]byte, error) {
// operations and a page token used to build the next request if the
// request has been truncated.
type OperationsListResponse struct {
// NextPageToken: [Output Only] A token used to continue a truncated
// list request.
// NextPageToken: Output only. A token used to continue a truncated list
// request.
NextPageToken string `json:"nextPageToken,omitempty"`
// Operations: [Output Only] Operations contained in this list response.
// Operations: Output only. Operations contained in this list response.
Operations []*Operation `json:"operations,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -1796,48 +1797,48 @@ type Resource struct {
// AccessControl: The Access Control Policy set on this resource.
AccessControl *ResourceAccessControl `json:"accessControl,omitempty"`
// FinalProperties: [Output Only] The evaluated properties of the
// FinalProperties: Output only. The evaluated properties of the
// resource with references expanded. Returned as serialized YAML.
FinalProperties string `json:"finalProperties,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the resource was created or
// InsertTime: Output only. Timestamp when the resource was created or
// acquired, in RFC3339 text format .
InsertTime string `json:"insertTime,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the current
// Manifest: Output only. URL of the manifest representing the current
// configuration of this resource.
Manifest string `json:"manifest,omitempty"`
// Name: [Output Only] The name of the resource as it appears in the
// YAML config.
// Name: Output only. The name of the resource as it appears in the YAML
// config.
Name string `json:"name,omitempty"`
// Properties: [Output Only] The current properties of the resource
// Properties: Output only. The current properties of the resource
// before any references have been filled in. Returned as serialized
// YAML.
Properties string `json:"properties,omitempty"`
// Type: [Output Only] The type of the resource, for example
// Type: Output only. The type of the resource, for example
// compute.v1.instance, or cloudfunctions.v1beta1.function.
Type string `json:"type,omitempty"`
// Update: [Output Only] If Deployment Manager is currently updating or
// Update: Output only. If Deployment Manager is currently updating or
// previewing an update to this resource, the updated configuration
// appears here.
Update *ResourceUpdate `json:"update,omitempty"`
// UpdateTime: [Output Only] Timestamp when the resource was updated, in
// UpdateTime: Output only. Timestamp when the resource was updated, in
// RFC3339 text format .
UpdateTime string `json:"updateTime,omitempty"`
// Url: [Output Only] The URL of the actual resource.
// Url: Output only. The URL of the actual resource.
Url string `json:"url,omitempty"`
// Warnings: [Output Only] If warning messages are generated during
// Warnings: Output only. If warning messages are generated during
// processing of this resource, this field will be populated.
Warnings []*ResourceWarnings `json:"warnings,omitempty"`
@ -1976,31 +1977,31 @@ type ResourceUpdate struct {
// after updating the resource itself.
AccessControl *ResourceAccessControl `json:"accessControl,omitempty"`
// Error: [Output Only] If errors are generated during update of the
// Error: Output only. If errors are generated during update of the
// resource, this field will be populated.
Error *ResourceUpdateError `json:"error,omitempty"`
// FinalProperties: [Output Only] The expanded properties of the
// resource with reference values expanded. Returned as serialized YAML.
// FinalProperties: Output only. The expanded properties of the resource
// with reference values expanded. Returned as serialized YAML.
FinalProperties string `json:"finalProperties,omitempty"`
// Intent: [Output Only] The intent of the resource: PREVIEW, UPDATE, or
// Intent: Output only. The intent of the resource: PREVIEW, UPDATE, or
// CANCEL.
Intent string `json:"intent,omitempty"`
// Manifest: [Output Only] URL of the manifest representing the update
// Manifest: Output only. URL of the manifest representing the update
// configuration of this resource.
Manifest string `json:"manifest,omitempty"`
// Properties: [Output Only] The set of updated properties for this
// Properties: Output only. The set of updated properties for this
// resource, before references are expanded. Returned as serialized
// YAML.
Properties string `json:"properties,omitempty"`
// State: [Output Only] The state of the resource.
// State: Output only. The state of the resource.
State string `json:"state,omitempty"`
// Warnings: [Output Only] If warning messages are generated during
// Warnings: Output only. If warning messages are generated during
// processing of this resource, this field will be populated.
Warnings []*ResourceUpdateWarnings `json:"warnings,omitempty"`
@ -2027,7 +2028,7 @@ func (s *ResourceUpdate) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ResourceUpdateError: [Output Only] If errors are generated during
// ResourceUpdateError: Output only. If errors are generated during
// update of the resource, this field will be populated.
type ResourceUpdateError struct {
// Errors: [Output Only] The array of errors encountered while
@ -2425,11 +2426,11 @@ type Type struct {
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the type was created, in
// InsertTime: Output only. Timestamp when the type was created, in
// RFC3339 text format.
InsertTime string `json:"insertTime,omitempty"`
@ -2444,11 +2445,11 @@ type Type struct {
// Name: Name of the type.
Name string `json:"name,omitempty"`
// Operation: [Output Only] The Operation that most recently ran, or is
// Operation: Output only. The Operation that most recently ran, or is
// currently running, on this type.
Operation *Operation `json:"operation,omitempty"`
// SelfLink: [Output Only] Self link for the type.
// SelfLink: Output only. Self link for the type.
SelfLink string `json:"selfLink,omitempty"`
// ForceSendFields is a list of field names (e.g. "Base") to
@ -2484,7 +2485,7 @@ type TypeInfo struct {
// For swagger 1.2 this field will be empty.
DocumentationLink string `json:"documentationLink,omitempty"`
// Kind: [Output Only] Type of the output. Always
// Kind: Output only. Type of the output. Always
// deploymentManager#TypeInfo for TypeInfo.
Kind string `json:"kind,omitempty"`
@ -2495,7 +2496,7 @@ type TypeInfo struct {
// documentation link For template types, we return only a schema
Schema *TypeInfoSchemaInfo `json:"schema,omitempty"`
// SelfLink: [Output Only] Server-defined URL for the resource.
// SelfLink: Output only. Server-defined URL for the resource.
SelfLink string `json:"selfLink,omitempty"`
// Title: The title on the API descriptor URL provided.
@ -2606,11 +2607,11 @@ type TypeProvider struct {
// DescriptorUrl: Descriptor Url for the this type provider.
DescriptorUrl string `json:"descriptorUrl,omitempty"`
// Id: [Output Only] Unique identifier for the resource; defined by the
// Id: Output only. Unique identifier for the resource; defined by the
// server.
Id uint64 `json:"id,omitempty,string"`
// InsertTime: [Output Only] Timestamp when the type provider was
// InsertTime: Output only. Timestamp when the type provider was
// created, in RFC3339 text format.
InsertTime string `json:"insertTime,omitempty"`
@ -2625,7 +2626,7 @@ type TypeProvider struct {
// Name: Name of the type provider.
Name string `json:"name,omitempty"`
// Operation: [Output Only] The Operation that most recently ran, or is
// Operation: Output only. The Operation that most recently ran, or is
// currently running, on this type provider.
Operation *Operation `json:"operation,omitempty"`
@ -2633,7 +2634,7 @@ type TypeProvider struct {
// service.
Options *Options `json:"options,omitempty"`
// SelfLink: [Output Only] Self link for the type provider.
// SelfLink: Output only. Self link for the type provider.
SelfLink string `json:"selfLink,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -2698,7 +2699,7 @@ type TypeProvidersListResponse struct {
// NextPageToken: A token used to continue a truncated list request.
NextPageToken string `json:"nextPageToken,omitempty"`
// TypeProviders: [Output Only] A list of resource type providers
// TypeProviders: Output only. A list of resource type providers
// supported by Deployment Manager.
TypeProviders []*TypeProvider `json:"typeProviders,omitempty"`
@ -2733,7 +2734,7 @@ type TypeProvidersListTypesResponse struct {
// NextPageToken: A token used to continue a truncated list request.
NextPageToken string `json:"nextPageToken,omitempty"`
// Types: [Output Only] A list of resource type info.
// Types: Output only. A list of resource type info.
Types []*TypeInfo `json:"types,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -2769,7 +2770,7 @@ type TypesListResponse struct {
// NextPageToken: A token used to continue a truncated list request.
NextPageToken string `json:"nextPageToken,omitempty"`
// Types: [Output Only] A list of resource types supported by Deployment
// Types: Output only. A list of resource types supported by Deployment
// Manager.
Types []*Type `json:"types,omitempty"`

View file

@ -20,7 +20,7 @@
"basePath": "/dfareporting/v2.7/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "dfareporting/v2.7/",
"batchPath": "batch",
"batchPath": "batch/dfareporting/v2.7",
"parameters": {
"alt": {
"type": "string",

View file

@ -20,7 +20,7 @@
"basePath": "/dfareporting/v2.8/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "dfareporting/v2.8/",
"batchPath": "batch",
"batchPath": "batch/dfareporting/v2.8",
"parameters": {
"alt": {
"type": "string",

View file

@ -19,7 +19,7 @@
"basePath": "/discovery/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "discovery/v1/",
"batchPath": "batch",
"batchPath": "batch/discovery/v1",
"parameters": {
"alt": {
"type": "string",

File diff suppressed because it is too large Load diff

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