mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 21:05:10 +00:00
Update vendored library google.golang.org/api
This commit is contained in:
parent
5b6568875c
commit
c0960f538f
2
Gopkg.lock
generated
2
Gopkg.lock
generated
@ -215,7 +215,7 @@
|
||||
branch = "master"
|
||||
name = "google.golang.org/api"
|
||||
packages = ["gensupport","googleapi","googleapi/internal/uritemplates","storage/v1"]
|
||||
revision = "65b0d8655182691ad23b4fac11e6f7b897d9b634"
|
||||
revision = "dbbc13f71100fa6ece308335445fca6bb0dd5c2f"
|
||||
|
||||
[[projects]]
|
||||
name = "google.golang.org/appengine"
|
||||
|
480
vendor/google.golang.org/api/abusiveexperiencereport/v1/abusiveexperiencereport-api.json
generated
vendored
480
vendor/google.golang.org/api/abusiveexperiencereport/v1/abusiveexperiencereport-api.json
generated
vendored
@ -1,242 +1,4 @@
|
||||
{
|
||||
"ownerDomain": "google.com",
|
||||
"name": "abusiveexperiencereport",
|
||||
"batchPath": "batch",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
"title": "Google Abusive Experience Report API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"sites": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "SiteSummaryResponse"
|
||||
},
|
||||
"parameters": {
|
||||
"name": {
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^sites/[^/]+$",
|
||||
"location": "path",
|
||||
"description": "The required site name. This is the site property whose abusive\nexperiences have been reviewed, and it must 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\nreturned by the API will lead to the verification page, prompting the user\nto go through that process before they can gain access to the Abusive\nExperience Report."
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/xapi.zoo"
|
||||
],
|
||||
"flatPath": "v1/sites/{sitesId}",
|
||||
"id": "abusiveexperiencereport.sites.get",
|
||||
"path": "v1/{+name}",
|
||||
"description": "Gets a summary of the abusive experience rating of a site."
|
||||
}
|
||||
}
|
||||
},
|
||||
"violatingSites": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"response": {
|
||||
"$ref": "ViolatingSitesResponse"
|
||||
},
|
||||
"parameterOrder": [],
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/xapi.zoo"
|
||||
],
|
||||
"parameters": {},
|
||||
"flatPath": "v1/violatingSites",
|
||||
"path": "v1/violatingSites",
|
||||
"id": "abusiveexperiencereport.violatingSites.list",
|
||||
"description": "Lists sites with Abusive Experience Report statuses of \"Failing\"."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"upload_protocol": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"uploadType": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
|
||||
},
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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": "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"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access 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.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://abusiveexperiencereport.googleapis.com/",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "View Abusive Experience Report data, and get a list of sites that have a significant number of abusive experiences.",
|
||||
"servicePath": "",
|
||||
"basePath": "",
|
||||
"revision": "20171129",
|
||||
"documentationLink": "https://developers.google.com/abusive-experience-report/",
|
||||
"id": "abusiveexperiencereport:v1",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": true,
|
||||
"schemas": {
|
||||
"ViolatingSitesResponse": {
|
||||
"properties": {
|
||||
"violatingSites": {
|
||||
"description": "A list of summaries of violating sites.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "SiteSummaryResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ViolatingSitesResponse",
|
||||
"description": "Response message for ListViolatingSites.",
|
||||
"type": "object"
|
||||
},
|
||||
"SiteSummaryResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"abusiveStatus": {
|
||||
"enumDescriptions": [
|
||||
"Not reviewed.",
|
||||
"Passing.",
|
||||
"Failing."
|
||||
],
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"PASSING",
|
||||
"FAILING"
|
||||
],
|
||||
"description": "The status of the site reviewed for the abusive experiences.",
|
||||
"type": "string"
|
||||
},
|
||||
"enforcementTime": {
|
||||
"description": "The date on which enforcement begins.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"filterStatus": {
|
||||
"description": "The abusive experience enforcement status of the site.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"N/A.",
|
||||
"Ad filtering is on.",
|
||||
"Ad filtering is off.",
|
||||
"Ad filtering is paused.",
|
||||
"Ad filtering is pending."
|
||||
],
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"ON",
|
||||
"OFF",
|
||||
"PAUSED",
|
||||
"PENDING"
|
||||
]
|
||||
},
|
||||
"underReview": {
|
||||
"description": "Whether the site is currently under review.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"reportUrl": {
|
||||
"description": "A link that leads to a full abusive experience report.",
|
||||
"type": "string"
|
||||
},
|
||||
"reviewedSite": {
|
||||
"type": "string",
|
||||
"description": "The name of the site reviewed."
|
||||
},
|
||||
"lastChangeTime": {
|
||||
"description": "The last time that the site changed status.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "SiteSummaryResponse",
|
||||
"description": "Response message for GetSiteSummary."
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"canonicalName": "Abusive Experience Report",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
@ -246,5 +8,243 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://abusiveexperiencereport.googleapis.com/"
|
||||
}
|
||||
"basePath": "",
|
||||
"baseUrl": "https://abusiveexperiencereport.googleapis.com/",
|
||||
"batchPath": "batch",
|
||||
"canonicalName": "Abusive Experience Report",
|
||||
"description": "View Abusive Experience Report data, and get a list of sites that have a significant number of abusive experiences.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/abusive-experience-report/",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"id": "abusiveexperiencereport:v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "abusiveexperiencereport",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"$.xgafv": {
|
||||
"description": "V1 error format.",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for response.",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"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",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"sites": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Gets a summary of the abusive experience rating of a site.",
|
||||
"flatPath": "v1/sites/{sitesId}",
|
||||
"httpMethod": "GET",
|
||||
"id": "abusiveexperiencereport.sites.get",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The required site name. This is the site property whose abusive\nexperiences have been reviewed, and it must 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\nreturned by the API will lead to the verification page, prompting the user\nto go through that process before they can gain access to the Abusive\nExperience Report.",
|
||||
"location": "path",
|
||||
"pattern": "^sites/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}",
|
||||
"response": {
|
||||
"$ref": "SiteSummaryResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/xapi.zoo"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"violatingSites": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists sites with Abusive Experience Report statuses of \"Failing\".",
|
||||
"flatPath": "v1/violatingSites",
|
||||
"httpMethod": "GET",
|
||||
"id": "abusiveexperiencereport.violatingSites.list",
|
||||
"parameterOrder": [],
|
||||
"parameters": {},
|
||||
"path": "v1/violatingSites",
|
||||
"response": {
|
||||
"$ref": "ViolatingSitesResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/xapi.zoo"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180129",
|
||||
"rootUrl": "https://abusiveexperiencereport.googleapis.com/",
|
||||
"schemas": {
|
||||
"SiteSummaryResponse": {
|
||||
"description": "Response message for GetSiteSummary.",
|
||||
"id": "SiteSummaryResponse",
|
||||
"properties": {
|
||||
"abusiveStatus": {
|
||||
"description": "The status of the site reviewed for the abusive experiences.",
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"PASSING",
|
||||
"FAILING"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Not reviewed.",
|
||||
"Passing.",
|
||||
"Failing."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"enforcementTime": {
|
||||
"description": "The date on which enforcement begins.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"filterStatus": {
|
||||
"description": "The abusive experience enforcement status of the site.",
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"ON",
|
||||
"OFF",
|
||||
"PAUSED",
|
||||
"PENDING"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"N/A.",
|
||||
"Ad filtering is on.",
|
||||
"Ad filtering is off.",
|
||||
"Ad filtering is paused.",
|
||||
"Ad filtering is pending."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"lastChangeTime": {
|
||||
"description": "The last time that the site changed status.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"reportUrl": {
|
||||
"description": "A link that leads to a full abusive experience report.",
|
||||
"type": "string"
|
||||
},
|
||||
"reviewedSite": {
|
||||
"description": "The name of the site reviewed.",
|
||||
"type": "string"
|
||||
},
|
||||
"underReview": {
|
||||
"description": "Whether the site is currently under review.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ViolatingSitesResponse": {
|
||||
"description": "Response message for ListViolatingSites.",
|
||||
"id": "ViolatingSitesResponse",
|
||||
"properties": {
|
||||
"violatingSites": {
|
||||
"description": "A list of summaries of violating sites.",
|
||||
"items": {
|
||||
"$ref": "SiteSummaryResponse"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "",
|
||||
"title": "Google Abusive Experience Report API",
|
||||
"version": "v1",
|
||||
"version_module": true
|
||||
}
|
316
vendor/google.golang.org/api/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-api.json
generated
vendored
316
vendor/google.golang.org/api/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-api.json
generated
vendored
@ -1,169 +1,157 @@
|
||||
{
|
||||
"ownerName": "Google",
|
||||
"basePath": "",
|
||||
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
|
||||
"batchPath": "batch",
|
||||
"description": "Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).\n",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": true,
|
||||
"resources": {
|
||||
"ampUrls": {
|
||||
"methods": {
|
||||
"batchGet": {
|
||||
"httpMethod": "POST",
|
||||
"parameterOrder": [],
|
||||
"response": {
|
||||
"$ref": "BatchGetAmpUrlsResponse"
|
||||
},
|
||||
"parameters": {},
|
||||
"flatPath": "v1/ampUrls:batchGet",
|
||||
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
|
||||
"path": "v1/ampUrls:batchGet",
|
||||
"request": {
|
||||
"$ref": "BatchGetAmpUrlsRequest"
|
||||
},
|
||||
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format)."
|
||||
}
|
||||
}
|
||||
}
|
||||
"documentationLink": "https://developers.google.com/amp/cache/",
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"id": "acceleratedmobilepageurl:v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "acceleratedmobilepageurl",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response."
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "JSONP"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"location": "query",
|
||||
"description": "V1 error format.",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
]
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"default": "json",
|
||||
"description": "Data format for response.",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"access_token": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "OAuth access token."
|
||||
},
|
||||
"key": {
|
||||
"location": "query",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string"
|
||||
},
|
||||
"quotaUser": {
|
||||
"location": "query",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"BatchGetAmpUrlsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ampUrls": {
|
||||
"description": "For each URL in BatchAmpUrlsRequest, the URL response. The response might\nnot be in the same order as URLs in the batch request.\nIf BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated\nonly once.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "AmpUrl"
|
||||
}
|
||||
},
|
||||
"urlErrors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "AmpUrlError"
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"ampUrls": {
|
||||
"methods": {
|
||||
"batchGet": {
|
||||
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
|
||||
"flatPath": "v1/ampUrls:batchGet",
|
||||
"httpMethod": "POST",
|
||||
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
|
||||
"parameterOrder": [],
|
||||
"parameters": {},
|
||||
"path": "v1/ampUrls:batchGet",
|
||||
"request": {
|
||||
"$ref": "BatchGetAmpUrlsRequest"
|
||||
},
|
||||
"description": "The errors for requested URLs that have no AMP URL."
|
||||
"response": {
|
||||
"$ref": "BatchGetAmpUrlsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "BatchGetAmpUrlsResponse",
|
||||
"description": "Batch AMP URL response."
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180203",
|
||||
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
|
||||
"schemas": {
|
||||
"AmpUrl": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cdnAmpUrl": {
|
||||
"type": "string",
|
||||
"description": "The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to\nthe cached document in the Google AMP Cache."
|
||||
},
|
||||
"originalUrl": {
|
||||
"type": "string",
|
||||
"description": "The original non-AMP URL."
|
||||
},
|
||||
"ampUrl": {
|
||||
"type": "string",
|
||||
"description": "The AMP URL pointing to the publisher's web server."
|
||||
}
|
||||
},
|
||||
"description": "AMP URL response for a requested URL.",
|
||||
"id": "AmpUrl",
|
||||
"description": "AMP URL response for a requested URL."
|
||||
},
|
||||
"AmpUrlError": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ampUrl": {
|
||||
"description": "The AMP URL pointing to the publisher's web server.",
|
||||
"type": "string"
|
||||
},
|
||||
"cdnAmpUrl": {
|
||||
"description": "The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to\nthe cached document in the Google AMP Cache.",
|
||||
"type": "string"
|
||||
},
|
||||
"originalUrl": {
|
||||
"description": "The original non-AMP URL.",
|
||||
"type": "string"
|
||||
},
|
||||
"errorMessage": {
|
||||
"type": "string",
|
||||
"description": "An optional descriptive error message."
|
||||
},
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AmpUrlError": {
|
||||
"description": "AMP URL Error resource for a requested URL that couldn't be found.",
|
||||
"id": "AmpUrlError",
|
||||
"properties": {
|
||||
"errorCode": {
|
||||
"description": "The error code of an API call.",
|
||||
"enum": [
|
||||
"ERROR_CODE_UNSPECIFIED",
|
||||
"INPUT_URL_NOT_FOUND",
|
||||
@ -172,8 +160,6 @@
|
||||
"URL_IS_VALID_AMP",
|
||||
"URL_IS_INVALID_AMP"
|
||||
],
|
||||
"description": "The error code of an API call.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Not specified error.",
|
||||
"Indicates the requested URL is not found in the index, possibly because\nit's unable to be found, not able to be accessed by Googlebot, or some\nother error.",
|
||||
@ -181,56 +167,70 @@
|
||||
"Indicates some kind of application error occurred at the server.\nClient advised to retry.",
|
||||
"DEPRECATED: Indicates the requested URL is a valid AMP URL. This is a\nnon-error state, should not be relied upon as a sign of success or\nfailure. It will be removed in future versions of the API.",
|
||||
"Indicates that an AMP URL has been found that corresponds to the request\nURL, but it is not valid AMP HTML."
|
||||
]
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"errorMessage": {
|
||||
"description": "An optional descriptive error message.",
|
||||
"type": "string"
|
||||
},
|
||||
"originalUrl": {
|
||||
"description": "The original non-AMP URL.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "AmpUrlError",
|
||||
"description": "AMP URL Error resource for a requested URL that couldn't be found."
|
||||
"type": "object"
|
||||
},
|
||||
"BatchGetAmpUrlsRequest": {
|
||||
"description": "AMP URL request for a batch of URLs.",
|
||||
"type": "object",
|
||||
"id": "BatchGetAmpUrlsRequest",
|
||||
"properties": {
|
||||
"urls": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "List of URLs to look up for the paired AMP URLs.\nThe URLs are case-sensitive. Up to 50 URLs per lookup\n(see [Usage Limits](/amp/cache/reference/limits))."
|
||||
},
|
||||
"lookupStrategy": {
|
||||
"description": "The lookup_strategy being requested.",
|
||||
"enum": [
|
||||
"FETCH_LIVE_DOC",
|
||||
"IN_INDEX_DOC"
|
||||
],
|
||||
"description": "The lookup_strategy being requested.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"FETCH_LIVE_DOC strategy involves live document fetch of URLs not found in\nthe index. Any request URL not found in the index is crawled in realtime\nto validate if there is a corresponding AMP URL. This strategy has higher\ncoverage but with extra latency introduced by realtime crawling. This is\nthe default strategy. Applications using this strategy should set higher\nHTTP timeouts of the API calls.",
|
||||
"IN_INDEX_DOC strategy skips fetching live documents of URL(s) not found\nin index. For applications which need low latency use of IN_INDEX_DOC\nstrategy is recommended."
|
||||
]
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"urls": {
|
||||
"description": "List of URLs to look up for the paired AMP URLs.\nThe URLs are case-sensitive. Up to 50 URLs per lookup\n(see [Usage Limits](/amp/cache/reference/limits)).",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"id": "BatchGetAmpUrlsRequest"
|
||||
"type": "object"
|
||||
},
|
||||
"BatchGetAmpUrlsResponse": {
|
||||
"description": "Batch AMP URL response.",
|
||||
"id": "BatchGetAmpUrlsResponse",
|
||||
"properties": {
|
||||
"ampUrls": {
|
||||
"description": "For each URL in BatchAmpUrlsRequest, the URL response. The response might\nnot be in the same order as URLs in the batch request.\nIf BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated\nonly once.",
|
||||
"items": {
|
||||
"$ref": "AmpUrl"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"urlErrors": {
|
||||
"description": "The errors for requested URLs that have no AMP URL.",
|
||||
"items": {
|
||||
"$ref": "AmpUrlError"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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/",
|
||||
"basePath": "",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "acceleratedmobilepageurl",
|
||||
"batchPath": "batch",
|
||||
"id": "acceleratedmobilepageurl:v1",
|
||||
"documentationLink": "https://developers.google.com/amp/cache/",
|
||||
"revision": "20180110",
|
||||
"title": "Accelerated Mobile Pages (AMP) URL API"
|
||||
}
|
||||
"title": "Accelerated Mobile Pages (AMP) URL API",
|
||||
"version": "v1",
|
||||
"version_module": true
|
||||
}
|
1144
vendor/google.golang.org/api/adexchangebuyer/v1.2/adexchangebuyer-api.json
generated
vendored
1144
vendor/google.golang.org/api/adexchangebuyer/v1.2/adexchangebuyer-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
3262
vendor/google.golang.org/api/adexchangebuyer/v1.3/adexchangebuyer-api.json
generated
vendored
3262
vendor/google.golang.org/api/adexchangebuyer/v1.3/adexchangebuyer-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
7284
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-api.json
generated
vendored
7284
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
128
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-gen.go
generated
vendored
128
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-gen.go
generated
vendored
@ -218,6 +218,14 @@ type PubprofilesService struct {
|
||||
|
||||
// Account: Configuration data for an Ad Exchange buyer account.
|
||||
type Account struct {
|
||||
// ApplyPretargetingToNonGuaranteedDeals: When this is false, bid
|
||||
// requests that include a deal ID for a private auction or preferred
|
||||
// deal are always sent to your bidder. When true, all active
|
||||
// pretargeting configs will be applied to private auctions and
|
||||
// preferred deals. Programmatic Guaranteed deals (when enabled) are
|
||||
// always sent to your bidder.
|
||||
ApplyPretargetingToNonGuaranteedDeals bool `json:"applyPretargetingToNonGuaranteedDeals,omitempty"`
|
||||
|
||||
// BidderLocation: Your bidder locations that have distinct URLs.
|
||||
BidderLocation []*AccountBidderLocation `json:"bidderLocation,omitempty"`
|
||||
|
||||
@ -254,21 +262,22 @@ type Account struct {
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "BidderLocation") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "ApplyPretargetingToNonGuaranteedDeals") 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. "BidderLocation") 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.
|
||||
// "ApplyPretargetingToNonGuaranteedDeals") 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:"-"`
|
||||
}
|
||||
|
||||
@ -745,7 +754,8 @@ func (s *CreateOrdersResponse) MarshalJSON() ([]byte, error) {
|
||||
// Creative: A creative and its classification data.
|
||||
type Creative struct {
|
||||
// HTMLSnippet: The HTML snippet that displays the ad when inserted in
|
||||
// the web page. If set, videoURL should not be set.
|
||||
// the web page. If set, videoURL, videoVastXML, and nativeAd should not
|
||||
// be set.
|
||||
HTMLSnippet string `json:"HTMLSnippet,omitempty"`
|
||||
|
||||
// AccountId: Account id.
|
||||
@ -818,9 +828,9 @@ type Creative struct {
|
||||
// field should not be set in requests.
|
||||
Languages []string `json:"languages,omitempty"`
|
||||
|
||||
// NativeAd: If nativeAd is set, HTMLSnippet and the videoURL outside of
|
||||
// nativeAd should not be set. (The videoURL inside nativeAd can be
|
||||
// set.)
|
||||
// NativeAd: If nativeAd is set, HTMLSnippet, videoVastXML, and the
|
||||
// videoURL outside of nativeAd should not be set. (The videoURL inside
|
||||
// nativeAd can be set.)
|
||||
NativeAd *CreativeNativeAd `json:"nativeAd,omitempty"`
|
||||
|
||||
// OpenAuctionStatus: Top-level open auction status. Read-only. This
|
||||
@ -865,11 +875,16 @@ type Creative struct {
|
||||
// not be set in requests.
|
||||
Version int64 `json:"version,omitempty"`
|
||||
|
||||
// VideoURL: The URL to fetch a video ad. If set, HTMLSnippet and the
|
||||
// nativeAd should not be set. Note, this is different from
|
||||
// resource.native_ad.video_url above.
|
||||
// VideoURL: The URL to fetch a video ad. If set, HTMLSnippet,
|
||||
// videoVastXML, and nativeAd should not be set. Note, this is different
|
||||
// from resource.native_ad.video_url above.
|
||||
VideoURL string `json:"videoURL,omitempty"`
|
||||
|
||||
// VideoVastXML: The contents of a VAST document for a video ad. This
|
||||
// document should conform to the VAST 2.0 or 3.0 standard. If set,
|
||||
// HTMLSnippet, videoURL, and nativeAd and should not be set.
|
||||
VideoVastXML string `json:"videoVastXML,omitempty"`
|
||||
|
||||
// Width: Ad width.
|
||||
Width int64 `json:"width,omitempty"`
|
||||
|
||||
@ -1041,9 +1056,9 @@ func (s *CreativeFilteringReasonsReasons) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CreativeNativeAd: If nativeAd is set, HTMLSnippet and the videoURL
|
||||
// outside of nativeAd should not be set. (The videoURL inside nativeAd
|
||||
// can be set.)
|
||||
// CreativeNativeAd: If nativeAd is set, HTMLSnippet, videoVastXML, and
|
||||
// the videoURL outside of nativeAd should not be set. (The videoURL
|
||||
// inside nativeAd can be set.)
|
||||
type CreativeNativeAd struct {
|
||||
Advertiser string `json:"advertiser,omitempty"`
|
||||
|
||||
@ -3570,6 +3585,10 @@ type TargetingValue struct {
|
||||
// Filled in when the key is GOOG_DAYPART_TARGETING.
|
||||
DayPartTargetingValue *TargetingValueDayPartTargeting `json:"dayPartTargetingValue,omitempty"`
|
||||
|
||||
DemogAgeCriteriaValue *TargetingValueDemogAgeCriteria `json:"demogAgeCriteriaValue,omitempty"`
|
||||
|
||||
DemogGenderCriteriaValue *TargetingValueDemogGenderCriteria `json:"demogGenderCriteriaValue,omitempty"`
|
||||
|
||||
// LongValue: The long value to exclude/include.
|
||||
LongValue int64 `json:"longValue,omitempty,string"`
|
||||
|
||||
@ -3600,7 +3619,11 @@ func (s *TargetingValue) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// TargetingValueCreativeSize: Next Id: 7
|
||||
type TargetingValueCreativeSize struct {
|
||||
// AllowedFormats: The formats allowed by the publisher.
|
||||
AllowedFormats []string `json:"allowedFormats,omitempty"`
|
||||
|
||||
// CompanionSizes: For video size type, the list of companion sizes.
|
||||
CompanionSizes []*TargetingValueSize `json:"companionSizes,omitempty"`
|
||||
|
||||
@ -3617,7 +3640,7 @@ type TargetingValueCreativeSize struct {
|
||||
// SkippableAdType: The skippable ad type for video size.
|
||||
SkippableAdType string `json:"skippableAdType,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CompanionSizes") to
|
||||
// ForceSendFields is a list of field names (e.g. "AllowedFormats") 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
|
||||
@ -3625,7 +3648,7 @@ type TargetingValueCreativeSize struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CompanionSizes") to
|
||||
// NullFields is a list of field names (e.g. "AllowedFormats") 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
|
||||
@ -3703,6 +3726,61 @@ func (s *TargetingValueDayPartTargetingDayPart) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type TargetingValueDemogAgeCriteria struct {
|
||||
DemogAgeCriteriaIds []string `json:"demogAgeCriteriaIds,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DemogAgeCriteriaIds")
|
||||
// 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. "DemogAgeCriteriaIds") 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 *TargetingValueDemogAgeCriteria) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod TargetingValueDemogAgeCriteria
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type TargetingValueDemogGenderCriteria struct {
|
||||
DemogGenderCriteriaIds []string `json:"demogGenderCriteriaIds,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "DemogGenderCriteriaIds") 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. "DemogGenderCriteriaIds")
|
||||
// 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 *TargetingValueDemogGenderCriteria) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod TargetingValueDemogGenderCriteria
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type TargetingValueSize struct {
|
||||
// Height: The height of the creative.
|
||||
Height int64 `json:"height,omitempty"`
|
||||
|
6550
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json
generated
vendored
6550
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
51
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go
generated
vendored
51
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go
generated
vendored
@ -1065,6 +1065,8 @@ func (s *Correction) MarshalJSON() ([]byte, error) {
|
||||
}
|
||||
|
||||
// Creative: A creative and its classification data.
|
||||
//
|
||||
// Next ID: 31
|
||||
type Creative struct {
|
||||
// AccountId: The account that this creative belongs to.
|
||||
// Can be used to filter the response of the
|
||||
@ -1673,17 +1675,6 @@ type FilterSet struct {
|
||||
// "APP" - The ad impression appears in an app.
|
||||
Environment string `json:"environment,omitempty"`
|
||||
|
||||
// Format: DEPRECATED: use repeated formats field instead.
|
||||
// The format on which to filter; optional.
|
||||
//
|
||||
// Possible values:
|
||||
// "FORMAT_UNSPECIFIED" - A placeholder for an undefined format;
|
||||
// indicates that no format filter
|
||||
// will be applied.
|
||||
// "DISPLAY" - The ad impression is display format (i.e. an image).
|
||||
// "VIDEO" - The ad impression is video format.
|
||||
Format string `json:"format,omitempty"`
|
||||
|
||||
// Formats: The list of formats on which to filter; may be empty. The
|
||||
// filters
|
||||
// represented by multiple formats are ORed together (i.e. if
|
||||
@ -1694,8 +1685,14 @@ type FilterSet struct {
|
||||
// "FORMAT_UNSPECIFIED" - A placeholder for an undefined format;
|
||||
// indicates that no format filter
|
||||
// will be applied.
|
||||
// "DISPLAY" - The ad impression is display format (i.e. an image).
|
||||
// "VIDEO" - The ad impression is video format.
|
||||
// "NATIVE_DISPLAY" - The ad impression is a native ad, and display
|
||||
// (i.e. image) format.
|
||||
// "NATIVE_VIDEO" - The ad impression is a native ad, and video
|
||||
// format.
|
||||
// "NON_NATIVE_DISPLAY" - The ad impression is not a native ad, and
|
||||
// display (i.e. image) format.
|
||||
// "NON_NATIVE_VIDEO" - The ad impression is not a native ad, and
|
||||
// video format.
|
||||
Formats []string `json:"formats,omitempty"`
|
||||
|
||||
// Name: A user-defined name of the filter set. Filter set names must be
|
||||
@ -3347,6 +3344,10 @@ type VideoContent struct {
|
||||
// VideoUrl: The URL to fetch a video ad.
|
||||
VideoUrl string `json:"videoUrl,omitempty"`
|
||||
|
||||
// VideoVastXml: The contents of a VAST document for a video ad.
|
||||
// This document should conform to the VAST 2.0 or 3.0 standard.
|
||||
VideoVastXml string `json:"videoVastXml,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "VideoUrl") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
@ -5095,13 +5096,6 @@ func (r *AccountsCreativesService) Create(accountId string, creative *Creative)
|
||||
return c
|
||||
}
|
||||
|
||||
// AccountId1 sets the optional parameter "accountId1": The account the
|
||||
// creative belongs to.
|
||||
func (c *AccountsCreativesCreateCall) AccountId1(accountId1 string) *AccountsCreativesCreateCall {
|
||||
c.urlParams_.Set("accountId1", accountId1)
|
||||
return c
|
||||
}
|
||||
|
||||
// DuplicateIdMode sets the optional parameter "duplicateIdMode":
|
||||
// Indicates if multiple creatives can share an ID or not. Default
|
||||
// is
|
||||
@ -5215,11 +5209,6 @@ func (c *AccountsCreativesCreateCall) Do(opts ...googleapi.CallOption) (*Creativ
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "accountId1": {
|
||||
// "description": "The account the creative belongs to.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "duplicateIdMode": {
|
||||
// "description": "Indicates if multiple creatives can share an ID or not. Default is\nNO_DUPLICATES (one ID per creative).",
|
||||
// "enum": [
|
||||
@ -5784,13 +5773,6 @@ func (r *AccountsCreativesService) Update(accountId string, creativeId string, c
|
||||
return c
|
||||
}
|
||||
|
||||
// AccountId1 sets the optional parameter "accountId1": The account the
|
||||
// creative belongs to.
|
||||
func (c *AccountsCreativesUpdateCall) AccountId1(accountId1 string) *AccountsCreativesUpdateCall {
|
||||
c.urlParams_.Set("accountId1", accountId1)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@ -5893,11 +5875,6 @@ func (c *AccountsCreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creativ
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "accountId1": {
|
||||
// "description": "The account the creative belongs to.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "creativeId": {
|
||||
// "description": "The buyer-defined creative ID of this creative.\nCan be used to filter the response of the\ncreatives.list\nmethod.",
|
||||
// "location": "path",
|
||||
|
2430
vendor/google.golang.org/api/adexchangeseller/v1.1/adexchangeseller-api.json
generated
vendored
2430
vendor/google.golang.org/api/adexchangeseller/v1.1/adexchangeseller-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
1790
vendor/google.golang.org/api/adexchangeseller/v1/adexchangeseller-api.json
generated
vendored
1790
vendor/google.golang.org/api/adexchangeseller/v1/adexchangeseller-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
2308
vendor/google.golang.org/api/adexchangeseller/v2.0/adexchangeseller-api.json
generated
vendored
2308
vendor/google.golang.org/api/adexchangeseller/v2.0/adexchangeseller-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
544
vendor/google.golang.org/api/adexperiencereport/v1/adexperiencereport-api.json
generated
vendored
544
vendor/google.golang.org/api/adexperiencereport/v1/adexperiencereport-api.json
generated
vendored
@ -1,273 +1,4 @@
|
||||
{
|
||||
"batchPath": "batch",
|
||||
"title": "Google Ad Experience Report API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"sites": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Gets a summary of the ad experience rating of a site.",
|
||||
"response": {
|
||||
"$ref": "SiteSummaryResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"name": {
|
||||
"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.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^sites/[^/]+$"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/xapi.zoo"
|
||||
],
|
||||
"flatPath": "v1/sites/{sitesId}",
|
||||
"path": "v1/{+name}",
|
||||
"id": "adexperiencereport.sites.get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"violatingSites": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists sites with Ad Experience Report statuses of \"Failing\" or \"Warning\".",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"key": {
|
||||
"location": "query",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth access token.",
|
||||
"type": "string"
|
||||
},
|
||||
"quotaUser": {
|
||||
"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.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"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.",
|
||||
"type": "boolean",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"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",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json"
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://adexperiencereport.googleapis.com/",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "View Ad Experience Report data, and get a list of sites that have a significant number of annoying ads.",
|
||||
"servicePath": "",
|
||||
"basePath": "",
|
||||
"id": "adexperiencereport:v1",
|
||||
"documentationLink": "https://developers.google.com/ad-experience-report/",
|
||||
"revision": "20171129",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": true,
|
||||
"schemas": {
|
||||
"ViolatingSitesResponse": {
|
||||
"description": "Response message for ListViolatingSites.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"violatingSites": {
|
||||
"description": "A list of summaries of violating sites.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "SiteSummaryResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ViolatingSitesResponse"
|
||||
},
|
||||
"SiteSummaryResponse": {
|
||||
"description": "Response message for GetSiteSummary.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"mobileSummary": {
|
||||
"description": "Summary for the mobile review of the site.",
|
||||
"$ref": "PlatformSummary"
|
||||
},
|
||||
"reviewedSite": {
|
||||
"description": "The name of the site reviewed.",
|
||||
"type": "string"
|
||||
},
|
||||
"desktopSummary": {
|
||||
"$ref": "PlatformSummary",
|
||||
"description": "Summary for the desktop review of the site."
|
||||
}
|
||||
},
|
||||
"id": "SiteSummaryResponse"
|
||||
},
|
||||
"PlatformSummary": {
|
||||
"description": "Summary of the ad experience rating of a site for a specific platform.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enforcementTime": {
|
||||
"description": "The date on which ad filtering begins.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"enumDescriptions": [
|
||||
"Ad standard not yet defined for your region.",
|
||||
"Region A.",
|
||||
"Region B."
|
||||
],
|
||||
"description": "The assigned regions for the site and platform.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"enum": [
|
||||
"REGION_UNKNOWN",
|
||||
"REGION_A",
|
||||
"REGION_B"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"filterStatus": {
|
||||
"description": "The ad filtering status of the site.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"N/A.",
|
||||
"Ad filtering is on.",
|
||||
"Ad filtering is off.",
|
||||
"Ad filtering is paused.",
|
||||
"Ad filtering is pending."
|
||||
],
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"ON",
|
||||
"OFF",
|
||||
"PAUSED",
|
||||
"PENDING"
|
||||
]
|
||||
},
|
||||
"underReview": {
|
||||
"description": "Whether the site is currently under review.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"reportUrl": {
|
||||
"description": "A link that leads to a full ad experience report.",
|
||||
"type": "string"
|
||||
},
|
||||
"lastChangeTime": {
|
||||
"description": "The last time that the site changed status.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"betterAdsStatus": {
|
||||
"description": "The status of the site reviewed for the Better Ads Standards.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Not reviewed.",
|
||||
"Passing.",
|
||||
"Warning.",
|
||||
"Failing."
|
||||
],
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"PASSING",
|
||||
"WARNING",
|
||||
"FAILING"
|
||||
]
|
||||
}
|
||||
},
|
||||
"id": "PlatformSummary"
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif",
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif"
|
||||
},
|
||||
"protocol": "rest",
|
||||
"canonicalName": "Ad Experience Report",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
@ -277,7 +8,276 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://adexperiencereport.googleapis.com/",
|
||||
"basePath": "",
|
||||
"baseUrl": "https://adexperiencereport.googleapis.com/",
|
||||
"batchPath": "batch",
|
||||
"canonicalName": "Ad Experience Report",
|
||||
"description": "View Ad Experience Report data, and get a list of sites that have a significant number of annoying ads.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/ad-experience-report/",
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"id": "adexperiencereport:v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "adexperiencereport",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "adexperiencereport"
|
||||
}
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"$.xgafv": {
|
||||
"description": "V1 error format.",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for response.",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"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",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"sites": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Gets a summary of the ad experience rating of a site.",
|
||||
"flatPath": "v1/sites/{sitesId}",
|
||||
"httpMethod": "GET",
|
||||
"id": "adexperiencereport.sites.get",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"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.",
|
||||
"location": "path",
|
||||
"pattern": "^sites/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}",
|
||||
"response": {
|
||||
"$ref": "SiteSummaryResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/xapi.zoo"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"violatingSites": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists sites with Ad Experience Report statuses of \"Failing\" or \"Warning\".",
|
||||
"flatPath": "v1/violatingSites",
|
||||
"httpMethod": "GET",
|
||||
"id": "adexperiencereport.violatingSites.list",
|
||||
"parameterOrder": [],
|
||||
"parameters": {},
|
||||
"path": "v1/violatingSites",
|
||||
"response": {
|
||||
"$ref": "ViolatingSitesResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/xapi.zoo"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180129",
|
||||
"rootUrl": "https://adexperiencereport.googleapis.com/",
|
||||
"schemas": {
|
||||
"PlatformSummary": {
|
||||
"description": "Summary of the ad experience rating of a site for a specific platform.",
|
||||
"id": "PlatformSummary",
|
||||
"properties": {
|
||||
"betterAdsStatus": {
|
||||
"description": "The status of the site reviewed for the Better Ads Standards.",
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"PASSING",
|
||||
"WARNING",
|
||||
"FAILING"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Not reviewed.",
|
||||
"Passing.",
|
||||
"Warning.",
|
||||
"Failing."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"enforcementTime": {
|
||||
"description": "The date on which ad filtering begins.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"filterStatus": {
|
||||
"description": "The ad filtering status of the site.",
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"ON",
|
||||
"OFF",
|
||||
"PAUSED",
|
||||
"PENDING"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"N/A.",
|
||||
"Ad filtering is on.",
|
||||
"Ad filtering is off.",
|
||||
"Ad filtering is paused.",
|
||||
"Ad filtering is pending."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"lastChangeTime": {
|
||||
"description": "The last time that the site changed status.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"description": "The assigned regions for the site and platform.",
|
||||
"enumDescriptions": [
|
||||
"Ad standard not yet defined for your region.",
|
||||
"Region A.",
|
||||
"Region B."
|
||||
],
|
||||
"items": {
|
||||
"enum": [
|
||||
"REGION_UNKNOWN",
|
||||
"REGION_A",
|
||||
"REGION_B"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"reportUrl": {
|
||||
"description": "A link that leads to a full ad experience report.",
|
||||
"type": "string"
|
||||
},
|
||||
"underReview": {
|
||||
"description": "Whether the site is currently under review.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SiteSummaryResponse": {
|
||||
"description": "Response message for GetSiteSummary.",
|
||||
"id": "SiteSummaryResponse",
|
||||
"properties": {
|
||||
"desktopSummary": {
|
||||
"$ref": "PlatformSummary",
|
||||
"description": "Summary for the desktop review of the site."
|
||||
},
|
||||
"mobileSummary": {
|
||||
"$ref": "PlatformSummary",
|
||||
"description": "Summary for the mobile review of the site."
|
||||
},
|
||||
"reviewedSite": {
|
||||
"description": "The name of the site reviewed.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ViolatingSitesResponse": {
|
||||
"description": "Response message for ListViolatingSites.",
|
||||
"id": "ViolatingSitesResponse",
|
||||
"properties": {
|
||||
"violatingSites": {
|
||||
"description": "A list of summaries of violating sites.",
|
||||
"items": {
|
||||
"$ref": "SiteSummaryResponse"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "",
|
||||
"title": "Google Ad Experience Report API",
|
||||
"version": "v1",
|
||||
"version_module": true
|
||||
}
|
786
vendor/google.golang.org/api/admin/datatransfer/v1/admin-api.json
generated
vendored
786
vendor/google.golang.org/api/admin/datatransfer/v1/admin-api.json
generated
vendored
@ -1,411 +1,411 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/69RNEuIs-2cMvhRHgpkaoTAmcFU\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "admin:datatransfer_v1",
|
||||
"name": "admin",
|
||||
"canonicalName": "DataTransfer",
|
||||
"version": "datatransfer_v1",
|
||||
"revision": "20160223",
|
||||
"title": "Admin Data Transfer API",
|
||||
"description": "Transfers user data from one user to another.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"packagePath": "admin",
|
||||
"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://developers.google.com/admin-sdk/data-transfer/",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/admin/datatransfer/v1/",
|
||||
"basePath": "/admin/datatransfer/v1/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "admin/datatransfer/v1/",
|
||||
"batchPath": "batch/admin/datatransfer_v1",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"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.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/admin.datatransfer": {
|
||||
"description": "View and manage data transfers between users in your organization"
|
||||
},
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly": {
|
||||
"description": "View data transfers between users in your organization"
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/admin.datatransfer": {
|
||||
"description": "View and manage data transfers between users in your organization"
|
||||
},
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly": {
|
||||
"description": "View data transfers between users in your organization"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"Application": {
|
||||
"id": "Application",
|
||||
"type": "object",
|
||||
"description": "The JSON template for an Application resource.",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "Etag of the resource."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The application's ID.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Identifies the resource as a DataTransfer Application Resource.",
|
||||
"default": "admin#datatransfer#ApplicationResource"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The application's name."
|
||||
},
|
||||
"transferParams": {
|
||||
"type": "array",
|
||||
"description": "The list of all possible transfer parameters for this application. These parameters can be used to select the data of the user in this application to be transfered.",
|
||||
"items": {
|
||||
"$ref": "ApplicationTransferParam"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"ApplicationDataTransfer": {
|
||||
"id": "ApplicationDataTransfer",
|
||||
"type": "object",
|
||||
"description": "Template to map fields of ApplicationDataTransfer resource.",
|
||||
"properties": {
|
||||
"applicationId": {
|
||||
"type": "string",
|
||||
"description": "The application's ID.",
|
||||
"format": "int64"
|
||||
},
|
||||
"applicationTransferParams": {
|
||||
"type": "array",
|
||||
"description": "The transfer parameters for the application. These parameters are used to select the data which will get transfered in context of this application.",
|
||||
"items": {
|
||||
"$ref": "ApplicationTransferParam"
|
||||
}
|
||||
},
|
||||
"applicationTransferStatus": {
|
||||
"type": "string",
|
||||
"description": "Current status of transfer for this application. (Read-only)"
|
||||
}
|
||||
}
|
||||
"basePath": "/admin/datatransfer/v1/",
|
||||
"baseUrl": "https://www.googleapis.com/admin/datatransfer/v1/",
|
||||
"batchPath": "batch/admin/datatransfer_v1",
|
||||
"canonicalName": "DataTransfer",
|
||||
"description": "Transfers user data from one user to another.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/admin-sdk/data-transfer/",
|
||||
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/69RNEuIs-2cMvhRHgpkaoTAmcFU\"",
|
||||
"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"
|
||||
},
|
||||
"ApplicationTransferParam": {
|
||||
"id": "ApplicationTransferParam",
|
||||
"type": "object",
|
||||
"description": "Template for application transfer parameters.",
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "The type of the transfer parameter. eg: 'PRIVACY_LEVEL'"
|
||||
},
|
||||
"value": {
|
||||
"type": "array",
|
||||
"description": "The value of the coressponding transfer parameter. eg: 'PRIVATE' or 'SHARED'",
|
||||
"items": {
|
||||
"id": "admin:datatransfer_v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "admin",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"packagePath": "admin",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for the response.",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"userIp": {
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"ApplicationsListResponse": {
|
||||
"id": "ApplicationsListResponse",
|
||||
"type": "object",
|
||||
"description": "Template for a collection of Applications.",
|
||||
"properties": {
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"applications": {
|
||||
"type": "array",
|
||||
"description": "List of applications that support data transfer and are also installed for the customer.",
|
||||
"items": {
|
||||
"$ref": "Application"
|
||||
}
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Retrieves information about an application for the given application ID.",
|
||||
"httpMethod": "GET",
|
||||
"id": "datatransfer.applications.get",
|
||||
"parameterOrder": [
|
||||
"applicationId"
|
||||
],
|
||||
"parameters": {
|
||||
"applicationId": {
|
||||
"description": "ID of the application resource to be retrieved.",
|
||||
"format": "int64",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "applications/{applicationId}",
|
||||
"response": {
|
||||
"$ref": "Application"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists the applications available for data transfer for a customer.",
|
||||
"httpMethod": "GET",
|
||||
"id": "datatransfer.applications.list",
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"description": "Immutable ID of the Google Apps account.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"maxResults": {
|
||||
"description": "Maximum number of results to return. Default is 100.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"maximum": "500",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Token to specify next page in the list.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "applications",
|
||||
"response": {
|
||||
"$ref": "ApplicationsListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Identifies the resource as a collection of Applications.",
|
||||
"default": "admin#datatransfer#applicationsList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token which will be used to specify next page in list API."
|
||||
"transfers": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Retrieves a data transfer request by its resource ID.",
|
||||
"httpMethod": "GET",
|
||||
"id": "datatransfer.transfers.get",
|
||||
"parameterOrder": [
|
||||
"dataTransferId"
|
||||
],
|
||||
"parameters": {
|
||||
"dataTransferId": {
|
||||
"description": "ID of the resource to be retrieved. This is returned in the response from the insert method.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "transfers/{dataTransferId}",
|
||||
"response": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
},
|
||||
"insert": {
|
||||
"description": "Inserts a data transfer request.",
|
||||
"httpMethod": "POST",
|
||||
"id": "datatransfer.transfers.insert",
|
||||
"path": "transfers",
|
||||
"request": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists the transfers for a customer by source user, destination user, or status.",
|
||||
"httpMethod": "GET",
|
||||
"id": "datatransfer.transfers.list",
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"description": "Immutable ID of the Google Apps account.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"maxResults": {
|
||||
"description": "Maximum number of results to return. Default is 100.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"maximum": "500",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
},
|
||||
"newOwnerUserId": {
|
||||
"description": "Destination user's profile ID.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oldOwnerUserId": {
|
||||
"description": "Source user's profile ID.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Token to specify the next page in the list.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"description": "Status of the transfer.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "transfers",
|
||||
"response": {
|
||||
"$ref": "DataTransfersListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"DataTransfer": {
|
||||
"id": "DataTransfer",
|
||||
"type": "object",
|
||||
"description": "The JSON template for a DataTransfer resource.",
|
||||
"properties": {
|
||||
"applicationDataTransfers": {
|
||||
"type": "array",
|
||||
"description": "List of per application data transfer resources. It contains data transfer details of the applications associated with this transfer resource. Note that this list is also used to specify the applications for which data transfer has to be done at the time of the transfer resource creation.",
|
||||
"items": {
|
||||
"$ref": "ApplicationDataTransfer"
|
||||
}
|
||||
"revision": "20160223",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"Application": {
|
||||
"description": "The JSON template for an Application resource.",
|
||||
"id": "Application",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"description": "Etag of the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "The application's ID.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#datatransfer#ApplicationResource",
|
||||
"description": "Identifies the resource as a DataTransfer Application Resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "The application's name.",
|
||||
"type": "string"
|
||||
},
|
||||
"transferParams": {
|
||||
"description": "The list of all possible transfer parameters for this application. These parameters can be used to select the data of the user in this application to be transfered.",
|
||||
"items": {
|
||||
"$ref": "ApplicationTransferParam"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
"ApplicationDataTransfer": {
|
||||
"description": "Template to map fields of ApplicationDataTransfer resource.",
|
||||
"id": "ApplicationDataTransfer",
|
||||
"properties": {
|
||||
"applicationId": {
|
||||
"description": "The application's ID.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"applicationTransferParams": {
|
||||
"description": "The transfer parameters for the application. These parameters are used to select the data which will get transfered in context of this application.",
|
||||
"items": {
|
||||
"$ref": "ApplicationTransferParam"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"applicationTransferStatus": {
|
||||
"description": "Current status of transfer for this application. (Read-only)",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The transfer's ID (Read-only)."
|
||||
"ApplicationTransferParam": {
|
||||
"description": "Template for application transfer parameters.",
|
||||
"id": "ApplicationTransferParam",
|
||||
"properties": {
|
||||
"key": {
|
||||
"description": "The type of the transfer parameter. eg: 'PRIVACY_LEVEL'",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "The value of the coressponding transfer parameter. eg: 'PRIVATE' or 'SHARED'",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Identifies the resource as a DataTransfer request.",
|
||||
"default": "admin#datatransfer#DataTransfer"
|
||||
"ApplicationsListResponse": {
|
||||
"description": "Template for a collection of Applications.",
|
||||
"id": "ApplicationsListResponse",
|
||||
"properties": {
|
||||
"applications": {
|
||||
"description": "List of applications that support data transfer and are also installed for the customer.",
|
||||
"items": {
|
||||
"$ref": "Application"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"etag": {
|
||||
"description": "ETag of the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#datatransfer#applicationsList",
|
||||
"description": "Identifies the resource as a collection of Applications.",
|
||||
"type": "string"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "Continuation token which will be used to specify next page in list API.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"newOwnerUserId": {
|
||||
"type": "string",
|
||||
"description": "ID of the user to whom the data is being transfered."
|
||||
"DataTransfer": {
|
||||
"description": "The JSON template for a DataTransfer resource.",
|
||||
"id": "DataTransfer",
|
||||
"properties": {
|
||||
"applicationDataTransfers": {
|
||||
"description": "List of per application data transfer resources. It contains data transfer details of the applications associated with this transfer resource. Note that this list is also used to specify the applications for which data transfer has to be done at the time of the transfer resource creation.",
|
||||
"items": {
|
||||
"$ref": "ApplicationDataTransfer"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"etag": {
|
||||
"description": "ETag of the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "The transfer's ID (Read-only).",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#datatransfer#DataTransfer",
|
||||
"description": "Identifies the resource as a DataTransfer request.",
|
||||
"type": "string"
|
||||
},
|
||||
"newOwnerUserId": {
|
||||
"description": "ID of the user to whom the data is being transfered.",
|
||||
"type": "string"
|
||||
},
|
||||
"oldOwnerUserId": {
|
||||
"description": "ID of the user whose data is being transfered.",
|
||||
"type": "string"
|
||||
},
|
||||
"overallTransferStatusCode": {
|
||||
"description": "Overall transfer status (Read-only).",
|
||||
"type": "string"
|
||||
},
|
||||
"requestTime": {
|
||||
"description": "The time at which the data transfer was requested (Read-only).",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"oldOwnerUserId": {
|
||||
"type": "string",
|
||||
"description": "ID of the user whose data is being transfered."
|
||||
},
|
||||
"overallTransferStatusCode": {
|
||||
"type": "string",
|
||||
"description": "Overall transfer status (Read-only)."
|
||||
},
|
||||
"requestTime": {
|
||||
"type": "string",
|
||||
"description": "The time at which the data transfer was requested (Read-only).",
|
||||
"format": "date-time"
|
||||
"DataTransfersListResponse": {
|
||||
"description": "Template for a collection of DataTransfer resources.",
|
||||
"id": "DataTransfersListResponse",
|
||||
"properties": {
|
||||
"dataTransfers": {
|
||||
"description": "List of data transfer requests.",
|
||||
"items": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"etag": {
|
||||
"description": "ETag of the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#datatransfer#dataTransfersList",
|
||||
"description": "Identifies the resource as a collection of data transfer requests.",
|
||||
"type": "string"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "Continuation token which will be used to specify next page in list API.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"DataTransfersListResponse": {
|
||||
"id": "DataTransfersListResponse",
|
||||
"type": "object",
|
||||
"description": "Template for a collection of DataTransfer resources.",
|
||||
"properties": {
|
||||
"dataTransfers": {
|
||||
"type": "array",
|
||||
"description": "List of data transfer requests.",
|
||||
"items": {
|
||||
"$ref": "DataTransfer"
|
||||
}
|
||||
},
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Identifies the resource as a collection of data transfer requests.",
|
||||
"default": "admin#datatransfer#dataTransfersList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token which will be used to specify next page in list API."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"applications": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "datatransfer.applications.get",
|
||||
"path": "applications/{applicationId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves information about an application for the given application ID.",
|
||||
"parameters": {
|
||||
"applicationId": {
|
||||
"type": "string",
|
||||
"description": "ID of the application resource to be retrieved.",
|
||||
"required": true,
|
||||
"format": "int64",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"applicationId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Application"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "datatransfer.applications.list",
|
||||
"path": "applications",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists the applications available for data transfer for a customer.",
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"type": "string",
|
||||
"description": "Immutable ID of the Google Apps account.",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of results to return. Default is 100.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"maximum": "500",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token to specify next page in the list.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "ApplicationsListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"transfers": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "datatransfer.transfers.get",
|
||||
"path": "transfers/{dataTransferId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a data transfer request by its resource ID.",
|
||||
"parameters": {
|
||||
"dataTransferId": {
|
||||
"type": "string",
|
||||
"description": "ID of the resource to be retrieved. This is returned in the response from the insert method.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"dataTransferId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
},
|
||||
"insert": {
|
||||
"id": "datatransfer.transfers.insert",
|
||||
"path": "transfers",
|
||||
"httpMethod": "POST",
|
||||
"description": "Inserts a data transfer request.",
|
||||
"request": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "datatransfer.transfers.list",
|
||||
"path": "transfers",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists the transfers for a customer by source user, destination user, or status.",
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"type": "string",
|
||||
"description": "Immutable ID of the Google Apps account.",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of results to return. Default is 100.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"maximum": "500",
|
||||
"location": "query"
|
||||
},
|
||||
"newOwnerUserId": {
|
||||
"type": "string",
|
||||
"description": "Destination user's profile ID.",
|
||||
"location": "query"
|
||||
},
|
||||
"oldOwnerUserId": {
|
||||
"type": "string",
|
||||
"description": "Source user's profile ID.",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token to specify the next page in the list.",
|
||||
"location": "query"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "Status of the transfer.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "DataTransfersListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"servicePath": "admin/datatransfer/v1/",
|
||||
"title": "Admin Data Transfer API",
|
||||
"version": "datatransfer_v1"
|
||||
}
|
13379
vendor/google.golang.org/api/admin/directory/v1/admin-api.json
generated
vendored
13379
vendor/google.golang.org/api/admin/directory/v1/admin-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
97
vendor/google.golang.org/api/admin/directory/v1/admin-gen.go
generated
vendored
97
vendor/google.golang.org/api/admin/directory/v1/admin-gen.go
generated
vendored
@ -1132,6 +1132,7 @@ type ChromeOsDevice struct {
|
||||
// SupportEndDate: Final date the device will be supported (Read-only)
|
||||
SupportEndDate string `json:"supportEndDate,omitempty"`
|
||||
|
||||
// TpmVersionInfo: Trusted Platform Module (TPM) (Read-only)
|
||||
TpmVersionInfo *ChromeOsDeviceTpmVersionInfo `json:"tpmVersionInfo,omitempty"`
|
||||
|
||||
// WillAutoRenew: Will Chromebook auto renew after support end date
|
||||
@ -1200,7 +1201,7 @@ type ChromeOsDeviceDeviceFiles struct {
|
||||
// CreateTime: Date and time the file was created
|
||||
CreateTime string `json:"createTime,omitempty"`
|
||||
|
||||
// DownloadUrl: File downlod URL
|
||||
// DownloadUrl: File download URL
|
||||
DownloadUrl string `json:"downloadUrl,omitempty"`
|
||||
|
||||
// Name: File name
|
||||
@ -1263,17 +1264,25 @@ func (s *ChromeOsDeviceRecentUsers) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ChromeOsDeviceTpmVersionInfo: Trusted Platform Module (TPM)
|
||||
// (Read-only)
|
||||
type ChromeOsDeviceTpmVersionInfo struct {
|
||||
// Family: TPM family.
|
||||
Family string `json:"family,omitempty"`
|
||||
|
||||
// FirmwareVersion: TPM firmware version.
|
||||
FirmwareVersion string `json:"firmwareVersion,omitempty"`
|
||||
|
||||
// Manufacturer: TPM manufacturer code.
|
||||
Manufacturer string `json:"manufacturer,omitempty"`
|
||||
|
||||
// SpecLevel: TPM specification level.
|
||||
SpecLevel string `json:"specLevel,omitempty"`
|
||||
|
||||
// TpmModel: TPM model number.
|
||||
TpmModel string `json:"tpmModel,omitempty"`
|
||||
|
||||
// VendorSpecific: Vendor-specific information such as Vendor ID.
|
||||
VendorSpecific string `json:"vendorSpecific,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Family") to
|
||||
@ -1740,6 +1749,8 @@ func (s *Feature) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// FeatureInstance: JSON template for a "feature instance".
|
||||
type FeatureInstance struct {
|
||||
// Feature: The feature that this is an instance of. A calendar resource
|
||||
// may have multiple instances of a feature.
|
||||
Feature *Feature `json:"feature,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Feature") to
|
||||
@ -2035,7 +2046,8 @@ func (s *Members) MarshalJSON() ([]byte, error) {
|
||||
// MembersHasMember: JSON template for Has Member response in Directory
|
||||
// API.
|
||||
type MembersHasMember struct {
|
||||
// IsMember: Identifies whether given user is a member or not.
|
||||
// IsMember: Identifies whether the given user is a member of the group.
|
||||
// Membership can be direct or nested.
|
||||
IsMember bool `json:"isMember,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@ -8766,7 +8778,8 @@ type MembersHasMemberCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// HasMember: Checks Membership of an user within a Group
|
||||
// HasMember: Checks whether the given user is a member of the group.
|
||||
// Membership can be direct or nested.
|
||||
func (r *MembersService) HasMember(groupKey string, memberKey string) *MembersHasMemberCall {
|
||||
c := &MembersHasMemberCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.groupKey = groupKey
|
||||
@ -8869,7 +8882,7 @@ func (c *MembersHasMemberCall) Do(opts ...googleapi.CallOption) (*MembersHasMemb
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Checks Membership of an user within a Group",
|
||||
// "description": "Checks whether the given user is a member of the group. Membership can be direct or nested.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "directory.members.hasMember",
|
||||
// "parameterOrder": [
|
||||
@ -8878,13 +8891,13 @@ func (c *MembersHasMemberCall) Do(opts ...googleapi.CallOption) (*MembersHasMemb
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "groupKey": {
|
||||
// "description": "Email or immutable Id of the group",
|
||||
// "description": "Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "memberKey": {
|
||||
// "description": "Email or immutable Id of the member",
|
||||
// "description": "Identifies the user member in the API request. The value can be the user's primary email address, alias, or unique ID.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
@ -12578,6 +12591,20 @@ func (r *ResourcesBuildingsService) List(customer string) *ResourcesBuildingsLis
|
||||
return c
|
||||
}
|
||||
|
||||
// MaxResults sets the optional parameter "maxResults": Maximum number
|
||||
// of results to return.
|
||||
func (c *ResourcesBuildingsListCall) MaxResults(maxResults int64) *ResourcesBuildingsListCall {
|
||||
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
|
||||
return c
|
||||
}
|
||||
|
||||
// PageToken sets the optional parameter "pageToken": Token to specify
|
||||
// the next page in the list.
|
||||
func (c *ResourcesBuildingsListCall) PageToken(pageToken string) *ResourcesBuildingsListCall {
|
||||
c.urlParams_.Set("pageToken", pageToken)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@ -12684,6 +12711,19 @@ func (c *ResourcesBuildingsListCall) Do(opts ...googleapi.CallOption) (*Building
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "maxResults": {
|
||||
// "description": "Maximum number of results to return.",
|
||||
// "format": "int32",
|
||||
// "location": "query",
|
||||
// "maximum": "500",
|
||||
// "minimum": "1",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "pageToken": {
|
||||
// "description": "Token to specify the next page in the list.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "customer/{customer}/resources/buildings",
|
||||
@ -12698,6 +12738,27 @@ func (c *ResourcesBuildingsListCall) Do(opts ...googleapi.CallOption) (*Building
|
||||
|
||||
}
|
||||
|
||||
// Pages invokes f for each page of results.
|
||||
// A non-nil error returned from f will halt the iteration.
|
||||
// The provided context supersedes any context provided to the Context method.
|
||||
func (c *ResourcesBuildingsListCall) Pages(ctx context.Context, f func(*Buildings) error) error {
|
||||
c.ctx_ = ctx
|
||||
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
|
||||
for {
|
||||
x, err := c.Do()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := f(x); err != nil {
|
||||
return err
|
||||
}
|
||||
if x.NextPageToken == "" {
|
||||
return nil
|
||||
}
|
||||
c.PageToken(x.NextPageToken)
|
||||
}
|
||||
}
|
||||
|
||||
// method id "directory.resources.buildings.patch":
|
||||
|
||||
type ResourcesBuildingsPatchCall struct {
|
||||
@ -13418,8 +13479,11 @@ func (c *ResourcesCalendarsListCall) PageToken(pageToken string) *ResourcesCalen
|
||||
// filter results. Should be of the form "field operator value" where
|
||||
// field can be any of supported fields and operators can be any of
|
||||
// supported operations. Operators include '=' for exact match and ':'
|
||||
// for prefix match where applicable. For prefix match, the value should
|
||||
// always be followed by a *.
|
||||
// for prefix match or HAS match where applicable. For prefix match, the
|
||||
// value should always be followed by a *. Supported fields include
|
||||
// generatedResourceName, name, buildingId,
|
||||
// featureInstances.feature.name. For example buildingId=US-NYC-9TH AND
|
||||
// featureInstances.feature.name:Phone.
|
||||
func (c *ResourcesCalendarsListCall) Query(query string) *ResourcesCalendarsListCall {
|
||||
c.urlParams_.Set("query", query)
|
||||
return c
|
||||
@ -13551,7 +13615,7 @@ func (c *ResourcesCalendarsListCall) Do(opts ...googleapi.CallOption) (*Calendar
|
||||
// "type": "string"
|
||||
// },
|
||||
// "query": {
|
||||
// "description": "String query used to filter results. Should be of the form \"field operator value\" where field can be any of supported fields and operators can be any of supported operations. Operators include '=' for exact match and ':' for prefix match where applicable. For prefix match, the value should always be followed by a *.",
|
||||
// "description": "String query used to filter results. Should be of the form \"field operator value\" where field can be any of supported fields and operators can be any of supported operations. Operators include '=' for exact match and ':' for prefix match or HAS match where applicable. For prefix match, the value should always be followed by a *. Supported fields include generatedResourceName, name, buildingId, featureInstances.feature.name. For example buildingId=US-NYC-9TH AND featureInstances.feature.name:Phone.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
@ -14287,6 +14351,13 @@ func (r *ResourcesFeaturesService) List(customer string) *ResourcesFeaturesListC
|
||||
return c
|
||||
}
|
||||
|
||||
// MaxResults sets the optional parameter "maxResults": Maximum number
|
||||
// of results to return.
|
||||
func (c *ResourcesFeaturesListCall) MaxResults(maxResults int64) *ResourcesFeaturesListCall {
|
||||
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
|
||||
return c
|
||||
}
|
||||
|
||||
// PageToken sets the optional parameter "pageToken": Token to specify
|
||||
// the next page in the list.
|
||||
func (c *ResourcesFeaturesListCall) PageToken(pageToken string) *ResourcesFeaturesListCall {
|
||||
@ -14401,6 +14472,14 @@ func (c *ResourcesFeaturesListCall) Do(opts ...googleapi.CallOption) (*Features,
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "maxResults": {
|
||||
// "description": "Maximum number of results to return.",
|
||||
// "format": "int32",
|
||||
// "location": "query",
|
||||
// "maximum": "500",
|
||||
// "minimum": "1",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "pageToken": {
|
||||
// "description": "Token to specify the next page in the list.",
|
||||
// "location": "query",
|
||||
|
1600
vendor/google.golang.org/api/admin/reports/v1/admin-api.json
generated
vendored
1600
vendor/google.golang.org/api/admin/reports/v1/admin-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
184
vendor/google.golang.org/api/adsense/v1.3/adsense-gen.go
generated
vendored
184
vendor/google.golang.org/api/adsense/v1.3/adsense-gen.go
generated
vendored
@ -401,8 +401,8 @@ type Account struct {
|
||||
}
|
||||
|
||||
func (s *Account) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Account
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Account
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -443,8 +443,8 @@ type Accounts struct {
|
||||
}
|
||||
|
||||
func (s *Accounts) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Accounts
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Accounts
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -483,8 +483,8 @@ type AdClient struct {
|
||||
}
|
||||
|
||||
func (s *AdClient) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdClient
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdClient
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -525,8 +525,8 @@ type AdClients struct {
|
||||
}
|
||||
|
||||
func (s *AdClients) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdClients
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdClients
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -559,8 +559,8 @@ type AdCode struct {
|
||||
}
|
||||
|
||||
func (s *AdCode) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdCode
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdCode
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -598,8 +598,8 @@ type AdStyle struct {
|
||||
}
|
||||
|
||||
func (s *AdStyle) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdStyle
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdStyle
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -640,8 +640,8 @@ type AdStyleColors struct {
|
||||
}
|
||||
|
||||
func (s *AdStyleColors) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdStyleColors
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdStyleColors
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -671,8 +671,8 @@ type AdStyleFont struct {
|
||||
}
|
||||
|
||||
func (s *AdStyleFont) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdStyleFont
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdStyleFont
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -743,8 +743,8 @@ type AdUnit struct {
|
||||
}
|
||||
|
||||
func (s *AdUnit) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdUnit
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdUnit
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -779,8 +779,8 @@ type AdUnitContentAdsSettings struct {
|
||||
}
|
||||
|
||||
func (s *AdUnitContentAdsSettings) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdUnitContentAdsSettings
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdUnitContentAdsSettings
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -815,8 +815,8 @@ type AdUnitContentAdsSettingsBackupOption struct {
|
||||
}
|
||||
|
||||
func (s *AdUnitContentAdsSettingsBackupOption) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdUnitContentAdsSettingsBackupOption
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdUnitContentAdsSettingsBackupOption
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -855,8 +855,8 @@ type AdUnitFeedAdsSettings struct {
|
||||
}
|
||||
|
||||
func (s *AdUnitFeedAdsSettings) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdUnitFeedAdsSettings
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdUnitFeedAdsSettings
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -894,8 +894,8 @@ type AdUnitMobileContentAdsSettings struct {
|
||||
}
|
||||
|
||||
func (s *AdUnitMobileContentAdsSettings) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdUnitMobileContentAdsSettings
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdUnitMobileContentAdsSettings
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -936,8 +936,8 @@ type AdUnits struct {
|
||||
}
|
||||
|
||||
func (s *AdUnits) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdUnits
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdUnits
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -996,8 +996,8 @@ type AdsenseReportsGenerateResponse struct {
|
||||
}
|
||||
|
||||
func (s *AdsenseReportsGenerateResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdsenseReportsGenerateResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdsenseReportsGenerateResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1031,8 +1031,8 @@ type AdsenseReportsGenerateResponseHeaders struct {
|
||||
}
|
||||
|
||||
func (s *AdsenseReportsGenerateResponseHeaders) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AdsenseReportsGenerateResponseHeaders
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AdsenseReportsGenerateResponseHeaders
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1076,8 +1076,8 @@ type Alert struct {
|
||||
}
|
||||
|
||||
func (s *Alert) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Alert
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Alert
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1110,8 +1110,8 @@ type Alerts struct {
|
||||
}
|
||||
|
||||
func (s *Alerts) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Alerts
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Alerts
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1157,8 +1157,8 @@ type CustomChannel struct {
|
||||
}
|
||||
|
||||
func (s *CustomChannel) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CustomChannel
|
||||
raw := noMethod(*s)
|
||||
type NoMethod CustomChannel
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1200,8 +1200,8 @@ type CustomChannelTargetingInfo struct {
|
||||
}
|
||||
|
||||
func (s *CustomChannelTargetingInfo) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CustomChannelTargetingInfo
|
||||
raw := noMethod(*s)
|
||||
type NoMethod CustomChannelTargetingInfo
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1242,8 +1242,8 @@ type CustomChannels struct {
|
||||
}
|
||||
|
||||
func (s *CustomChannels) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CustomChannels
|
||||
raw := noMethod(*s)
|
||||
type NoMethod CustomChannels
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1275,8 +1275,8 @@ type Metadata struct {
|
||||
}
|
||||
|
||||
func (s *Metadata) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Metadata
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Metadata
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1336,8 +1336,8 @@ type ReportingMetadataEntry struct {
|
||||
}
|
||||
|
||||
func (s *ReportingMetadataEntry) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ReportingMetadataEntry
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ReportingMetadataEntry
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1378,8 +1378,8 @@ type SavedAdStyle struct {
|
||||
}
|
||||
|
||||
func (s *SavedAdStyle) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SavedAdStyle
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SavedAdStyle
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1420,8 +1420,8 @@ type SavedAdStyles struct {
|
||||
}
|
||||
|
||||
func (s *SavedAdStyles) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SavedAdStyles
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SavedAdStyles
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1453,8 +1453,8 @@ type SavedReport struct {
|
||||
}
|
||||
|
||||
func (s *SavedReport) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SavedReport
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SavedReport
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1495,8 +1495,8 @@ type SavedReports struct {
|
||||
}
|
||||
|
||||
func (s *SavedReports) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SavedReports
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SavedReports
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1531,8 +1531,8 @@ type UrlChannel struct {
|
||||
}
|
||||
|
||||
func (s *UrlChannel) MarshalJSON() ([]byte, error) {
|
||||
type noMethod UrlChannel
|
||||
raw := noMethod(*s)
|
||||
type NoMethod UrlChannel
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1573,8 +1573,8 @@ type UrlChannels struct {
|
||||
}
|
||||
|
||||
func (s *UrlChannels) MarshalJSON() ([]byte, error) {
|
||||
type noMethod UrlChannels
|
||||
raw := noMethod(*s)
|
||||
type NoMethod UrlChannels
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1692,7 +1692,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -1846,7 +1846,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -2025,7 +2025,7 @@ func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -2204,7 +2204,7 @@ func (c *AccountsAdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, erro
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -2362,7 +2362,7 @@ func (c *AccountsAdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -2541,7 +2541,7 @@ func (c *AccountsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, er
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -2749,7 +2749,7 @@ func (c *AccountsAdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -2944,7 +2944,7 @@ func (c *AccountsAlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, erro
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -3094,7 +3094,7 @@ func (c *AccountsCustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*Custo
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -3267,7 +3267,7 @@ func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Cust
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -3475,7 +3475,7 @@ func (c *AccountsCustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -3755,7 +3755,7 @@ func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Adsense
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -3997,7 +3997,7 @@ func (c *AccountsReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Ad
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -4180,7 +4180,7 @@ func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedR
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -4355,7 +4355,7 @@ func (c *AccountsSavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedA
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -4517,7 +4517,7 @@ func (c *AccountsSavedadstylesListCall) Do(opts ...googleapi.CallOption) (*Saved
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -4709,7 +4709,7 @@ func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChan
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -4899,7 +4899,7 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -5065,7 +5065,7 @@ func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -5213,7 +5213,7 @@ func (c *AdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -5382,7 +5382,7 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -5580,7 +5580,7 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -5763,7 +5763,7 @@ func (c *AlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -5900,7 +5900,7 @@ func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -6063,7 +6063,7 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -6261,7 +6261,7 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -6441,7 +6441,7 @@ func (c *MetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (*Metadata
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -6564,7 +6564,7 @@ func (c *MetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Metadata, e
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -6782,7 +6782,7 @@ func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsG
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -7020,7 +7020,7 @@ func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseRep
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -7191,7 +7191,7 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -7354,7 +7354,7 @@ func (c *SavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedAdStyle,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -7504,7 +7504,7 @@ func (c *SavedadstylesListCall) Do(opts ...googleapi.CallOption) (*SavedAdStyles
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -7684,7 +7684,7 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
|
4664
vendor/google.golang.org/api/adsense/v1.4/adsense-api.json
generated
vendored
4664
vendor/google.golang.org/api/adsense/v1.4/adsense-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
3070
vendor/google.golang.org/api/adsensehost/v4.1/adsensehost-api.json
generated
vendored
3070
vendor/google.golang.org/api/adsensehost/v4.1/adsensehost-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
716
vendor/google.golang.org/api/analytics/v2.4/analytics-api.json
generated
vendored
716
vendor/google.golang.org/api/analytics/v2.4/analytics-api.json
generated
vendored
@ -1,366 +1,366 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/kYN47VW3boRYzE7pkj4HK3FyEC0\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "analytics:v2.4",
|
||||
"name": "analytics",
|
||||
"version": "v2.4",
|
||||
"revision": "20170807",
|
||||
"title": "Google Analytics API",
|
||||
"description": "Views and manages your Google Analytics data.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/analytics-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/analytics-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/analytics/",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/analytics/v2.4/",
|
||||
"basePath": "/analytics/v2.4/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "analytics/v2.4/",
|
||||
"batchPath": "batch/analytics/v2.4",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "atom",
|
||||
"enum": [
|
||||
"atom"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/atom+xml"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"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.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/analytics": {
|
||||
"description": "View and manage your Google Analytics data"
|
||||
},
|
||||
"https://www.googleapis.com/auth/analytics.readonly": {
|
||||
"description": "View your Google Analytics data"
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/analytics": {
|
||||
"description": "View and manage your Google Analytics data"
|
||||
},
|
||||
"https://www.googleapis.com/auth/analytics.readonly": {
|
||||
"description": "View your Google Analytics data"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"data": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "analytics.data.get",
|
||||
"path": "data",
|
||||
"httpMethod": "GET",
|
||||
"description": "Returns Analytics report data for a view (profile).",
|
||||
"parameters": {
|
||||
"dimensions": {
|
||||
"type": "string",
|
||||
"description": "A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.",
|
||||
"pattern": "(ga:.+)?",
|
||||
"location": "query"
|
||||
},
|
||||
"end-date": {
|
||||
"type": "string",
|
||||
"description": "End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.",
|
||||
"required": true,
|
||||
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}",
|
||||
"location": "query"
|
||||
},
|
||||
"filters": {
|
||||
"type": "string",
|
||||
"description": "A comma-separated list of dimension or metric filters to be applied to the report data.",
|
||||
"pattern": "ga:.+",
|
||||
"location": "query"
|
||||
},
|
||||
"ids": {
|
||||
"type": "string",
|
||||
"description": "Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.",
|
||||
"required": true,
|
||||
"pattern": "ga:[0-9]+",
|
||||
"location": "query"
|
||||
},
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of entries to include in this feed.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "string",
|
||||
"description": "A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified to retrieve a valid Analytics report.",
|
||||
"required": true,
|
||||
"pattern": "ga:.+",
|
||||
"location": "query"
|
||||
},
|
||||
"segment": {
|
||||
"type": "string",
|
||||
"description": "An Analytics advanced segment to be applied to the report data.",
|
||||
"location": "query"
|
||||
},
|
||||
"sort": {
|
||||
"type": "string",
|
||||
"description": "A comma-separated list of dimensions or metrics that determine the sort order for the report data.",
|
||||
"pattern": "(-)?ga:.+",
|
||||
"location": "query"
|
||||
},
|
||||
"start-date": {
|
||||
"type": "string",
|
||||
"description": "Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.",
|
||||
"required": true,
|
||||
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}",
|
||||
"location": "query"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"ids",
|
||||
"start-date",
|
||||
"end-date",
|
||||
"metrics"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"management": {
|
||||
"resources": {
|
||||
"accounts": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "analytics.management.accounts.list",
|
||||
"path": "management/accounts",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists all accounts to which the user has access.",
|
||||
"parameters": {
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of accounts to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
"basePath": "/analytics/v2.4/",
|
||||
"baseUrl": "https://www.googleapis.com/analytics/v2.4/",
|
||||
"batchPath": "batch/analytics/v2.4",
|
||||
"description": "Views and manages your Google Analytics data.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/analytics/",
|
||||
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/ulqmidM-fMam4LKTNGEvE0WurA4\"",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/analytics-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/analytics-32.png"
|
||||
},
|
||||
"id": "analytics:v2.4",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "analytics",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"default": "atom",
|
||||
"description": "Data format for the response.",
|
||||
"enum": [
|
||||
"atom"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/atom+xml"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"goals": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "analytics.management.goals.list",
|
||||
"path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists goals to which the user has access.",
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of goals to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"profileId": {
|
||||
"type": "string",
|
||||
"description": "View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
},
|
||||
"webPropertyId": {
|
||||
"type": "string",
|
||||
"description": "Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"accountId",
|
||||
"webPropertyId",
|
||||
"profileId"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"profiles": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "analytics.management.profiles.list",
|
||||
"path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists views (profiles) to which the user has access.",
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account ID for the views (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of views (profiles) to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
},
|
||||
"webPropertyId": {
|
||||
"type": "string",
|
||||
"description": "Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"accountId",
|
||||
"webPropertyId"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"segments": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "analytics.management.segments.list",
|
||||
"path": "management/segments",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists advanced segments to which the user has access.",
|
||||
"parameters": {
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of advanced segments to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"webproperties": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "analytics.management.webproperties.list",
|
||||
"path": "management/accounts/{accountId}/webproperties",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists web properties to which the user has access.",
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of web properties to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"accountId"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
"prettyPrint": {
|
||||
"default": "false",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"userIp": {
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"data": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Returns Analytics report data for a view (profile).",
|
||||
"httpMethod": "GET",
|
||||
"id": "analytics.data.get",
|
||||
"parameterOrder": [
|
||||
"ids",
|
||||
"start-date",
|
||||
"end-date",
|
||||
"metrics"
|
||||
],
|
||||
"parameters": {
|
||||
"dimensions": {
|
||||
"description": "A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.",
|
||||
"location": "query",
|
||||
"pattern": "(ga:.+)?",
|
||||
"type": "string"
|
||||
},
|
||||
"end-date": {
|
||||
"description": "End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.",
|
||||
"location": "query",
|
||||
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"filters": {
|
||||
"description": "A comma-separated list of dimension or metric filters to be applied to the report data.",
|
||||
"location": "query",
|
||||
"pattern": "ga:.+",
|
||||
"type": "string"
|
||||
},
|
||||
"ids": {
|
||||
"description": "Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.",
|
||||
"location": "query",
|
||||
"pattern": "ga:[0-9]+",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"max-results": {
|
||||
"description": "The maximum number of entries to include in this feed.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"metrics": {
|
||||
"description": "A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified to retrieve a valid Analytics report.",
|
||||
"location": "query",
|
||||
"pattern": "ga:.+",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"segment": {
|
||||
"description": "An Analytics advanced segment to be applied to the report data.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"sort": {
|
||||
"description": "A comma-separated list of dimensions or metrics that determine the sort order for the report data.",
|
||||
"location": "query",
|
||||
"pattern": "(-)?ga:.+",
|
||||
"type": "string"
|
||||
},
|
||||
"start-date": {
|
||||
"description": "Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.",
|
||||
"location": "query",
|
||||
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"start-index": {
|
||||
"description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"path": "data",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"management": {
|
||||
"resources": {
|
||||
"accounts": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists all accounts to which the user has access.",
|
||||
"httpMethod": "GET",
|
||||
"id": "analytics.management.accounts.list",
|
||||
"parameters": {
|
||||
"max-results": {
|
||||
"description": "The maximum number of accounts to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"start-index": {
|
||||
"description": "An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"path": "management/accounts",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"goals": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists goals to which the user has access.",
|
||||
"httpMethod": "GET",
|
||||
"id": "analytics.management.goals.list",
|
||||
"parameterOrder": [
|
||||
"accountId",
|
||||
"webPropertyId",
|
||||
"profileId"
|
||||
],
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"description": "Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"max-results": {
|
||||
"description": "The maximum number of goals to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"profileId": {
|
||||
"description": "View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"start-index": {
|
||||
"description": "An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
},
|
||||
"webPropertyId": {
|
||||
"description": "Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"profiles": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists views (profiles) to which the user has access.",
|
||||
"httpMethod": "GET",
|
||||
"id": "analytics.management.profiles.list",
|
||||
"parameterOrder": [
|
||||
"accountId",
|
||||
"webPropertyId"
|
||||
],
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"description": "Account ID for the views (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"max-results": {
|
||||
"description": "The maximum number of views (profiles) to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"start-index": {
|
||||
"description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
},
|
||||
"webPropertyId": {
|
||||
"description": "Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"segments": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists advanced segments to which the user has access.",
|
||||
"httpMethod": "GET",
|
||||
"id": "analytics.management.segments.list",
|
||||
"parameters": {
|
||||
"max-results": {
|
||||
"description": "The maximum number of advanced segments to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"start-index": {
|
||||
"description": "An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"path": "management/segments",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"webproperties": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists web properties to which the user has access.",
|
||||
"httpMethod": "GET",
|
||||
"id": "analytics.management.webproperties.list",
|
||||
"parameterOrder": [
|
||||
"accountId"
|
||||
],
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"description": "Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"max-results": {
|
||||
"description": "The maximum number of web properties to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"start-index": {
|
||||
"description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"path": "management/accounts/{accountId}/webproperties",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20171211",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "analytics/v2.4/",
|
||||
"title": "Google Analytics API",
|
||||
"version": "v2.4"
|
||||
}
|
14482
vendor/google.golang.org/api/analytics/v3/analytics-api.json
generated
vendored
14482
vendor/google.golang.org/api/analytics/v3/analytics-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
7
vendor/google.golang.org/api/analytics/v3/analytics-gen.go
generated
vendored
7
vendor/google.golang.org/api/analytics/v3/analytics-gen.go
generated
vendored
@ -16606,11 +16606,12 @@ func (c *ManagementUploadsUploadDataCall) doRequest(alt string) (*http.Response,
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
gensupport.SetGetBody(req, getBody)
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"accountId": c.accountId,
|
||||
"webPropertyId": c.webPropertyId,
|
||||
@ -19273,7 +19274,7 @@ func (c *ProvisioningCreateAccountTreeCall) doRequest(alt string) (*http.Respons
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "provisioning/createAccount")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "provisioning/createAccountTree")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
@ -19321,7 +19322,7 @@ func (c *ProvisioningCreateAccountTreeCall) Do(opts ...googleapi.CallOption) (*A
|
||||
// "description": "Provision account.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "analytics.provisioning.createAccountTree",
|
||||
// "path": "provisioning/createAccount",
|
||||
// "path": "provisioning/createAccountTree",
|
||||
// "request": {
|
||||
// "$ref": "AccountTreeRequest"
|
||||
// },
|
||||
|
2358
vendor/google.golang.org/api/analyticsreporting/v4/analyticsreporting-api.json
generated
vendored
2358
vendor/google.golang.org/api/analyticsreporting/v4/analyticsreporting-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
2676
vendor/google.golang.org/api/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json
generated
vendored
2676
vendor/google.golang.org/api/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
247
vendor/google.golang.org/api/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go
generated
vendored
247
vendor/google.golang.org/api/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go
generated
vendored
@ -165,13 +165,16 @@ type PartnersDevicesService struct {
|
||||
// ClaimDeviceRequest: Request message to claim a device on behalf of a
|
||||
// customer.
|
||||
type ClaimDeviceRequest struct {
|
||||
// CustomerId: The customer to claim for.
|
||||
// CustomerId: Required. The ID of the customer for whom the device is
|
||||
// being claimed.
|
||||
CustomerId int64 `json:"customerId,omitempty,string"`
|
||||
|
||||
// DeviceIdentifier: The device identifier of the device to claim.
|
||||
// DeviceIdentifier: Required. The device identifier of the device to
|
||||
// claim.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// SectionType: The section to claim.
|
||||
// SectionType: Required. The section type of the device's provisioning
|
||||
// record.
|
||||
//
|
||||
// Possible values:
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
|
||||
@ -240,9 +243,12 @@ func (s *ClaimDeviceResponse) MarshalJSON() ([]byte, error) {
|
||||
}
|
||||
|
||||
// ClaimDevicesRequest: Request to claim devices asynchronously in
|
||||
// batch.
|
||||
// batch. Claiming a device adds the
|
||||
// device to zero-touch enrollment and shows the device in the
|
||||
// customer's view
|
||||
// of the portal.
|
||||
type ClaimDevicesRequest struct {
|
||||
// Claims: List of claims.
|
||||
// Claims: Required. A list of device claims.
|
||||
Claims []*PartnerClaim `json:"claims,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Claims") to
|
||||
@ -545,12 +551,12 @@ func (s *CustomerListConfigurationsResponse) MarshalJSON() ([]byte, error) {
|
||||
// CustomerListCustomersResponse: Response message for listing my
|
||||
// customers.
|
||||
type CustomerListCustomersResponse struct {
|
||||
// Customers: Customers the current user can act as.
|
||||
// Customers: The customer accounts the calling user is a member of.
|
||||
Customers []*Company `json:"customers,omitempty"`
|
||||
|
||||
// NextPageToken: Token to retrieve the next page of results, or empty
|
||||
// if there are no
|
||||
// more results in the list.
|
||||
// NextPageToken: A token used to access the next page of results.
|
||||
// Omitted if no further
|
||||
// results are available.
|
||||
NextPageToken string `json:"nextPageToken,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@ -939,12 +945,21 @@ func (s *DeviceReference) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// DevicesLongRunningOperationMetadata: Long running operation metadata.
|
||||
// DevicesLongRunningOperationMetadata: Tracks the status of a
|
||||
// long-running operation to asynchronously update a
|
||||
// batch of reseller metadata attached to devices. To learn more,
|
||||
// read
|
||||
// [Long‑running batch
|
||||
// operations](/zero-touch/guides/how-it-works#operations).
|
||||
type DevicesLongRunningOperationMetadata struct {
|
||||
// DevicesCount: Number of devices parsed in your requests.
|
||||
// DevicesCount: The number of metadata updates in the operation. This
|
||||
// might be different
|
||||
// from the number of updates in the request if the API can't parse some
|
||||
// of
|
||||
// the updates.
|
||||
DevicesCount int64 `json:"devicesCount,omitempty"`
|
||||
|
||||
// ProcessingStatus: The overall processing status.
|
||||
// ProcessingStatus: The processing status of the operation.
|
||||
//
|
||||
// Possible values:
|
||||
// "BATCH_PROCESS_STATUS_UNSPECIFIED" - Invalid code. Shouldn't be
|
||||
@ -957,7 +972,11 @@ type DevicesLongRunningOperationMetadata struct {
|
||||
// check the `response` field for the result of every item.
|
||||
ProcessingStatus string `json:"processingStatus,omitempty"`
|
||||
|
||||
// Progress: Processing progress from 0 to 100.
|
||||
// Progress: The processing progress of the operation. Measured as a
|
||||
// number from 0 to
|
||||
// 100. A value of 10O doesnt always mean the operation
|
||||
// completed—check for
|
||||
// the inclusion of a `done` field.
|
||||
Progress int64 `json:"progress,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DevicesCount") to
|
||||
@ -983,14 +1002,22 @@ func (s *DevicesLongRunningOperationMetadata) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// DevicesLongRunningOperationResponse: Long running operation response.
|
||||
// DevicesLongRunningOperationResponse: Tracks the status of a
|
||||
// long-running operation to claim, unclaim, or attach
|
||||
// metadata to devices. To learn more, read
|
||||
// [Long‑running batch
|
||||
// operations](/zero-touch/guides/how-it-works#operations).
|
||||
type DevicesLongRunningOperationResponse struct {
|
||||
// PerDeviceStatus: Processing status for each device.
|
||||
// One `PerDeviceStatus` per device. The order is the same as in your
|
||||
// requests.
|
||||
// PerDeviceStatus: The processing status for each device in the
|
||||
// operation.
|
||||
// One `PerDeviceStatus` per device. The list order matches the items in
|
||||
// the
|
||||
// original request.
|
||||
PerDeviceStatus []*OperationPerDevice `json:"perDeviceStatus,omitempty"`
|
||||
|
||||
// SuccessCount: Number of succeesfully processed ones.
|
||||
// SuccessCount: A summary of how many items in the operation the server
|
||||
// processed
|
||||
// successfully. Updated as the operation progresses.
|
||||
SuccessCount int64 `json:"successCount,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "PerDeviceStatus") to
|
||||
@ -1088,13 +1115,15 @@ type Empty struct {
|
||||
|
||||
// FindDevicesByDeviceIdentifierRequest: Request to find devices.
|
||||
type FindDevicesByDeviceIdentifierRequest struct {
|
||||
// DeviceIdentifier: The device identifier to search.
|
||||
// DeviceIdentifier: Required. The device identifier to search for.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// Limit: Number of devices to show.
|
||||
// Limit: Required. The maximum number of devices to show in a page of
|
||||
// results. Must
|
||||
// be between 1 and 100 inclusive.
|
||||
Limit int64 `json:"limit,omitempty,string"`
|
||||
|
||||
// PageToken: Page token.
|
||||
// PageToken: A token specifying which result page to return.
|
||||
PageToken string `json:"pageToken,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DeviceIdentifier") to
|
||||
@ -1127,7 +1156,9 @@ type FindDevicesByDeviceIdentifierResponse struct {
|
||||
// Devices: Found devices.
|
||||
Devices []*Device `json:"devices,omitempty"`
|
||||
|
||||
// NextPageToken: Page token of the next page.
|
||||
// NextPageToken: A token used to access the next page of results.
|
||||
// Omitted if no further
|
||||
// results are available.
|
||||
NextPageToken string `json:"nextPageToken,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@ -1159,16 +1190,19 @@ func (s *FindDevicesByDeviceIdentifierResponse) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// FindDevicesByOwnerRequest: Request to find devices by customers.
|
||||
type FindDevicesByOwnerRequest struct {
|
||||
// CustomerId: List of customer IDs to search for.
|
||||
// CustomerId: Required. The list of customer IDs to search for.
|
||||
CustomerId googleapi.Int64s `json:"customerId,omitempty"`
|
||||
|
||||
// Limit: The number of devices to show in the result.
|
||||
// Limit: Required. The maximum number of devices to show in a page of
|
||||
// results. Must
|
||||
// be between 1 and 100 inclusive.
|
||||
Limit int64 `json:"limit,omitempty,string"`
|
||||
|
||||
// PageToken: Page token.
|
||||
// PageToken: A token specifying which result page to return.
|
||||
PageToken string `json:"pageToken,omitempty"`
|
||||
|
||||
// SectionType: The section type.
|
||||
// SectionType: Required. The section type of the device's provisioning
|
||||
// record.
|
||||
//
|
||||
// Possible values:
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
|
||||
@ -1200,10 +1234,12 @@ func (s *FindDevicesByOwnerRequest) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// FindDevicesByOwnerResponse: Response containing found devices.
|
||||
type FindDevicesByOwnerResponse struct {
|
||||
// Devices: Devices found.
|
||||
// Devices: The customer's devices.
|
||||
Devices []*Device `json:"devices,omitempty"`
|
||||
|
||||
// NextPageToken: Page token of the next page.
|
||||
// NextPageToken: A token used to access the next page of
|
||||
// results.
|
||||
// Omitted if no further results are available.
|
||||
NextPageToken string `json:"nextPageToken,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@ -1236,7 +1272,7 @@ func (s *FindDevicesByOwnerResponse) MarshalJSON() ([]byte, error) {
|
||||
// ListCustomersResponse: Response message of all customers related to
|
||||
// this partner.
|
||||
type ListCustomersResponse struct {
|
||||
// Customers: List of customers related to this partner.
|
||||
// Customers: List of customers related to this reseller partner.
|
||||
Customers []*Company `json:"customers,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@ -1327,18 +1363,23 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// OperationPerDevice: Operation the server received for every device.
|
||||
// OperationPerDevice: A task for each device in the operation.
|
||||
// Corresponds to each device
|
||||
// change in the request.
|
||||
type OperationPerDevice struct {
|
||||
// Claim: Request to claim a device.
|
||||
// Claim: A copy of the original device-claim request received by the
|
||||
// server.
|
||||
Claim *PartnerClaim `json:"claim,omitempty"`
|
||||
|
||||
// Result: Processing result for every device.
|
||||
// Result: The processing result for each device.
|
||||
Result *PerDeviceStatusInBatch `json:"result,omitempty"`
|
||||
|
||||
// Unclaim: Request to unclaim a device.
|
||||
// Unclaim: A copy of the original device-unclaim request received by
|
||||
// the server.
|
||||
Unclaim *PartnerUnclaim `json:"unclaim,omitempty"`
|
||||
|
||||
// UpdateMetadata: Request to set metadata for a device.
|
||||
// UpdateMetadata: A copy of the original metadata-update request
|
||||
// received by the server.
|
||||
UpdateMetadata *UpdateMetadataArguments `json:"updateMetadata,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Claim") to
|
||||
@ -1366,16 +1407,19 @@ func (s *OperationPerDevice) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// PartnerClaim: Identifies one claim request.
|
||||
type PartnerClaim struct {
|
||||
// CustomerId: Customer ID to claim for.
|
||||
// CustomerId: Required. The ID of the customer for whom the device is
|
||||
// being claimed.
|
||||
CustomerId int64 `json:"customerId,omitempty,string"`
|
||||
|
||||
// DeviceIdentifier: Device identifier of the device.
|
||||
// DeviceIdentifier: Required. Device identifier of the device.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// DeviceMetadata: Metadata to set at claim.
|
||||
// DeviceMetadata: Required. The metadata to attach to the device at
|
||||
// claim.
|
||||
DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"`
|
||||
|
||||
// SectionType: Section type to claim.
|
||||
// SectionType: Required. The section type of the device's provisioning
|
||||
// record.
|
||||
//
|
||||
// Possible values:
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
|
||||
@ -1413,7 +1457,8 @@ type PartnerUnclaim struct {
|
||||
// DeviceIdentifier: Device identifier of the device.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// SectionType: Section type to unclaim.
|
||||
// SectionType: Required. The section type of the device's provisioning
|
||||
// record.
|
||||
//
|
||||
// Possible values:
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
|
||||
@ -1443,18 +1488,20 @@ func (s *PartnerUnclaim) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// PerDeviceStatusInBatch: Stores the processing result for each device.
|
||||
// PerDeviceStatusInBatch: Captures the processing status for each
|
||||
// device in the operation.
|
||||
type PerDeviceStatusInBatch struct {
|
||||
// DeviceId: Device ID of the device if process succeeds.
|
||||
// DeviceId: If processing succeeds, the device ID of the device.
|
||||
DeviceId int64 `json:"deviceId,omitempty,string"`
|
||||
|
||||
// ErrorIdentifier: Error identifier.
|
||||
// ErrorIdentifier: If processing fails, the error type.
|
||||
ErrorIdentifier string `json:"errorIdentifier,omitempty"`
|
||||
|
||||
// ErrorMessage: Error message.
|
||||
// ErrorMessage: If processing fails, a developer message explaining
|
||||
// what went wrong.
|
||||
ErrorMessage string `json:"errorMessage,omitempty"`
|
||||
|
||||
// Status: Process result.
|
||||
// Status: The result status of the device after processing.
|
||||
//
|
||||
// Possible values:
|
||||
// "SINGLE_DEVICE_STATUS_UNSPECIFIED" - Invalid code. Shouldn't be
|
||||
@ -1625,7 +1672,8 @@ type UnclaimDeviceRequest struct {
|
||||
// this device.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// SectionType: The section type to unclaim for.
|
||||
// SectionType: Required. The section type of the device's provisioning
|
||||
// record.
|
||||
//
|
||||
// Possible values:
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
|
||||
@ -1658,7 +1706,7 @@ func (s *UnclaimDeviceRequest) MarshalJSON() ([]byte, error) {
|
||||
// UnclaimDevicesRequest: Request to unclaim devices asynchronously in
|
||||
// batch.
|
||||
type UnclaimDevicesRequest struct {
|
||||
// Unclaims: List of devices to unclaim.
|
||||
// Unclaims: Required. The list of devices to unclaim.
|
||||
Unclaims []*PartnerUnclaim `json:"unclaims,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Unclaims") to
|
||||
@ -1687,7 +1735,7 @@ func (s *UnclaimDevicesRequest) MarshalJSON() ([]byte, error) {
|
||||
// UpdateDeviceMetadataInBatchRequest: Request to update device metadata
|
||||
// in batch.
|
||||
type UpdateDeviceMetadataInBatchRequest struct {
|
||||
// Updates: List of metadata updates.
|
||||
// Updates: Required. The list of metadata updates.
|
||||
Updates []*UpdateMetadataArguments `json:"updates,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Updates") to
|
||||
@ -1715,7 +1763,7 @@ func (s *UpdateDeviceMetadataInBatchRequest) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// UpdateDeviceMetadataRequest: Request to set metadata for a device.
|
||||
type UpdateDeviceMetadataRequest struct {
|
||||
// DeviceMetadata: The metdata to set.
|
||||
// DeviceMetadata: Required. The metdata to attach to the device.
|
||||
DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DeviceMetadata") to
|
||||
@ -1750,7 +1798,7 @@ type UpdateMetadataArguments struct {
|
||||
// DeviceIdentifier: Device identifier.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// DeviceMetadata: The metadata to update.
|
||||
// DeviceMetadata: Required. The metadata to update.
|
||||
DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DeviceId") to
|
||||
@ -1786,21 +1834,22 @@ type CustomersListCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: List the user's customer accounts.
|
||||
// List: Lists the user's customer accounts.
|
||||
func (r *CustomersService) List() *CustomersListCall {
|
||||
c := &CustomersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
return c
|
||||
}
|
||||
|
||||
// PageSize sets the optional parameter "pageSize": The maximum number
|
||||
// of items to return.
|
||||
// of customers to show in a page of results.
|
||||
// A number between 1 and 100 (inclusive).
|
||||
func (c *CustomersListCall) PageSize(pageSize int64) *CustomersListCall {
|
||||
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
|
||||
return c
|
||||
}
|
||||
|
||||
// PageToken sets the optional parameter "pageToken": The
|
||||
// next_page_token value returned from a previous List request, if any.
|
||||
// PageToken sets the optional parameter "pageToken": A token specifying
|
||||
// which result page to return.
|
||||
func (c *CustomersListCall) PageToken(pageToken string) *CustomersListCall {
|
||||
c.urlParams_.Set("pageToken", pageToken)
|
||||
return c
|
||||
@ -1897,20 +1946,20 @@ func (c *CustomersListCall) Do(opts ...googleapi.CallOption) (*CustomerListCusto
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "List the user's customer accounts.",
|
||||
// "description": "Lists the user's customer accounts.",
|
||||
// "flatPath": "v1/customers",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "androiddeviceprovisioning.customers.list",
|
||||
// "parameterOrder": [],
|
||||
// "parameters": {
|
||||
// "pageSize": {
|
||||
// "description": "The maximum number of items to return.",
|
||||
// "description": "The maximum number of customers to show in a page of results.\nA number between 1 and 100 (inclusive).",
|
||||
// "format": "int32",
|
||||
// "location": "query",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "pageToken": {
|
||||
// "description": "The next_page_token value returned from a previous List request, if any.",
|
||||
// "description": "A token specifying which result page to return.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
@ -3891,7 +3940,7 @@ func (c *PartnersCustomersListCall) Do(opts ...googleapi.CallOption) (*ListCusto
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "The ID of the partner.",
|
||||
// "description": "Required. The ID of the reseller partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
@ -3918,7 +3967,10 @@ type PartnersDevicesClaimCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Claim: Claim the device identified by device identifier.
|
||||
// Claim: Claims a device for a customer and adds it to zero-touch
|
||||
// enrollment. If the
|
||||
// device is already claimed by another customer, the call returns an
|
||||
// error.
|
||||
func (r *PartnersDevicesService) Claim(partnerId int64, claimdevicerequest *ClaimDeviceRequest) *PartnersDevicesClaimCall {
|
||||
c := &PartnersDevicesClaimCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.partnerId = partnerId
|
||||
@ -4012,7 +4064,7 @@ func (c *PartnersDevicesClaimCall) Do(opts ...googleapi.CallOption) (*ClaimDevic
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Claim the device identified by device identifier.",
|
||||
// "description": "Claims a device for a customer and adds it to zero-touch enrollment. If the\ndevice is already claimed by another customer, the call returns an error.",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices:claim",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.claim",
|
||||
@ -4021,7 +4073,7 @@ func (c *PartnersDevicesClaimCall) Do(opts ...googleapi.CallOption) (*ClaimDevic
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "ID of the partner.",
|
||||
// "description": "Required. The ID of the reseller partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
@ -4051,7 +4103,11 @@ type PartnersDevicesClaimAsyncCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// ClaimAsync: Claim devices asynchronously.
|
||||
// ClaimAsync: Claims a batch of devices for a customer asynchronously.
|
||||
// Adds the devices
|
||||
// to zero-touch enrollment. To learn more, read [Long‑running
|
||||
// batch
|
||||
// operations](/zero-touch/guides/how-it-works#operations).
|
||||
func (r *PartnersDevicesService) ClaimAsync(partnerId int64, claimdevicesrequest *ClaimDevicesRequest) *PartnersDevicesClaimAsyncCall {
|
||||
c := &PartnersDevicesClaimAsyncCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.partnerId = partnerId
|
||||
@ -4145,7 +4201,7 @@ func (c *PartnersDevicesClaimAsyncCall) Do(opts ...googleapi.CallOption) (*Opera
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Claim devices asynchronously.",
|
||||
// "description": "Claims a batch of devices for a customer asynchronously. Adds the devices\nto zero-touch enrollment. To learn more, read [Long‑running batch\noperations](/zero-touch/guides/how-it-works#operations).",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices:claimAsync",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.claimAsync",
|
||||
@ -4154,7 +4210,7 @@ func (c *PartnersDevicesClaimAsyncCall) Do(opts ...googleapi.CallOption) (*Opera
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "Partner ID.",
|
||||
// "description": "Required. The ID of the reseller partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
@ -4184,7 +4240,8 @@ type PartnersDevicesFindByIdentifierCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// FindByIdentifier: Find devices by device identifier.
|
||||
// FindByIdentifier: Finds devices by hardware identifiers, such as
|
||||
// IMEI.
|
||||
func (r *PartnersDevicesService) FindByIdentifier(partnerId int64, finddevicesbydeviceidentifierrequest *FindDevicesByDeviceIdentifierRequest) *PartnersDevicesFindByIdentifierCall {
|
||||
c := &PartnersDevicesFindByIdentifierCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.partnerId = partnerId
|
||||
@ -4279,7 +4336,7 @@ func (c *PartnersDevicesFindByIdentifierCall) Do(opts ...googleapi.CallOption) (
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Find devices by device identifier.",
|
||||
// "description": "Finds devices by hardware identifiers, such as IMEI.",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices:findByIdentifier",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.findByIdentifier",
|
||||
@ -4288,7 +4345,7 @@ func (c *PartnersDevicesFindByIdentifierCall) Do(opts ...googleapi.CallOption) (
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "ID of the partner.",
|
||||
// "description": "Required. The ID of the reseller partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
@ -4339,7 +4396,13 @@ type PartnersDevicesFindByOwnerCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// FindByOwner: Find devices by ownership.
|
||||
// FindByOwner: Finds devices claimed for customers. The results only
|
||||
// contain devices
|
||||
// registered to the reseller that's identified by the `partnerId`
|
||||
// argument.
|
||||
// The customer's devices purchased from other resellers don't appear in
|
||||
// the
|
||||
// results.
|
||||
func (r *PartnersDevicesService) FindByOwner(partnerId int64, finddevicesbyownerrequest *FindDevicesByOwnerRequest) *PartnersDevicesFindByOwnerCall {
|
||||
c := &PartnersDevicesFindByOwnerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.partnerId = partnerId
|
||||
@ -4433,7 +4496,7 @@ func (c *PartnersDevicesFindByOwnerCall) Do(opts ...googleapi.CallOption) (*Find
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Find devices by ownership.",
|
||||
// "description": "Finds devices claimed for customers. The results only contain devices\nregistered to the reseller that's identified by the `partnerId` argument.\nThe customer's devices purchased from other resellers don't appear in the\nresults.",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices:findByOwner",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.findByOwner",
|
||||
@ -4442,7 +4505,7 @@ func (c *PartnersDevicesFindByOwnerCall) Do(opts ...googleapi.CallOption) (*Find
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "ID of the partner.",
|
||||
// "description": "Required. The ID of the reseller partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
@ -4493,7 +4556,7 @@ type PartnersDevicesGetCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Get a device.
|
||||
// Get: Gets a device.
|
||||
func (r *PartnersDevicesService) Get(name string) *PartnersDevicesGetCall {
|
||||
c := &PartnersDevicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
@ -4594,7 +4657,7 @@ func (c *PartnersDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, erro
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Get a device.",
|
||||
// "description": "Gets a device.",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices/{devicesId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.get",
|
||||
@ -4603,7 +4666,7 @@ func (c *PartnersDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, erro
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "name": {
|
||||
// "description": "Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.",
|
||||
// "description": "Required. The device API resource name in the format\n`partners/[PARTNER_ID]/devices/[DEVICE_ID]`.",
|
||||
// "location": "path",
|
||||
// "pattern": "^partners/[^/]+/devices/[^/]+$",
|
||||
// "required": true,
|
||||
@ -4630,7 +4693,7 @@ type PartnersDevicesMetadataCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Metadata: Update the metadata.
|
||||
// Metadata: Updates reseller metadata associated with the device.
|
||||
func (r *PartnersDevicesService) Metadata(metadataOwnerId int64, deviceId int64, updatedevicemetadatarequest *UpdateDeviceMetadataRequest) *PartnersDevicesMetadataCall {
|
||||
c := &PartnersDevicesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.metadataOwnerId = metadataOwnerId
|
||||
@ -4726,7 +4789,7 @@ func (c *PartnersDevicesMetadataCall) Do(opts ...googleapi.CallOption) (*DeviceM
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Update the metadata.",
|
||||
// "description": "Updates reseller metadata associated with the device.",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices/{devicesId}/metadata",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.metadata",
|
||||
@ -4736,7 +4799,7 @@ func (c *PartnersDevicesMetadataCall) Do(opts ...googleapi.CallOption) (*DeviceM
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "deviceId": {
|
||||
// "description": "ID of the partner.",
|
||||
// "description": "Required. The ID of the reseller partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
@ -4744,7 +4807,7 @@ func (c *PartnersDevicesMetadataCall) Do(opts ...googleapi.CallOption) (*DeviceM
|
||||
// "type": "string"
|
||||
// },
|
||||
// "metadataOwnerId": {
|
||||
// "description": "The owner of the newly set metadata. Set this to the partner ID.",
|
||||
// "description": "Required. The owner of the newly set metadata. Set this to the partner ID.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
@ -4774,8 +4837,9 @@ type PartnersDevicesUnclaimCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Unclaim: Unclaim the device identified by the `device_id` or the
|
||||
// `deviceIdentifier`.
|
||||
// Unclaim: Unclaims a device from a customer and removes it from
|
||||
// zero-touch
|
||||
// enrollment.
|
||||
func (r *PartnersDevicesService) Unclaim(partnerId int64, unclaimdevicerequest *UnclaimDeviceRequest) *PartnersDevicesUnclaimCall {
|
||||
c := &PartnersDevicesUnclaimCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.partnerId = partnerId
|
||||
@ -4869,7 +4933,7 @@ func (c *PartnersDevicesUnclaimCall) Do(opts ...googleapi.CallOption) (*Empty, e
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Unclaim the device identified by the `device_id` or the `deviceIdentifier`.",
|
||||
// "description": "Unclaims a device from a customer and removes it from zero-touch\nenrollment.",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices:unclaim",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.unclaim",
|
||||
@ -4878,7 +4942,7 @@ func (c *PartnersDevicesUnclaimCall) Do(opts ...googleapi.CallOption) (*Empty, e
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "ID of the partner.",
|
||||
// "description": "Required. The ID of the reseller partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
@ -4908,7 +4972,12 @@ type PartnersDevicesUnclaimAsyncCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// UnclaimAsync: Unclaim devices asynchronously.
|
||||
// UnclaimAsync: Unclaims a batch of devices for a customer
|
||||
// asynchronously. Removes the
|
||||
// devices from zero-touch enrollment. To learn more, read
|
||||
// [Long‑running
|
||||
// batch
|
||||
// operations](/zero-touch/guides/how-it-works#operations).
|
||||
func (r *PartnersDevicesService) UnclaimAsync(partnerId int64, unclaimdevicesrequest *UnclaimDevicesRequest) *PartnersDevicesUnclaimAsyncCall {
|
||||
c := &PartnersDevicesUnclaimAsyncCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.partnerId = partnerId
|
||||
@ -5002,7 +5071,7 @@ func (c *PartnersDevicesUnclaimAsyncCall) Do(opts ...googleapi.CallOption) (*Ope
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Unclaim devices asynchronously.",
|
||||
// "description": "Unclaims a batch of devices for a customer asynchronously. Removes the\ndevices from zero-touch enrollment. To learn more, read [Long‑running batch\noperations](/zero-touch/guides/how-it-works#operations).",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices:unclaimAsync",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.unclaimAsync",
|
||||
@ -5011,7 +5080,7 @@ func (c *PartnersDevicesUnclaimAsyncCall) Do(opts ...googleapi.CallOption) (*Ope
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "Partner ID.",
|
||||
// "description": "Required. The reseller partner ID.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
@ -5041,7 +5110,13 @@ type PartnersDevicesUpdateMetadataAsyncCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// UpdateMetadataAsync: Set metadata in batch asynchronously.
|
||||
// UpdateMetadataAsync: Updates the reseller metadata attached to a
|
||||
// batch of devices. This method
|
||||
// updates devices asynchronously and returns an `Operation` that can be
|
||||
// used
|
||||
// to track progress. Read [Long‑running
|
||||
// batch
|
||||
// operations](/zero-touch/guides/how-it-works#operations).
|
||||
func (r *PartnersDevicesService) UpdateMetadataAsync(partnerId int64, updatedevicemetadatainbatchrequest *UpdateDeviceMetadataInBatchRequest) *PartnersDevicesUpdateMetadataAsyncCall {
|
||||
c := &PartnersDevicesUpdateMetadataAsyncCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.partnerId = partnerId
|
||||
@ -5135,7 +5210,7 @@ func (c *PartnersDevicesUpdateMetadataAsyncCall) Do(opts ...googleapi.CallOption
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Set metadata in batch asynchronously.",
|
||||
// "description": "Updates the reseller metadata attached to a batch of devices. This method\nupdates devices asynchronously and returns an `Operation` that can be used\nto track progress. Read [Long‑running batch\noperations](/zero-touch/guides/how-it-works#operations).",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices:updateMetadataAsync",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.updateMetadataAsync",
|
||||
@ -5144,7 +5219,7 @@ func (c *PartnersDevicesUpdateMetadataAsyncCall) Do(opts ...googleapi.CallOption
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "Partner ID.",
|
||||
// "description": "Required. The reseller partner ID.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
|
8786
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-api.json
generated
vendored
8786
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
78
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-gen.go
generated
vendored
78
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-gen.go
generated
vendored
@ -1524,6 +1524,41 @@ func (s *LocalizedText) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// MaintenanceWindow: Maintenance window for managed Google Play
|
||||
// Accounts. This allows Play store to update the apps on the foreground
|
||||
// in the designated window.
|
||||
type MaintenanceWindow struct {
|
||||
// DurationMs: Duration of the maintenance window, in milliseconds. The
|
||||
// duration must be between 30 minutes and 24 hours (inclusive).
|
||||
DurationMs int64 `json:"durationMs,omitempty,string"`
|
||||
|
||||
// StartTimeAfterMidnightMs: Start time of the maintenance window, in
|
||||
// milliseconds after midnight on the device. Windows can span midnight.
|
||||
StartTimeAfterMidnightMs int64 `json:"startTimeAfterMidnightMs,omitempty,string"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DurationMs") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "DurationMs") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod MaintenanceWindow
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ManagedConfiguration: A managed configuration resource contains the
|
||||
// set of managed properties defined by the app developer in the app's
|
||||
// managed configurations schema, as well as any configuration variables
|
||||
@ -1662,6 +1697,10 @@ type ManagedConfigurationsSettings struct {
|
||||
// string "androidenterprise#managedConfigurationsSettings".
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// LastUpdatedTimestampMillis: The last updated time of the managed
|
||||
// configuration settings in milliseconds since 1970-01-01T00:00:00Z.
|
||||
LastUpdatedTimestampMillis int64 `json:"lastUpdatedTimestampMillis,omitempty,string"`
|
||||
|
||||
// ManagedProperty: The set of managed properties for this
|
||||
// configuration.
|
||||
ManagedProperty []*ManagedProperty `json:"managedProperty,omitempty"`
|
||||
@ -2094,6 +2133,18 @@ func (s *Permission) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Policy: The device policy for a given managed device.
|
||||
type Policy struct {
|
||||
// AutoUpdatePolicy: The auto-update policy for apps installed on the
|
||||
// device. "choiceToTheUser" allows the device's user to configure the
|
||||
// app update policy. "always" enables auto updates. "never" disables
|
||||
// auto updates. "wifiOnly" enables auto updates only when the device is
|
||||
// connected to wifi.
|
||||
AutoUpdatePolicy string `json:"autoUpdatePolicy,omitempty"`
|
||||
|
||||
// MaintenanceWindow: The maintenance window defining when apps running
|
||||
// in the foreground should be updated. This feature is only supported
|
||||
// on fully managed devices.
|
||||
MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
|
||||
|
||||
// ProductAvailabilityPolicy: The availability granted to the device for
|
||||
// the specified products. "all" gives the device access to all
|
||||
// products, regardless of approval status. "allApproved" entitles the
|
||||
@ -2110,22 +2161,21 @@ type Policy struct {
|
||||
// ProductPolicy: The list of product policies.
|
||||
ProductPolicy []*ProductPolicy `json:"productPolicy,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "ProductAvailabilityPolicy") to unconditionally include in API
|
||||
// requests. By default, fields with empty values are omitted from API
|
||||
// requests. However, any non-pointer, non-interface field appearing in
|
||||
// ForceSendFields will be sent to the server regardless of whether the
|
||||
// field is empty or not. This may be used to include empty fields in
|
||||
// Patch requests.
|
||||
// ForceSendFields is a list of field names (e.g. "AutoUpdatePolicy") 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.
|
||||
// "ProductAvailabilityPolicy") 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. "AutoUpdatePolicy") 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:"-"`
|
||||
}
|
||||
|
||||
|
4533
vendor/google.golang.org/api/androidmanagement/v1/androidmanagement-api.json
generated
vendored
4533
vendor/google.golang.org/api/androidmanagement/v1/androidmanagement-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
655
vendor/google.golang.org/api/androidmanagement/v1/androidmanagement-gen.go
generated
vendored
655
vendor/google.golang.org/api/androidmanagement/v1/androidmanagement-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
518
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-api.json
generated
vendored
518
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-api.json
generated
vendored
@ -1,265 +1,265 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/jjPNPRw3vV3kPmpQDcyXQEJTSyY\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "androidpublisher:v1.1",
|
||||
"name": "androidpublisher",
|
||||
"canonicalName": "Android Publisher",
|
||||
"version": "v1.1",
|
||||
"revision": "20171207",
|
||||
"title": "Google Play Developer API",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/android-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/android-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/android-publisher",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/androidpublisher/v1.1/applications/",
|
||||
"basePath": "/androidpublisher/v1.1/applications/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "androidpublisher/v1.1/applications/",
|
||||
"batchPath": "batch/androidpublisher/v1.1",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"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.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/androidpublisher": {
|
||||
"description": "View and manage your Google Play Developer account"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"InappPurchase": {
|
||||
"id": "InappPurchase",
|
||||
"type": "object",
|
||||
"description": "An InappPurchase resource indicates the status of a user's inapp product purchase.",
|
||||
"properties": {
|
||||
"consumptionState": {
|
||||
"type": "integer",
|
||||
"description": "The consumption state of the inapp product. Possible values are: \n- Yet to be consumed \n- Consumed",
|
||||
"format": "int32"
|
||||
},
|
||||
"developerPayload": {
|
||||
"type": "string",
|
||||
"description": "A developer-specified string that contains supplemental information about an order."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "This kind represents an inappPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#inappPurchase"
|
||||
},
|
||||
"orderId": {
|
||||
"type": "string",
|
||||
"description": "The order id associated with the purchase of the inapp product."
|
||||
},
|
||||
"purchaseState": {
|
||||
"type": "integer",
|
||||
"description": "The purchase state of the order. Possible values are: \n- Purchased \n- Cancelled",
|
||||
"format": "int32"
|
||||
},
|
||||
"purchaseTime": {
|
||||
"type": "string",
|
||||
"description": "The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).",
|
||||
"format": "int64"
|
||||
},
|
||||
"purchaseType": {
|
||||
"type": "integer",
|
||||
"description": "The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: \n- Test (i.e. purchased from a license testing account)",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SubscriptionPurchase": {
|
||||
"id": "SubscriptionPurchase",
|
||||
"type": "object",
|
||||
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
|
||||
"properties": {
|
||||
"autoRenewing": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time."
|
||||
},
|
||||
"initiationTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#subscriptionPurchase"
|
||||
},
|
||||
"validUntilTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"inapppurchases": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "androidpublisher.inapppurchases.get",
|
||||
"path": "{packageName}/inapp/{productId}/purchases/{token}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Checks the purchase and consumption status of an inapp item.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"productId": {
|
||||
"type": "string",
|
||||
"description": "The inapp product SKU (for example, 'com.some.thing.inapp1').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the inapp product was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/androidpublisher": {
|
||||
"description": "View and manage your Google Play Developer account"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"productId",
|
||||
"token"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "InappPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"purchases": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"id": "androidpublisher.purchases.cancel",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
"httpMethod": "POST",
|
||||
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
"basePath": "/androidpublisher/v1.1/applications/",
|
||||
"baseUrl": "https://www.googleapis.com/androidpublisher/v1.1/applications/",
|
||||
"batchPath": "batch/androidpublisher/v1.1",
|
||||
"canonicalName": "Android Publisher",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/android-publisher",
|
||||
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/Xvb720kj6kaUU3p6XJECzzWJnek\"",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/android-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/android-32.png"
|
||||
},
|
||||
"id": "androidpublisher:v1.1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "androidpublisher",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for the response.",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"get": {
|
||||
"id": "androidpublisher.purchases.get",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "SubscriptionPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"userIp": {
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"inapppurchases": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Checks the purchase and consumption status of an inapp item.",
|
||||
"httpMethod": "GET",
|
||||
"id": "androidpublisher.inapppurchases.get",
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"productId",
|
||||
"token"
|
||||
],
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"productId": {
|
||||
"description": "The inapp product SKU (for example, 'com.some.thing.inapp1').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "The token provided to the user's device when the inapp product was purchased.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "{packageName}/inapp/{productId}/purchases/{token}",
|
||||
"response": {
|
||||
"$ref": "InappPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"purchases": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
"httpMethod": "POST",
|
||||
"id": "androidpublisher.purchases.cancel",
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
"httpMethod": "GET",
|
||||
"id": "androidpublisher.purchases.get",
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
"response": {
|
||||
"$ref": "SubscriptionPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180211",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"InappPurchase": {
|
||||
"description": "An InappPurchase resource indicates the status of a user's inapp product purchase.",
|
||||
"id": "InappPurchase",
|
||||
"properties": {
|
||||
"consumptionState": {
|
||||
"description": "The consumption state of the inapp product. Possible values are: \n- Yet to be consumed \n- Consumed",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"developerPayload": {
|
||||
"description": "A developer-specified string that contains supplemental information about an order.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "androidpublisher#inappPurchase",
|
||||
"description": "This kind represents an inappPurchase object in the androidpublisher service.",
|
||||
"type": "string"
|
||||
},
|
||||
"orderId": {
|
||||
"description": "The order id associated with the purchase of the inapp product.",
|
||||
"type": "string"
|
||||
},
|
||||
"purchaseState": {
|
||||
"description": "The purchase state of the order. Possible values are: \n- Purchased \n- Canceled",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"purchaseTime": {
|
||||
"description": "The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"purchaseType": {
|
||||
"description": "The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: \n- Test (i.e. purchased from a license testing account) \n- Promo (i.e. purchased using a promo code)",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SubscriptionPurchase": {
|
||||
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
|
||||
"id": "SubscriptionPurchase",
|
||||
"properties": {
|
||||
"autoRenewing": {
|
||||
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"initiationTimestampMsec": {
|
||||
"description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "androidpublisher#subscriptionPurchase",
|
||||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"type": "string"
|
||||
},
|
||||
"validUntilTimestampMsec": {
|
||||
"description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "androidpublisher/v1.1/applications/",
|
||||
"title": "Google Play Developer API",
|
||||
"version": "v1.1"
|
||||
}
|
3
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-gen.go
generated
vendored
3
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-gen.go
generated
vendored
@ -120,7 +120,7 @@ type InappPurchase struct {
|
||||
// PurchaseState: The purchase state of the order. Possible values are:
|
||||
//
|
||||
// - Purchased
|
||||
// - Cancelled
|
||||
// - Canceled
|
||||
PurchaseState int64 `json:"purchaseState,omitempty"`
|
||||
|
||||
// PurchaseTime: The time the product was purchased, in milliseconds
|
||||
@ -131,6 +131,7 @@ type InappPurchase struct {
|
||||
// is only set if this purchase was not made using the standard in-app
|
||||
// billing flow. Possible values are:
|
||||
// - Test (i.e. purchased from a license testing account)
|
||||
// - Promo (i.e. purchased using a promo code)
|
||||
PurchaseType int64 `json:"purchaseType,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
362
vendor/google.golang.org/api/androidpublisher/v1/androidpublisher-api.json
generated
vendored
362
vendor/google.golang.org/api/androidpublisher/v1/androidpublisher-api.json
generated
vendored
@ -1,184 +1,184 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/Ex2nsAPYjRP0NRWSGg4yyxwNJ18\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "androidpublisher:v1",
|
||||
"name": "androidpublisher",
|
||||
"canonicalName": "Android Publisher",
|
||||
"version": "v1",
|
||||
"revision": "20170913",
|
||||
"title": "Google Play Developer API",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/android-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/android-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/android-publisher",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/androidpublisher/v1/applications/",
|
||||
"basePath": "/androidpublisher/v1/applications/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "androidpublisher/v1/applications/",
|
||||
"batchPath": "batch/androidpublisher/v1",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"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.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/androidpublisher": {
|
||||
"description": "View and manage your Google Play Developer account"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"SubscriptionPurchase": {
|
||||
"id": "SubscriptionPurchase",
|
||||
"type": "object",
|
||||
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
|
||||
"properties": {
|
||||
"autoRenewing": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time."
|
||||
},
|
||||
"initiationTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#subscriptionPurchase"
|
||||
},
|
||||
"validUntilTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"purchases": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"id": "androidpublisher.purchases.cancel",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
"httpMethod": "POST",
|
||||
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/androidpublisher": {
|
||||
"description": "View and manage your Google Play Developer account"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "androidpublisher.purchases.get",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "SubscriptionPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"basePath": "/androidpublisher/v1/applications/",
|
||||
"baseUrl": "https://www.googleapis.com/androidpublisher/v1/applications/",
|
||||
"batchPath": "batch/androidpublisher/v1",
|
||||
"canonicalName": "Android Publisher",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/android-publisher",
|
||||
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/R8egrhZl5j6Tk7CLvSpuFNhpTLc\"",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/android-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/android-32.png"
|
||||
},
|
||||
"id": "androidpublisher:v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "androidpublisher",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for the response.",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"userIp": {
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"purchases": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
"httpMethod": "POST",
|
||||
"id": "androidpublisher.purchases.cancel",
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
"httpMethod": "GET",
|
||||
"id": "androidpublisher.purchases.get",
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
"response": {
|
||||
"$ref": "SubscriptionPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180121",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"SubscriptionPurchase": {
|
||||
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
|
||||
"id": "SubscriptionPurchase",
|
||||
"properties": {
|
||||
"autoRenewing": {
|
||||
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"initiationTimestampMsec": {
|
||||
"description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "androidpublisher#subscriptionPurchase",
|
||||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"type": "string"
|
||||
},
|
||||
"validUntilTimestampMsec": {
|
||||
"description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "androidpublisher/v1/applications/",
|
||||
"title": "Google Play Developer API",
|
||||
"version": "v1"
|
||||
}
|
6859
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-api.json
generated
vendored
6859
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
350
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-gen.go
generated
vendored
350
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-gen.go
generated
vendored
@ -57,7 +57,6 @@ func New(client *http.Client) (*Service, error) {
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
s.Edits = NewEditsService(s)
|
||||
s.Entitlements = NewEntitlementsService(s)
|
||||
s.Inappproducts = NewInappproductsService(s)
|
||||
s.Purchases = NewPurchasesService(s)
|
||||
s.Reviews = NewReviewsService(s)
|
||||
@ -71,8 +70,6 @@ type Service struct {
|
||||
|
||||
Edits *EditsService
|
||||
|
||||
Entitlements *EntitlementsService
|
||||
|
||||
Inappproducts *InappproductsService
|
||||
|
||||
Purchases *PurchasesService
|
||||
@ -204,15 +201,6 @@ type EditsTracksService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
func NewEntitlementsService(s *Service) *EntitlementsService {
|
||||
rs := &EntitlementsService{s: s}
|
||||
return rs
|
||||
}
|
||||
|
||||
type EntitlementsService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
func NewInappproductsService(s *Service) *InappproductsService {
|
||||
rs := &InappproductsService{s: s}
|
||||
return rs
|
||||
@ -766,82 +754,6 @@ func (s *DeviceMetadata) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Entitlement: An Entitlement resource indicates a user's current
|
||||
// entitlement to an inapp item or subscription.
|
||||
type Entitlement struct {
|
||||
// Kind: This kind represents an entitlement object in the
|
||||
// androidpublisher service.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// ProductId: The SKU of the product.
|
||||
ProductId string `json:"productId,omitempty"`
|
||||
|
||||
// ProductType: The type of the inapp product. Possible values are:
|
||||
// - In-app item: "inapp"
|
||||
// - Subscription: "subs"
|
||||
ProductType string `json:"productType,omitempty"`
|
||||
|
||||
// Token: The token which can be verified using the subscriptions or
|
||||
// products API.
|
||||
Token string `json:"token,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Kind") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Kind") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Entitlement) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod Entitlement
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type EntitlementsListResponse struct {
|
||||
PageInfo *PageInfo `json:"pageInfo,omitempty"`
|
||||
|
||||
Resources []*Entitlement `json:"resources,omitempty"`
|
||||
|
||||
TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "PageInfo") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "PageInfo") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *EntitlementsListResponse) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod EntitlementsListResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type ExpansionFile struct {
|
||||
// FileSize: If set this field indicates that this APK has an Expansion
|
||||
// File uploaded to it: this APK does not reference another APK's
|
||||
@ -1481,7 +1393,7 @@ type ProductPurchase struct {
|
||||
// PurchaseState: The purchase state of the order. Possible values are:
|
||||
//
|
||||
// - Purchased
|
||||
// - Cancelled
|
||||
// - Canceled
|
||||
PurchaseState int64 `json:"purchaseState,omitempty"`
|
||||
|
||||
// PurchaseTimeMillis: The time the product was purchased, in
|
||||
@ -1492,6 +1404,7 @@ type ProductPurchase struct {
|
||||
// is only set if this purchase was not made using the standard in-app
|
||||
// billing flow. Possible values are:
|
||||
// - Test (i.e. purchased from a license testing account)
|
||||
// - Promo (i.e. purchased using a promo code)
|
||||
PurchaseType int64 `json:"purchaseType,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@ -1797,13 +1710,13 @@ type SubscriptionPurchase struct {
|
||||
// when it reaches its current expiry time.
|
||||
AutoRenewing bool `json:"autoRenewing,omitempty"`
|
||||
|
||||
// CancelReason: The reason why a subscription was cancelled or is not
|
||||
// CancelReason: The reason why a subscription was canceled or is not
|
||||
// auto-renewing. Possible values are:
|
||||
// - User cancelled the subscription
|
||||
// - Subscription was cancelled by the system, for example because of a
|
||||
// - User canceled the subscription
|
||||
// - Subscription was canceled by the system, for example because of a
|
||||
// billing problem
|
||||
// - Subscription was replaced with a new subscription
|
||||
// - Subscription was cancelled by the developer
|
||||
// - Subscription was canceled by the developer
|
||||
CancelReason *int64 `json:"cancelReason,omitempty"`
|
||||
|
||||
// CountryCode: ISO 3166-1 alpha-2 billing country/region code of the
|
||||
@ -1814,10 +1727,25 @@ type SubscriptionPurchase struct {
|
||||
// supplemental information about an order.
|
||||
DeveloperPayload string `json:"developerPayload,omitempty"`
|
||||
|
||||
// EmailAddress: The email address of the user when the subscription was
|
||||
// purchased. Only present for purchases made with 'Subscribe with
|
||||
// Google'.
|
||||
EmailAddress string `json:"emailAddress,omitempty"`
|
||||
|
||||
// ExpiryTimeMillis: Time at which the subscription will expire, in
|
||||
// milliseconds since the Epoch.
|
||||
ExpiryTimeMillis int64 `json:"expiryTimeMillis,omitempty,string"`
|
||||
|
||||
// FamilyName: The family name of the user when the subscription was
|
||||
// purchased. Only present for purchases made with 'Subscribe with
|
||||
// Google'.
|
||||
FamilyName string `json:"familyName,omitempty"`
|
||||
|
||||
// GivenName: The given name of the user when the subscription was
|
||||
// purchased. Only present for purchases made with 'Subscribe with
|
||||
// Google'.
|
||||
GivenName string `json:"givenName,omitempty"`
|
||||
|
||||
// Kind: This kind represents a subscriptionPurchase object in the
|
||||
// androidpublisher service.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
@ -1858,6 +1786,16 @@ type SubscriptionPurchase struct {
|
||||
// price_currency_code is "GBP".
|
||||
PriceCurrencyCode string `json:"priceCurrencyCode,omitempty"`
|
||||
|
||||
// ProfileId: The profile id of the user when the subscription was
|
||||
// purchased. Only present for purchases made with 'Subscribe with
|
||||
// Google'.
|
||||
ProfileId string `json:"profileId,omitempty"`
|
||||
|
||||
// ProfileName: The profile name of the user when the subscription was
|
||||
// purchased. Only present for purchases made with 'Subscribe with
|
||||
// Google'.
|
||||
ProfileName string `json:"profileName,omitempty"`
|
||||
|
||||
// PurchaseType: The type of purchase of the subscription. This field is
|
||||
// only set if this purchase was not made using the standard in-app
|
||||
// billing flow. Possible values are:
|
||||
@ -2051,7 +1989,7 @@ func (s *TokenPagination) MarshalJSON() ([]byte, error) {
|
||||
|
||||
type Track struct {
|
||||
// Track: Identifier for this track. One of "alpha", "beta",
|
||||
// "production" or "rollout".
|
||||
// "production", "rollout" or "internal".
|
||||
Track string `json:"track,omitempty"`
|
||||
|
||||
UserFraction float64 `json:"userFraction,omitempty"`
|
||||
@ -2209,7 +2147,7 @@ func (s *UserComment) MarshalJSON() ([]byte, error) {
|
||||
}
|
||||
|
||||
// VoidedPurchase: A VoidedPurchase resource indicates a purchase that
|
||||
// was either cancelled/refunded/charged-back.
|
||||
// was either canceled/refunded/charged-back.
|
||||
type VoidedPurchase struct {
|
||||
// Kind: This kind represents a voided purchase object in the
|
||||
// androidpublisher service.
|
||||
@ -2224,7 +2162,7 @@ type VoidedPurchase struct {
|
||||
PurchaseToken string `json:"purchaseToken,omitempty"`
|
||||
|
||||
// VoidedTimeMillis: The time at which the purchase was
|
||||
// cancelled/refunded/charged-back, in milliseconds since the epoch (Jan
|
||||
// canceled/refunded/charged-back, in milliseconds since the epoch (Jan
|
||||
// 1, 1970).
|
||||
VoidedTimeMillis int64 `json:"voidedTimeMillis,omitempty,string"`
|
||||
|
||||
@ -4240,11 +4178,12 @@ func (c *EditsApksUploadCall) doRequest(alt string) (*http.Response, error) {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
gensupport.SetGetBody(req, getBody)
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageNameid,
|
||||
"editId": c.editId,
|
||||
@ -4462,11 +4401,12 @@ func (c *EditsDeobfuscationfilesUploadCall) doRequest(alt string) (*http.Respons
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
gensupport.SetGetBody(req, getBody)
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageNameid,
|
||||
"editId": c.editId,
|
||||
@ -5662,11 +5602,12 @@ func (c *EditsExpansionfilesUploadCall) doRequest(alt string) (*http.Response, e
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
gensupport.SetGetBody(req, getBody)
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageNameid,
|
||||
"editId": c.editId,
|
||||
@ -6427,11 +6368,12 @@ func (c *EditsImagesUploadCall) doRequest(alt string) (*http.Response, error) {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
gensupport.SetGetBody(req, getBody)
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageNameid,
|
||||
"editId": c.editId,
|
||||
@ -7551,9 +7493,9 @@ func (c *EditsTestersGetCall) Do(opts ...googleapi.CallOption) (*Testers, error)
|
||||
// "type": "string"
|
||||
// },
|
||||
// "track": {
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
|
||||
// "location": "path",
|
||||
// "pattern": "(alpha|beta|production|rollout)",
|
||||
// "pattern": "(alpha|beta|production|rollout|internal)",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
@ -7701,9 +7643,9 @@ func (c *EditsTestersPatchCall) Do(opts ...googleapi.CallOption) (*Testers, erro
|
||||
// "type": "string"
|
||||
// },
|
||||
// "track": {
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
|
||||
// "location": "path",
|
||||
// "pattern": "(alpha|beta|production|rollout)",
|
||||
// "pattern": "(alpha|beta|production|rollout|internal)",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
@ -7854,9 +7796,9 @@ func (c *EditsTestersUpdateCall) Do(opts ...googleapi.CallOption) (*Testers, err
|
||||
// "type": "string"
|
||||
// },
|
||||
// "track": {
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
|
||||
// "location": "path",
|
||||
// "pattern": "(alpha|beta|production|rollout)",
|
||||
// "pattern": "(alpha|beta|production|rollout|internal)",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
@ -8016,9 +7958,9 @@ func (c *EditsTracksGetCall) Do(opts ...googleapi.CallOption) (*Track, error) {
|
||||
// "type": "string"
|
||||
// },
|
||||
// "track": {
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
|
||||
// "location": "path",
|
||||
// "pattern": "(alpha|beta|production|rollout)",
|
||||
// "pattern": "(alpha|beta|production|rollout|internal)",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
@ -8317,9 +8259,9 @@ func (c *EditsTracksPatchCall) Do(opts ...googleapi.CallOption) (*Track, error)
|
||||
// "type": "string"
|
||||
// },
|
||||
// "track": {
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
|
||||
// "location": "path",
|
||||
// "pattern": "(alpha|beta|production|rollout)",
|
||||
// "pattern": "(alpha|beta|production|rollout|internal)",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
@ -8473,9 +8415,9 @@ func (c *EditsTracksUpdateCall) Do(opts ...googleapi.CallOption) (*Track, error)
|
||||
// "type": "string"
|
||||
// },
|
||||
// "track": {
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
|
||||
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
|
||||
// "location": "path",
|
||||
// "pattern": "(alpha|beta|production|rollout)",
|
||||
// "pattern": "(alpha|beta|production|rollout|internal)",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
@ -8494,186 +8436,6 @@ func (c *EditsTracksUpdateCall) Do(opts ...googleapi.CallOption) (*Track, error)
|
||||
|
||||
}
|
||||
|
||||
// method id "androidpublisher.entitlements.list":
|
||||
|
||||
type EntitlementsListCall struct {
|
||||
s *Service
|
||||
packageName string
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: Lists the user's current inapp item or subscription
|
||||
// entitlements
|
||||
func (r *EntitlementsService) List(packageName string) *EntitlementsListCall {
|
||||
c := &EntitlementsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.packageName = packageName
|
||||
return c
|
||||
}
|
||||
|
||||
// MaxResults sets the optional parameter "maxResults":
|
||||
func (c *EntitlementsListCall) MaxResults(maxResults int64) *EntitlementsListCall {
|
||||
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
|
||||
return c
|
||||
}
|
||||
|
||||
// ProductId sets the optional parameter "productId": The product id of
|
||||
// the inapp product (for example, 'sku1'). This can be used to restrict
|
||||
// the result set.
|
||||
func (c *EntitlementsListCall) ProductId(productId string) *EntitlementsListCall {
|
||||
c.urlParams_.Set("productId", productId)
|
||||
return c
|
||||
}
|
||||
|
||||
// StartIndex sets the optional parameter "startIndex":
|
||||
func (c *EntitlementsListCall) StartIndex(startIndex int64) *EntitlementsListCall {
|
||||
c.urlParams_.Set("startIndex", fmt.Sprint(startIndex))
|
||||
return c
|
||||
}
|
||||
|
||||
// Token sets the optional parameter "token":
|
||||
func (c *EntitlementsListCall) Token(token string) *EntitlementsListCall {
|
||||
c.urlParams_.Set("token", token)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *EntitlementsListCall) Fields(s ...googleapi.Field) *EntitlementsListCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// IfNoneMatch sets the optional parameter which makes the operation
|
||||
// fail if the object's ETag matches the given value. This is useful for
|
||||
// getting updates only after the object has changed since the last
|
||||
// request. Use googleapi.IsNotModified to check whether the response
|
||||
// error from Do is the result of In-None-Match.
|
||||
func (c *EntitlementsListCall) IfNoneMatch(entityTag string) *EntitlementsListCall {
|
||||
c.ifNoneMatch_ = entityTag
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *EntitlementsListCall) Context(ctx context.Context) *EntitlementsListCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *EntitlementsListCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *EntitlementsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{packageName}/entitlements")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageName,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "androidpublisher.entitlements.list" call.
|
||||
// Exactly one of *EntitlementsListResponse or error will be non-nil.
|
||||
// Any non-2xx status code is an error. Response headers are in either
|
||||
// *EntitlementsListResponse.ServerResponse.Header or (if a response was
|
||||
// returned at all) in error.(*googleapi.Error).Header. Use
|
||||
// googleapi.IsNotModified to check whether the returned error was
|
||||
// because http.StatusNotModified was returned.
|
||||
func (c *EntitlementsListCall) Do(opts ...googleapi.CallOption) (*EntitlementsListResponse, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &EntitlementsListResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Lists the user's current inapp item or subscription entitlements",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "androidpublisher.entitlements.list",
|
||||
// "parameterOrder": [
|
||||
// "packageName"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "maxResults": {
|
||||
// "format": "uint32",
|
||||
// "location": "query",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "packageName": {
|
||||
// "description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "productId": {
|
||||
// "description": "The product id of the inapp product (for example, 'sku1'). This can be used to restrict the result set.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "startIndex": {
|
||||
// "format": "uint32",
|
||||
// "location": "query",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "token": {
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{packageName}/entitlements",
|
||||
// "response": {
|
||||
// "$ref": "EntitlementsListResponse"
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "androidpublisher.inappproducts.delete":
|
||||
|
||||
type InappproductsDeleteCall struct {
|
||||
@ -10391,7 +10153,7 @@ type PurchasesVoidedpurchasesListCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: Lists the purchases that were cancelled, refunded or
|
||||
// List: Lists the purchases that were canceled, refunded or
|
||||
// charged-back.
|
||||
func (r *PurchasesVoidedpurchasesService) List(packageName string) *PurchasesVoidedpurchasesListCall {
|
||||
c := &PurchasesVoidedpurchasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
@ -10537,7 +10299,7 @@ func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*Vo
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Lists the purchases that were cancelled, refunded or charged-back.",
|
||||
// "description": "Lists the purchases that were canceled, refunded or charged-back.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "androidpublisher.purchases.voidedpurchases.list",
|
||||
// "parameterOrder": [
|
||||
|
278
vendor/google.golang.org/api/api-list.json
generated
vendored
278
vendor/google.golang.org/api/api-list.json
generated
vendored
@ -590,6 +590,21 @@
|
||||
"documentationLink": "https://developers.google.com/google-apps/calendar/firstapp",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "chat:v1",
|
||||
"name": "chat",
|
||||
"version": "v1",
|
||||
"title": "Hangouts Chat API",
|
||||
"description": "Create bots and extend the new Hangouts Chat.",
|
||||
"discoveryRestUrl": "https://chat.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://developers.google.com/hangouts/chat",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "civicinfo:v2",
|
||||
@ -626,7 +641,7 @@
|
||||
"id": "cloudbilling:v1",
|
||||
"name": "cloudbilling",
|
||||
"version": "v1",
|
||||
"title": "Google Cloud Billing API",
|
||||
"title": "Cloud Billing API",
|
||||
"description": "Allows developers to manage billing for their Google Cloud Platform projects programmatically.",
|
||||
"discoveryRestUrl": "https://cloudbilling.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
@ -641,7 +656,7 @@
|
||||
"id": "cloudbuild:v1",
|
||||
"name": "cloudbuild",
|
||||
"version": "v1",
|
||||
"title": "Google Cloud Container Builder API",
|
||||
"title": "Cloud Container Builder API",
|
||||
"description": "Builds container images in the cloud.",
|
||||
"discoveryRestUrl": "https://cloudbuild.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
@ -681,6 +696,21 @@
|
||||
"documentationLink": "https://cloud.google.com/error-reporting/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "cloudfunctions:v2alpha1",
|
||||
"name": "cloudfunctions",
|
||||
"version": "v2alpha1",
|
||||
"title": "Google Cloud Functions API",
|
||||
"description": "API for managing lightweight user-provided functions executed in response to events.",
|
||||
"discoveryRestUrl": "https://cloudfunctions.googleapis.com/$discovery/rest?version=v2alpha1",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/functions",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "cloudfunctions:v1",
|
||||
@ -716,7 +746,7 @@
|
||||
"id": "cloudiot:v1",
|
||||
"name": "cloudiot",
|
||||
"version": "v1",
|
||||
"title": "Google Cloud IoT API",
|
||||
"title": "Cloud IoT API",
|
||||
"description": "Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform.",
|
||||
"discoveryRestUrl": "https://cloudiot.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
@ -731,7 +761,7 @@
|
||||
"id": "cloudiot:v1beta1",
|
||||
"name": "cloudiot",
|
||||
"version": "v1beta1",
|
||||
"title": "Google Cloud IoT API",
|
||||
"title": "Cloud IoT API",
|
||||
"description": "Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform.",
|
||||
"discoveryRestUrl": "https://cloudiot.googleapis.com/$discovery/rest?version=v1beta1",
|
||||
"icons": {
|
||||
@ -761,7 +791,7 @@
|
||||
"id": "cloudresourcemanager:v1",
|
||||
"name": "cloudresourcemanager",
|
||||
"version": "v1",
|
||||
"title": "Google Cloud Resource Manager API",
|
||||
"title": "Cloud Resource Manager API",
|
||||
"description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating project metadata.",
|
||||
"discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
@ -769,14 +799,14 @@
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/resource-manager",
|
||||
"preferred": true
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "cloudresourcemanager:v1beta1",
|
||||
"name": "cloudresourcemanager",
|
||||
"version": "v1beta1",
|
||||
"title": "Google Cloud Resource Manager API",
|
||||
"title": "Cloud Resource Manager API",
|
||||
"description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating project metadata.",
|
||||
"discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1beta1",
|
||||
"icons": {
|
||||
@ -786,12 +816,27 @@
|
||||
"documentationLink": "https://cloud.google.com/resource-manager",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "cloudresourcemanager:v2",
|
||||
"name": "cloudresourcemanager",
|
||||
"version": "v2",
|
||||
"title": "Cloud Resource Manager API",
|
||||
"description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating project metadata.",
|
||||
"discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v2",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/resource-manager",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "cloudresourcemanager:v2beta1",
|
||||
"name": "cloudresourcemanager",
|
||||
"version": "v2beta1",
|
||||
"title": "Google Cloud Resource Manager API",
|
||||
"title": "Cloud Resource Manager API",
|
||||
"description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating project metadata.",
|
||||
"discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v2beta1",
|
||||
"icons": {
|
||||
@ -876,70 +921,6 @@
|
||||
"documentationLink": "https://cloud.google.com/trace",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "clouduseraccounts:alpha",
|
||||
"name": "clouduseraccounts",
|
||||
"version": "alpha",
|
||||
"title": "Cloud User Accounts API",
|
||||
"description": "Creates and manages users and groups for accessing Google Compute Engine virtual machines.",
|
||||
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/clouduseraccounts/alpha/rest",
|
||||
"discoveryLink": "./apis/clouduseraccounts/alpha/rest",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/compute/docs/access/user-accounts/api/latest/",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "clouduseraccounts:beta",
|
||||
"name": "clouduseraccounts",
|
||||
"version": "beta",
|
||||
"title": "Cloud User Accounts API",
|
||||
"description": "Creates and manages users and groups for accessing Google Compute Engine virtual machines.",
|
||||
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/clouduseraccounts/beta/rest",
|
||||
"discoveryLink": "./apis/clouduseraccounts/beta/rest",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/compute/docs/access/user-accounts/api/latest/",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "clouduseraccounts:vm_alpha",
|
||||
"name": "clouduseraccounts",
|
||||
"version": "vm_alpha",
|
||||
"title": "Cloud User Accounts API",
|
||||
"description": "Creates and manages users and groups for accessing Google Compute Engine virtual machines.",
|
||||
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/clouduseraccounts/vm_alpha/rest",
|
||||
"discoveryLink": "./apis/clouduseraccounts/vm_alpha/rest",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/compute/docs/access/user-accounts/api/latest/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "clouduseraccounts:vm_beta",
|
||||
"name": "clouduseraccounts",
|
||||
"version": "vm_beta",
|
||||
"title": "Cloud User Accounts API",
|
||||
"description": "Creates and manages users and groups for accessing Google Compute Engine virtual machines.",
|
||||
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/clouduseraccounts/vm_beta/rest",
|
||||
"discoveryLink": "./apis/clouduseraccounts/vm_beta/rest",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/compute/docs/access/user-accounts/api/latest/",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "compute:alpha",
|
||||
@ -1071,7 +1052,7 @@
|
||||
"id": "dataflow:v1b3",
|
||||
"name": "dataflow",
|
||||
"version": "v1b3",
|
||||
"title": "Google Dataflow API",
|
||||
"title": "Dataflow API",
|
||||
"description": "Manages Google Cloud Dataflow projects on Google Cloud Platform.",
|
||||
"discoveryRestUrl": "https://dataflow.googleapis.com/$discovery/rest?version=v1b3",
|
||||
"icons": {
|
||||
@ -1236,6 +1217,21 @@
|
||||
"documentationLink": "https://developers.google.com/doubleclick-advertisers/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "dialogflow:v2",
|
||||
"name": "dialogflow",
|
||||
"version": "v2",
|
||||
"title": "Dialogflow API",
|
||||
"description": "An end-to-end development suite for conversational interfaces (e.g., chatbots, voice-powered apps and devices).",
|
||||
"discoveryRestUrl": "https://dialogflow.googleapis.com/$discovery/rest?version=v2",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/dialogflow-enterprise/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "dialogflow:v2beta1",
|
||||
@ -1249,7 +1245,7 @@
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/dialogflow-enterprise/",
|
||||
"preferred": true
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
@ -1282,13 +1278,28 @@
|
||||
"documentationLink": "https://developers.google.com/discovery/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "dlp:v2",
|
||||
"name": "dlp",
|
||||
"version": "v2",
|
||||
"title": "Cloud Data Loss Prevention (DLP) API",
|
||||
"description": "Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.",
|
||||
"discoveryRestUrl": "https://dlp.googleapis.com/$discovery/rest?version=v2",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/dlp/docs/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "dlp:v2beta1",
|
||||
"name": "dlp",
|
||||
"version": "v2beta1",
|
||||
"title": "DLP API",
|
||||
"description": "The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.",
|
||||
"title": "Cloud Data Loss Prevention (DLP) API",
|
||||
"description": "Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.",
|
||||
"discoveryRestUrl": "https://dlp.googleapis.com/$discovery/rest?version=v2beta1",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
@ -1302,15 +1313,15 @@
|
||||
"id": "dlp:v2beta2",
|
||||
"name": "dlp",
|
||||
"version": "v2beta2",
|
||||
"title": "DLP API",
|
||||
"description": "The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.",
|
||||
"title": "Cloud Data Loss Prevention (DLP) API",
|
||||
"description": "Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.",
|
||||
"discoveryRestUrl": "https://dlp.googleapis.com/$discovery/rest?version=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/dlp/docs/",
|
||||
"preferred": true
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
@ -1442,21 +1453,6 @@
|
||||
"documentationLink": "https://firebase.google.com/docs/dynamic-links/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "firebaseremoteconfig:v1",
|
||||
"name": "firebaseremoteconfig",
|
||||
"version": "v1",
|
||||
"title": "Firebase Remote Config API",
|
||||
"description": "Firebase Remote Config API allows the 3P clients to manage Remote Config conditions and parameters for Firebase applications.",
|
||||
"discoveryRestUrl": "https://firebaseremoteconfig.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://firebase.google.com/docs/remote-config/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "firebaserules:v1",
|
||||
@ -1598,6 +1594,21 @@
|
||||
"documentationLink": "https://cloud.google.com/genomics",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "genomics:v2alpha1",
|
||||
"name": "genomics",
|
||||
"version": "v2alpha1",
|
||||
"title": "Genomics API",
|
||||
"description": "Upload, process, query, and search Genomics data in the cloud.",
|
||||
"discoveryRestUrl": "https://genomics.googleapis.com/$discovery/rest?version=v2alpha1",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/genomics",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "genomics:v1",
|
||||
@ -1712,7 +1723,7 @@
|
||||
"id": "language:v1",
|
||||
"name": "language",
|
||||
"version": "v1",
|
||||
"title": "Google Cloud Natural Language API",
|
||||
"title": "Cloud Natural Language API",
|
||||
"description": "Provides natural language understanding technologies to developers. Examples include sentiment analysis, entity recognition, entity sentiment analysis, and text annotations.",
|
||||
"discoveryRestUrl": "https://language.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
@ -1727,7 +1738,7 @@
|
||||
"id": "language:v1beta1",
|
||||
"name": "language",
|
||||
"version": "v1beta1",
|
||||
"title": "Google Cloud Natural Language API",
|
||||
"title": "Cloud Natural Language API",
|
||||
"description": "Provides natural language understanding technologies to developers. Examples include sentiment analysis, entity recognition, entity sentiment analysis, and text annotations.",
|
||||
"discoveryRestUrl": "https://language.googleapis.com/$discovery/rest?version=v1beta1",
|
||||
"icons": {
|
||||
@ -1742,7 +1753,7 @@
|
||||
"id": "language:v1beta2",
|
||||
"name": "language",
|
||||
"version": "v1beta2",
|
||||
"title": "Google Cloud Natural Language API",
|
||||
"title": "Cloud Natural Language API",
|
||||
"description": "Provides natural language understanding technologies to developers. Examples include sentiment analysis, entity recognition, entity sentiment analysis, and text annotations.",
|
||||
"discoveryRestUrl": "https://language.googleapis.com/$discovery/rest?version=v1beta2",
|
||||
"icons": {
|
||||
@ -1969,6 +1980,22 @@
|
||||
"x32": "https://www.google.com/images/icons/product/pagespeed-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/speed/docs/insights/v2/getting-started",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "pagespeedonline:v4",
|
||||
"name": "pagespeedonline",
|
||||
"version": "v4",
|
||||
"title": "PageSpeed Insights API",
|
||||
"description": "Analyzes the performance of a web page and provides tailored suggestions to make that page faster.",
|
||||
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/pagespeedonline/v4/rest",
|
||||
"discoveryLink": "./apis/pagespeedonline/v4/rest",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/pagespeed-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/pagespeed-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/speed/docs/insights/v4/getting-started",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
@ -1991,7 +2018,7 @@
|
||||
"id": "people:v1",
|
||||
"name": "people",
|
||||
"version": "v1",
|
||||
"title": "Google People API",
|
||||
"title": "People API",
|
||||
"description": "Provides access to information about profiles and contacts.",
|
||||
"discoveryRestUrl": "https://people.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
@ -2368,7 +2395,7 @@
|
||||
"id": "script:v1",
|
||||
"name": "script",
|
||||
"version": "v1",
|
||||
"title": "Google Apps Script API",
|
||||
"title": "Apps Script API",
|
||||
"description": "An API for managing and executing Google Apps Script projects.",
|
||||
"discoveryRestUrl": "https://script.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
@ -2438,6 +2465,21 @@
|
||||
"documentationLink": "https://cloud.google.com/service-management/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "serviceusage:v1beta1",
|
||||
"name": "serviceusage",
|
||||
"version": "v1beta1",
|
||||
"title": "Service Usage API",
|
||||
"description": "Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use.",
|
||||
"discoveryRestUrl": "https://serviceusage.googleapis.com/$discovery/rest?version=v1beta1",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/service-usage/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "serviceuser:v1",
|
||||
@ -2550,7 +2592,7 @@
|
||||
"id": "speech:v1",
|
||||
"name": "speech",
|
||||
"version": "v1",
|
||||
"title": "Google Cloud Speech API",
|
||||
"title": "Cloud Speech API",
|
||||
"description": "Converts audio to text by applying powerful neural network models.",
|
||||
"discoveryRestUrl": "https://speech.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
@ -2565,7 +2607,7 @@
|
||||
"id": "speech:v1beta1",
|
||||
"name": "speech",
|
||||
"version": "v1beta1",
|
||||
"title": "Google Cloud Speech API",
|
||||
"title": "Cloud Speech API",
|
||||
"description": "Converts audio to text by applying powerful neural network models.",
|
||||
"discoveryRestUrl": "https://speech.googleapis.com/$discovery/rest?version=v1beta1",
|
||||
"icons": {
|
||||
@ -2804,6 +2846,21 @@
|
||||
"documentationLink": "https://developers.google.com/cloud-test-lab/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "texttospeech:v1beta1",
|
||||
"name": "texttospeech",
|
||||
"version": "v1beta1",
|
||||
"title": "Cloud Text-to-Speech API",
|
||||
"description": "Cloud Text-to-Speech API.",
|
||||
"discoveryRestUrl": "https://texttospeech.googleapis.com/$discovery/rest?version=v1beta1",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "http://cloud.google.com/speech/text-to-speech/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "toolresults:v1beta3",
|
||||
@ -2901,7 +2958,7 @@
|
||||
"id": "vision:v1p1beta1",
|
||||
"name": "vision",
|
||||
"version": "v1p1beta1",
|
||||
"title": "Google Cloud Vision API",
|
||||
"title": "Cloud Vision API",
|
||||
"description": "Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.",
|
||||
"discoveryRestUrl": "https://vision.googleapis.com/$discovery/rest?version=v1p1beta1",
|
||||
"icons": {
|
||||
@ -2911,12 +2968,27 @@
|
||||
"documentationLink": "https://cloud.google.com/vision/",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "vision:v1p2beta1",
|
||||
"name": "vision",
|
||||
"version": "v1p2beta1",
|
||||
"title": "Cloud Vision API",
|
||||
"description": "Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.",
|
||||
"discoveryRestUrl": "https://vision.googleapis.com/$discovery/rest?version=v1p2beta1",
|
||||
"icons": {
|
||||
"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/vision/",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "vision:v1",
|
||||
"name": "vision",
|
||||
"version": "v1",
|
||||
"title": "Google Cloud Vision API",
|
||||
"title": "Cloud Vision API",
|
||||
"description": "Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.",
|
||||
"discoveryRestUrl": "https://vision.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
|
6360
vendor/google.golang.org/api/appengine/v1/appengine-api.json
generated
vendored
6360
vendor/google.golang.org/api/appengine/v1/appengine-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
230
vendor/google.golang.org/api/appengine/v1/appengine-gen.go
generated
vendored
230
vendor/google.golang.org/api/appengine/v1/appengine-gen.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Package appengine provides access to the Google App Engine Admin API.
|
||||
// Package appengine provides access to the App Engine Admin API.
|
||||
//
|
||||
// See https://cloud.google.com/appengine/docs/admin-api/
|
||||
//
|
||||
@ -366,11 +366,11 @@ type Application struct {
|
||||
// where you want to deploy your application. Example: myapp.
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
// LocationId: Location from which this application will be run.
|
||||
// Application instances will run out of data centers in the chosen
|
||||
// location, which is also where all of the application's end user
|
||||
// content is stored.Defaults to us-central.Options are:us-central -
|
||||
// Central USeurope-west - Western Europeus-east1 - Eastern US
|
||||
// LocationId: Location from which this application runs. Application
|
||||
// instances run out of the data centers in the specified location,
|
||||
// which is also where all of the application's end user content is
|
||||
// stored.Defaults to us-central.View the list of supported locations
|
||||
// (https://cloud.google.com/appengine/docs/locations).
|
||||
LocationId string `json:"locationId,omitempty"`
|
||||
|
||||
// Name: Full path to the Application resource in the API. Example:
|
||||
@ -556,7 +556,7 @@ type AutomaticScaling struct {
|
||||
MaxPendingLatency string `json:"maxPendingLatency,omitempty"`
|
||||
|
||||
// MaxTotalInstances: Maximum number of instances that should be started
|
||||
// to handle requests.
|
||||
// to handle requests for this version.
|
||||
MaxTotalInstances int64 `json:"maxTotalInstances,omitempty"`
|
||||
|
||||
// MinIdleInstances: Minimum number of idle instances that should be
|
||||
@ -568,7 +568,7 @@ type AutomaticScaling struct {
|
||||
// the pending queue before starting a new instance to handle it.
|
||||
MinPendingLatency string `json:"minPendingLatency,omitempty"`
|
||||
|
||||
// MinTotalInstances: Minimum number of instances that should be
|
||||
// MinTotalInstances: Minimum number of running instances that should be
|
||||
// maintained for this version.
|
||||
MinTotalInstances int64 `json:"minTotalInstances,omitempty"`
|
||||
|
||||
@ -744,6 +744,46 @@ func (s *CertificateRawData) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CloudBuildOptions: Options for the build operations performed as a
|
||||
// part of the version deployment. Only applicable for App Engine
|
||||
// flexible environment when creating a version using source code
|
||||
// directly.
|
||||
type CloudBuildOptions struct {
|
||||
// AppYamlPath: Path to the yaml file used in deployment, used to
|
||||
// determine runtime configuration details.Required for flexible
|
||||
// environment builds.See
|
||||
// https://cloud.google.com/appengine/docs/standard/python/config/appref
|
||||
// for more details.
|
||||
AppYamlPath string `json:"appYamlPath,omitempty"`
|
||||
|
||||
// CloudBuildTimeout: The Cloud Build timeout used as part of any
|
||||
// dependent builds performed by version creation. Defaults to 10
|
||||
// minutes.
|
||||
CloudBuildTimeout string `json:"cloudBuildTimeout,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AppYamlPath") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AppYamlPath") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *CloudBuildOptions) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod CloudBuildOptions
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ContainerInfo: Docker image that is used to create a container and
|
||||
// start a VM instance for the version that you deploy. Only applicable
|
||||
// for instances running in the App Engine flexible environment.
|
||||
@ -826,6 +866,37 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// CreateVersionMetadataV1: Metadata for the given
|
||||
// google.longrunning.Operation during a
|
||||
// google.appengine.v1.CreateVersionRequest.
|
||||
type CreateVersionMetadataV1 struct {
|
||||
// CloudBuildId: The Cloud Build ID if one was created as part of the
|
||||
// version create. @OutputOnly
|
||||
CloudBuildId string `json:"cloudBuildId,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CloudBuildId") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod CreateVersionMetadataV1
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CreateVersionMetadataV1Alpha: Metadata for the given
|
||||
// google.longrunning.Operation during a
|
||||
// google.appengine.v1alpha.CreateVersionRequest.
|
||||
@ -926,6 +997,14 @@ func (s *DebugInstanceRequest) MarshalJSON() ([]byte, error) {
|
||||
// Deployment: Code and application artifacts used to deploy a version
|
||||
// to App Engine.
|
||||
type Deployment struct {
|
||||
// CloudBuildOptions: Options for any Google Cloud Container Builder
|
||||
// builds created as a part of this deployment.Note that this is
|
||||
// orthogonal to the build parameter, where the deployment depends on an
|
||||
// already existing cloud build. These options will only be used if a
|
||||
// new build is created, such as when deploying to the App Engine
|
||||
// flexible environment using files or zip.
|
||||
CloudBuildOptions *CloudBuildOptions `json:"cloudBuildOptions,omitempty"`
|
||||
|
||||
// Container: The Docker image for the container that runs the version.
|
||||
// Only applicable for instances running in the App Engine flexible
|
||||
// environment.
|
||||
@ -939,20 +1018,21 @@ type Deployment struct {
|
||||
// Zip: The zip file for this deployment, if this is a zip deployment.
|
||||
Zip *ZipInfo `json:"zip,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Container") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// ForceSendFields is a list of field names (e.g. "CloudBuildOptions")
|
||||
// to unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Container") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
// NullFields is a list of field names (e.g. "CloudBuildOptions") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
@ -1067,8 +1147,9 @@ type Empty struct {
|
||||
// EndpointsApiService: Cloud Endpoints
|
||||
// (https://cloud.google.com/endpoints) configuration. The Endpoints API
|
||||
// Service provides tooling for serving Open API and gRPC endpoints via
|
||||
// an NGINX proxy.The fields here refer to the name and configuration id
|
||||
// of a "service" resource in the Service Management API
|
||||
// an NGINX proxy. Only valid for App Engine Flexible environment
|
||||
// deployments.The fields here refer to the name and configuration id of
|
||||
// a "service" resource in the Service Management API
|
||||
// (https://cloud.google.com/service-management/overview).
|
||||
type EndpointsApiService struct {
|
||||
// ConfigId: Endpoints service configuration id as specified by the
|
||||
@ -1910,6 +1991,10 @@ func (s *LivenessCheck) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Location: A resource that represents Google Cloud Platform location.
|
||||
type Location struct {
|
||||
// DisplayName: The friendly name for this location, typically a nearby
|
||||
// city name. For example, "Tokyo".
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
|
||||
// Labels: Cross-service attributes for the location. For
|
||||
// example
|
||||
// {"cloud.googleapis.com/region": "us-east1"}
|
||||
@ -1933,7 +2018,7 @@ type Location struct {
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Labels") to
|
||||
// ForceSendFields is a list of field names (e.g. "DisplayName") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@ -1941,10 +2026,10 @@ type Location struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Labels") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// NullFields is a list of field names (e.g. "DisplayName") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
@ -1959,11 +2044,11 @@ func (s *Location) MarshalJSON() ([]byte, error) {
|
||||
// LocationMetadata: Metadata for the given
|
||||
// google.cloud.location.Location.
|
||||
type LocationMetadata struct {
|
||||
// FlexibleEnvironmentAvailable: App Engine Flexible Environment is
|
||||
// FlexibleEnvironmentAvailable: App Engine flexible environment is
|
||||
// available in the given location.@OutputOnly
|
||||
FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
|
||||
|
||||
// StandardEnvironmentAvailable: App Engine Standard Environment is
|
||||
// StandardEnvironmentAvailable: App Engine standard environment is
|
||||
// available in the given location.@OutputOnly
|
||||
StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
|
||||
|
||||
@ -2033,8 +2118,8 @@ type Network struct {
|
||||
// App Engine flexible environment.
|
||||
ForwardedPorts []string `json:"forwardedPorts,omitempty"`
|
||||
|
||||
// InstanceTag: Tag to apply to the VM instance during creation. for
|
||||
// Only applicable in the App Engine flexible environment.
|
||||
// InstanceTag: Tag to apply to the instance during creation. Only
|
||||
// applicable in the App Engine flexible environment.
|
||||
InstanceTag string `json:"instanceTag,omitempty"`
|
||||
|
||||
// Name: Google Compute Engine network where the virtual machines are
|
||||
@ -2046,15 +2131,16 @@ type Network struct {
|
||||
// machines are created. Specify the short name, not the resource
|
||||
// path.If a subnetwork name is specified, a network name will also be
|
||||
// required unless it is for the default network.
|
||||
// If the network the VM instance is being created in is a Legacy
|
||||
// If the network that the instance is being created in is a Legacy
|
||||
// network, then the IP address is allocated from the IPv4Range.
|
||||
// If the network the VM instance is being created in is an auto Subnet
|
||||
// Mode Network, then only network name should be specified (not the
|
||||
// subnetwork_name) and the IP address is created from the IPCidrRange
|
||||
// of the subnetwork that exists in that zone for that network.
|
||||
// If the network the VM instance is being created in is a custom Subnet
|
||||
// Mode Network, then the subnetwork_name must be specified and the IP
|
||||
// address is created from the IPCidrRange of the subnetwork.If
|
||||
// If the network that the instance is being created in is an auto
|
||||
// Subnet Mode Network, then only network name should be specified (not
|
||||
// the subnetwork_name) and the IP address is created from the
|
||||
// IPCidrRange of the subnetwork that exists in that zone for that
|
||||
// network.
|
||||
// If the network that the instance is being created in is a custom
|
||||
// Subnet Mode Network, then the subnetwork_name must be specified and
|
||||
// the IP address is created from the IPCidrRange of the subnetwork.If
|
||||
// specified, the subnetwork must exist in the same region as the App
|
||||
// Engine flexible environment application.
|
||||
SubnetworkName string `json:"subnetworkName,omitempty"`
|
||||
@ -2234,6 +2320,8 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
|
||||
// OperationMetadataV1: Metadata for the given
|
||||
// google.longrunning.Operation.
|
||||
type OperationMetadataV1 struct {
|
||||
CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
|
||||
|
||||
// EndTime: Time that this operation completed.@OutputOnly
|
||||
EndTime string `json:"endTime,omitempty"`
|
||||
|
||||
@ -2259,20 +2347,22 @@ type OperationMetadataV1 struct {
|
||||
// @OutputOnly
|
||||
Warning []string `json:"warning,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "EndTime") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "CreateVersionMetadata") to unconditionally include in API requests.
|
||||
// By default, fields with empty values are omitted from API requests.
|
||||
// However, any non-pointer, non-interface field appearing in
|
||||
// ForceSendFields will be sent to the server regardless of whether the
|
||||
// field is empty or not. This may be used to include empty fields in
|
||||
// Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "EndTime") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
@ -2734,12 +2824,12 @@ func (s *SslSettings) MarshalJSON() ([]byte, error) {
|
||||
// StandardSchedulerSettings: Scheduler settings for standard
|
||||
// environment.
|
||||
type StandardSchedulerSettings struct {
|
||||
// MaxInstances: Maximum number of instances for an app version. Set to
|
||||
// zero to disable max_instances configuration.
|
||||
// MaxInstances: Maximum number of instances to run for this version.
|
||||
// Set to zero to disable max_instances configuration.
|
||||
MaxInstances int64 `json:"maxInstances,omitempty"`
|
||||
|
||||
// MinInstances: Minimum number of instances for an app version. Set to
|
||||
// zero to disable min_instances configuration.
|
||||
// MinInstances: Minimum number of instances to run for this version.
|
||||
// Set to zero to disable min_instances configuration.
|
||||
MinInstances int64 `json:"minInstances,omitempty"`
|
||||
|
||||
// TargetCpuUtilization: Target CPU utilization ratio to maintain when
|
||||
@ -3193,7 +3283,7 @@ type Version struct {
|
||||
// GET requests if view=FULL is set.
|
||||
Handlers []*UrlMap `json:"handlers,omitempty"`
|
||||
|
||||
// HealthCheck: Configures health checking for VM instances. Unhealthy
|
||||
// HealthCheck: Configures health checking for instances. Unhealthy
|
||||
// instances are stopped and replaced with new instances. Only
|
||||
// applicable in the App Engine flexible environment.Only returned in
|
||||
// GET requests if view=FULL is set.
|
||||
@ -3238,7 +3328,7 @@ type Version struct {
|
||||
// view=FULL is set.
|
||||
Libraries []*Library `json:"libraries,omitempty"`
|
||||
|
||||
// LivenessCheck: Configures liveness health checking for VM instances.
|
||||
// LivenessCheck: Configures liveness health checking for instances.
|
||||
// Unhealthy instances are stopped and replaced with new instancesOnly
|
||||
// returned in GET requests if view=FULL is set.
|
||||
LivenessCheck *LivenessCheck `json:"livenessCheck,omitempty"`
|
||||
@ -3261,13 +3351,13 @@ type Version struct {
|
||||
// GET requests if view=FULL is set.
|
||||
NobuildFilesRegex string `json:"nobuildFilesRegex,omitempty"`
|
||||
|
||||
// ReadinessCheck: Configures readiness health checking for VM
|
||||
// instances. Unhealthy instances are not put into the backend traffic
|
||||
// ReadinessCheck: Configures readiness health checking for instances.
|
||||
// Unhealthy instances are not put into the backend traffic
|
||||
// rotation.Only returned in GET requests if view=FULL is set.
|
||||
ReadinessCheck *ReadinessCheck `json:"readinessCheck,omitempty"`
|
||||
|
||||
// Resources: Machine resources for this version. Only applicable for VM
|
||||
// runtimes.
|
||||
// Resources: Machine resources for this version. Only applicable in the
|
||||
// App Engine flexible environment.
|
||||
Resources *Resources `json:"resources,omitempty"`
|
||||
|
||||
// Runtime: Desired runtime. Example: python27.
|
||||
@ -3278,6 +3368,10 @@ type Version struct {
|
||||
// https://cloud.google.com/appengine/docs/standard/<language>/config/appref
|
||||
RuntimeApiVersion string `json:"runtimeApiVersion,omitempty"`
|
||||
|
||||
// RuntimeChannel: The channel of the runtime to use. Only available for
|
||||
// some runtimes. Defaults to the default channel.
|
||||
RuntimeChannel string `json:"runtimeChannel,omitempty"`
|
||||
|
||||
// ServingStatus: Current serving status of this version. Only the
|
||||
// versions with a SERVING status create instances and can be
|
||||
// billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to
|
||||
@ -3304,8 +3398,8 @@ type Version struct {
|
||||
// machine.
|
||||
Vm bool `json:"vm,omitempty"`
|
||||
|
||||
// Zones: The choice of gce zones to use for this App Engine Flexible
|
||||
// version.
|
||||
// Zones: The Google Compute Engine zones that are supported by this
|
||||
// version in the App Engine flexible environment.
|
||||
Zones []string `json:"zones,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@ -3437,7 +3531,7 @@ type AppsCreateCall struct {
|
||||
// (https://cloud.google.com/appengine/docs/locations) where you want
|
||||
// the App Engine application located.For more information about App
|
||||
// Engine applications, see Managing Projects, Applications, and Billing
|
||||
// (https://cloud.google.com/appengine/docs/python/console/).
|
||||
// (https://cloud.google.com/appengine/docs/standard/python/console/).
|
||||
func (r *AppsService) Create(application *Application) *AppsCreateCall {
|
||||
c := &AppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.application = application
|
||||
@ -3527,7 +3621,7 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields:\nid - The ID of the target Cloud Platform project.\nlocation - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/python/console/).",
|
||||
// "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields:\nid - The ID of the target Cloud Platform project.\nlocation - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).",
|
||||
// "flatPath": "v1/apps",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "appengine.apps.create",
|
||||
@ -6689,7 +6783,7 @@ type AppsLocationsGetCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Get information about a location.
|
||||
// Get: Gets information about a location.
|
||||
func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
|
||||
c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.appsId = appsId
|
||||
@ -6792,7 +6886,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Get information about a location.",
|
||||
// "description": "Gets information about a location.",
|
||||
// "flatPath": "v1/apps/{appsId}/locations/{locationsId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "appengine.apps.locations.get",
|
||||
@ -8763,23 +8857,23 @@ type AppsServicesVersionsPatchCall struct {
|
||||
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/a
|
||||
// pps.services.versions#Version.FIELDS.automatic_scaling): For Version
|
||||
// resources that use automatic scaling and run in the App Engine
|
||||
// Flexible environment.
|
||||
// flexible environment.
|
||||
// automatic_scaling.max_total_instances
|
||||
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/a
|
||||
// pps.services.versions#Version.FIELDS.automatic_scaling): For Version
|
||||
// resources that use automatic scaling and run in the App Engine
|
||||
// Flexible environment.
|
||||
// flexible environment.
|
||||
// automatic_scaling.cool_down_period_sec
|
||||
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/a
|
||||
// pps.services.versions#Version.FIELDS.automatic_scaling): For Version
|
||||
// resources that use automatic scaling and run in the App Engine
|
||||
// Flexible
|
||||
// flexible
|
||||
// environment.
|
||||
// automatic_scaling.cpu_utilization.target_utilization
|
||||
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/a
|
||||
// pps.services.versions#Version.FIELDS.automatic_scaling): For Version
|
||||
// resources that use automatic scaling and run in the App Engine
|
||||
// Flexible environment.
|
||||
// flexible environment.
|
||||
func (r *AppsServicesVersionsService) Patch(appsId string, servicesId string, versionsId string, version *Version) *AppsServicesVersionsPatchCall {
|
||||
c := &AppsServicesVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.appsId = appsId
|
||||
@ -8884,7 +8978,7 @@ func (c *AppsServicesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Opera
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:\nserving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment.\ninstance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment.\nautomatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.\nautomatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.\nautomatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.\nautomatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.",
|
||||
// "description": "Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:\nserving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment.\ninstance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment.\nautomatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.\nautomatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.\nautomatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.\nautomatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.",
|
||||
// "flatPath": "v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}",
|
||||
// "httpMethod": "PATCH",
|
||||
// "id": "appengine.apps.services.versions.patch",
|
||||
|
2402
vendor/google.golang.org/api/appengine/v1alpha/appengine-api.json
generated
vendored
2402
vendor/google.golang.org/api/appengine/v1alpha/appengine-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
83
vendor/google.golang.org/api/appengine/v1alpha/appengine-gen.go
generated
vendored
83
vendor/google.golang.org/api/appengine/v1alpha/appengine-gen.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Package appengine provides access to the Google App Engine Admin API.
|
||||
// Package appengine provides access to the App Engine Admin API.
|
||||
//
|
||||
// See https://cloud.google.com/appengine/docs/admin-api/
|
||||
//
|
||||
@ -311,6 +311,37 @@ func (s *CertificateRawData) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CreateVersionMetadataV1: Metadata for the given
|
||||
// google.longrunning.Operation during a
|
||||
// google.appengine.v1.CreateVersionRequest.
|
||||
type CreateVersionMetadataV1 struct {
|
||||
// CloudBuildId: The Cloud Build ID if one was created as part of the
|
||||
// version create. @OutputOnly
|
||||
CloudBuildId string `json:"cloudBuildId,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CloudBuildId") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod CreateVersionMetadataV1
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CreateVersionMetadataV1Alpha: Metadata for the given
|
||||
// google.longrunning.Operation during a
|
||||
// google.appengine.v1alpha.CreateVersionRequest.
|
||||
@ -624,6 +655,10 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Location: A resource that represents Google Cloud Platform location.
|
||||
type Location struct {
|
||||
// DisplayName: The friendly name for this location, typically a nearby
|
||||
// city name. For example, "Tokyo".
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
|
||||
// Labels: Cross-service attributes for the location. For
|
||||
// example
|
||||
// {"cloud.googleapis.com/region": "us-east1"}
|
||||
@ -647,7 +682,7 @@ type Location struct {
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Labels") to
|
||||
// ForceSendFields is a list of field names (e.g. "DisplayName") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@ -655,10 +690,10 @@ type Location struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Labels") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// NullFields is a list of field names (e.g. "DisplayName") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
@ -673,11 +708,11 @@ func (s *Location) MarshalJSON() ([]byte, error) {
|
||||
// LocationMetadata: Metadata for the given
|
||||
// google.cloud.location.Location.
|
||||
type LocationMetadata struct {
|
||||
// FlexibleEnvironmentAvailable: App Engine Flexible Environment is
|
||||
// FlexibleEnvironmentAvailable: App Engine flexible environment is
|
||||
// available in the given location.@OutputOnly
|
||||
FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
|
||||
|
||||
// StandardEnvironmentAvailable: App Engine Standard Environment is
|
||||
// StandardEnvironmentAvailable: App Engine standard environment is
|
||||
// available in the given location.@OutputOnly
|
||||
StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
|
||||
|
||||
@ -885,6 +920,8 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
|
||||
// OperationMetadataV1: Metadata for the given
|
||||
// google.longrunning.Operation.
|
||||
type OperationMetadataV1 struct {
|
||||
CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
|
||||
|
||||
// EndTime: Time that this operation completed.@OutputOnly
|
||||
EndTime string `json:"endTime,omitempty"`
|
||||
|
||||
@ -910,20 +947,22 @@ type OperationMetadataV1 struct {
|
||||
// @OutputOnly
|
||||
Warning []string `json:"warning,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "EndTime") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "CreateVersionMetadata") to unconditionally include in API requests.
|
||||
// By default, fields with empty values are omitted from API requests.
|
||||
// However, any non-pointer, non-interface field appearing in
|
||||
// ForceSendFields will be sent to the server regardless of whether the
|
||||
// field is empty or not. This may be used to include empty fields in
|
||||
// Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "EndTime") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
@ -3077,7 +3116,7 @@ type AppsLocationsGetCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Get information about a location.
|
||||
// Get: Gets information about a location.
|
||||
func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
|
||||
c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.appsId = appsId
|
||||
@ -3180,7 +3219,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Get information about a location.",
|
||||
// "description": "Gets information about a location.",
|
||||
// "flatPath": "v1alpha/apps/{appsId}/locations/{locationsId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "appengine.apps.locations.get",
|
||||
|
6000
vendor/google.golang.org/api/appengine/v1beta/appengine-api.json
generated
vendored
6000
vendor/google.golang.org/api/appengine/v1beta/appengine-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
243
vendor/google.golang.org/api/appengine/v1beta/appengine-gen.go
generated
vendored
243
vendor/google.golang.org/api/appengine/v1beta/appengine-gen.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Package appengine provides access to the Google App Engine Admin API.
|
||||
// Package appengine provides access to the App Engine Admin API.
|
||||
//
|
||||
// See https://cloud.google.com/appengine/docs/admin-api/
|
||||
//
|
||||
@ -366,11 +366,11 @@ type Application struct {
|
||||
// where you want to deploy your application. Example: myapp.
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
// LocationId: Location from which this application will be run.
|
||||
// Application instances will run out of data centers in the chosen
|
||||
// location, which is also where all of the application's end user
|
||||
// content is stored.Defaults to us-central.Options are:us-central -
|
||||
// Central USeurope-west - Western Europeus-east1 - Eastern US
|
||||
// LocationId: Location from which this application runs. Application
|
||||
// instances run out of the data centers in the specified location,
|
||||
// which is also where all of the application's end user content is
|
||||
// stored.Defaults to us-central.View the list of supported locations
|
||||
// (https://cloud.google.com/appengine/docs/locations).
|
||||
LocationId string `json:"locationId,omitempty"`
|
||||
|
||||
// Name: Full path to the Application resource in the API. Example:
|
||||
@ -546,6 +546,9 @@ type AutomaticScaling struct {
|
||||
// CpuUtilization: Target scaling by CPU usage.
|
||||
CpuUtilization *CpuUtilization `json:"cpuUtilization,omitempty"`
|
||||
|
||||
// CustomMetrics: Target scaling by user-provided metrics.
|
||||
CustomMetrics []*CustomMetric `json:"customMetrics,omitempty"`
|
||||
|
||||
// DiskUtilization: Target scaling by disk usage.
|
||||
DiskUtilization *DiskUtilization `json:"diskUtilization,omitempty"`
|
||||
|
||||
@ -563,7 +566,7 @@ type AutomaticScaling struct {
|
||||
MaxPendingLatency string `json:"maxPendingLatency,omitempty"`
|
||||
|
||||
// MaxTotalInstances: Maximum number of instances that should be started
|
||||
// to handle requests.
|
||||
// to handle requests for this version.
|
||||
MaxTotalInstances int64 `json:"maxTotalInstances,omitempty"`
|
||||
|
||||
// MinIdleInstances: Minimum number of idle instances that should be
|
||||
@ -575,7 +578,7 @@ type AutomaticScaling struct {
|
||||
// the pending queue before starting a new instance to handle it.
|
||||
MinPendingLatency string `json:"minPendingLatency,omitempty"`
|
||||
|
||||
// MinTotalInstances: Minimum number of instances that should be
|
||||
// MinTotalInstances: Minimum number of running instances that should be
|
||||
// maintained for this version.
|
||||
MinTotalInstances int64 `json:"minTotalInstances,omitempty"`
|
||||
|
||||
@ -902,6 +905,37 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// CreateVersionMetadataV1: Metadata for the given
|
||||
// google.longrunning.Operation during a
|
||||
// google.appengine.v1.CreateVersionRequest.
|
||||
type CreateVersionMetadataV1 struct {
|
||||
// CloudBuildId: The Cloud Build ID if one was created as part of the
|
||||
// version create. @OutputOnly
|
||||
CloudBuildId string `json:"cloudBuildId,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CloudBuildId") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod CreateVersionMetadataV1
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CreateVersionMetadataV1Alpha: Metadata for the given
|
||||
// google.longrunning.Operation during a
|
||||
// google.appengine.v1alpha.CreateVersionRequest.
|
||||
@ -964,6 +998,67 @@ func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CustomMetric: Allows autoscaling based on Stackdriver metrics.
|
||||
type CustomMetric struct {
|
||||
// Filter: Allows filtering on the metric's fields.
|
||||
Filter string `json:"filter,omitempty"`
|
||||
|
||||
// MetricName: The name of the metric.
|
||||
MetricName string `json:"metricName,omitempty"`
|
||||
|
||||
// SingleInstanceAssignment: May be used instead of target_utilization
|
||||
// when an instance can handle a specific amount of work/resources and
|
||||
// the metric value is equal to the current amount of work remaining.
|
||||
// The autoscaler will try to keep the number of instances equal to the
|
||||
// metric value divided by single_instance_assignment.
|
||||
SingleInstanceAssignment float64 `json:"singleInstanceAssignment,omitempty"`
|
||||
|
||||
// TargetType: The type of the metric. Must be a string representing a
|
||||
// Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
|
||||
TargetType string `json:"targetType,omitempty"`
|
||||
|
||||
// TargetUtilization: The target value for the metric.
|
||||
TargetUtilization float64 `json:"targetUtilization,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Filter") 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. "Filter") 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 *CustomMetric) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod CustomMetric
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *CustomMetric) UnmarshalJSON(data []byte) error {
|
||||
type NoMethod CustomMetric
|
||||
var s1 struct {
|
||||
SingleInstanceAssignment gensupport.JSONFloat64 `json:"singleInstanceAssignment"`
|
||||
TargetUtilization gensupport.JSONFloat64 `json:"targetUtilization"`
|
||||
*NoMethod
|
||||
}
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
s.SingleInstanceAssignment = float64(s1.SingleInstanceAssignment)
|
||||
s.TargetUtilization = float64(s1.TargetUtilization)
|
||||
return nil
|
||||
}
|
||||
|
||||
// DebugInstanceRequest: Request message for Instances.DebugInstance.
|
||||
type DebugInstanceRequest struct {
|
||||
// SshKey: Public SSH key to add to the instance.
|
||||
@ -1156,8 +1251,9 @@ type Empty struct {
|
||||
// EndpointsApiService: Cloud Endpoints
|
||||
// (https://cloud.google.com/endpoints) configuration. The Endpoints API
|
||||
// Service provides tooling for serving Open API and gRPC endpoints via
|
||||
// an NGINX proxy.The fields here refer to the name and configuration id
|
||||
// of a "service" resource in the Service Management API
|
||||
// an NGINX proxy. Only valid for App Engine Flexible environment
|
||||
// deployments.The fields here refer to the name and configuration id of
|
||||
// a "service" resource in the Service Management API
|
||||
// (https://cloud.google.com/service-management/overview).
|
||||
type EndpointsApiService struct {
|
||||
// ConfigId: Endpoints service configuration id as specified by the
|
||||
@ -1173,6 +1269,17 @@ type EndpointsApiService struct {
|
||||
// "myapi.endpoints.myproject.cloud.goog"
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// RolloutStrategy: Endpoints rollout strategy. If FIXED, config_id must
|
||||
// be specified. If MANAGED, config_id must be omitted.
|
||||
//
|
||||
// Possible values:
|
||||
// "UNSPECIFIED_ROLLOUT_STRATEGY" - Not specified. Defaults to FIXED.
|
||||
// "FIXED" - Endpoints service configuration id will be fixed to the
|
||||
// configuration id specified by config_id.
|
||||
// "MANAGED" - Endpoints service configuration id will be updated with
|
||||
// each rollout.
|
||||
RolloutStrategy string `json:"rolloutStrategy,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ConfigId") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
@ -2008,6 +2115,10 @@ func (s *LivenessCheck) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Location: A resource that represents Google Cloud Platform location.
|
||||
type Location struct {
|
||||
// DisplayName: The friendly name for this location, typically a nearby
|
||||
// city name. For example, "Tokyo".
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
|
||||
// Labels: Cross-service attributes for the location. For
|
||||
// example
|
||||
// {"cloud.googleapis.com/region": "us-east1"}
|
||||
@ -2031,7 +2142,7 @@ type Location struct {
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Labels") to
|
||||
// ForceSendFields is a list of field names (e.g. "DisplayName") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@ -2039,10 +2150,10 @@ type Location struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Labels") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// NullFields is a list of field names (e.g. "DisplayName") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
@ -2057,11 +2168,11 @@ func (s *Location) MarshalJSON() ([]byte, error) {
|
||||
// LocationMetadata: Metadata for the given
|
||||
// google.cloud.location.Location.
|
||||
type LocationMetadata struct {
|
||||
// FlexibleEnvironmentAvailable: App Engine Flexible Environment is
|
||||
// FlexibleEnvironmentAvailable: App Engine flexible environment is
|
||||
// available in the given location.@OutputOnly
|
||||
FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
|
||||
|
||||
// StandardEnvironmentAvailable: App Engine Standard Environment is
|
||||
// StandardEnvironmentAvailable: App Engine standard environment is
|
||||
// available in the given location.@OutputOnly
|
||||
StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
|
||||
|
||||
@ -2193,8 +2304,8 @@ type Network struct {
|
||||
// App Engine flexible environment.
|
||||
ForwardedPorts []string `json:"forwardedPorts,omitempty"`
|
||||
|
||||
// InstanceTag: Tag to apply to the VM instance during creation. for
|
||||
// Only applicable in the App Engine flexible environment.
|
||||
// InstanceTag: Tag to apply to the instance during creation. Only
|
||||
// applicable in the App Engine flexible environment.
|
||||
InstanceTag string `json:"instanceTag,omitempty"`
|
||||
|
||||
// Name: Google Compute Engine network where the virtual machines are
|
||||
@ -2202,19 +2313,23 @@ type Network struct {
|
||||
// default.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// SessionAffinity: Enable session affinity.
|
||||
SessionAffinity bool `json:"sessionAffinity,omitempty"`
|
||||
|
||||
// SubnetworkName: Google Cloud Platform sub-network where the virtual
|
||||
// machines are created. Specify the short name, not the resource
|
||||
// path.If a subnetwork name is specified, a network name will also be
|
||||
// required unless it is for the default network.
|
||||
// If the network the VM instance is being created in is a Legacy
|
||||
// If the network that the instance is being created in is a Legacy
|
||||
// network, then the IP address is allocated from the IPv4Range.
|
||||
// If the network the VM instance is being created in is an auto Subnet
|
||||
// Mode Network, then only network name should be specified (not the
|
||||
// subnetwork_name) and the IP address is created from the IPCidrRange
|
||||
// of the subnetwork that exists in that zone for that network.
|
||||
// If the network the VM instance is being created in is a custom Subnet
|
||||
// Mode Network, then the subnetwork_name must be specified and the IP
|
||||
// address is created from the IPCidrRange of the subnetwork.If
|
||||
// If the network that the instance is being created in is an auto
|
||||
// Subnet Mode Network, then only network name should be specified (not
|
||||
// the subnetwork_name) and the IP address is created from the
|
||||
// IPCidrRange of the subnetwork that exists in that zone for that
|
||||
// network.
|
||||
// If the network that the instance is being created in is a custom
|
||||
// Subnet Mode Network, then the subnetwork_name must be specified and
|
||||
// the IP address is created from the IPCidrRange of the subnetwork.If
|
||||
// specified, the subnetwork must exist in the same region as the App
|
||||
// Engine flexible environment application.
|
||||
SubnetworkName string `json:"subnetworkName,omitempty"`
|
||||
@ -2394,6 +2509,8 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
|
||||
// OperationMetadataV1: Metadata for the given
|
||||
// google.longrunning.Operation.
|
||||
type OperationMetadataV1 struct {
|
||||
CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
|
||||
|
||||
// EndTime: Time that this operation completed.@OutputOnly
|
||||
EndTime string `json:"endTime,omitempty"`
|
||||
|
||||
@ -2419,20 +2536,22 @@ type OperationMetadataV1 struct {
|
||||
// @OutputOnly
|
||||
Warning []string `json:"warning,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "EndTime") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "CreateVersionMetadata") to unconditionally include in API requests.
|
||||
// By default, fields with empty values are omitted from API requests.
|
||||
// However, any non-pointer, non-interface field appearing in
|
||||
// ForceSendFields will be sent to the server regardless of whether the
|
||||
// field is empty or not. This may be used to include empty fields in
|
||||
// Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "EndTime") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
@ -2922,12 +3041,12 @@ func (s *SslSettings) MarshalJSON() ([]byte, error) {
|
||||
// StandardSchedulerSettings: Scheduler settings for standard
|
||||
// environment.
|
||||
type StandardSchedulerSettings struct {
|
||||
// MaxInstances: Maximum number of instances for an app version. Set to
|
||||
// zero to disable max_instances configuration.
|
||||
// MaxInstances: Maximum number of instances to run for this version.
|
||||
// Set to zero to disable max_instances configuration.
|
||||
MaxInstances int64 `json:"maxInstances,omitempty"`
|
||||
|
||||
// MinInstances: Minimum number of instances for an app version. Set to
|
||||
// zero to disable min_instances configuration.
|
||||
// MinInstances: Minimum number of instances to run for this version.
|
||||
// Set to zero to disable min_instances configuration.
|
||||
MinInstances int64 `json:"minInstances,omitempty"`
|
||||
|
||||
// TargetCpuUtilization: Target CPU utilization ratio to maintain when
|
||||
@ -3382,7 +3501,7 @@ type Version struct {
|
||||
// GET requests if view=FULL is set.
|
||||
Handlers []*UrlMap `json:"handlers,omitempty"`
|
||||
|
||||
// HealthCheck: Configures health checking for VM instances. Unhealthy
|
||||
// HealthCheck: Configures health checking for instances. Unhealthy
|
||||
// instances are stopped and replaced with new instances. Only
|
||||
// applicable in the App Engine flexible environment.Only returned in
|
||||
// GET requests if view=FULL is set.
|
||||
@ -3427,7 +3546,7 @@ type Version struct {
|
||||
// view=FULL is set.
|
||||
Libraries []*Library `json:"libraries,omitempty"`
|
||||
|
||||
// LivenessCheck: Configures liveness health checking for VM instances.
|
||||
// LivenessCheck: Configures liveness health checking for instances.
|
||||
// Unhealthy instances are stopped and replaced with new instancesOnly
|
||||
// returned in GET requests if view=FULL is set.
|
||||
LivenessCheck *LivenessCheck `json:"livenessCheck,omitempty"`
|
||||
@ -3450,13 +3569,13 @@ type Version struct {
|
||||
// GET requests if view=FULL is set.
|
||||
NobuildFilesRegex string `json:"nobuildFilesRegex,omitempty"`
|
||||
|
||||
// ReadinessCheck: Configures readiness health checking for VM
|
||||
// instances. Unhealthy instances are not put into the backend traffic
|
||||
// ReadinessCheck: Configures readiness health checking for instances.
|
||||
// Unhealthy instances are not put into the backend traffic
|
||||
// rotation.Only returned in GET requests if view=FULL is set.
|
||||
ReadinessCheck *ReadinessCheck `json:"readinessCheck,omitempty"`
|
||||
|
||||
// Resources: Machine resources for this version. Only applicable for VM
|
||||
// runtimes.
|
||||
// Resources: Machine resources for this version. Only applicable in the
|
||||
// App Engine flexible environment.
|
||||
Resources *Resources `json:"resources,omitempty"`
|
||||
|
||||
// Runtime: Desired runtime. Example: python27.
|
||||
@ -3467,6 +3586,10 @@ type Version struct {
|
||||
// https://cloud.google.com/appengine/docs/standard/<language>/config/appref
|
||||
RuntimeApiVersion string `json:"runtimeApiVersion,omitempty"`
|
||||
|
||||
// RuntimeChannel: The channel of the runtime to use. Only available for
|
||||
// some runtimes. Defaults to the default channel.
|
||||
RuntimeChannel string `json:"runtimeChannel,omitempty"`
|
||||
|
||||
// ServingStatus: Current serving status of this version. Only the
|
||||
// versions with a SERVING status create instances and can be
|
||||
// billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to
|
||||
@ -3493,8 +3616,8 @@ type Version struct {
|
||||
// machine.
|
||||
Vm bool `json:"vm,omitempty"`
|
||||
|
||||
// Zones: The choice of gce zones to use for this App Engine Flexible
|
||||
// version.
|
||||
// Zones: The Google Compute Engine zones that are supported by this
|
||||
// version in the App Engine flexible environment.
|
||||
Zones []string `json:"zones,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@ -3626,7 +3749,7 @@ type AppsCreateCall struct {
|
||||
// (https://cloud.google.com/appengine/docs/locations) where you want
|
||||
// the App Engine application located.For more information about App
|
||||
// Engine applications, see Managing Projects, Applications, and Billing
|
||||
// (https://cloud.google.com/appengine/docs/python/console/).
|
||||
// (https://cloud.google.com/appengine/docs/standard/python/console/).
|
||||
func (r *AppsService) Create(application *Application) *AppsCreateCall {
|
||||
c := &AppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.application = application
|
||||
@ -3716,7 +3839,7 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields:\nid - The ID of the target Cloud Platform project.\nlocation - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/python/console/).",
|
||||
// "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields:\nid - The ID of the target Cloud Platform project.\nlocation - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).",
|
||||
// "flatPath": "v1beta/apps",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "appengine.apps.create",
|
||||
@ -6878,7 +7001,7 @@ type AppsLocationsGetCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Get information about a location.
|
||||
// Get: Gets information about a location.
|
||||
func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
|
||||
c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.appsId = appsId
|
||||
@ -6981,7 +7104,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Get information about a location.",
|
||||
// "description": "Gets information about a location.",
|
||||
// "flatPath": "v1beta/apps/{appsId}/locations/{locationsId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "appengine.apps.locations.get",
|
||||
@ -8953,23 +9076,23 @@ type AppsServicesVersionsPatchCall struct {
|
||||
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1be
|
||||
// ta/apps.services.versions#Version.FIELDS.automatic_scaling): For
|
||||
// Version resources that use automatic scaling and run in the App
|
||||
// Engine Flexible environment.
|
||||
// Engine flexible environment.
|
||||
// automatic_scaling.max_total_instances
|
||||
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1be
|
||||
// ta/apps.services.versions#Version.FIELDS.automatic_scaling): For
|
||||
// Version resources that use automatic scaling and run in the App
|
||||
// Engine Flexible environment.
|
||||
// Engine flexible environment.
|
||||
// automatic_scaling.cool_down_period_sec
|
||||
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1be
|
||||
// ta/apps.services.versions#Version.FIELDS.automatic_scaling): For
|
||||
// Version resources that use automatic scaling and run in the App
|
||||
// Engine Flexible
|
||||
// Engine flexible
|
||||
// environment.
|
||||
// automatic_scaling.cpu_utilization.target_utilization
|
||||
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1be
|
||||
// ta/apps.services.versions#Version.FIELDS.automatic_scaling): For
|
||||
// Version resources that use automatic scaling and run in the App
|
||||
// Engine Flexible environment.
|
||||
// Engine flexible environment.
|
||||
func (r *AppsServicesVersionsService) Patch(appsId string, servicesId string, versionsId string, version *Version) *AppsServicesVersionsPatchCall {
|
||||
c := &AppsServicesVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.appsId = appsId
|
||||
@ -9074,7 +9197,7 @@ func (c *AppsServicesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Opera
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:\nserving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment.\ninstance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment.\nautomatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.\nautomatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.\nautomatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.\nautomatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.",
|
||||
// "description": "Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:\nserving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment.\ninstance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment.\nautomatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.\nautomatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.\nautomatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.\nautomatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.",
|
||||
// "flatPath": "v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}",
|
||||
// "httpMethod": "PATCH",
|
||||
// "id": "appengine.apps.services.versions.patch",
|
||||
|
4038
vendor/google.golang.org/api/appengine/v1beta4/appengine-api.json
generated
vendored
4038
vendor/google.golang.org/api/appengine/v1beta4/appengine-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
97
vendor/google.golang.org/api/appengine/v1beta4/appengine-gen.go
generated
vendored
97
vendor/google.golang.org/api/appengine/v1beta4/appengine-gen.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Package appengine provides access to the Google App Engine Admin API.
|
||||
// Package appengine provides access to the App Engine Admin API.
|
||||
//
|
||||
// See https://cloud.google.com/appengine/docs/admin-api/
|
||||
//
|
||||
@ -527,6 +527,37 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// CreateVersionMetadataV1: Metadata for the given
|
||||
// google.longrunning.Operation during a
|
||||
// google.appengine.v1.CreateVersionRequest.
|
||||
type CreateVersionMetadataV1 struct {
|
||||
// CloudBuildId: The Cloud Build ID if one was created as part of the
|
||||
// version create. @OutputOnly
|
||||
CloudBuildId string `json:"cloudBuildId,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CloudBuildId") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod CreateVersionMetadataV1
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CreateVersionMetadataV1Alpha: Metadata for the given
|
||||
// google.longrunning.Operation during a
|
||||
// google.appengine.v1alpha.CreateVersionRequest.
|
||||
@ -708,7 +739,8 @@ func (s *DiskUtilization) MarshalJSON() ([]byte, error) {
|
||||
// EndpointsApiService: Cloud Endpoints
|
||||
// (https://cloud.google.com/endpoints) configuration. The Endpoints API
|
||||
// Service provides tooling for serving Open API and gRPC endpoints via
|
||||
// an NGINX proxy.The fields here refer to the name and configuration id
|
||||
// an NGINX proxy. Only valid for App Engine Flexible environment
|
||||
// deployments..The fields here refer to the name and configuration id
|
||||
// of a "service" resource in the Service Management API
|
||||
// (https://cloud.google.com/service-management/overview).
|
||||
type EndpointsApiService struct {
|
||||
@ -725,6 +757,17 @@ type EndpointsApiService struct {
|
||||
// "myapi.endpoints.myproject.cloud.goog"
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// RolloutStrategy: Endpoints rollout strategy. If FIXED, config_id must
|
||||
// be specified. If MANAGED, config_id must be omitted.
|
||||
//
|
||||
// Possible values:
|
||||
// "UNSPECIFIED_ROLLOUT_STRATEGY" - Not specified. Defaults to FIXED.
|
||||
// "FIXED" - Endpoints service configuration id will be fixed to the
|
||||
// configuration id specified by config_id.
|
||||
// "MANAGED" - Endpoints service configuration id will be updated with
|
||||
// each rollout.
|
||||
RolloutStrategy string `json:"rolloutStrategy,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ConfigId") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
@ -1257,6 +1300,10 @@ func (s *ListVersionsResponse) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Location: A resource that represents Google Cloud Platform location.
|
||||
type Location struct {
|
||||
// DisplayName: The friendly name for this location, typically a nearby
|
||||
// city name. For example, "Tokyo".
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
|
||||
// Labels: Cross-service attributes for the location. For
|
||||
// example
|
||||
// {"cloud.googleapis.com/region": "us-east1"}
|
||||
@ -1280,7 +1327,7 @@ type Location struct {
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Labels") to
|
||||
// ForceSendFields is a list of field names (e.g. "DisplayName") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@ -1288,10 +1335,10 @@ type Location struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Labels") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// NullFields is a list of field names (e.g. "DisplayName") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
@ -1306,11 +1353,11 @@ func (s *Location) MarshalJSON() ([]byte, error) {
|
||||
// LocationMetadata: Metadata for the given
|
||||
// google.cloud.location.Location.
|
||||
type LocationMetadata struct {
|
||||
// FlexibleEnvironmentAvailable: App Engine Flexible Environment is
|
||||
// FlexibleEnvironmentAvailable: App Engine flexible environment is
|
||||
// available in the given location.@OutputOnly
|
||||
FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
|
||||
|
||||
// StandardEnvironmentAvailable: App Engine Standard Environment is
|
||||
// StandardEnvironmentAvailable: App Engine standard environment is
|
||||
// available in the given location.@OutputOnly
|
||||
StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
|
||||
|
||||
@ -1608,6 +1655,8 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
|
||||
// OperationMetadataV1: Metadata for the given
|
||||
// google.longrunning.Operation.
|
||||
type OperationMetadataV1 struct {
|
||||
CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
|
||||
|
||||
// EndTime: Time that this operation completed.@OutputOnly
|
||||
EndTime string `json:"endTime,omitempty"`
|
||||
|
||||
@ -1633,20 +1682,22 @@ type OperationMetadataV1 struct {
|
||||
// @OutputOnly
|
||||
Warning []string `json:"warning,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "EndTime") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "CreateVersionMetadata") to unconditionally include in API requests.
|
||||
// By default, fields with empty values are omitted from API requests.
|
||||
// However, any non-pointer, non-interface field appearing in
|
||||
// ForceSendFields will be sent to the server regardless of whether the
|
||||
// field is empty or not. This may be used to include empty fields in
|
||||
// Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "EndTime") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
@ -3040,7 +3091,7 @@ type AppsLocationsGetCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Get information about a location.
|
||||
// Get: Gets information about a location.
|
||||
func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
|
||||
c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.appsId = appsId
|
||||
@ -3143,7 +3194,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Get information about a location.",
|
||||
// "description": "Gets information about a location.",
|
||||
// "flatPath": "v1beta4/apps/{appsId}/locations/{locationsId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "appengine.apps.locations.get",
|
||||
|
3880
vendor/google.golang.org/api/appengine/v1beta5/appengine-api.json
generated
vendored
3880
vendor/google.golang.org/api/appengine/v1beta5/appengine-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
99
vendor/google.golang.org/api/appengine/v1beta5/appengine-gen.go
generated
vendored
99
vendor/google.golang.org/api/appengine/v1beta5/appengine-gen.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Package appengine provides access to the Google App Engine Admin API.
|
||||
// Package appengine provides access to the App Engine Admin API.
|
||||
//
|
||||
// See https://cloud.google.com/appengine/docs/admin-api/
|
||||
//
|
||||
@ -527,6 +527,37 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// CreateVersionMetadataV1: Metadata for the given
|
||||
// google.longrunning.Operation during a
|
||||
// google.appengine.v1.CreateVersionRequest.
|
||||
type CreateVersionMetadataV1 struct {
|
||||
// CloudBuildId: The Cloud Build ID if one was created as part of the
|
||||
// version create. @OutputOnly
|
||||
CloudBuildId string `json:"cloudBuildId,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CloudBuildId") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod CreateVersionMetadataV1
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CreateVersionMetadataV1Alpha: Metadata for the given
|
||||
// google.longrunning.Operation during a
|
||||
// google.appengine.v1alpha.CreateVersionRequest.
|
||||
@ -708,8 +739,9 @@ func (s *DiskUtilization) MarshalJSON() ([]byte, error) {
|
||||
// EndpointsApiService: Cloud Endpoints
|
||||
// (https://cloud.google.com/endpoints) configuration. The Endpoints API
|
||||
// Service provides tooling for serving Open API and gRPC endpoints via
|
||||
// an NGINX proxy.The fields here refer to the name and configuration id
|
||||
// of a "service" resource in the Service Management API
|
||||
// an NGINX proxy. Only valid for App Engine Flexible environment
|
||||
// deployments.The fields here refer to the name and configuration id of
|
||||
// a "service" resource in the Service Management API
|
||||
// (https://cloud.google.com/service-management/overview).
|
||||
type EndpointsApiService struct {
|
||||
// ConfigId: Endpoints service configuration id as specified by the
|
||||
@ -725,6 +757,17 @@ type EndpointsApiService struct {
|
||||
// "myapi.endpoints.myproject.cloud.goog"
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// RolloutStrategy: Endpoints rollout strategy. If FIXED, config_id must
|
||||
// be specified. If MANAGED, config_id must be omitted.
|
||||
//
|
||||
// Possible values:
|
||||
// "UNSPECIFIED_ROLLOUT_STRATEGY" - Not specified. Defaults to FIXED.
|
||||
// "FIXED" - Endpoints service configuration id will be fixed to the
|
||||
// configuration id specified by config_id.
|
||||
// "MANAGED" - Endpoints service configuration id will be updated with
|
||||
// each rollout.
|
||||
RolloutStrategy string `json:"rolloutStrategy,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ConfigId") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
@ -1257,6 +1300,10 @@ func (s *ListVersionsResponse) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Location: A resource that represents Google Cloud Platform location.
|
||||
type Location struct {
|
||||
// DisplayName: The friendly name for this location, typically a nearby
|
||||
// city name. For example, "Tokyo".
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
|
||||
// Labels: Cross-service attributes for the location. For
|
||||
// example
|
||||
// {"cloud.googleapis.com/region": "us-east1"}
|
||||
@ -1280,7 +1327,7 @@ type Location struct {
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Labels") to
|
||||
// ForceSendFields is a list of field names (e.g. "DisplayName") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@ -1288,10 +1335,10 @@ type Location struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Labels") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// NullFields is a list of field names (e.g. "DisplayName") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
@ -1306,11 +1353,11 @@ func (s *Location) MarshalJSON() ([]byte, error) {
|
||||
// LocationMetadata: Metadata for the given
|
||||
// google.cloud.location.Location.
|
||||
type LocationMetadata struct {
|
||||
// FlexibleEnvironmentAvailable: App Engine Flexible Environment is
|
||||
// FlexibleEnvironmentAvailable: App Engine flexible environment is
|
||||
// available in the given location.@OutputOnly
|
||||
FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
|
||||
|
||||
// StandardEnvironmentAvailable: App Engine Standard Environment is
|
||||
// StandardEnvironmentAvailable: App Engine standard environment is
|
||||
// available in the given location.@OutputOnly
|
||||
StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
|
||||
|
||||
@ -1578,6 +1625,8 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
|
||||
// OperationMetadataV1: Metadata for the given
|
||||
// google.longrunning.Operation.
|
||||
type OperationMetadataV1 struct {
|
||||
CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
|
||||
|
||||
// EndTime: Time that this operation completed.@OutputOnly
|
||||
EndTime string `json:"endTime,omitempty"`
|
||||
|
||||
@ -1603,20 +1652,22 @@ type OperationMetadataV1 struct {
|
||||
// @OutputOnly
|
||||
Warning []string `json:"warning,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "EndTime") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "CreateVersionMetadata") to unconditionally include in API requests.
|
||||
// By default, fields with empty values are omitted from API requests.
|
||||
// However, any non-pointer, non-interface field appearing in
|
||||
// ForceSendFields will be sent to the server regardless of whether the
|
||||
// field is empty or not. This may be used to include empty fields in
|
||||
// Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "EndTime") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
@ -3000,7 +3051,7 @@ type AppsLocationsGetCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Get information about a location.
|
||||
// Get: Gets information about a location.
|
||||
func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
|
||||
c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.appsId = appsId
|
||||
@ -3103,7 +3154,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Get information about a location.",
|
||||
// "description": "Gets information about a location.",
|
||||
// "flatPath": "v1beta5/apps/{appsId}/locations/{locationsId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "appengine.apps.locations.get",
|
||||
|
930
vendor/google.golang.org/api/appsactivity/v1/appsactivity-api.json
generated
vendored
930
vendor/google.golang.org/api/appsactivity/v1/appsactivity-api.json
generated
vendored
@ -1,489 +1,475 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/pDZ7o52oB1KPiP4jc8rmQ24ThMo\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "appsactivity:v1",
|
||||
"name": "appsactivity",
|
||||
"version": "v1",
|
||||
"revision": "20170619",
|
||||
"title": "G Suite Activity API",
|
||||
"description": "Provides a historical view of activity.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"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://developers.google.com/google-apps/activity/",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/appsactivity/v1/",
|
||||
"basePath": "/appsactivity/v1/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "appsactivity/v1/",
|
||||
"batchPath": "batch/appsactivity/v1",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"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.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/activity": {
|
||||
"description": "View the activity history of your Google apps"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive": {
|
||||
"description": "View and manage the files in your Google Drive"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.metadata": {
|
||||
"description": "View and manage metadata of files in your Google Drive"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.metadata.readonly": {
|
||||
"description": "View metadata for files in your Google Drive"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.readonly": {
|
||||
"description": "View the files in your Google Drive"
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/activity": {
|
||||
"description": "View the activity history of your Google apps"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"Activity": {
|
||||
"id": "Activity",
|
||||
"type": "object",
|
||||
"description": "An Activity resource is a combined view of multiple events. An activity has a list of individual events and a combined view of the common fields among all events.",
|
||||
"properties": {
|
||||
"combinedEvent": {
|
||||
"$ref": "Event",
|
||||
"description": "The fields common to all of the singleEvents that make up the Activity."
|
||||
},
|
||||
"singleEvents": {
|
||||
"type": "array",
|
||||
"description": "A list of all the Events that make up the Activity.",
|
||||
"items": {
|
||||
"$ref": "Event"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Event": {
|
||||
"id": "Event",
|
||||
"type": "object",
|
||||
"description": "Represents the changes associated with an action taken by a user.",
|
||||
"properties": {
|
||||
"additionalEventTypes": {
|
||||
"type": "array",
|
||||
"description": "Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"basePath": "/appsactivity/v1/",
|
||||
"baseUrl": "https://www.googleapis.com/appsactivity/v1/",
|
||||
"batchPath": "batch/appsactivity/v1",
|
||||
"description": "Provides a historical view of activity.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/google-apps/activity/",
|
||||
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/i2G9IjUY6hcmy1d1bAWQZIc125s\"",
|
||||
"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"
|
||||
},
|
||||
"id": "appsactivity:v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "appsactivity",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for the response.",
|
||||
"enum": [
|
||||
"comment",
|
||||
"create",
|
||||
"edit",
|
||||
"emptyTrash",
|
||||
"move",
|
||||
"permissionChange",
|
||||
"rename",
|
||||
"trash",
|
||||
"unknown",
|
||||
"untrash",
|
||||
"upload"
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
}
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"eventTimeMillis": {
|
||||
"type": "string",
|
||||
"description": "The time at which the event occurred formatted as Unix time in milliseconds.",
|
||||
"format": "uint64"
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fromUserDeletion": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this event is caused by a user being deleted."
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"move": {
|
||||
"$ref": "Move",
|
||||
"description": "Extra information for move type events, such as changes in an object's parents."
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"permissionChanges": {
|
||||
"type": "array",
|
||||
"description": "Extra information for permissionChange type events, such as the user or group the new permission applies to.",
|
||||
"items": {
|
||||
"$ref": "PermissionChange"
|
||||
}
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"primaryEventType": {
|
||||
"type": "string",
|
||||
"description": "The main type of event that occurred.",
|
||||
"enum": [
|
||||
"comment",
|
||||
"create",
|
||||
"edit",
|
||||
"emptyTrash",
|
||||
"move",
|
||||
"permissionChange",
|
||||
"rename",
|
||||
"trash",
|
||||
"unknown",
|
||||
"untrash",
|
||||
"upload"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"rename": {
|
||||
"$ref": "Rename",
|
||||
"description": "Extra information for rename type events, such as the old and new names."
|
||||
},
|
||||
"target": {
|
||||
"$ref": "Target",
|
||||
"description": "Information specific to the Target object modified by the event."
|
||||
},
|
||||
"user": {
|
||||
"$ref": "User",
|
||||
"description": "Represents the user responsible for the event."
|
||||
"userIp": {
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListActivitiesResponse": {
|
||||
"id": "ListActivitiesResponse",
|
||||
"type": "object",
|
||||
"description": "The response from the list request. Contains a list of activities and a token to retrieve the next page of results.",
|
||||
"properties": {
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"activities": {
|
||||
"type": "array",
|
||||
"description": "List of activities.",
|
||||
"items": {
|
||||
"$ref": "Activity"
|
||||
}
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Token for the next page of results."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Move": {
|
||||
"id": "Move",
|
||||
"type": "object",
|
||||
"description": "Contains information about changes in an object's parents as a result of a move type event.",
|
||||
"properties": {
|
||||
"addedParents": {
|
||||
"type": "array",
|
||||
"description": "The added parent(s).",
|
||||
"items": {
|
||||
"$ref": "Parent"
|
||||
}
|
||||
},
|
||||
"removedParents": {
|
||||
"type": "array",
|
||||
"description": "The removed parent(s).",
|
||||
"items": {
|
||||
"$ref": "Parent"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Parent": {
|
||||
"id": "Parent",
|
||||
"type": "object",
|
||||
"description": "Contains information about a parent object. For example, a folder in Drive is a parent for all files within it.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The parent's ID."
|
||||
},
|
||||
"isRoot": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this is the root folder."
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"description": "The parent's title."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Permission": {
|
||||
"id": "Permission",
|
||||
"type": "object",
|
||||
"description": "Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the user or group the permission applies to."
|
||||
},
|
||||
"permissionId": {
|
||||
"type": "string",
|
||||
"description": "The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource."
|
||||
},
|
||||
"role": {
|
||||
"type": "string",
|
||||
"description": "Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.",
|
||||
"enum": [
|
||||
"commenter",
|
||||
"owner",
|
||||
"reader",
|
||||
"writer"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Indicates how widely permissions are granted.",
|
||||
"enum": [
|
||||
"anyone",
|
||||
"domain",
|
||||
"group",
|
||||
"user"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"user": {
|
||||
"$ref": "User",
|
||||
"description": "The user's information if the type is USER."
|
||||
},
|
||||
"withLink": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the permission requires a link to the file."
|
||||
}
|
||||
}
|
||||
},
|
||||
"PermissionChange": {
|
||||
"id": "PermissionChange",
|
||||
"type": "object",
|
||||
"description": "Contains information about a Drive object's permissions that changed as a result of a permissionChange type event.",
|
||||
"properties": {
|
||||
"addedPermissions": {
|
||||
"type": "array",
|
||||
"description": "Lists all Permission objects added.",
|
||||
"items": {
|
||||
"$ref": "Permission"
|
||||
}
|
||||
},
|
||||
"removedPermissions": {
|
||||
"type": "array",
|
||||
"description": "Lists all Permission objects removed.",
|
||||
"items": {
|
||||
"$ref": "Permission"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Photo": {
|
||||
"id": "Photo",
|
||||
"type": "object",
|
||||
"description": "Photo information for a user.",
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The URL of the photo."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Rename": {
|
||||
"id": "Rename",
|
||||
"type": "object",
|
||||
"description": "Contains information about a renametype event.",
|
||||
"properties": {
|
||||
"newTitle": {
|
||||
"type": "string",
|
||||
"description": "The new title."
|
||||
},
|
||||
"oldTitle": {
|
||||
"type": "string",
|
||||
"description": "The old title."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Target": {
|
||||
"id": "Target",
|
||||
"type": "object",
|
||||
"description": "Information about the object modified by the event.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The ID of the target. For example, in Google Drive, this is the file or folder ID."
|
||||
},
|
||||
"mimeType": {
|
||||
"type": "string",
|
||||
"description": "The MIME type of the target."
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the target. For example, in Google Drive, this is the title of the file."
|
||||
}
|
||||
}
|
||||
},
|
||||
"User": {
|
||||
"id": "User",
|
||||
"type": "object",
|
||||
"description": "A representation of a user.",
|
||||
"properties": {
|
||||
"isDeleted": {
|
||||
"type": "boolean",
|
||||
"description": "A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted."
|
||||
},
|
||||
"isMe": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the user is the authenticated user."
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The displayable name of the user."
|
||||
},
|
||||
"permissionId": {
|
||||
"type": "string",
|
||||
"description": "The permission ID associated with this user. Equivalent to the Drive API's permission ID for this user, returned as part of the Drive Permissions resource."
|
||||
},
|
||||
"photo": {
|
||||
"$ref": "Photo",
|
||||
"description": "The profile photo of the user. Not present if the user has no profile photo."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"activities": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "appsactivity.activities.list",
|
||||
"path": "activities",
|
||||
"httpMethod": "GET",
|
||||
"description": "Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.",
|
||||
"parameters": {
|
||||
"drive.ancestorId": {
|
||||
"type": "string",
|
||||
"description": "Identifies the Drive folder containing the items for which to return activities.",
|
||||
"location": "query"
|
||||
},
|
||||
"drive.fileId": {
|
||||
"type": "string",
|
||||
"description": "Identifies the Drive item to return activities for.",
|
||||
"location": "query"
|
||||
},
|
||||
"groupingStrategy": {
|
||||
"type": "string",
|
||||
"description": "Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.",
|
||||
"default": "driveUi",
|
||||
"enum": [
|
||||
"driveUi",
|
||||
"none"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
""
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"pageSize": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of events to return on a page. The response includes a continuation token if there are more events.",
|
||||
"default": "50",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "A token to retrieve a specific page of results.",
|
||||
"location": "query"
|
||||
},
|
||||
"source": {
|
||||
"type": "string",
|
||||
"description": "The Google service from which to return activities. Possible values of source are: \n- drive.google.com",
|
||||
"location": "query"
|
||||
},
|
||||
"userId": {
|
||||
"type": "string",
|
||||
"description": "Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.",
|
||||
"default": "me",
|
||||
"location": "query"
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.",
|
||||
"httpMethod": "GET",
|
||||
"id": "appsactivity.activities.list",
|
||||
"parameters": {
|
||||
"drive.ancestorId": {
|
||||
"description": "Identifies the Drive folder containing the items for which to return activities.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"drive.fileId": {
|
||||
"description": "Identifies the Drive item to return activities for.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"groupingStrategy": {
|
||||
"default": "driveUi",
|
||||
"description": "Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.",
|
||||
"enum": [
|
||||
"driveUi",
|
||||
"none"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
""
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"default": "50",
|
||||
"description": "The maximum number of events to return on a page. The response includes a continuation token if there are more events.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "A token to retrieve a specific page of results.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"description": "The Google service from which to return activities. Possible values of source are: \n- drive.google.com",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"default": "me",
|
||||
"description": "Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "activities",
|
||||
"response": {
|
||||
"$ref": "ListActivitiesResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/activity"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "ListActivitiesResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/activity",
|
||||
"https://www.googleapis.com/auth/drive",
|
||||
"https://www.googleapis.com/auth/drive.metadata",
|
||||
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
||||
"https://www.googleapis.com/auth/drive.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180204",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"Activity": {
|
||||
"description": "An Activity resource is a combined view of multiple events. An activity has a list of individual events and a combined view of the common fields among all events.",
|
||||
"id": "Activity",
|
||||
"properties": {
|
||||
"combinedEvent": {
|
||||
"$ref": "Event",
|
||||
"description": "The fields common to all of the singleEvents that make up the Activity."
|
||||
},
|
||||
"singleEvents": {
|
||||
"description": "A list of all the Events that make up the Activity.",
|
||||
"items": {
|
||||
"$ref": "Event"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Event": {
|
||||
"description": "Represents the changes associated with an action taken by a user.",
|
||||
"id": "Event",
|
||||
"properties": {
|
||||
"additionalEventTypes": {
|
||||
"description": "Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event.",
|
||||
"items": {
|
||||
"enum": [
|
||||
"comment",
|
||||
"create",
|
||||
"edit",
|
||||
"emptyTrash",
|
||||
"move",
|
||||
"permissionChange",
|
||||
"rename",
|
||||
"trash",
|
||||
"unknown",
|
||||
"untrash",
|
||||
"upload"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"eventTimeMillis": {
|
||||
"description": "The time at which the event occurred formatted as Unix time in milliseconds.",
|
||||
"format": "uint64",
|
||||
"type": "string"
|
||||
},
|
||||
"fromUserDeletion": {
|
||||
"description": "Whether this event is caused by a user being deleted.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"move": {
|
||||
"$ref": "Move",
|
||||
"description": "Extra information for move type events, such as changes in an object's parents."
|
||||
},
|
||||
"permissionChanges": {
|
||||
"description": "Extra information for permissionChange type events, such as the user or group the new permission applies to.",
|
||||
"items": {
|
||||
"$ref": "PermissionChange"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"primaryEventType": {
|
||||
"description": "The main type of event that occurred.",
|
||||
"enum": [
|
||||
"comment",
|
||||
"create",
|
||||
"edit",
|
||||
"emptyTrash",
|
||||
"move",
|
||||
"permissionChange",
|
||||
"rename",
|
||||
"trash",
|
||||
"unknown",
|
||||
"untrash",
|
||||
"upload"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"rename": {
|
||||
"$ref": "Rename",
|
||||
"description": "Extra information for rename type events, such as the old and new names."
|
||||
},
|
||||
"target": {
|
||||
"$ref": "Target",
|
||||
"description": "Information specific to the Target object modified by the event."
|
||||
},
|
||||
"user": {
|
||||
"$ref": "User",
|
||||
"description": "Represents the user responsible for the event."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ListActivitiesResponse": {
|
||||
"description": "The response from the list request. Contains a list of activities and a token to retrieve the next page of results.",
|
||||
"id": "ListActivitiesResponse",
|
||||
"properties": {
|
||||
"activities": {
|
||||
"description": "List of activities.",
|
||||
"items": {
|
||||
"$ref": "Activity"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "Token for the next page of results.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Move": {
|
||||
"description": "Contains information about changes in an object's parents as a result of a move type event.",
|
||||
"id": "Move",
|
||||
"properties": {
|
||||
"addedParents": {
|
||||
"description": "The added parent(s).",
|
||||
"items": {
|
||||
"$ref": "Parent"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"removedParents": {
|
||||
"description": "The removed parent(s).",
|
||||
"items": {
|
||||
"$ref": "Parent"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Parent": {
|
||||
"description": "Contains information about a parent object. For example, a folder in Drive is a parent for all files within it.",
|
||||
"id": "Parent",
|
||||
"properties": {
|
||||
"id": {
|
||||
"description": "The parent's ID.",
|
||||
"type": "string"
|
||||
},
|
||||
"isRoot": {
|
||||
"description": "Whether this is the root folder.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"description": "The parent's title.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Permission": {
|
||||
"description": "Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.",
|
||||
"id": "Permission",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "The name of the user or group the permission applies to.",
|
||||
"type": "string"
|
||||
},
|
||||
"permissionId": {
|
||||
"description": "The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"description": "Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.",
|
||||
"enum": [
|
||||
"commenter",
|
||||
"owner",
|
||||
"publishedReader",
|
||||
"reader",
|
||||
"writer"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "Indicates how widely permissions are granted.",
|
||||
"enum": [
|
||||
"anyone",
|
||||
"domain",
|
||||
"group",
|
||||
"user"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"user": {
|
||||
"$ref": "User",
|
||||
"description": "The user's information if the type is USER."
|
||||
},
|
||||
"withLink": {
|
||||
"description": "Whether the permission requires a link to the file.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"PermissionChange": {
|
||||
"description": "Contains information about a Drive object's permissions that changed as a result of a permissionChange type event.",
|
||||
"id": "PermissionChange",
|
||||
"properties": {
|
||||
"addedPermissions": {
|
||||
"description": "Lists all Permission objects added.",
|
||||
"items": {
|
||||
"$ref": "Permission"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"removedPermissions": {
|
||||
"description": "Lists all Permission objects removed.",
|
||||
"items": {
|
||||
"$ref": "Permission"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Photo": {
|
||||
"description": "Photo information for a user.",
|
||||
"id": "Photo",
|
||||
"properties": {
|
||||
"url": {
|
||||
"description": "The URL of the photo.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Rename": {
|
||||
"description": "Contains information about a renametype event.",
|
||||
"id": "Rename",
|
||||
"properties": {
|
||||
"newTitle": {
|
||||
"description": "The new title.",
|
||||
"type": "string"
|
||||
},
|
||||
"oldTitle": {
|
||||
"description": "The old title.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Target": {
|
||||
"description": "Information about the object modified by the event.",
|
||||
"id": "Target",
|
||||
"properties": {
|
||||
"id": {
|
||||
"description": "The ID of the target. For example, in Google Drive, this is the file or folder ID.",
|
||||
"type": "string"
|
||||
},
|
||||
"mimeType": {
|
||||
"description": "The MIME type of the target.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "The name of the target. For example, in Google Drive, this is the title of the file.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"User": {
|
||||
"description": "A representation of a user.",
|
||||
"id": "User",
|
||||
"properties": {
|
||||
"isDeleted": {
|
||||
"description": "A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"isMe": {
|
||||
"description": "Whether the user is the authenticated user.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"description": "The displayable name of the user.",
|
||||
"type": "string"
|
||||
},
|
||||
"permissionId": {
|
||||
"description": "The permission ID associated with this user. Equivalent to the Drive API's permission ID for this user, returned as part of the Drive Permissions resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"photo": {
|
||||
"$ref": "Photo",
|
||||
"description": "The profile photo of the user. Not present if the user has no profile photo."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "appsactivity/v1/",
|
||||
"title": "G Suite Activity API",
|
||||
"version": "v1"
|
||||
}
|
19
vendor/google.golang.org/api/appsactivity/v1/appsactivity-gen.go
generated
vendored
19
vendor/google.golang.org/api/appsactivity/v1/appsactivity-gen.go
generated
vendored
@ -49,18 +49,6 @@ const basePath = "https://www.googleapis.com/appsactivity/v1/"
|
||||
const (
|
||||
// View the activity history of your Google apps
|
||||
ActivityScope = "https://www.googleapis.com/auth/activity"
|
||||
|
||||
// View and manage the files in your Google Drive
|
||||
DriveScope = "https://www.googleapis.com/auth/drive"
|
||||
|
||||
// View and manage metadata of files in your Google Drive
|
||||
DriveMetadataScope = "https://www.googleapis.com/auth/drive.metadata"
|
||||
|
||||
// View metadata for files in your Google Drive
|
||||
DriveMetadataReadonlyScope = "https://www.googleapis.com/auth/drive.metadata.readonly"
|
||||
|
||||
// View the files in your Google Drive
|
||||
DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"
|
||||
)
|
||||
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
@ -343,6 +331,7 @@ type Permission struct {
|
||||
// Possible values:
|
||||
// "commenter"
|
||||
// "owner"
|
||||
// "publishedReader"
|
||||
// "reader"
|
||||
// "writer"
|
||||
Role string `json:"role,omitempty"`
|
||||
@ -785,11 +774,7 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ListActivitiesRe
|
||||
// "$ref": "ListActivitiesResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/activity",
|
||||
// "https://www.googleapis.com/auth/drive",
|
||||
// "https://www.googleapis.com/auth/drive.metadata",
|
||||
// "https://www.googleapis.com/auth/drive.metadata.readonly",
|
||||
// "https://www.googleapis.com/auth/drive.readonly"
|
||||
// "https://www.googleapis.com/auth/activity"
|
||||
// ]
|
||||
// }
|
||||
|
||||
|
590
vendor/google.golang.org/api/appstate/v1/appstate-api.json
generated
vendored
590
vendor/google.golang.org/api/appstate/v1/appstate-api.json
generated
vendored
@ -1,307 +1,307 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/ANNk7azl5zRYtDCCrlgSBbC8-4Y\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "appstate:v1",
|
||||
"name": "appstate",
|
||||
"canonicalName": "App State",
|
||||
"version": "v1",
|
||||
"revision": "20170911",
|
||||
"title": "Google App State API",
|
||||
"description": "The Google App State API.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"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://developers.google.com/games/services/web/api/states",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/appstate/v1/",
|
||||
"basePath": "/appstate/v1/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "appstate/v1/",
|
||||
"batchPath": "batch/appstate/v1",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"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.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/appstate": {
|
||||
"description": "View and manage your data for this application"
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/appstate": {
|
||||
"description": "View and manage your data for this application"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"GetResponse": {
|
||||
"id": "GetResponse",
|
||||
"type": "object",
|
||||
"description": "This is a JSON template for an app state resource.",
|
||||
"properties": {
|
||||
"currentStateVersion": {
|
||||
"type": "string",
|
||||
"description": "The current app state version."
|
||||
},
|
||||
"data": {
|
||||
"type": "string",
|
||||
"description": "The requested data."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#getResponse.",
|
||||
"default": "appstate#getResponse"
|
||||
},
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The key for the data.",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListResponse": {
|
||||
"id": "ListResponse",
|
||||
"type": "object",
|
||||
"description": "This is a JSON template to convert a list-response for app state.",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "The app state data.",
|
||||
"items": {
|
||||
"$ref": "GetResponse"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#listResponse.",
|
||||
"default": "appstate#listResponse"
|
||||
},
|
||||
"maximumKeyCount": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of keys allowed for this user.",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
"basePath": "/appstate/v1/",
|
||||
"baseUrl": "https://www.googleapis.com/appstate/v1/",
|
||||
"batchPath": "batch/appstate/v1",
|
||||
"canonicalName": "App State",
|
||||
"description": "The Google App State API.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/games/services/web/api/states",
|
||||
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/X8tji3M7ero0WaIAGRtuwW2FqYo\"",
|
||||
"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"
|
||||
},
|
||||
"UpdateRequest": {
|
||||
"id": "UpdateRequest",
|
||||
"type": "object",
|
||||
"description": "This is a JSON template for a requests which update app state",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "string",
|
||||
"description": "The new app state data that your application is trying to update with."
|
||||
"id": "appstate:v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "appstate",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for the response.",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#updateRequest.",
|
||||
"default": "appstate#updateRequest"
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"userIp": {
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"WriteResult": {
|
||||
"id": "WriteResult",
|
||||
"type": "object",
|
||||
"description": "This is a JSON template for an app state write result.",
|
||||
"properties": {
|
||||
"currentStateVersion": {
|
||||
"type": "string",
|
||||
"description": "The version of the data for this key on the server."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#writeResult.",
|
||||
"default": "appstate#writeResult"
|
||||
},
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The written key.",
|
||||
"format": "int32"
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"states": {
|
||||
"methods": {
|
||||
"clear": {
|
||||
"description": "Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.",
|
||||
"httpMethod": "POST",
|
||||
"id": "appstate.states.clear",
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"parameters": {
|
||||
"currentDataVersion": {
|
||||
"description": "The version of the data to be cleared. Version strings are returned by the server.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"stateKey": {
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"format": "int32",
|
||||
"location": "path",
|
||||
"maximum": "3",
|
||||
"minimum": "0",
|
||||
"required": true,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"path": "states/{stateKey}/clear",
|
||||
"response": {
|
||||
"$ref": "WriteResult"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"description": "Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "appstate.states.delete",
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"parameters": {
|
||||
"stateKey": {
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"format": "int32",
|
||||
"location": "path",
|
||||
"maximum": "3",
|
||||
"minimum": "0",
|
||||
"required": true,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"path": "states/{stateKey}",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"description": "Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned.",
|
||||
"httpMethod": "GET",
|
||||
"id": "appstate.states.get",
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"parameters": {
|
||||
"stateKey": {
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"format": "int32",
|
||||
"location": "path",
|
||||
"maximum": "3",
|
||||
"minimum": "0",
|
||||
"required": true,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"path": "states/{stateKey}",
|
||||
"response": {
|
||||
"$ref": "GetResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists all the states keys, and optionally the state data.",
|
||||
"httpMethod": "GET",
|
||||
"id": "appstate.states.list",
|
||||
"parameters": {
|
||||
"includeData": {
|
||||
"default": "false",
|
||||
"description": "Whether to include the full data in addition to the version number",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"path": "states",
|
||||
"response": {
|
||||
"$ref": "ListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
},
|
||||
"update": {
|
||||
"description": "Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.",
|
||||
"httpMethod": "PUT",
|
||||
"id": "appstate.states.update",
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"parameters": {
|
||||
"currentStateVersion": {
|
||||
"description": "The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"stateKey": {
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"format": "int32",
|
||||
"location": "path",
|
||||
"maximum": "3",
|
||||
"minimum": "0",
|
||||
"required": true,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"path": "states/{stateKey}",
|
||||
"request": {
|
||||
"$ref": "UpdateRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "WriteResult"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"states": {
|
||||
"methods": {
|
||||
"clear": {
|
||||
"id": "appstate.states.clear",
|
||||
"path": "states/{stateKey}/clear",
|
||||
"httpMethod": "POST",
|
||||
"description": "Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.",
|
||||
"parameters": {
|
||||
"currentDataVersion": {
|
||||
"type": "string",
|
||||
"description": "The version of the data to be cleared. Version strings are returned by the server.",
|
||||
"location": "query"
|
||||
},
|
||||
"revision": "20180122",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"GetResponse": {
|
||||
"description": "This is a JSON template for an app state resource.",
|
||||
"id": "GetResponse",
|
||||
"properties": {
|
||||
"currentStateVersion": {
|
||||
"description": "The current app state version.",
|
||||
"type": "string"
|
||||
},
|
||||
"data": {
|
||||
"description": "The requested data.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "appstate#getResponse",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#getResponse.",
|
||||
"type": "string"
|
||||
},
|
||||
"stateKey": {
|
||||
"description": "The key for the data.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"minimum": "0",
|
||||
"maximum": "3",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "WriteResult"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
"type": "object"
|
||||
},
|
||||
"delete": {
|
||||
"id": "appstate.states.delete",
|
||||
"path": "states/{stateKey}",
|
||||
"httpMethod": "DELETE",
|
||||
"description": "Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.",
|
||||
"parameters": {
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"minimum": "0",
|
||||
"maximum": "3",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "appstate.states.get",
|
||||
"path": "states/{stateKey}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned.",
|
||||
"parameters": {
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"minimum": "0",
|
||||
"maximum": "3",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "GetResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "appstate.states.list",
|
||||
"path": "states",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists all the states keys, and optionally the state data.",
|
||||
"parameters": {
|
||||
"includeData": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to include the full data in addition to the version number",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "ListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
},
|
||||
"update": {
|
||||
"id": "appstate.states.update",
|
||||
"path": "states/{stateKey}",
|
||||
"httpMethod": "PUT",
|
||||
"description": "Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.",
|
||||
"parameters": {
|
||||
"currentStateVersion": {
|
||||
"type": "string",
|
||||
"description": "The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.",
|
||||
"location": "query"
|
||||
"ListResponse": {
|
||||
"description": "This is a JSON template to convert a list-response for app state.",
|
||||
"id": "ListResponse",
|
||||
"properties": {
|
||||
"items": {
|
||||
"description": "The app state data.",
|
||||
"items": {
|
||||
"$ref": "GetResponse"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"kind": {
|
||||
"default": "appstate#listResponse",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#listResponse.",
|
||||
"type": "string"
|
||||
},
|
||||
"maximumKeyCount": {
|
||||
"description": "The maximum number of keys allowed for this user.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"minimum": "0",
|
||||
"maximum": "3",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "UpdateRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "WriteResult"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
"type": "object"
|
||||
},
|
||||
"UpdateRequest": {
|
||||
"description": "This is a JSON template for a requests which update app state",
|
||||
"id": "UpdateRequest",
|
||||
"properties": {
|
||||
"data": {
|
||||
"description": "The new app state data that your application is trying to update with.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "appstate#updateRequest",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#updateRequest.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"WriteResult": {
|
||||
"description": "This is a JSON template for an app state write result.",
|
||||
"id": "WriteResult",
|
||||
"properties": {
|
||||
"currentStateVersion": {
|
||||
"description": "The version of the data for this key on the server.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "appstate#writeResult",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#writeResult.",
|
||||
"type": "string"
|
||||
},
|
||||
"stateKey": {
|
||||
"description": "The written key.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"servicePath": "appstate/v1/",
|
||||
"title": "Google App State API",
|
||||
"version": "v1"
|
||||
}
|
6050
vendor/google.golang.org/api/bigquery/v2/bigquery-api.json
generated
vendored
6050
vendor/google.golang.org/api/bigquery/v2/bigquery-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
220
vendor/google.golang.org/api/bigquery/v2/bigquery-gen.go
generated
vendored
220
vendor/google.golang.org/api/bigquery/v2/bigquery-gen.go
generated
vendored
@ -604,6 +604,10 @@ type DatasetListDatasets struct {
|
||||
// organize and group your datasets.
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
|
||||
// Location: [Experimental] The geographic location where the data
|
||||
// resides.
|
||||
Location string `json:"location,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DatasetReference") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
@ -660,6 +664,42 @@ func (s *DatasetReference) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type DestinationTableProperties struct {
|
||||
// Description: [Optional] The description for the destination table.
|
||||
// This will only be used if the destination table is newly created. If
|
||||
// the table already exists and a value different than the current
|
||||
// description is provided, the job will fail.
|
||||
Description string `json:"description,omitempty"`
|
||||
|
||||
// FriendlyName: [Optional] The friendly name for the destination table.
|
||||
// This will only be used if the destination table is newly created. If
|
||||
// the table already exists and a value different than the current
|
||||
// friendly name is provided, the job will fail.
|
||||
FriendlyName string `json:"friendlyName,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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 *DestinationTableProperties) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod DestinationTableProperties
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type EncryptionConfiguration struct {
|
||||
// KmsKeyName: [Optional] Describes the Cloud KMS encryption key that
|
||||
// will be used to protect destination BigQuery table. The BigQuery
|
||||
@ -747,9 +787,15 @@ type ExplainQueryStage struct {
|
||||
// CPU-bound tasks.
|
||||
ComputeRatioMax float64 `json:"computeRatioMax,omitempty"`
|
||||
|
||||
// EndMs: Stage end time in milliseconds.
|
||||
EndMs int64 `json:"endMs,omitempty,string"`
|
||||
|
||||
// Id: Unique ID for stage within plan.
|
||||
Id int64 `json:"id,omitempty,string"`
|
||||
|
||||
// InputStages: IDs for stages that are inputs to this stage.
|
||||
InputStages googleapi.Int64s `json:"inputStages,omitempty"`
|
||||
|
||||
// Name: Human-readable name for stage.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
@ -783,6 +829,9 @@ type ExplainQueryStage struct {
|
||||
// and spilled to disk.
|
||||
ShuffleOutputBytesSpilled int64 `json:"shuffleOutputBytesSpilled,omitempty,string"`
|
||||
|
||||
// StartMs: Stage start time in milliseconds.
|
||||
StartMs int64 `json:"startMs,omitempty,string"`
|
||||
|
||||
// Status: Current status for the stage.
|
||||
Status string `json:"status,omitempty"`
|
||||
|
||||
@ -1256,6 +1305,10 @@ type JobConfiguration struct {
|
||||
// Extract: [Pick one] Configures an extract job.
|
||||
Extract *JobConfigurationExtract `json:"extract,omitempty"`
|
||||
|
||||
// JobTimeoutMs: [Optional] Job timeout in milliseconds. If this time
|
||||
// limit is exceeded, BigQuery may attempt to terminate the job.
|
||||
JobTimeoutMs int64 `json:"jobTimeoutMs,omitempty,string"`
|
||||
|
||||
// Labels: The labels associated with this job. You can use these to
|
||||
// organize and group your jobs. Label keys and values can be no longer
|
||||
// than 63 characters, can only contain lowercase letters, numeric
|
||||
@ -1295,8 +1348,9 @@ func (s *JobConfiguration) MarshalJSON() ([]byte, error) {
|
||||
|
||||
type JobConfigurationExtract struct {
|
||||
// Compression: [Optional] The compression type to use for exported
|
||||
// files. Possible values include GZIP and NONE. The default value is
|
||||
// NONE.
|
||||
// files. Possible values include GZIP, DEFLATE, SNAPPY, and NONE. The
|
||||
// default value is NONE. DEFLATE and SNAPPY are only supported for
|
||||
// Avro.
|
||||
Compression string `json:"compression,omitempty"`
|
||||
|
||||
// DestinationFormat: [Optional] The exported file format. Possible
|
||||
@ -1377,14 +1431,18 @@ type JobConfigurationLoad struct {
|
||||
// one atomic update upon job completion.
|
||||
CreateDisposition string `json:"createDisposition,omitempty"`
|
||||
|
||||
// DestinationEncryptionConfiguration: [Experimental] Custom encryption
|
||||
// configuration (e.g., Cloud KMS keys).
|
||||
// DestinationEncryptionConfiguration: Custom encryption configuration
|
||||
// (e.g., Cloud KMS keys).
|
||||
DestinationEncryptionConfiguration *EncryptionConfiguration `json:"destinationEncryptionConfiguration,omitempty"`
|
||||
|
||||
// DestinationTable: [Required] The destination table to load the data
|
||||
// into.
|
||||
DestinationTable *TableReference `json:"destinationTable,omitempty"`
|
||||
|
||||
// DestinationTableProperties: [Experimental] [Optional] Properties with
|
||||
// which to create the destination table if it is new.
|
||||
DestinationTableProperties *DestinationTableProperties `json:"destinationTableProperties,omitempty"`
|
||||
|
||||
// Encoding: [Optional] The character encoding of the data. The
|
||||
// supported values are UTF-8 or ISO-8859-1. The default value is UTF-8.
|
||||
// BigQuery decodes the data after the raw, binary data has been split
|
||||
@ -1480,7 +1538,8 @@ type JobConfigurationLoad struct {
|
||||
// SourceFormat: [Optional] The format of the data files. For CSV files,
|
||||
// specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For
|
||||
// newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro,
|
||||
// specify "AVRO". The default value is CSV.
|
||||
// specify "AVRO". For parquet, specify "PARQUET". For orc, specify
|
||||
// "ORC". The default value is CSV.
|
||||
SourceFormat string `json:"sourceFormat,omitempty"`
|
||||
|
||||
// SourceUris: [Required] The fully-qualified URIs that point to your
|
||||
@ -1556,8 +1615,8 @@ type JobConfigurationQuery struct {
|
||||
// unqualified table names in the query.
|
||||
DefaultDataset *DatasetReference `json:"defaultDataset,omitempty"`
|
||||
|
||||
// DestinationEncryptionConfiguration: [Experimental] Custom encryption
|
||||
// configuration (e.g., Cloud KMS keys).
|
||||
// DestinationEncryptionConfiguration: Custom encryption configuration
|
||||
// (e.g., Cloud KMS keys).
|
||||
DestinationEncryptionConfiguration *EncryptionConfiguration `json:"destinationEncryptionConfiguration,omitempty"`
|
||||
|
||||
// DestinationTable: [Optional] Describes the table where the query
|
||||
@ -1697,8 +1756,8 @@ type JobConfigurationTableCopy struct {
|
||||
// one atomic update upon job completion.
|
||||
CreateDisposition string `json:"createDisposition,omitempty"`
|
||||
|
||||
// DestinationEncryptionConfiguration: [Experimental] Custom encryption
|
||||
// configuration (e.g., Cloud KMS keys).
|
||||
// DestinationEncryptionConfiguration: Custom encryption configuration
|
||||
// (e.g., Cloud KMS keys).
|
||||
DestinationEncryptionConfiguration *EncryptionConfiguration `json:"destinationEncryptionConfiguration,omitempty"`
|
||||
|
||||
// DestinationTable: [Required] The destination table
|
||||
@ -1848,6 +1907,10 @@ type JobReference struct {
|
||||
// maximum length is 1,024 characters.
|
||||
JobId string `json:"jobId,omitempty"`
|
||||
|
||||
// Location: [Experimental] The geographic location of the job. Required
|
||||
// except for US and EU.
|
||||
Location string `json:"location,omitempty"`
|
||||
|
||||
// ProjectId: [Required] The ID of the project containing this job.
|
||||
ProjectId string `json:"projectId,omitempty"`
|
||||
|
||||
@ -1875,6 +1938,10 @@ func (s *JobReference) MarshalJSON() ([]byte, error) {
|
||||
}
|
||||
|
||||
type JobStatistics struct {
|
||||
// CompletionRatio: [Experimental] [Output-only] Job progress (0.0 ->
|
||||
// 1.0) for LOAD and EXTRACT jobs.
|
||||
CompletionRatio float64 `json:"completionRatio,omitempty"`
|
||||
|
||||
// CreationTime: [Output-only] Creation time of this job, in
|
||||
// milliseconds since the epoch. This field will be present on all jobs.
|
||||
CreationTime int64 `json:"creationTime,omitempty,string"`
|
||||
@ -1902,7 +1969,7 @@ type JobStatistics struct {
|
||||
// processed in the query statistics instead.
|
||||
TotalBytesProcessed int64 `json:"totalBytesProcessed,omitempty,string"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CreationTime") to
|
||||
// ForceSendFields is a list of field names (e.g. "CompletionRatio") 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
|
||||
@ -1910,12 +1977,13 @@ type JobStatistics struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CreationTime") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// 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. "CompletionRatio") 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:"-"`
|
||||
}
|
||||
|
||||
@ -1925,6 +1993,20 @@ func (s *JobStatistics) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *JobStatistics) UnmarshalJSON(data []byte) error {
|
||||
type NoMethod JobStatistics
|
||||
var s1 struct {
|
||||
CompletionRatio gensupport.JSONFloat64 `json:"completionRatio"`
|
||||
*NoMethod
|
||||
}
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
s.CompletionRatio = float64(s1.CompletionRatio)
|
||||
return nil
|
||||
}
|
||||
|
||||
type JobStatistics2 struct {
|
||||
// BillingTier: [Output-only] Billing tier for the job.
|
||||
BillingTier int64 `json:"billingTier,omitempty"`
|
||||
@ -1960,13 +2042,13 @@ type JobStatistics2 struct {
|
||||
// QueryPlan: [Output-only] Describes execution plan for the query.
|
||||
QueryPlan []*ExplainQueryStage `json:"queryPlan,omitempty"`
|
||||
|
||||
// ReferencedTables: [Output-only, Experimental] Referenced tables for
|
||||
// the job. Queries that reference more than 50 tables will not have a
|
||||
// complete list.
|
||||
// ReferencedTables: [Output-only] Referenced tables for the job.
|
||||
// Queries that reference more than 50 tables will not have a complete
|
||||
// list.
|
||||
ReferencedTables []*TableReference `json:"referencedTables,omitempty"`
|
||||
|
||||
// Schema: [Output-only, Experimental] The schema of the results.
|
||||
// Present only for successful dry run of non-legacy SQL queries.
|
||||
// Schema: [Output-only] The schema of the results. Present only for
|
||||
// successful dry run of non-legacy SQL queries.
|
||||
Schema *TableSchema `json:"schema,omitempty"`
|
||||
|
||||
// StatementType: [Output-only, Experimental] The type of query
|
||||
@ -1976,7 +2058,8 @@ type JobStatistics2 struct {
|
||||
// query.
|
||||
StatementType string `json:"statementType,omitempty"`
|
||||
|
||||
// Timeline: [Output-only] Describes a timeline of job execution.
|
||||
// Timeline: [Output-only] [Experimental] Describes a timeline of job
|
||||
// execution.
|
||||
Timeline []*QueryTimelineSample `json:"timeline,omitempty"`
|
||||
|
||||
// TotalBytesBilled: [Output-only] Total bytes billed for the job.
|
||||
@ -1985,6 +2068,10 @@ type JobStatistics2 struct {
|
||||
// TotalBytesProcessed: [Output-only] Total bytes processed for the job.
|
||||
TotalBytesProcessed int64 `json:"totalBytesProcessed,omitempty,string"`
|
||||
|
||||
// TotalPartitionsProcessed: [Output-only] Total number of partitions
|
||||
// processed from all partitioned tables referenced in the job.
|
||||
TotalPartitionsProcessed int64 `json:"totalPartitionsProcessed,omitempty,string"`
|
||||
|
||||
// TotalSlotMs: [Output-only] Slot-milliseconds for the job.
|
||||
TotalSlotMs int64 `json:"totalSlotMs,omitempty,string"`
|
||||
|
||||
@ -2396,6 +2483,10 @@ type QueryRequest struct {
|
||||
// Kind: The resource type of the request.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// Location: [Experimental] The geographic location where the job should
|
||||
// run. Required except for US and EU.
|
||||
Location string `json:"location,omitempty"`
|
||||
|
||||
// MaxResults: [Optional] The maximum number of rows of data to return
|
||||
// per page of results. Setting this flag to a small value such as 1000
|
||||
// and then paging through results might improve reliability when the
|
||||
@ -2554,15 +2645,11 @@ type QueryTimelineSample struct {
|
||||
// ActiveInputs: Total number of active workers. This does not
|
||||
// correspond directly to slot usage. This is the largest value observed
|
||||
// since the last sample.
|
||||
ActiveInputs int64 `json:"activeInputs,omitempty"`
|
||||
ActiveInputs int64 `json:"activeInputs,omitempty,string"`
|
||||
|
||||
// CompletedInputs: Total parallel units of work completed by this
|
||||
// query.
|
||||
CompletedInputs int64 `json:"completedInputs,omitempty"`
|
||||
|
||||
// CompletedInputsForActiveStages: Total parallel units of work
|
||||
// completed by the currently active stages.
|
||||
CompletedInputsForActiveStages int64 `json:"completedInputsForActiveStages,omitempty"`
|
||||
CompletedInputs int64 `json:"completedInputs,omitempty,string"`
|
||||
|
||||
// ElapsedMs: Milliseconds elapsed since the start of query execution.
|
||||
ElapsedMs int64 `json:"elapsedMs,omitempty,string"`
|
||||
@ -2643,8 +2730,8 @@ type Table struct {
|
||||
// Description: [Optional] A user-friendly description of this table.
|
||||
Description string `json:"description,omitempty"`
|
||||
|
||||
// EncryptionConfiguration: [Experimental] Custom encryption
|
||||
// configuration (e.g., Cloud KMS keys).
|
||||
// EncryptionConfiguration: Custom encryption configuration (e.g., Cloud
|
||||
// KMS keys).
|
||||
EncryptionConfiguration *EncryptionConfiguration `json:"encryptionConfiguration,omitempty"`
|
||||
|
||||
// Etag: [Output-only] A hash of this resource.
|
||||
@ -3258,6 +3345,11 @@ type TimePartitioning struct {
|
||||
// Its mode must be NULLABLE or REQUIRED.
|
||||
Field string `json:"field,omitempty"`
|
||||
|
||||
// RequirePartitionFilter: [Experimental] [Optional] If set to true,
|
||||
// queries over this table require a partition filter that can be used
|
||||
// for partition elimination to be specified.
|
||||
RequirePartitionFilter bool `json:"requirePartitionFilter,omitempty"`
|
||||
|
||||
// Type: [Required] The only type supported is DAY, which will generate
|
||||
// one partition per day.
|
||||
Type string `json:"type,omitempty"`
|
||||
@ -4290,6 +4382,13 @@ func (r *JobsService) Cancel(projectId string, jobId string) *JobsCancelCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// Location sets the optional parameter "location": [Experimental] The
|
||||
// geographic location of the job. Required except for US and EU.
|
||||
func (c *JobsCancelCall) Location(location string) *JobsCancelCall {
|
||||
c.urlParams_.Set("location", location)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@ -4386,6 +4485,11 @@ func (c *JobsCancelCall) Do(opts ...googleapi.CallOption) (*JobCancelResponse, e
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "location": {
|
||||
// "description": "[Experimental] The geographic location of the job. Required except for US and EU.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "projectId": {
|
||||
// "description": "[Required] Project ID of the job to cancel",
|
||||
// "location": "path",
|
||||
@ -4427,6 +4531,13 @@ func (r *JobsService) Get(projectId string, jobId string) *JobsGetCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// Location sets the optional parameter "location": [Experimental] The
|
||||
// geographic location of the job. Required except for US and EU.
|
||||
func (c *JobsGetCall) Location(location string) *JobsGetCall {
|
||||
c.urlParams_.Set("location", location)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@ -4536,6 +4647,11 @@ func (c *JobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) {
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "location": {
|
||||
// "description": "[Experimental] The geographic location of the job. Required except for US and EU.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "projectId": {
|
||||
// "description": "[Required] Project ID of the requested job",
|
||||
// "location": "path",
|
||||
@ -4576,6 +4692,14 @@ func (r *JobsService) GetQueryResults(projectId string, jobId string) *JobsGetQu
|
||||
return c
|
||||
}
|
||||
|
||||
// Location sets the optional parameter "location": [Experimental] The
|
||||
// geographic location where the job should run. Required except for US
|
||||
// and EU.
|
||||
func (c *JobsGetQueryResultsCall) Location(location string) *JobsGetQueryResultsCall {
|
||||
c.urlParams_.Set("location", location)
|
||||
return c
|
||||
}
|
||||
|
||||
// MaxResults sets the optional parameter "maxResults": Maximum number
|
||||
// of results to read
|
||||
func (c *JobsGetQueryResultsCall) MaxResults(maxResults int64) *JobsGetQueryResultsCall {
|
||||
@ -4715,6 +4839,11 @@ func (c *JobsGetQueryResultsCall) Do(opts ...googleapi.CallOption) (*GetQueryRes
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "location": {
|
||||
// "description": "[Experimental] The geographic location where the job should run. Required except for US and EU.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "maxResults": {
|
||||
// "description": "Maximum number of results to read",
|
||||
// "format": "uint32",
|
||||
@ -4886,11 +5015,12 @@ func (c *JobsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
gensupport.SetGetBody(req, getBody)
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"projectId": c.projectId,
|
||||
})
|
||||
@ -5029,6 +5159,14 @@ func (c *JobsListCall) AllUsers(allUsers bool) *JobsListCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// MaxCreationTime sets the optional parameter "maxCreationTime": Max
|
||||
// value for job creation time, in milliseconds since the POSIX epoch.
|
||||
// If set, only jobs created before or at this timestamp are returned
|
||||
func (c *JobsListCall) MaxCreationTime(maxCreationTime uint64) *JobsListCall {
|
||||
c.urlParams_.Set("maxCreationTime", fmt.Sprint(maxCreationTime))
|
||||
return c
|
||||
}
|
||||
|
||||
// MaxResults sets the optional parameter "maxResults": Maximum number
|
||||
// of results to return
|
||||
func (c *JobsListCall) MaxResults(maxResults int64) *JobsListCall {
|
||||
@ -5036,6 +5174,14 @@ func (c *JobsListCall) MaxResults(maxResults int64) *JobsListCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// MinCreationTime sets the optional parameter "minCreationTime": Min
|
||||
// value for job creation time, in milliseconds since the POSIX epoch.
|
||||
// If set, only jobs created after or at this timestamp are returned
|
||||
func (c *JobsListCall) MinCreationTime(minCreationTime uint64) *JobsListCall {
|
||||
c.urlParams_.Set("minCreationTime", fmt.Sprint(minCreationTime))
|
||||
return c
|
||||
}
|
||||
|
||||
// PageToken sets the optional parameter "pageToken": Page token,
|
||||
// returned by a previous call, to request the next page of results
|
||||
func (c *JobsListCall) PageToken(pageToken string) *JobsListCall {
|
||||
@ -5172,12 +5318,24 @@ func (c *JobsListCall) Do(opts ...googleapi.CallOption) (*JobList, error) {
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "maxCreationTime": {
|
||||
// "description": "Max value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created before or at this timestamp are returned",
|
||||
// "format": "uint64",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "maxResults": {
|
||||
// "description": "Maximum number of results to return",
|
||||
// "format": "uint32",
|
||||
// "location": "query",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "minCreationTime": {
|
||||
// "description": "Min value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created after or at this timestamp are returned",
|
||||
// "format": "uint64",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "pageToken": {
|
||||
// "description": "Page token, returned by a previous call, to request the next page of results",
|
||||
// "location": "query",
|
||||
|
2784
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-api.json
generated
vendored
2784
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
29
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go
generated
vendored
29
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go
generated
vendored
@ -346,10 +346,7 @@ type DataSource struct {
|
||||
// to different BigQuery targets.
|
||||
SupportsMultipleTransfers bool `json:"supportsMultipleTransfers,omitempty"`
|
||||
|
||||
// TransferType: Transfer type. Currently supports only batch
|
||||
// transfers,
|
||||
// which are transfers that use the BigQuery batch APIs (load or
|
||||
// query) to ingest the data.
|
||||
// TransferType: Deprecated. This field has no effect.
|
||||
//
|
||||
// Possible values:
|
||||
// "TRANSFER_TYPE_UNSPECIFIED" - Invalid or Unknown transfer type
|
||||
@ -726,6 +723,11 @@ func (s *ListTransferRunsResponse) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Location: A resource that represents Google Cloud Platform location.
|
||||
type Location struct {
|
||||
// DisplayName: The friendly name for this location, typically a nearby
|
||||
// city name.
|
||||
// For example, "Tokyo".
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
|
||||
// Labels: Cross-service attributes for the location. For example
|
||||
//
|
||||
// {"cloud.googleapis.com/region": "us-east1"}
|
||||
@ -749,7 +751,7 @@ type Location struct {
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Labels") to
|
||||
// ForceSendFields is a list of field names (e.g. "DisplayName") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@ -757,10 +759,10 @@ type Location struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Labels") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// NullFields is a list of field names (e.g. "DisplayName") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
@ -970,6 +972,7 @@ func (s *Status) MarshalJSON() ([]byte, error) {
|
||||
// `destination_dataset_id` is created when needed and shared with
|
||||
// the
|
||||
// appropriate data source service account.
|
||||
// Next id: 21
|
||||
type TransferConfig struct {
|
||||
// DataRefreshWindowDays: The number of days to look back to
|
||||
// automatically refresh the data.
|
||||
@ -1728,7 +1731,7 @@ type ProjectsLocationsGetCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Get information about a location.
|
||||
// Get: Gets information about a location.
|
||||
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
|
||||
c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
@ -1829,7 +1832,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Get information about a location.",
|
||||
// "description": "Gets information about a location.",
|
||||
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "bigquerydatatransfer.projects.locations.get",
|
||||
@ -2704,7 +2707,6 @@ func (c *ProjectsLocationsTransferConfigsCreateCall) Do(opts ...googleapi.CallOp
|
||||
// "$ref": "TransferConfig"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/bigquery",
|
||||
// "https://www.googleapis.com/auth/cloud-platform"
|
||||
// ]
|
||||
// }
|
||||
@ -3363,7 +3365,6 @@ func (c *ProjectsLocationsTransferConfigsPatchCall) Do(opts ...googleapi.CallOpt
|
||||
// "$ref": "TransferConfig"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/bigquery",
|
||||
// "https://www.googleapis.com/auth/cloud-platform"
|
||||
// ]
|
||||
// }
|
||||
@ -4400,7 +4401,6 @@ func (c *ProjectsTransferConfigsCreateCall) Do(opts ...googleapi.CallOption) (*T
|
||||
// "$ref": "TransferConfig"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/bigquery",
|
||||
// "https://www.googleapis.com/auth/cloud-platform"
|
||||
// ]
|
||||
// }
|
||||
@ -5059,7 +5059,6 @@ func (c *ProjectsTransferConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Tr
|
||||
// "$ref": "TransferConfig"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/bigquery",
|
||||
// "https://www.googleapis.com/auth/cloud-platform"
|
||||
// ]
|
||||
// }
|
||||
|
1790
vendor/google.golang.org/api/blogger/v2/blogger-api.json
generated
vendored
1790
vendor/google.golang.org/api/blogger/v2/blogger-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
4958
vendor/google.golang.org/api/blogger/v3/blogger-api.json
generated
vendored
4958
vendor/google.golang.org/api/blogger/v3/blogger-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
9206
vendor/google.golang.org/api/books/v1/books-api.json
generated
vendored
9206
vendor/google.golang.org/api/books/v1/books-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
5704
vendor/google.golang.org/api/calendar/v3/calendar-api.json
generated
vendored
5704
vendor/google.golang.org/api/calendar/v3/calendar-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
63
vendor/google.golang.org/api/calendar/v3/calendar-gen.go
generated
vendored
63
vendor/google.golang.org/api/calendar/v3/calendar-gen.go
generated
vendored
@ -787,6 +787,10 @@ type ConferenceData struct {
|
||||
// HTML. The maximum length is 2048 characters. Optional.
|
||||
Notes string `json:"notes,omitempty"`
|
||||
|
||||
// Parameters: Additional properties related to a conference. An example
|
||||
// would be a solution-specific setting for enabling video streaming.
|
||||
Parameters *ConferenceParameters `json:"parameters,omitempty"`
|
||||
|
||||
// Signature: The signature of the conference data.
|
||||
// Genereated on server side. Must be preserved while copying the
|
||||
// conference data between events, otherwise the conference data will
|
||||
@ -818,6 +822,60 @@ func (s *ConferenceData) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type ConferenceParameters struct {
|
||||
// AddOnParameters: Additional add-on specific data.
|
||||
AddOnParameters *ConferenceParametersAddOnParameters `json:"addOnParameters,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AddOnParameters") 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. "AddOnParameters") 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 *ConferenceParameters) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod ConferenceParameters
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type ConferenceParametersAddOnParameters struct {
|
||||
Parameters map[string]string `json:"parameters,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Parameters") 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. "Parameters") 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 *ConferenceParametersAddOnParameters) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod ConferenceParametersAddOnParameters
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type ConferenceProperties struct {
|
||||
// AllowedConferenceSolutionTypes: The types of conference solutions
|
||||
// that are supported for this calendar.
|
||||
@ -1689,8 +1747,9 @@ type EventAttendee struct {
|
||||
// Read-only. The default is False.
|
||||
Organizer bool `json:"organizer,omitempty"`
|
||||
|
||||
// Resource: Whether the attendee is a resource. Read-only. The default
|
||||
// is False.
|
||||
// Resource: Whether the attendee is a resource. Can only be set when
|
||||
// the attendee is added to the event for the first time. Subsequent
|
||||
// modifications are ignored. Optional. The default is False.
|
||||
Resource bool `json:"resource,omitempty"`
|
||||
|
||||
// ResponseStatus: The attendee's response status. Possible values are:
|
||||
|
1059
vendor/google.golang.org/api/chat/v1/chat-api.json
generated
vendored
Normal file
1059
vendor/google.golang.org/api/chat/v1/chat-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2408
vendor/google.golang.org/api/chat/v1/chat-gen.go
generated
vendored
Normal file
2408
vendor/google.golang.org/api/chat/v1/chat-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2504
vendor/google.golang.org/api/civicinfo/v2/civicinfo-api.json
generated
vendored
2504
vendor/google.golang.org/api/civicinfo/v2/civicinfo-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
5856
vendor/google.golang.org/api/classroom/v1/classroom-api.json
generated
vendored
5856
vendor/google.golang.org/api/classroom/v1/classroom-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
1307
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-api.json
generated
vendored
1307
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
1244
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-gen.go
generated
vendored
1244
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
2336
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-api.json
generated
vendored
2336
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
447
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-gen.go
generated
vendored
447
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-gen.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Package cloudbuild provides access to the Google Cloud Container Builder API.
|
||||
// Package cloudbuild provides access to the Cloud Container Builder API.
|
||||
//
|
||||
// See https://cloud.google.com/container-builder/docs/
|
||||
//
|
||||
@ -120,16 +120,115 @@ type ProjectsTriggersService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
// ArtifactObjects: Files in the workspace to upload to Cloud Storage
|
||||
// upon successful
|
||||
// completion of all build steps.
|
||||
type ArtifactObjects struct {
|
||||
// Location: Cloud Storage bucket and optional object path, in the
|
||||
// form
|
||||
// "gs://bucket/path/to/somewhere/". (see [Bucket
|
||||
// Name
|
||||
// Requirements](https://cloud.google.com/storage/docs/bucket-naming
|
||||
// #requirements)).
|
||||
//
|
||||
// Files in the workspace matching any path pattern will be uploaded
|
||||
// to
|
||||
// Cloud Storage with this location as a prefix.
|
||||
Location string `json:"location,omitempty"`
|
||||
|
||||
// Paths: Path globs used to match files in the build's workspace.
|
||||
Paths []string `json:"paths,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Location") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Location") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *ArtifactObjects) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod ArtifactObjects
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Artifacts: Artifacts produced by a build that should be uploaded
|
||||
// upon
|
||||
// successful completion of all build steps.
|
||||
type Artifacts struct {
|
||||
// Images: A list of images to be pushed upon the successful completion
|
||||
// of all build
|
||||
// steps.
|
||||
//
|
||||
// The images will be pushed using the builder service account's
|
||||
// credentials.
|
||||
//
|
||||
// The digests of the pushed images will be stored in the Build
|
||||
// resource's
|
||||
// results field.
|
||||
//
|
||||
// If any of the images fail to be pushed, the build is marked FAILURE.
|
||||
Images []string `json:"images,omitempty"`
|
||||
|
||||
// Objects: A list of objects to be uploaded to Cloud Storage upon
|
||||
// successful
|
||||
// completion of all build steps.
|
||||
//
|
||||
// Files in the workspace matching specified paths globs will be
|
||||
// uploaded to
|
||||
// the specified Cloud Storage location using the builder service
|
||||
// account's
|
||||
// credentials.
|
||||
//
|
||||
// The location and generation of the uploaded objects will be stored in
|
||||
// the
|
||||
// Build resource's results field.
|
||||
//
|
||||
// If any objects fail to be pushed, the build is marked FAILURE.
|
||||
Objects *ArtifactObjects `json:"objects,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Images") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Images") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Artifacts) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod Artifacts
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Build: A build resource in the Container Builder API.
|
||||
//
|
||||
// At a high level, a Build describes where to find source code, how to
|
||||
// build
|
||||
// it (for example, the builder image to run on the source), and what
|
||||
// tag to
|
||||
// apply to the built image when it is pushed to Google Container
|
||||
// Registry.
|
||||
// At a high level, a `Build` describes where to find source code, how
|
||||
// to build
|
||||
// it (for example, the builder image to run on the source), and where
|
||||
// to store
|
||||
// the built artifacts.
|
||||
//
|
||||
// Fields can include the following variables which will be expanded
|
||||
// Fields can include the following variables, which will be expanded
|
||||
// when the
|
||||
// build is created:
|
||||
//
|
||||
@ -143,8 +242,13 @@ type ProjectsTriggersService struct {
|
||||
// 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
|
||||
// Artifacts: Artifacts produced by the build that should be uploaded
|
||||
// upon
|
||||
// successful completion of all build steps.
|
||||
Artifacts *Artifacts `json:"artifacts,omitempty"`
|
||||
|
||||
// BuildTriggerId: The ID of the `BuildTrigger` that triggered this
|
||||
// build, if it was
|
||||
// triggered automatically.
|
||||
// @OutputOnly
|
||||
BuildTriggerId string `json:"buildTriggerId,omitempty"`
|
||||
@ -170,18 +274,20 @@ type Build struct {
|
||||
// of all build
|
||||
// steps.
|
||||
//
|
||||
// The images will be pushed using the builder service account's
|
||||
// The images are pushed using the builder service account's
|
||||
// credentials.
|
||||
//
|
||||
// The digests of the pushed images will be stored in the Build
|
||||
// The digests of the pushed images will be stored in the `Build`
|
||||
// resource's
|
||||
// results field.
|
||||
//
|
||||
// If any of the images fail to be pushed, the build is marked FAILURE.
|
||||
// If any of the images fail to be pushed, the build status is
|
||||
// marked
|
||||
// `FAILURE`.
|
||||
Images []string `json:"images,omitempty"`
|
||||
|
||||
// LogUrl: URL to logs for this build in Google Cloud
|
||||
// Logging.
|
||||
// Console.
|
||||
// @OutputOnly
|
||||
LogUrl string `json:"logUrl,omitempty"`
|
||||
|
||||
@ -206,10 +312,10 @@ type Build struct {
|
||||
// @OutputOnly
|
||||
Results *Results `json:"results,omitempty"`
|
||||
|
||||
// Secrets: Secrets to decrypt using Cloud KMS.
|
||||
// Secrets: Secrets to decrypt using Cloud Key Management Service.
|
||||
Secrets []*Secret `json:"secrets,omitempty"`
|
||||
|
||||
// Source: Describes where to find the source files to build.
|
||||
// Source: The location of the source files to build.
|
||||
Source *Source `json:"source,omitempty"`
|
||||
|
||||
// SourceProvenance: A permanent fixed identifier for
|
||||
@ -227,13 +333,13 @@ type Build struct {
|
||||
//
|
||||
// Possible values:
|
||||
// "STATUS_UNKNOWN" - Status of the build is unknown.
|
||||
// "QUEUED" - Build is queued; work has not yet begun.
|
||||
// "WORKING" - Build is being executed.
|
||||
// "SUCCESS" - Build finished successfully.
|
||||
// "FAILURE" - Build failed to complete successfully.
|
||||
// "INTERNAL_ERROR" - Build failed due to an internal cause.
|
||||
// "TIMEOUT" - Build took longer than was allowed.
|
||||
// "CANCELLED" - Build was canceled by a user.
|
||||
// "QUEUED" - Build or step is queued; work has not yet begun.
|
||||
// "WORKING" - Build or step is being executed.
|
||||
// "SUCCESS" - Build or step finished successfully.
|
||||
// "FAILURE" - Build or step failed to complete successfully.
|
||||
// "INTERNAL_ERROR" - Build or step failed due to an internal cause.
|
||||
// "TIMEOUT" - Build or step took longer than was allowed.
|
||||
// "CANCELLED" - Build or step was canceled by a user.
|
||||
Status string `json:"status,omitempty"`
|
||||
|
||||
// StatusDetail: Customer-readable message about the current
|
||||
@ -241,20 +347,20 @@ type Build struct {
|
||||
// @OutputOnly
|
||||
StatusDetail string `json:"statusDetail,omitempty"`
|
||||
|
||||
// Steps: Describes the operations to be performed on the workspace.
|
||||
// Steps: Required. The operations to be performed on the workspace.
|
||||
Steps []*BuildStep `json:"steps,omitempty"`
|
||||
|
||||
// Substitutions: Substitutions data for Build resource.
|
||||
// Substitutions: Substitutions data for `Build` resource.
|
||||
Substitutions map[string]string `json:"substitutions,omitempty"`
|
||||
|
||||
// Tags: Tags for annotation of a Build. These are not docker tags.
|
||||
// Tags: Tags for annotation of a `Build`. These are not docker tags.
|
||||
Tags []string `json:"tags,omitempty"`
|
||||
|
||||
// Timeout: Amount of time that this build should be allowed to run, to
|
||||
// second
|
||||
// granularity. If this amount of time elapses, work on the build will
|
||||
// cease
|
||||
// and the build status will be TIMEOUT.
|
||||
// and the build status will be `TIMEOUT`.
|
||||
//
|
||||
// Default time is ten minutes.
|
||||
Timeout string `json:"timeout,omitempty"`
|
||||
@ -266,16 +372,16 @@ type Build struct {
|
||||
// * PUSH: time to push all specified images.
|
||||
// * FETCHSOURCE: time to fetch source.
|
||||
//
|
||||
// If the build does not specify source, or does not specify
|
||||
// images,
|
||||
// If the build does not specify source or images,
|
||||
// these keys will not be included.
|
||||
// @OutputOnly
|
||||
Timing map[string]TimeSpan `json:"timing,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "BuildTriggerId") to
|
||||
// ForceSendFields is a list of field names (e.g. "Artifacts") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@ -283,13 +389,12 @@ type Build struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "BuildTriggerId") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
// NullFields is a list of field names (e.g. "Artifacts") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
@ -343,8 +448,8 @@ type BuildOptions struct {
|
||||
// more than the maximum are rejected with an error.
|
||||
DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
|
||||
|
||||
// LogStreamingOption: LogStreamingOption to define build log streaming
|
||||
// behavior to Google Cloud
|
||||
// LogStreamingOption: Option to define build log streaming behavior to
|
||||
// Google Cloud
|
||||
// Storage.
|
||||
//
|
||||
// Possible values:
|
||||
@ -379,8 +484,9 @@ type BuildOptions struct {
|
||||
// "SHA256" - Use a sha256 hash.
|
||||
SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"`
|
||||
|
||||
// SubstitutionOption: SubstitutionOption to allow unmatch
|
||||
// substitutions.
|
||||
// SubstitutionOption: Option to specify behavior when there is an error
|
||||
// in the substitution
|
||||
// checks.
|
||||
//
|
||||
// Possible values:
|
||||
// "MUST_MATCH" - Fails the build if error in substitutions checks,
|
||||
@ -413,29 +519,41 @@ func (s *BuildOptions) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BuildStep: BuildStep describes a step to perform in the build
|
||||
// pipeline.
|
||||
// BuildStep: A step in the build pipeline.
|
||||
type BuildStep struct {
|
||||
// Args: A list of arguments that will be presented to the step when it
|
||||
// is started.
|
||||
//
|
||||
// If the image used to run the step's container has an entrypoint,
|
||||
// these args
|
||||
// will be used as arguments to that entrypoint. If the image does not
|
||||
// If the image used to run the step's container has an entrypoint, the
|
||||
// `args`
|
||||
// are used as arguments to that entrypoint. If the image does not
|
||||
// define
|
||||
// an entrypoint, the first element in args will be used as the
|
||||
// an entrypoint, the first element in args is used as the
|
||||
// entrypoint,
|
||||
// and the remainder will be used as arguments.
|
||||
Args []string `json:"args,omitempty"`
|
||||
|
||||
// Dir: Working directory (relative to project source root) to use when
|
||||
// running
|
||||
// this operation's container.
|
||||
// Dir: Working directory to use when running this step's container.
|
||||
//
|
||||
// If this value is a relative path, it is relative to the build's
|
||||
// working
|
||||
// directory. If this value is absolute, it may be outside the build's
|
||||
// working
|
||||
// directory, in which case the contents of the path may not be
|
||||
// persisted
|
||||
// across build step executions, unless a `volume` for that path is
|
||||
// specified.
|
||||
//
|
||||
// If the build specifies a `RepoSource` with `dir` and a step with a
|
||||
// `dir`,
|
||||
// which specifies an absolute path, the `RepoSource` `dir` is ignored
|
||||
// for
|
||||
// the step's execution.
|
||||
Dir string `json:"dir,omitempty"`
|
||||
|
||||
// Entrypoint: Optional entrypoint to be used instead of the build step
|
||||
// image's default
|
||||
// If unset, the image's default will be used.
|
||||
// Entrypoint: Entrypoint to be used instead of the build step image's
|
||||
// default entrypoint.
|
||||
// If unset, the image's default entrypoint is used.
|
||||
Entrypoint string `json:"entrypoint,omitempty"`
|
||||
|
||||
// Env: A list of environment variable definitions to be used when
|
||||
@ -446,16 +564,17 @@ type BuildStep struct {
|
||||
// being given the value "VALUE".
|
||||
Env []string `json:"env,omitempty"`
|
||||
|
||||
// Id: Optional unique identifier for this build step, used in wait_for
|
||||
// Id: Unique identifier for this build step, used in `wait_for`
|
||||
// to
|
||||
// reference this build step as a dependency.
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
// Name: The name of the container image that will run this particular
|
||||
// Name: Required. The name of the container image that will run this
|
||||
// particular
|
||||
// build step.
|
||||
//
|
||||
// If the image is already available in the host's Docker daemon's
|
||||
// cache, it
|
||||
// If the image is available in the host's Docker daemon's cache,
|
||||
// it
|
||||
// will be run directly. If not, the host will attempt to pull the
|
||||
// image
|
||||
// first, using the builder service account's credentials if
|
||||
@ -481,11 +600,40 @@ type BuildStep struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// SecretEnv: A list of environment variables which are encrypted using
|
||||
// a Cloud KMS
|
||||
// crypto key. These values must be specified in the build's secrets.
|
||||
// a Cloud Key
|
||||
// Management Service crypto key. These values must be specified in
|
||||
// the
|
||||
// build's `Secret`.
|
||||
SecretEnv []string `json:"secretEnv,omitempty"`
|
||||
|
||||
// Timing: Stores timing information for executing this build step.
|
||||
// Status: Status of the build step. At this time, build step status is
|
||||
// only updated
|
||||
// on build completion; step status is not updated in real-time as the
|
||||
// build
|
||||
// progresses.
|
||||
// @OutputOnly
|
||||
//
|
||||
// Possible values:
|
||||
// "STATUS_UNKNOWN" - Status of the build is unknown.
|
||||
// "QUEUED" - Build or step is queued; work has not yet begun.
|
||||
// "WORKING" - Build or step is being executed.
|
||||
// "SUCCESS" - Build or step finished successfully.
|
||||
// "FAILURE" - Build or step failed to complete successfully.
|
||||
// "INTERNAL_ERROR" - Build or step failed due to an internal cause.
|
||||
// "TIMEOUT" - Build or step took longer than was allowed.
|
||||
// "CANCELLED" - Build or step was canceled by a user.
|
||||
Status string `json:"status,omitempty"`
|
||||
|
||||
// Timeout: Time limit for executing this build step. If not defined,
|
||||
// the step has no
|
||||
// time limit and will be allowed to continue to run until either it
|
||||
// completes
|
||||
// or the build itself times out.
|
||||
Timeout string `json:"timeout,omitempty"`
|
||||
|
||||
// Timing: Stores timing information for executing this build
|
||||
// step.
|
||||
// @OutputOnly
|
||||
Timing *TimeSpan `json:"timing,omitempty"`
|
||||
|
||||
// Volumes: List of volumes to mount into the build step.
|
||||
@ -504,12 +652,12 @@ type BuildStep struct {
|
||||
// WaitFor: The ID(s) of the step(s) that this build step depends
|
||||
// on.
|
||||
// This build step will not start until all the build steps in
|
||||
// wait_for
|
||||
// have completed successfully. If wait_for is empty, this build step
|
||||
// `wait_for`
|
||||
// have completed successfully. If `wait_for` is empty, this build step
|
||||
// will
|
||||
// start when all previous build steps in the Build.Steps list have
|
||||
// completed
|
||||
// successfully.
|
||||
// start when all previous build steps in the `Build.Steps` list
|
||||
// have
|
||||
// completed successfully.
|
||||
WaitFor []string `json:"waitFor,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Args") to
|
||||
@ -603,7 +751,7 @@ func (s *BuildTrigger) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BuiltImage: BuiltImage describes an image built by the pipeline.
|
||||
// BuiltImage: An image built by the pipeline.
|
||||
type BuiltImage struct {
|
||||
// Digest: Docker Registry 2.0 digest.
|
||||
Digest string `json:"digest,omitempty"`
|
||||
@ -615,6 +763,7 @@ type BuiltImage struct {
|
||||
|
||||
// PushTiming: Stores timing information for pushing the specified
|
||||
// image.
|
||||
// @OutputOnly
|
||||
PushTiming *TimeSpan `json:"pushTiming,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Digest") to
|
||||
@ -734,9 +883,9 @@ func (s *Hash) MarshalJSON() ([]byte, error) {
|
||||
}
|
||||
|
||||
// ListBuildTriggersResponse: Response containing existing
|
||||
// BuildTriggers.
|
||||
// `BuildTriggers`.
|
||||
type ListBuildTriggersResponse struct {
|
||||
// Triggers: BuildTriggers for the project, sorted by create_time
|
||||
// Triggers: `BuildTriggers` for the project, sorted by `create_time`
|
||||
// descending.
|
||||
Triggers []*BuildTrigger `json:"triggers,omitempty"`
|
||||
|
||||
@ -769,7 +918,7 @@ func (s *ListBuildTriggersResponse) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// ListBuildsResponse: Response including listed builds.
|
||||
type ListBuildsResponse struct {
|
||||
// Builds: Builds will be sorted by create_time, descending.
|
||||
// Builds: Builds will be sorted by `create_time`, descending.
|
||||
Builds []*Build `json:"builds,omitempty"`
|
||||
|
||||
// NextPageToken: Token to receive the next page of results.
|
||||
@ -914,8 +1063,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// RepoSource: RepoSource describes the location of the source in a
|
||||
// Google Cloud Source
|
||||
// RepoSource: Location of the source in a Google Cloud Source
|
||||
// Repository.
|
||||
type RepoSource struct {
|
||||
// BranchName: Name of the branch to build.
|
||||
@ -926,14 +1074,19 @@ type RepoSource struct {
|
||||
|
||||
// Dir: Directory, relative to the source root, in which to run the
|
||||
// build.
|
||||
//
|
||||
// This must be a relative path. If a step's `dir` is specified and is
|
||||
// an
|
||||
// absolute path, this value is ignored for that step's execution.
|
||||
Dir string `json:"dir,omitempty"`
|
||||
|
||||
// ProjectId: ID of the project that owns the repo. If omitted, the
|
||||
// project ID requesting
|
||||
// the build is assumed.
|
||||
// ProjectId: ID of the project that owns the Cloud Source Repository.
|
||||
// If omitted, the
|
||||
// project ID requesting the build is assumed.
|
||||
ProjectId string `json:"projectId,omitempty"`
|
||||
|
||||
// RepoName: Name of the repo. If omitted, the name "default" is
|
||||
// RepoName: Name of the Cloud Source Repository. If omitted, the name
|
||||
// "default" is
|
||||
// assumed.
|
||||
RepoName string `json:"repoName,omitempty"`
|
||||
|
||||
@ -963,17 +1116,25 @@ func (s *RepoSource) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Results: Results describes the artifacts created by the build
|
||||
// pipeline.
|
||||
// Results: Artifacts created by the build pipeline.
|
||||
type Results struct {
|
||||
// BuildStepImages: List of build step digests, in order corresponding
|
||||
// to build step indices.
|
||||
// ArtifactManifest: Path to the artifact manifest. Only populated when
|
||||
// artifacts are uploaded.
|
||||
ArtifactManifest string `json:"artifactManifest,omitempty"`
|
||||
|
||||
// BuildStepImages: List of build step digests, in the order
|
||||
// corresponding to build step
|
||||
// indices.
|
||||
BuildStepImages []string `json:"buildStepImages,omitempty"`
|
||||
|
||||
// Images: Images that were built as a part of the build.
|
||||
// Images: Container images that were built as a part of the build.
|
||||
Images []*BuiltImage `json:"images,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "BuildStepImages") to
|
||||
// NumArtifacts: Number of artifacts uploaded. Only populated when
|
||||
// artifacts are uploaded.
|
||||
NumArtifacts int64 `json:"numArtifacts,omitempty,string"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ArtifactManifest") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@ -981,7 +1142,7 @@ type Results struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "BuildStepImages") to
|
||||
// NullFields is a list of field names (e.g. "ArtifactManifest") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
@ -997,11 +1158,11 @@ func (s *Results) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// RetryBuildRequest: RetryBuildRequest specifies a build to retry.
|
||||
// RetryBuildRequest: Specifies a build to retry.
|
||||
type RetryBuildRequest struct {
|
||||
}
|
||||
|
||||
// Secret: Secret pairs a set of secret environment variables containing
|
||||
// Secret: Pairs a set of secret environment variables containing
|
||||
// encrypted
|
||||
// values with the Cloud KMS key to use to decrypt the value.
|
||||
type Secret struct {
|
||||
@ -1043,12 +1204,11 @@ func (s *Secret) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Source: Source describes the location of the source in a supported
|
||||
// storage
|
||||
// service.
|
||||
// Source: Location of the source in a supported storage service.
|
||||
type Source struct {
|
||||
// RepoSource: If provided, get source from this location in a Cloud
|
||||
// Repo.
|
||||
// RepoSource: If provided, get the source from this location in a Cloud
|
||||
// Source
|
||||
// Repository.
|
||||
RepoSource *RepoSource `json:"repoSource,omitempty"`
|
||||
|
||||
// StorageSource: If provided, get the source from this location in
|
||||
@ -1084,10 +1244,10 @@ func (s *Source) MarshalJSON() ([]byte, error) {
|
||||
type SourceProvenance struct {
|
||||
// FileHashes: Hash(es) of the build source, which can be used to verify
|
||||
// that the original
|
||||
// source integrity was maintained in the build. Note that FileHashes
|
||||
// source integrity was maintained in the build. Note that `FileHashes`
|
||||
// will
|
||||
// only be populated if BuildOptions has requested a
|
||||
// SourceProvenanceHash.
|
||||
// only be populated if `BuildOptions` has requested a
|
||||
// `SourceProvenanceHash`.
|
||||
//
|
||||
// The keys to this map are file paths used as build source and the
|
||||
// values
|
||||
@ -1095,17 +1255,17 @@ type SourceProvenance struct {
|
||||
//
|
||||
// If the build source came in a single package such as a gzipped
|
||||
// tarfile
|
||||
// (.tar.gz), the FileHash will be for the single path to that
|
||||
// (`.tar.gz`), the `FileHash` will be for the single path to that
|
||||
// file.
|
||||
// @OutputOnly
|
||||
FileHashes map[string]FileHashes `json:"fileHashes,omitempty"`
|
||||
|
||||
// ResolvedRepoSource: A copy of the build's source.repo_source, if
|
||||
// ResolvedRepoSource: A copy of the build's `source.repo_source`, if
|
||||
// exists, with any
|
||||
// revisions resolved.
|
||||
ResolvedRepoSource *RepoSource `json:"resolvedRepoSource,omitempty"`
|
||||
|
||||
// ResolvedStorageSource: A copy of the build's source.storage_source,
|
||||
// ResolvedStorageSource: A copy of the build's `source.storage_source`,
|
||||
// if exists, with any
|
||||
// generations resolved.
|
||||
ResolvedStorageSource *StorageSource `json:"resolvedStorageSource,omitempty"`
|
||||
@ -1252,11 +1412,11 @@ func (s *Status) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// StorageSource: StorageSource describes the location of the source in
|
||||
// an archive file in
|
||||
// Google Cloud Storage.
|
||||
// StorageSource: Location of the source in an archive file in Google
|
||||
// Cloud Storage.
|
||||
type StorageSource struct {
|
||||
// Bucket: Google Cloud Storage bucket containing source (see
|
||||
// Bucket: Google Cloud Storage bucket containing the source
|
||||
// (see
|
||||
// [Bucket
|
||||
// Name
|
||||
// Requirements](https://cloud.google.com/storage/docs/bucket-naming
|
||||
@ -1268,9 +1428,9 @@ type StorageSource struct {
|
||||
// omitted, the latest generation will be used.
|
||||
Generation int64 `json:"generation,omitempty,string"`
|
||||
|
||||
// Object: Google Cloud Storage object containing source.
|
||||
// Object: Google Cloud Storage object containing the source.
|
||||
//
|
||||
// This object must be a gzipped archive file (.tar.gz) containing
|
||||
// This object must be a gzipped archive file (`.tar.gz`) containing
|
||||
// source to
|
||||
// build.
|
||||
Object string `json:"object,omitempty"`
|
||||
@ -1298,7 +1458,7 @@ func (s *StorageSource) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// TimeSpan: Stores start and end times for a build execution phase.
|
||||
// TimeSpan: Start and end times for a build execution phase.
|
||||
type TimeSpan struct {
|
||||
// EndTime: End of time span.
|
||||
EndTime string `json:"endTime,omitempty"`
|
||||
@ -1891,7 +2051,7 @@ type ProjectsBuildsCancelCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Cancel: Cancels a requested build in progress.
|
||||
// Cancel: Cancels a build in progress.
|
||||
func (r *ProjectsBuildsService) Cancel(projectId string, id string, cancelbuildrequest *CancelBuildRequest) *ProjectsBuildsCancelCall {
|
||||
c := &ProjectsBuildsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
@ -1987,7 +2147,7 @@ func (c *ProjectsBuildsCancelCall) Do(opts ...googleapi.CallOption) (*Build, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Cancels a requested build in progress.",
|
||||
// "description": "Cancels a build in progress.",
|
||||
// "flatPath": "v1/projects/{projectId}/builds/{id}:cancel",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudbuild.projects.builds.cancel",
|
||||
@ -2036,11 +2196,11 @@ type ProjectsBuildsCreateCall struct {
|
||||
|
||||
// Create: Starts a build with the specified configuration.
|
||||
//
|
||||
// The long-running Operation returned by this method will include the
|
||||
// ID of
|
||||
// the build, which can be passed to GetBuild to determine its status
|
||||
// (e.g.,
|
||||
// success or failure).
|
||||
// This method returns a long-running `Operation`, which includes the
|
||||
// build
|
||||
// ID. Pass the build ID to `GetBuild` to determine the build status
|
||||
// (such as
|
||||
// `SUCCESS` or `FAILURE`).
|
||||
func (r *ProjectsBuildsService) Create(projectId string, build *Build) *ProjectsBuildsCreateCall {
|
||||
c := &ProjectsBuildsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
@ -2134,7 +2294,7 @@ func (c *ProjectsBuildsCreateCall) Do(opts ...googleapi.CallOption) (*Operation,
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Starts a build with the specified configuration.\n\nThe long-running Operation returned by this method will include the ID of\nthe build, which can be passed to GetBuild to determine its status (e.g.,\nsuccess or failure).",
|
||||
// "description": "Starts a build with the specified configuration.\n\nThis method returns a long-running `Operation`, which includes the build\nID. Pass the build ID to `GetBuild` to determine the build status (such as\n`SUCCESS` or `FAILURE`).",
|
||||
// "flatPath": "v1/projects/{projectId}/builds",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudbuild.projects.builds.create",
|
||||
@ -2177,9 +2337,9 @@ type ProjectsBuildsGetCall struct {
|
||||
|
||||
// Get: Returns information about a previously requested build.
|
||||
//
|
||||
// The Build that is returned includes its status (e.g., success or
|
||||
// failure,
|
||||
// or in-progress), and timing information.
|
||||
// The `Build` that is returned includes its status (such as
|
||||
// `SUCCESS`,
|
||||
// `FAILURE`, or `WORKING`), and timing information.
|
||||
func (r *ProjectsBuildsService) Get(projectId string, id string) *ProjectsBuildsGetCall {
|
||||
c := &ProjectsBuildsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
@ -2282,7 +2442,7 @@ func (c *ProjectsBuildsGetCall) Do(opts ...googleapi.CallOption) (*Build, error)
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns information about a previously requested build.\n\nThe Build that is returned includes its status (e.g., success or failure,\nor in-progress), and timing information.",
|
||||
// "description": "Returns information about a previously requested build.\n\nThe `Build` that is returned includes its status (such as `SUCCESS`,\n`FAILURE`, or `WORKING`), and timing information.",
|
||||
// "flatPath": "v1/projects/{projectId}/builds/{id}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "cloudbuild.projects.builds.get",
|
||||
@ -2527,19 +2687,20 @@ type ProjectsBuildsRetryCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Retry: Creates a new build based on the given build.
|
||||
// Retry: Creates a new build based on the specified build.
|
||||
//
|
||||
// This API creates a new build using the original build request, which
|
||||
// may
|
||||
// This method creates a new build using the original build request,
|
||||
// which may
|
||||
// or may not result in an identical build.
|
||||
//
|
||||
// For triggered builds:
|
||||
//
|
||||
// * Triggered builds resolve to a precise revision, so a retry of a
|
||||
// triggered
|
||||
// build will result in a build that uses the same revision.
|
||||
// * Triggered builds resolve to a precise revision; therefore a retry
|
||||
// of a
|
||||
// triggered build will result in a build that uses the same
|
||||
// revision.
|
||||
//
|
||||
// For non-triggered builds that specify RepoSource:
|
||||
// For non-triggered builds that specify `RepoSource`:
|
||||
//
|
||||
// * If the original build built from the tip of a branch, the retried
|
||||
// build
|
||||
@ -2550,13 +2711,13 @@ type ProjectsBuildsRetryCall struct {
|
||||
// retried
|
||||
// build will use the identical source.
|
||||
//
|
||||
// For builds that specify StorageSource:
|
||||
// For builds that specify `StorageSource`:
|
||||
//
|
||||
// * If the original build pulled source from Cloud Storage without
|
||||
// specifying
|
||||
// the generation of the object, the new build will use the current
|
||||
// object,
|
||||
// which may be different from the original build source.
|
||||
// * If the original build pulled source from Google Cloud Storage
|
||||
// without
|
||||
// specifying the generation of the object, the new build will use the
|
||||
// current
|
||||
// object, which may be different from the original build source.
|
||||
// * If the original build pulled source from Cloud Storage and
|
||||
// specified the
|
||||
// generation of the object, the new build will attempt to use the
|
||||
@ -2659,7 +2820,7 @@ func (c *ProjectsBuildsRetryCall) Do(opts ...googleapi.CallOption) (*Operation,
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Creates a new build based on the given build.\n\nThis API creates a new build using the original build request, which may\nor may not result in an identical build.\n\nFor triggered builds:\n\n* Triggered builds resolve to a precise revision, so a retry of a triggered\nbuild will result in a build that uses the same revision.\n\nFor non-triggered builds that specify RepoSource:\n\n* If the original build built from the tip of a branch, the retried build\nwill build from the tip of that branch, which may not be the same revision\nas the original build.\n* If the original build specified a commit sha or revision ID, the retried\nbuild will use the identical source.\n\nFor builds that specify StorageSource:\n\n* If the original build pulled source from Cloud Storage without specifying\nthe generation of the object, the new build will use the current object,\nwhich may be different from the original build source.\n* If the original build pulled source from Cloud Storage and specified the\ngeneration of the object, the new build will attempt to use the same\nobject, which may or may not be available depending on the bucket's\nlifecycle management settings.",
|
||||
// "description": "Creates a new build based on the specified build.\n\nThis method creates a new build using the original build request, which may\nor may not result in an identical build.\n\nFor triggered builds:\n\n* Triggered builds resolve to a precise revision; therefore a retry of a\ntriggered build will result in a build that uses the same revision.\n\nFor non-triggered builds that specify `RepoSource`:\n\n* If the original build built from the tip of a branch, the retried build\nwill build from the tip of that branch, which may not be the same revision\nas the original build.\n* If the original build specified a commit sha or revision ID, the retried\nbuild will use the identical source.\n\nFor builds that specify `StorageSource`:\n\n* If the original build pulled source from Google Cloud Storage without\nspecifying the generation of the object, the new build will use the current\nobject, which may be different from the original build source.\n* If the original build pulled source from Cloud Storage and specified the\ngeneration of the object, the new build will attempt to use the same\nobject, which may or may not be available depending on the bucket's\nlifecycle management settings.",
|
||||
// "flatPath": "v1/projects/{projectId}/builds/{id}:retry",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudbuild.projects.builds.retry",
|
||||
@ -2706,7 +2867,7 @@ type ProjectsTriggersCreateCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Create: Creates a new BuildTrigger.
|
||||
// Create: Creates a new `BuildTrigger`.
|
||||
//
|
||||
// This API is experimental.
|
||||
func (r *ProjectsTriggersService) Create(projectId string, buildtrigger *BuildTrigger) *ProjectsTriggersCreateCall {
|
||||
@ -2802,7 +2963,7 @@ func (c *ProjectsTriggersCreateCall) Do(opts ...googleapi.CallOption) (*BuildTri
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Creates a new BuildTrigger.\n\nThis API is experimental.",
|
||||
// "description": "Creates a new `BuildTrigger`.\n\nThis API is experimental.",
|
||||
// "flatPath": "v1/projects/{projectId}/triggers",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudbuild.projects.triggers.create",
|
||||
@ -2842,7 +3003,7 @@ type ProjectsTriggersDeleteCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Delete: Deletes an BuildTrigger by its project ID and trigger
|
||||
// Delete: Deletes a `BuildTrigger` by its project ID and trigger
|
||||
// ID.
|
||||
//
|
||||
// This API is experimental.
|
||||
@ -2935,7 +3096,7 @@ func (c *ProjectsTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, e
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Deletes an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental.",
|
||||
// "description": "Deletes a `BuildTrigger` by its project ID and trigger ID.\n\nThis API is experimental.",
|
||||
// "flatPath": "v1/projects/{projectId}/triggers/{triggerId}",
|
||||
// "httpMethod": "DELETE",
|
||||
// "id": "cloudbuild.projects.triggers.delete",
|
||||
@ -2951,7 +3112,7 @@ func (c *ProjectsTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, e
|
||||
// "type": "string"
|
||||
// },
|
||||
// "triggerId": {
|
||||
// "description": "ID of the BuildTrigger to delete.",
|
||||
// "description": "ID of the `BuildTrigger` to delete.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
@ -2980,7 +3141,7 @@ type ProjectsTriggersGetCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Gets information about a BuildTrigger.
|
||||
// Get: Returns information about a `BuildTrigger`.
|
||||
//
|
||||
// This API is experimental.
|
||||
func (r *ProjectsTriggersService) Get(projectId string, triggerId string) *ProjectsTriggersGetCall {
|
||||
@ -3085,7 +3246,7 @@ func (c *ProjectsTriggersGetCall) Do(opts ...googleapi.CallOption) (*BuildTrigge
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Gets information about a BuildTrigger.\n\nThis API is experimental.",
|
||||
// "description": "Returns information about a `BuildTrigger`.\n\nThis API is experimental.",
|
||||
// "flatPath": "v1/projects/{projectId}/triggers/{triggerId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "cloudbuild.projects.triggers.get",
|
||||
@ -3101,7 +3262,7 @@ func (c *ProjectsTriggersGetCall) Do(opts ...googleapi.CallOption) (*BuildTrigge
|
||||
// "type": "string"
|
||||
// },
|
||||
// "triggerId": {
|
||||
// "description": "ID of the BuildTrigger to get.",
|
||||
// "description": "ID of the `BuildTrigger` to get.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
@ -3129,7 +3290,7 @@ type ProjectsTriggersListCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: Lists existing BuildTrigger.
|
||||
// List: Lists existing `BuildTrigger`s.
|
||||
//
|
||||
// This API is experimental.
|
||||
func (r *ProjectsTriggersService) List(projectId string) *ProjectsTriggersListCall {
|
||||
@ -3232,7 +3393,7 @@ func (c *ProjectsTriggersListCall) Do(opts ...googleapi.CallOption) (*ListBuildT
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Lists existing BuildTrigger.\n\nThis API is experimental.",
|
||||
// "description": "Lists existing `BuildTrigger`s.\n\nThis API is experimental.",
|
||||
// "flatPath": "v1/projects/{projectId}/triggers",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "cloudbuild.projects.triggers.list",
|
||||
@ -3270,7 +3431,7 @@ type ProjectsTriggersPatchCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Patch: Updates an BuildTrigger by its project ID and trigger
|
||||
// Patch: Updates a `BuildTrigger` by its project ID and trigger
|
||||
// ID.
|
||||
//
|
||||
// This API is experimental.
|
||||
@ -3369,7 +3530,7 @@ func (c *ProjectsTriggersPatchCall) Do(opts ...googleapi.CallOption) (*BuildTrig
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental.",
|
||||
// "description": "Updates a `BuildTrigger` by its project ID and trigger ID.\n\nThis API is experimental.",
|
||||
// "flatPath": "v1/projects/{projectId}/triggers/{triggerId}",
|
||||
// "httpMethod": "PATCH",
|
||||
// "id": "cloudbuild.projects.triggers.patch",
|
||||
@ -3385,7 +3546,7 @@ func (c *ProjectsTriggersPatchCall) Do(opts ...googleapi.CallOption) (*BuildTrig
|
||||
// "type": "string"
|
||||
// },
|
||||
// "triggerId": {
|
||||
// "description": "ID of the BuildTrigger to update.",
|
||||
// "description": "ID of the `BuildTrigger` to update.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
@ -3417,7 +3578,7 @@ type ProjectsTriggersRunCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Run: Runs a BuildTrigger at a particular source revision.
|
||||
// Run: Runs a `BuildTrigger` at a particular source revision.
|
||||
func (r *ProjectsTriggersService) Run(projectId string, triggerId string, reposource *RepoSource) *ProjectsTriggersRunCall {
|
||||
c := &ProjectsTriggersRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
@ -3513,7 +3674,7 @@ func (c *ProjectsTriggersRunCall) Do(opts ...googleapi.CallOption) (*Operation,
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Runs a BuildTrigger at a particular source revision.",
|
||||
// "description": "Runs a `BuildTrigger` at a particular source revision.",
|
||||
// "flatPath": "v1/projects/{projectId}/triggers/{triggerId}:run",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudbuild.projects.triggers.run",
|
||||
|
1802
vendor/google.golang.org/api/clouddebugger/v2/clouddebugger-api.json
generated
vendored
1802
vendor/google.golang.org/api/clouddebugger/v2/clouddebugger-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
1304
vendor/google.golang.org/api/clouderrorreporting/v1beta1/clouderrorreporting-api.json
generated
vendored
1304
vendor/google.golang.org/api/clouderrorreporting/v1beta1/clouderrorreporting-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
1614
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-api.json
generated
vendored
1614
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
1664
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-api.json
generated
vendored
1664
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
2316
vendor/google.golang.org/api/cloudiot/v1/cloudiot-api.json
generated
vendored
2316
vendor/google.golang.org/api/cloudiot/v1/cloudiot-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
304
vendor/google.golang.org/api/cloudiot/v1/cloudiot-gen.go
generated
vendored
304
vendor/google.golang.org/api/cloudiot/v1/cloudiot-gen.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Package cloudiot provides access to the Google Cloud IoT API.
|
||||
// Package cloudiot provides access to the Cloud IoT API.
|
||||
//
|
||||
// See https://cloud.google.com/iot
|
||||
//
|
||||
@ -147,174 +147,8 @@ type ProjectsLocationsRegistriesDevicesStatesService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
// AuditConfig: Specifies the audit configuration for a service.
|
||||
// The configuration determines which permission types are logged, and
|
||||
// what
|
||||
// identities, if any, are exempted from logging.
|
||||
// An AuditConfig must have one or more AuditLogConfigs.
|
||||
//
|
||||
// If there are AuditConfigs for both `allServices` and a specific
|
||||
// service,
|
||||
// the union of the two AuditConfigs is used for that service: the
|
||||
// log_types
|
||||
// specified in each AuditConfig are enabled, and the exempted_members
|
||||
// in each
|
||||
// AuditConfig are exempted.
|
||||
//
|
||||
// Example Policy with multiple AuditConfigs:
|
||||
//
|
||||
// {
|
||||
// "audit_configs": [
|
||||
// {
|
||||
// "service": "allServices"
|
||||
// "audit_log_configs": [
|
||||
// {
|
||||
// "log_type": "DATA_READ",
|
||||
// "exempted_members": [
|
||||
// "user:foo@gmail.com"
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "log_type": "DATA_WRITE",
|
||||
// },
|
||||
// {
|
||||
// "log_type": "ADMIN_READ",
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "service": "fooservice.googleapis.com"
|
||||
// "audit_log_configs": [
|
||||
// {
|
||||
// "log_type": "DATA_READ",
|
||||
// },
|
||||
// {
|
||||
// "log_type": "DATA_WRITE",
|
||||
// "exempted_members": [
|
||||
// "user:bar@gmail.com"
|
||||
// ]
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
//
|
||||
// For fooservice, this policy enables DATA_READ, DATA_WRITE and
|
||||
// ADMIN_READ
|
||||
// logging. It also exempts foo@gmail.com from DATA_READ logging,
|
||||
// and
|
||||
// bar@gmail.com from DATA_WRITE logging.
|
||||
type AuditConfig struct {
|
||||
// AuditLogConfigs: The configuration for logging of each type of
|
||||
// permission.
|
||||
// Next ID: 4
|
||||
AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
|
||||
|
||||
ExemptedMembers []string `json:"exemptedMembers,omitempty"`
|
||||
|
||||
// Service: Specifies a service that will be enabled for audit
|
||||
// logging.
|
||||
// For example, `storage.googleapis.com`,
|
||||
// `cloudsql.googleapis.com`.
|
||||
// `allServices` is a special value that covers all services.
|
||||
Service string `json:"service,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") 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. "AuditLogConfigs") 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 *AuditConfig) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod AuditConfig
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// AuditLogConfig: Provides the configuration for logging a type of
|
||||
// permissions.
|
||||
// Example:
|
||||
//
|
||||
// {
|
||||
// "audit_log_configs": [
|
||||
// {
|
||||
// "log_type": "DATA_READ",
|
||||
// "exempted_members": [
|
||||
// "user:foo@gmail.com"
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "log_type": "DATA_WRITE",
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
//
|
||||
// This enables 'DATA_READ' and 'DATA_WRITE' logging, while
|
||||
// exempting
|
||||
// foo@gmail.com from DATA_READ logging.
|
||||
type AuditLogConfig struct {
|
||||
// ExemptedMembers: Specifies the identities that do not cause logging
|
||||
// for this type of
|
||||
// permission.
|
||||
// Follows the same format of Binding.members.
|
||||
ExemptedMembers []string `json:"exemptedMembers,omitempty"`
|
||||
|
||||
// LogType: The log type that this config enables.
|
||||
//
|
||||
// Possible values:
|
||||
// "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
|
||||
// "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
|
||||
// "DATA_WRITE" - Data writes. Example: CloudSQL Users create
|
||||
// "DATA_READ" - Data reads. Example: CloudSQL Users list
|
||||
LogType string `json:"logType,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ExemptedMembers") 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. "ExemptedMembers") 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 *AuditLogConfig) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod AuditLogConfig
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Binding: Associates `members` with a `role`.
|
||||
type Binding struct {
|
||||
// Condition: The condition that is associated with this binding.
|
||||
// NOTE: an unsatisfied condition will not allow user access via
|
||||
// current
|
||||
// binding. Different bindings, including their conditions, are
|
||||
// examined
|
||||
// independently.
|
||||
// This field is GOOGLE_INTERNAL.
|
||||
Condition *Expr `json:"condition,omitempty"`
|
||||
|
||||
// Members: Specifies the identities requesting access for a Cloud
|
||||
// Platform resource.
|
||||
// `members` can have the following values:
|
||||
@ -356,7 +190,7 @@ type Binding struct {
|
||||
// Required
|
||||
Role string `json:"role,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Condition") to
|
||||
// ForceSendFields is a list of field names (e.g. "Members") 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
|
||||
@ -364,7 +198,7 @@ type Binding struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Condition") to include in
|
||||
// NullFields is a list of field names (e.g. "Members") 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
|
||||
@ -454,11 +288,15 @@ type Device struct {
|
||||
// minutes.
|
||||
LastEventTime string `json:"lastEventTime,omitempty"`
|
||||
|
||||
// LastHeartbeatTime: [Output only] The last time a heartbeat was
|
||||
// received. Timestamps are
|
||||
// periodically collected and written to storage; they may be stale by a
|
||||
// few
|
||||
// minutes. This field is only for devices connecting through MQTT.
|
||||
// LastHeartbeatTime: [Output only] The last time an MQTT `PINGREQ` was
|
||||
// received. This field
|
||||
// applies only to devices connecting through MQTT. MQTT clients usually
|
||||
// only
|
||||
// send `PINGREQ` messages if the connection is idle, and no other
|
||||
// messages
|
||||
// have been sent. Timestamps are periodically collected and written
|
||||
// to
|
||||
// storage; they may be stale by a few minutes.
|
||||
LastHeartbeatTime string `json:"lastHeartbeatTime,omitempty"`
|
||||
|
||||
// LastStateTime: [Output only] The last time a state event was
|
||||
@ -474,9 +312,8 @@ type Device struct {
|
||||
// contextual
|
||||
// information for the device.
|
||||
//
|
||||
// Keys must conform to the regular expression [a-zA-Z0-9-_]+ and be
|
||||
// less than
|
||||
// 128 bytes in length.
|
||||
// Keys must conform to the regular expression a-zA-Z+ and
|
||||
// be less than 128 bytes in length.
|
||||
//
|
||||
// Values are free-form strings. Each value must be less than or equal
|
||||
// to 32
|
||||
@ -687,15 +524,17 @@ type DeviceRegistry struct {
|
||||
// the
|
||||
// device and acknowledged by Cloud IoT Core are guaranteed to
|
||||
// be
|
||||
// delivered to Cloud Pub/Sub. Only the first configuration is used. If
|
||||
// you
|
||||
// try to publish a device telemetry event using MQTT without specifying
|
||||
// delivered to Cloud Pub/Sub. If multiple configurations match a
|
||||
// message,
|
||||
// only the first matching configuration is used. If you try to publish
|
||||
// a
|
||||
// Cloud Pub/Sub topic for the device's registry, the connection
|
||||
// closes
|
||||
// automatically. If you try to do so using an HTTP connection, an
|
||||
// error
|
||||
// is returned.
|
||||
// device telemetry event using MQTT without specifying a Cloud Pub/Sub
|
||||
// topic
|
||||
// for the device's registry, the connection closes automatically. If
|
||||
// you try
|
||||
// to do so using an HTTP connection, an error is returned. Up to
|
||||
// 10
|
||||
// configurations may be provided.
|
||||
EventNotificationConfigs []*EventNotificationConfig `json:"eventNotificationConfigs,omitempty"`
|
||||
|
||||
// HttpConfig: The DeviceService (HTTP) configuration for this device
|
||||
@ -806,7 +645,7 @@ type Empty struct {
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
}
|
||||
|
||||
// EventNotificationConfig: The configuration to forward telemetry
|
||||
// EventNotificationConfig: The configuration for forwarding telemetry
|
||||
// events.
|
||||
type EventNotificationConfig struct {
|
||||
// PubsubTopicName: A Cloud Pub/Sub topic name. For
|
||||
@ -814,6 +653,15 @@ type EventNotificationConfig struct {
|
||||
// `projects/myProject/topics/deviceEvents`.
|
||||
PubsubTopicName string `json:"pubsubTopicName,omitempty"`
|
||||
|
||||
// SubfolderMatches: If the subfolder name matches this string exactly,
|
||||
// this configuration will
|
||||
// be used. The string must not include the leading '/' character. If
|
||||
// empty,
|
||||
// all strings are matched. This field is used only for telemetry
|
||||
// events;
|
||||
// subfolders are not supported for state changes.
|
||||
SubfolderMatches string `json:"subfolderMatches,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "PubsubTopicName") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
@ -838,60 +686,6 @@ func (s *EventNotificationConfig) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Expr: Represents an expression text. Example:
|
||||
//
|
||||
// title: "User account presence"
|
||||
// description: "Determines whether the request has a user account"
|
||||
// expression: "size(request.user) > 0"
|
||||
type Expr struct {
|
||||
// Description: An optional description of the expression. This is a
|
||||
// longer text which
|
||||
// describes the expression, e.g. when hovered over it in a UI.
|
||||
Description string `json:"description,omitempty"`
|
||||
|
||||
// Expression: Textual representation of an expression in
|
||||
// Common Expression Language syntax.
|
||||
//
|
||||
// The application context of the containing message determines
|
||||
// which
|
||||
// well-known feature set of CEL is supported.
|
||||
Expression string `json:"expression,omitempty"`
|
||||
|
||||
// Location: An optional string indicating the location of the
|
||||
// expression for error
|
||||
// reporting, e.g. a file name and a position in the file.
|
||||
Location string `json:"location,omitempty"`
|
||||
|
||||
// Title: An optional title for the expression, i.e. a short string
|
||||
// describing
|
||||
// its purpose. This can be used e.g. in UIs which allow to enter
|
||||
// the
|
||||
// expression.
|
||||
Title string `json:"title,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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 *Expr) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod Expr
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// GetIamPolicyRequest: Request message for `GetIamPolicy` method.
|
||||
type GetIamPolicyRequest struct {
|
||||
}
|
||||
@ -1197,10 +991,6 @@ func (s *MqttConfig) MarshalJSON() ([]byte, error) {
|
||||
// For a description of IAM and its features, see the
|
||||
// [IAM developer's guide](https://cloud.google.com/iam/docs).
|
||||
type Policy struct {
|
||||
// AuditConfigs: Specifies cloud audit logging configuration for this
|
||||
// policy.
|
||||
AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
|
||||
|
||||
// Bindings: Associates a list of `members` to a `role`.
|
||||
// `bindings` with no members will result in an error.
|
||||
Bindings []*Binding `json:"bindings,omitempty"`
|
||||
@ -1225,8 +1015,6 @@ type Policy struct {
|
||||
// policy is overwritten blindly.
|
||||
Etag string `json:"etag,omitempty"`
|
||||
|
||||
IamOwned bool `json:"iamOwned,omitempty"`
|
||||
|
||||
// Version: Deprecated.
|
||||
Version int64 `json:"version,omitempty"`
|
||||
|
||||
@ -1234,7 +1022,7 @@ type Policy struct {
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
|
||||
// ForceSendFields is a list of field names (e.g. "Bindings") 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
|
||||
@ -1242,10 +1030,10 @@ type Policy struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AuditConfigs") 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. "Bindings") 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:"-"`
|
||||
@ -1407,15 +1195,6 @@ type SetIamPolicyRequest struct {
|
||||
// might reject them.
|
||||
Policy *Policy `json:"policy,omitempty"`
|
||||
|
||||
// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
|
||||
// policy to modify. Only
|
||||
// the fields in the mask will be modified. If no mask is provided,
|
||||
// the
|
||||
// following default mask is used:
|
||||
// paths: "bindings, etag"
|
||||
// This field is only used by Cloud IAM.
|
||||
UpdateMask string `json:"updateMask,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Policy") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
@ -3696,8 +3475,7 @@ func (r *ProjectsLocationsRegistriesDevicesService) Patch(name string, device *D
|
||||
// The field mask must not be empty, and it must not contain fields
|
||||
// that
|
||||
// are immutable or only set by the server.
|
||||
// Mutable top-level fields: `credentials`, `enabled_state`, and
|
||||
// `metadata`
|
||||
// Mutable top-level fields: `credentials`, `blocked`, and `metadata`
|
||||
func (c *ProjectsLocationsRegistriesDevicesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRegistriesDevicesPatchCall {
|
||||
c.urlParams_.Set("updateMask", updateMask)
|
||||
return c
|
||||
@ -3805,7 +3583,7 @@ func (c *ProjectsLocationsRegistriesDevicesPatchCall) Do(opts ...googleapi.CallO
|
||||
// "type": "string"
|
||||
// },
|
||||
// "updateMask": {
|
||||
// "description": "Only updates the `device` fields indicated by this mask.\nThe field mask must not be empty, and it must not contain fields that\nare immutable or only set by the server.\nMutable top-level fields: `credentials`, `enabled_state`, and `metadata`",
|
||||
// "description": "Only updates the `device` fields indicated by this mask.\nThe field mask must not be empty, and it must not contain fields that\nare immutable or only set by the server.\nMutable top-level fields: `credentials`, `blocked`, and `metadata`",
|
||||
// "format": "google-fieldmask",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
|
2173
vendor/google.golang.org/api/cloudkms/v1/cloudkms-api.json
generated
vendored
2173
vendor/google.golang.org/api/cloudkms/v1/cloudkms-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
21
vendor/google.golang.org/api/cloudkms/v1/cloudkms-gen.go
generated
vendored
21
vendor/google.golang.org/api/cloudkms/v1/cloudkms-gen.go
generated
vendored
@ -144,7 +144,7 @@ type ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsService struct {
|
||||
// log_types
|
||||
// specified in each AuditConfig are enabled, and the exempted_members
|
||||
// in each
|
||||
// AuditConfig are exempted.
|
||||
// AuditLogConfig are exempted.
|
||||
//
|
||||
// Example Policy with multiple AuditConfigs:
|
||||
//
|
||||
@ -881,6 +881,11 @@ func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Location: A resource that represents Google Cloud Platform location.
|
||||
type Location struct {
|
||||
// DisplayName: The friendly name for this location, typically a nearby
|
||||
// city name.
|
||||
// For example, "Tokyo".
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
|
||||
// Labels: Cross-service attributes for the location. For example
|
||||
//
|
||||
// {"cloud.googleapis.com/region": "us-east1"}
|
||||
@ -904,7 +909,7 @@ type Location struct {
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Labels") to
|
||||
// ForceSendFields is a list of field names (e.g. "DisplayName") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@ -912,10 +917,10 @@ type Location struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Labels") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// NullFields is a list of field names (e.g. "DisplayName") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
@ -1181,7 +1186,7 @@ type ProjectsLocationsGetCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Get information about a location.
|
||||
// Get: Gets information about a location.
|
||||
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
|
||||
c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
@ -1282,7 +1287,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Get information about a location.",
|
||||
// "description": "Gets information about a location.",
|
||||
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "cloudkms.projects.locations.get",
|
||||
|
120
vendor/google.golang.org/api/cloudmonitoring/v2beta2/cloudmonitoring-gen.go
generated
vendored
120
vendor/google.golang.org/api/cloudmonitoring/v2beta2/cloudmonitoring-gen.go
generated
vendored
@ -141,8 +141,8 @@ type DeleteMetricDescriptorResponse struct {
|
||||
}
|
||||
|
||||
func (s *DeleteMetricDescriptorResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod DeleteMetricDescriptorResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod DeleteMetricDescriptorResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -171,8 +171,8 @@ type ListMetricDescriptorsRequest struct {
|
||||
}
|
||||
|
||||
func (s *ListMetricDescriptorsRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListMetricDescriptorsRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListMetricDescriptorsRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -214,8 +214,8 @@ type ListMetricDescriptorsResponse struct {
|
||||
}
|
||||
|
||||
func (s *ListMetricDescriptorsResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListMetricDescriptorsResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListMetricDescriptorsResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -244,8 +244,8 @@ type ListTimeseriesDescriptorsRequest struct {
|
||||
}
|
||||
|
||||
func (s *ListTimeseriesDescriptorsRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListTimeseriesDescriptorsRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListTimeseriesDescriptorsRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -295,8 +295,8 @@ type ListTimeseriesDescriptorsResponse struct {
|
||||
}
|
||||
|
||||
func (s *ListTimeseriesDescriptorsResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListTimeseriesDescriptorsResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListTimeseriesDescriptorsResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -324,8 +324,8 @@ type ListTimeseriesRequest struct {
|
||||
}
|
||||
|
||||
func (s *ListTimeseriesRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListTimeseriesRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListTimeseriesRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -376,8 +376,8 @@ type ListTimeseriesResponse struct {
|
||||
}
|
||||
|
||||
func (s *ListTimeseriesResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListTimeseriesResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListTimeseriesResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -421,8 +421,8 @@ type MetricDescriptor struct {
|
||||
}
|
||||
|
||||
func (s *MetricDescriptor) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MetricDescriptor
|
||||
raw := noMethod(*s)
|
||||
type NoMethod MetricDescriptor
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -454,8 +454,8 @@ type MetricDescriptorLabelDescriptor struct {
|
||||
}
|
||||
|
||||
func (s *MetricDescriptorLabelDescriptor) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MetricDescriptorLabelDescriptor
|
||||
raw := noMethod(*s)
|
||||
type NoMethod MetricDescriptorLabelDescriptor
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -489,8 +489,8 @@ type MetricDescriptorTypeDescriptor struct {
|
||||
}
|
||||
|
||||
func (s *MetricDescriptorTypeDescriptor) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MetricDescriptorTypeDescriptor
|
||||
raw := noMethod(*s)
|
||||
type NoMethod MetricDescriptorTypeDescriptor
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -550,18 +550,18 @@ type Point struct {
|
||||
}
|
||||
|
||||
func (s *Point) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Point
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Point
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *Point) UnmarshalJSON(data []byte) error {
|
||||
type noMethod Point
|
||||
type NoMethod Point
|
||||
var s1 struct {
|
||||
DoubleValue *gensupport.JSONFloat64 `json:"doubleValue"`
|
||||
*noMethod
|
||||
*NoMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
@ -603,8 +603,8 @@ type PointDistribution struct {
|
||||
}
|
||||
|
||||
func (s *PointDistribution) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PointDistribution
|
||||
raw := noMethod(*s)
|
||||
type NoMethod PointDistribution
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -643,19 +643,19 @@ type PointDistributionBucket struct {
|
||||
}
|
||||
|
||||
func (s *PointDistributionBucket) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PointDistributionBucket
|
||||
raw := noMethod(*s)
|
||||
type NoMethod PointDistributionBucket
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *PointDistributionBucket) UnmarshalJSON(data []byte) error {
|
||||
type noMethod PointDistributionBucket
|
||||
type NoMethod PointDistributionBucket
|
||||
var s1 struct {
|
||||
LowerBound gensupport.JSONFloat64 `json:"lowerBound"`
|
||||
UpperBound gensupport.JSONFloat64 `json:"upperBound"`
|
||||
*noMethod
|
||||
*NoMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
@ -694,18 +694,18 @@ type PointDistributionOverflowBucket struct {
|
||||
}
|
||||
|
||||
func (s *PointDistributionOverflowBucket) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PointDistributionOverflowBucket
|
||||
raw := noMethod(*s)
|
||||
type NoMethod PointDistributionOverflowBucket
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *PointDistributionOverflowBucket) UnmarshalJSON(data []byte) error {
|
||||
type noMethod PointDistributionOverflowBucket
|
||||
type NoMethod PointDistributionOverflowBucket
|
||||
var s1 struct {
|
||||
LowerBound gensupport.JSONFloat64 `json:"lowerBound"`
|
||||
*noMethod
|
||||
*NoMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
@ -743,18 +743,18 @@ type PointDistributionUnderflowBucket struct {
|
||||
}
|
||||
|
||||
func (s *PointDistributionUnderflowBucket) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PointDistributionUnderflowBucket
|
||||
raw := noMethod(*s)
|
||||
type NoMethod PointDistributionUnderflowBucket
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *PointDistributionUnderflowBucket) UnmarshalJSON(data []byte) error {
|
||||
type noMethod PointDistributionUnderflowBucket
|
||||
type NoMethod PointDistributionUnderflowBucket
|
||||
var s1 struct {
|
||||
UpperBound gensupport.JSONFloat64 `json:"upperBound"`
|
||||
*noMethod
|
||||
*NoMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
@ -792,8 +792,8 @@ type Timeseries struct {
|
||||
}
|
||||
|
||||
func (s *Timeseries) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Timeseries
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Timeseries
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -828,8 +828,8 @@ type TimeseriesDescriptor struct {
|
||||
}
|
||||
|
||||
func (s *TimeseriesDescriptor) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TimeseriesDescriptor
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TimeseriesDescriptor
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -858,8 +858,8 @@ type TimeseriesDescriptorLabel struct {
|
||||
}
|
||||
|
||||
func (s *TimeseriesDescriptorLabel) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TimeseriesDescriptorLabel
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TimeseriesDescriptorLabel
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -891,8 +891,8 @@ type TimeseriesPoint struct {
|
||||
}
|
||||
|
||||
func (s *TimeseriesPoint) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TimeseriesPoint
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TimeseriesPoint
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -925,8 +925,8 @@ type WriteTimeseriesRequest struct {
|
||||
}
|
||||
|
||||
func (s *WriteTimeseriesRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod WriteTimeseriesRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod WriteTimeseriesRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -959,8 +959,8 @@ type WriteTimeseriesResponse struct {
|
||||
}
|
||||
|
||||
func (s *WriteTimeseriesResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod WriteTimeseriesResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod WriteTimeseriesResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@ -1064,7 +1064,7 @@ func (c *MetricDescriptorsCreateCall) Do(opts ...googleapi.CallOption) (*MetricD
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -1194,7 +1194,7 @@ func (c *MetricDescriptorsDeleteCall) Do(opts ...googleapi.CallOption) (*DeleteM
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -1373,7 +1373,7 @@ func (c *MetricDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListMetri
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -1651,7 +1651,7 @@ func (c *TimeseriesListCall) Do(opts ...googleapi.CallOption) (*ListTimeseriesRe
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -1882,7 +1882,7 @@ func (c *TimeseriesWriteCall) Do(opts ...googleapi.CallOption) (*WriteTimeseries
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@ -2122,7 +2122,7 @@ func (c *TimeseriesDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListT
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
|
3178
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-api.json
generated
vendored
3178
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
37
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-gen.go
generated
vendored
37
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-gen.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Package cloudresourcemanager provides access to the Google Cloud Resource Manager API.
|
||||
// Package cloudresourcemanager provides access to the Cloud Resource Manager API.
|
||||
//
|
||||
// See https://cloud.google.com/resource-manager
|
||||
//
|
||||
@ -175,7 +175,7 @@ func (s *Ancestor) MarshalJSON() ([]byte, error) {
|
||||
// log_types
|
||||
// specified in each AuditConfig are enabled, and the exempted_members
|
||||
// in each
|
||||
// AuditConfig are exempted.
|
||||
// AuditLogConfig are exempted.
|
||||
//
|
||||
// Example Policy with multiple AuditConfigs:
|
||||
//
|
||||
@ -1542,11 +1542,14 @@ type Organization struct {
|
||||
// @OutputOnly
|
||||
CreationTime string `json:"creationTime,omitempty"`
|
||||
|
||||
// DisplayName: A friendly string to be used to refer to the
|
||||
// Organization in the UI.
|
||||
// Assigned by the server, set to the primary domain of the G
|
||||
// Suite
|
||||
// customer that owns the organization.
|
||||
// DisplayName: A human-readable string that refers to the Organization
|
||||
// in the
|
||||
// GCP Console UI. This string is set by the server and cannot
|
||||
// be
|
||||
// changed. The string will be set to the primary domain (for
|
||||
// example,
|
||||
// "google.com") of the G Suite customer that owns the
|
||||
// organization.
|
||||
// @OutputOnly
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
|
||||
@ -1610,8 +1613,8 @@ func (s *Organization) MarshalJSON() ([]byte, error) {
|
||||
// descendants will
|
||||
// be deleted.
|
||||
type OrganizationOwner struct {
|
||||
// DirectoryCustomerId: The Google for Work customer id used in the
|
||||
// Directory API.
|
||||
// DirectoryCustomerId: The G Suite customer id used in the Directory
|
||||
// API.
|
||||
DirectoryCustomerId string `json:"directoryCustomerId,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DirectoryCustomerId")
|
||||
@ -1968,7 +1971,7 @@ type SearchOrganizationsRequest struct {
|
||||
//
|
||||
// Organizations may be filtered by `owner.directoryCustomerId` or
|
||||
// by
|
||||
// `domain`, where the domain is a Google for Work domain, for
|
||||
// `domain`, where the domain is a G Suite domain, for
|
||||
// example:
|
||||
//
|
||||
// |Filter|Description|
|
||||
@ -5573,7 +5576,8 @@ type ProjectsCreateCall struct {
|
||||
// permission
|
||||
// `resourcemanager.projects.create` on the specified parent for the
|
||||
// new
|
||||
// project.
|
||||
// project. The parent is identified by a specified ResourceId,
|
||||
// which must include both an ID and a type, such as organization.
|
||||
func (r *ProjectsService) Create(project *Project) *ProjectsCreateCall {
|
||||
c := &ProjectsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
@ -5663,7 +5667,7 @@ func (c *ProjectsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Request that a new Project be created. The result is an Operation which\ncan be used to track the creation process. It is automatically deleted\nafter a few hours, so there is no need to call DeleteOperation.\n\nOur SLO permits Project creation to take up to 30 seconds at the 90th\npercentile. As of 2016-08-29, we are observing 6 seconds 50th percentile\nlatency. 95th percentile latency is around 11 seconds. We recommend\npolling at the 5th second with an exponential backoff.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.create` on the specified parent for the new\nproject.",
|
||||
// "description": "Request that a new Project be created. The result is an Operation which\ncan be used to track the creation process. It is automatically deleted\nafter a few hours, so there is no need to call DeleteOperation.\n\nOur SLO permits Project creation to take up to 30 seconds at the 90th\npercentile. As of 2016-08-29, we are observing 6 seconds 50th percentile\nlatency. 95th percentile latency is around 11 seconds. We recommend\npolling at the 5th second with an exponential backoff.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.create` on the specified parent for the new\nproject. The parent is identified by a specified ResourceId,\nwhich must include both an ID and a type, such as organization.",
|
||||
// "flatPath": "v1/projects",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.projects.create",
|
||||
@ -5695,11 +5699,8 @@ type ProjectsDeleteCall struct {
|
||||
|
||||
// Delete: Marks the Project identified by the specified
|
||||
// `project_id` (for example, `my-project-123`) for deletion.
|
||||
// This method will only affect the Project if the following criteria
|
||||
// are met:
|
||||
//
|
||||
// + The Project does not have a billing account associated with it.
|
||||
// + The Project has a lifecycle state of
|
||||
// This method will only affect the Project if it has a lifecycle state
|
||||
// of
|
||||
// ACTIVE.
|
||||
//
|
||||
// This method changes the Project's lifecycle state from
|
||||
@ -5806,7 +5807,7 @@ func (c *ProjectsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Marks the Project identified by the specified\n`project_id` (for example, `my-project-123`) for deletion.\nThis method will only affect the Project if the following criteria are met:\n\n+ The Project does not have a billing account associated with it.\n+ The Project has a lifecycle state of\nACTIVE.\n\nThis method changes the Project's lifecycle state from\nACTIVE\nto DELETE_REQUESTED.\nThe deletion starts at an unspecified time,\nat which point the Project is no longer accessible.\n\nUntil the deletion completes, you can check the lifecycle state\nchecked by retrieving the Project with GetProject,\nand the Project remains visible to ListProjects.\nHowever, you cannot update the project.\n\nAfter the deletion completes, the Project is not retrievable by\nthe GetProject and\nListProjects methods.\n\nThe caller must have modify permissions for this Project.",
|
||||
// "description": "Marks the Project identified by the specified\n`project_id` (for example, `my-project-123`) for deletion.\nThis method will only affect the Project if it has a lifecycle state of\nACTIVE.\n\nThis method changes the Project's lifecycle state from\nACTIVE\nto DELETE_REQUESTED.\nThe deletion starts at an unspecified time,\nat which point the Project is no longer accessible.\n\nUntil the deletion completes, you can check the lifecycle state\nchecked by retrieving the Project with GetProject,\nand the Project remains visible to ListProjects.\nHowever, you cannot update the project.\n\nAfter the deletion completes, the Project is not retrievable by\nthe GetProject and\nListProjects methods.\n\nThe caller must have modify permissions for this Project.",
|
||||
// "flatPath": "v1/projects/{projectId}",
|
||||
// "httpMethod": "DELETE",
|
||||
// "id": "cloudresourcemanager.projects.delete",
|
||||
|
1762
vendor/google.golang.org/api/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json
generated
vendored
1762
vendor/google.golang.org/api/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
43
vendor/google.golang.org/api/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go
generated
vendored
43
vendor/google.golang.org/api/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Package cloudresourcemanager provides access to the Google Cloud Resource Manager API.
|
||||
// Package cloudresourcemanager provides access to the Cloud Resource Manager API.
|
||||
//
|
||||
// See https://cloud.google.com/resource-manager
|
||||
//
|
||||
@ -139,7 +139,7 @@ func (s *Ancestor) MarshalJSON() ([]byte, error) {
|
||||
// log_types
|
||||
// specified in each AuditConfig are enabled, and the exempted_members
|
||||
// in each
|
||||
// AuditConfig are exempted.
|
||||
// AuditLogConfig are exempted.
|
||||
//
|
||||
// Example Policy with multiple AuditConfigs:
|
||||
//
|
||||
@ -625,11 +625,14 @@ type Organization struct {
|
||||
// @OutputOnly
|
||||
CreationTime string `json:"creationTime,omitempty"`
|
||||
|
||||
// DisplayName: A friendly string to be used to refer to the
|
||||
// Organization in the UI.
|
||||
// Assigned by the server, set to the primary domain of the G
|
||||
// Suite
|
||||
// customer that owns the organization.
|
||||
// DisplayName: A human-readable string that refers to the Organization
|
||||
// in the
|
||||
// GCP Console UI. This string is set by the server and cannot
|
||||
// be
|
||||
// changed. The string will be set to the primary domain (for
|
||||
// example,
|
||||
// "google.com") of the G Suite customer that owns the
|
||||
// organization.
|
||||
// @OutputOnly
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
|
||||
@ -656,7 +659,6 @@ type Organization struct {
|
||||
// on creation. This
|
||||
// should be omitted when creating a new Organization.
|
||||
// This field is read-only.
|
||||
// This field is deprecated and will be removed in v1. Use name instead.
|
||||
OrganizationId string `json:"organizationId,omitempty"`
|
||||
|
||||
// Owner: The owner of this Organization. The owner should be specified
|
||||
@ -700,8 +702,8 @@ func (s *Organization) MarshalJSON() ([]byte, error) {
|
||||
// descendants will
|
||||
// be deleted.
|
||||
type OrganizationOwner struct {
|
||||
// DirectoryCustomerId: The Google for Work customer id used in the
|
||||
// Directory API.
|
||||
// DirectoryCustomerId: The G Suite customer id used in the Directory
|
||||
// API.
|
||||
DirectoryCustomerId string `json:"directoryCustomerId,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DirectoryCustomerId")
|
||||
@ -1464,7 +1466,7 @@ func (r *OrganizationsService) List() *OrganizationsListCall {
|
||||
//
|
||||
// Organizations may be filtered by `owner.directoryCustomerId` or
|
||||
// by
|
||||
// `domain`, where the domain is a Google for Work domain, for
|
||||
// `domain`, where the domain is a G Suite domain, for
|
||||
// example:
|
||||
//
|
||||
// |Filter|Description|
|
||||
@ -1596,7 +1598,7 @@ func (c *OrganizationsListCall) Do(opts ...googleapi.CallOption) (*ListOrganizat
|
||||
// "parameterOrder": [],
|
||||
// "parameters": {
|
||||
// "filter": {
|
||||
// "description": "An optional query string used to filter the Organizations to return in\nthe response. Filter rules are case-insensitive.\n\n\nOrganizations may be filtered by `owner.directoryCustomerId` or by\n`domain`, where the domain is a Google for Work domain, for example:\n\n|Filter|Description|\n|------|-----------|\n|owner.directorycustomerid:123456789|Organizations with `owner.directory_customer_id` equal to `123456789`.|\n|domain:google.com|Organizations corresponding to the domain `google.com`.|\n\nThis field is optional.",
|
||||
// "description": "An optional query string used to filter the Organizations to return in\nthe response. Filter rules are case-insensitive.\n\n\nOrganizations may be filtered by `owner.directoryCustomerId` or by\n`domain`, where the domain is a G Suite domain, for example:\n\n|Filter|Description|\n|------|-----------|\n|owner.directorycustomerid:123456789|Organizations with `owner.directory_customer_id` equal to `123456789`.|\n|domain:google.com|Organizations corresponding to the domain `google.com`.|\n\nThis field is optional.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
@ -2079,7 +2081,11 @@ type ProjectsCreateCall struct {
|
||||
//
|
||||
// Several APIs are activated automatically for the Project,
|
||||
// including
|
||||
// Google Cloud Storage.
|
||||
// Google Cloud Storage. The parent is identified by a
|
||||
// specified
|
||||
// ResourceId, which must include both an ID and a type, such
|
||||
// as
|
||||
// project, folder, or organization.
|
||||
func (r *ProjectsService) Create(project *Project) *ProjectsCreateCall {
|
||||
c := &ProjectsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
@ -2176,7 +2182,7 @@ func (c *ProjectsCreateCall) Do(opts ...googleapi.CallOption) (*Project, error)
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Creates a Project resource.\n\nInitially, the Project resource is owned by its creator exclusively.\nThe creator can later grant permission to others to read or update the\nProject.\n\nSeveral APIs are activated automatically for the Project, including\nGoogle Cloud Storage.",
|
||||
// "description": "Creates a Project resource.\n\nInitially, the Project resource is owned by its creator exclusively.\nThe creator can later grant permission to others to read or update the\nProject.\n\nSeveral APIs are activated automatically for the Project, including\nGoogle Cloud Storage. The parent is identified by a specified\nResourceId, which must include both an ID and a type, such as\nproject, folder, or organization.",
|
||||
// "flatPath": "v1beta1/projects",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.projects.create",
|
||||
@ -2214,11 +2220,8 @@ type ProjectsDeleteCall struct {
|
||||
|
||||
// Delete: Marks the Project identified by the specified
|
||||
// `project_id` (for example, `my-project-123`) for deletion.
|
||||
// This method will only affect the Project if the following criteria
|
||||
// are met:
|
||||
//
|
||||
// + The Project does not have a billing account associated with it.
|
||||
// + The Project has a lifecycle state of
|
||||
// This method will only affect the Project if it has a lifecycle state
|
||||
// of
|
||||
// ACTIVE.
|
||||
//
|
||||
// This method changes the Project's lifecycle state from
|
||||
@ -2326,7 +2329,7 @@ func (c *ProjectsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Marks the Project identified by the specified\n`project_id` (for example, `my-project-123`) for deletion.\nThis method will only affect the Project if the following criteria are met:\n\n+ The Project does not have a billing account associated with it.\n+ The Project has a lifecycle state of\nACTIVE.\n\nThis method changes the Project's lifecycle state from\nACTIVE\nto DELETE_REQUESTED.\nThe deletion starts at an unspecified time, at which point the project is\nno longer accessible.\n\nUntil the deletion completes, you can check the lifecycle state\nchecked by retrieving the Project with GetProject,\nand the Project remains visible to ListProjects.\nHowever, you cannot update the project.\n\nAfter the deletion completes, the Project is not retrievable by\nthe GetProject and\nListProjects methods.\n\nThe caller must have modify permissions for this Project.",
|
||||
// "description": "Marks the Project identified by the specified\n`project_id` (for example, `my-project-123`) for deletion.\nThis method will only affect the Project if it has a lifecycle state of\nACTIVE.\n\nThis method changes the Project's lifecycle state from\nACTIVE\nto DELETE_REQUESTED.\nThe deletion starts at an unspecified time, at which point the project is\nno longer accessible.\n\nUntil the deletion completes, you can check the lifecycle state\nchecked by retrieving the Project with GetProject,\nand the Project remains visible to ListProjects.\nHowever, you cannot update the project.\n\nAfter the deletion completes, the Project is not retrievable by\nthe GetProject and\nListProjects methods.\n\nThe caller must have modify permissions for this Project.",
|
||||
// "flatPath": "v1beta1/projects/{projectId}",
|
||||
// "httpMethod": "DELETE",
|
||||
// "id": "cloudresourcemanager.projects.delete",
|
||||
|
848
vendor/google.golang.org/api/cloudresourcemanager/v2/cloudresourcemanager-api.json
generated
vendored
Normal file
848
vendor/google.golang.org/api/cloudresourcemanager/v2/cloudresourcemanager-api.json
generated
vendored
Normal file
@ -0,0 +1,848 @@
|
||||
{
|
||||
"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/cloud-platform.read-only": {
|
||||
"description": "View your data across Google Cloud Platform services"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"basePath": "",
|
||||
"baseUrl": "https://cloudresourcemanager.googleapis.com/",
|
||||
"batchPath": "batch",
|
||||
"canonicalName": "Cloud Resource Manager",
|
||||
"description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating project metadata.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://cloud.google.com/resource-manager",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"id": "cloudresourcemanager:v2",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "cloudresourcemanager",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"$.xgafv": {
|
||||
"description": "V1 error format.",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for response.",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"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",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"folders": {
|
||||
"methods": {
|
||||
"create": {
|
||||
"description": "Creates a Folder in the resource hierarchy.\nReturns an Operation which can be used to track the progress of the\nfolder creation workflow.\nUpon success the Operation.response field will be populated with the\ncreated Folder.\n\nIn order to succeed, the addition of this new Folder must not violate\nthe Folder naming, height or fanout constraints.\n\n+ The Folder's display_name must be distinct from all other Folder's that\nshare its parent.\n+ The addition of the Folder must not cause the active Folder hierarchy\nto exceed a height of 4. Note, the full active + deleted Folder hierarchy\nis allowed to reach a height of 8; this provides additional headroom when\nmoving folders that contain deleted folders.\n+ The addition of the Folder must not cause the total number of Folders\nunder its parent to exceed 100.\n\nIf the operation fails due to a folder constraint violation,\na PreconditionFailure explaining the violation will be returned.\nIf the failure occurs synchronously then the PreconditionFailure\nwill be returned via the Status.details field and if it occurs\nasynchronously then the PreconditionFailure will be returned\nvia the the Operation.error field.\n\nThe caller must have `resourcemanager.folders.create` permission on the\nidentified parent.",
|
||||
"flatPath": "v2/folders",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.folders.create",
|
||||
"parameterOrder": [],
|
||||
"parameters": {
|
||||
"parent": {
|
||||
"description": "The resource name of the new Folder's parent.\nMust be of the form `folders/{folder_id}` or `organizations/{org_id}`.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2/folders",
|
||||
"request": {
|
||||
"$ref": "Folder"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"description": "Requests deletion of a Folder. The Folder is moved into the\nDELETE_REQUESTED state\nimmediately, and is deleted approximately 30 days later. This method may\nonly be called on an empty Folder in the\nACTIVE state, where a Folder is empty if\nit doesn't contain any Folders or Projects in the\nACTIVE state.\nThe caller must have `resourcemanager.folders.delete` permission on the\nidentified folder.",
|
||||
"flatPath": "v2/folders/{foldersId}",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "cloudresourcemanager.folders.delete",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "the resource name of the Folder to be deleted.\nMust be of the form `folders/{folder_id}`.",
|
||||
"location": "path",
|
||||
"pattern": "^folders/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2/{+name}",
|
||||
"response": {
|
||||
"$ref": "Folder"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"description": "Retrieves a Folder identified by the supplied resource name.\nValid Folder resource names have the format `folders/{folder_id}`\n(for example, `folders/1234`).\nThe caller must have `resourcemanager.folders.get` permission on the\nidentified folder.",
|
||||
"flatPath": "v2/folders/{foldersId}",
|
||||
"httpMethod": "GET",
|
||||
"id": "cloudresourcemanager.folders.get",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The resource name of the Folder to retrieve.\nMust be of the form `folders/{folder_id}`.",
|
||||
"location": "path",
|
||||
"pattern": "^folders/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2/{+name}",
|
||||
"response": {
|
||||
"$ref": "Folder"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
]
|
||||
},
|
||||
"getIamPolicy": {
|
||||
"description": "Gets the access control policy for a Folder. The returned policy may be\nempty if no such policy or resource exists. The `resource` field should\nbe the Folder's resource name, e.g. \"folders/1234\".\nThe caller must have `resourcemanager.folders.getIamPolicy` permission\non the identified folder.",
|
||||
"flatPath": "v2/folders/{foldersId}:getIamPolicy",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.folders.getIamPolicy",
|
||||
"parameterOrder": [
|
||||
"resource"
|
||||
],
|
||||
"parameters": {
|
||||
"resource": {
|
||||
"description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
|
||||
"location": "path",
|
||||
"pattern": "^folders/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2/{+resource}:getIamPolicy",
|
||||
"request": {
|
||||
"$ref": "GetIamPolicyRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Policy"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists the Folders that are direct descendants of supplied parent resource.\nList provides a strongly consistent view of the Folders underneath\nthe specified parent resource.\nList returns Folders sorted based upon the (ascending) lexical ordering\nof their display_name.\nThe caller must have `resourcemanager.folders.list` permission on the\nidentified parent.",
|
||||
"flatPath": "v2/folders",
|
||||
"httpMethod": "GET",
|
||||
"id": "cloudresourcemanager.folders.list",
|
||||
"parameterOrder": [],
|
||||
"parameters": {
|
||||
"pageSize": {
|
||||
"description": "The maximum number of Folders to return in the response.\nThis field is optional.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "A pagination token returned from a previous call to `ListFolders`\nthat indicates where this listing should continue from.\nThis field is optional.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"parent": {
|
||||
"description": "The resource name of the Organization or Folder whose Folders are\nbeing listed.\nMust be of the form `folders/{folder_id}` or `organizations/{org_id}`.\nAccess to this method is controlled by checking the\n`resourcemanager.folders.list` permission on the `parent`.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"showDeleted": {
|
||||
"description": "Controls whether Folders in the\nDELETE_REQUESTED\nstate should be returned. Defaults to false. This field is optional.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"path": "v2/folders",
|
||||
"response": {
|
||||
"$ref": "ListFoldersResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
]
|
||||
},
|
||||
"move": {
|
||||
"description": "Moves a Folder under a new resource parent.\nReturns an Operation which can be used to track the progress of the\nfolder move workflow.\nUpon success the Operation.response field will be populated with the\nmoved Folder.\nUpon failure, a FolderOperationError categorizing the failure cause will\nbe returned - if the failure occurs synchronously then the\nFolderOperationError will be returned via the Status.details field\nand if it occurs asynchronously then the FolderOperation will be returned\nvia the the Operation.error field.\nIn addition, the Operation.metadata field will be populated with a\nFolderOperation message as an aid to stateless clients.\nFolder moves will be rejected if they violate either the naming, height\nor fanout constraints described in the\nCreateFolder documentation.\nThe caller must have `resourcemanager.folders.move` permission on the\nfolder's current and proposed new parent.",
|
||||
"flatPath": "v2/folders/{foldersId}:move",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.folders.move",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The resource name of the Folder to move.\nMust be of the form folders/{folder_id}",
|
||||
"location": "path",
|
||||
"pattern": "^folders/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2/{+name}:move",
|
||||
"request": {
|
||||
"$ref": "MoveFolderRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"description": "Updates a Folder, changing its display_name.\nChanges to the folder display_name will be rejected if they violate either\nthe display_name formatting rules or naming constraints described in\nthe CreateFolder documentation.\n\nThe Folder's display name must start and end with a letter or digit,\nmay contain letters, digits, spaces, hyphens and underscores and can be\nno longer than 30 characters. This is captured by the regular expression:\n[\\p{L}\\p{N}]({\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?.\nThe caller must have `resourcemanager.folders.update` permission on the\nidentified folder.\n\nIf the update fails due to the unique name constraint then a\nPreconditionFailure explaining this violation will be returned\nin the Status.details field.",
|
||||
"flatPath": "v2/folders/{foldersId}",
|
||||
"httpMethod": "PATCH",
|
||||
"id": "cloudresourcemanager.folders.patch",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Output only. The resource name of the Folder.\nIts format is `folders/{folder_id}`, for example: \"folders/1234\".",
|
||||
"location": "path",
|
||||
"pattern": "^folders/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"updateMask": {
|
||||
"description": "Fields to be updated.\nOnly the `display_name` can be updated.",
|
||||
"format": "google-fieldmask",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2/{+name}",
|
||||
"request": {
|
||||
"$ref": "Folder"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Folder"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"search": {
|
||||
"description": "Search for folders that match specific filter criteria.\nSearch provides an eventually consistent view of the folders a user has\naccess to which meet the specified filter criteria.\n\nThis will only return folders on which the caller has the\npermission `resourcemanager.folders.get`.",
|
||||
"flatPath": "v2/folders:search",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.folders.search",
|
||||
"parameterOrder": [],
|
||||
"parameters": {},
|
||||
"path": "v2/folders:search",
|
||||
"request": {
|
||||
"$ref": "SearchFoldersRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "SearchFoldersResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
]
|
||||
},
|
||||
"setIamPolicy": {
|
||||
"description": "Sets the access control policy on a Folder, replacing any existing policy.\nThe `resource` field should be the Folder's resource name, e.g.\n\"folders/1234\".\nThe caller must have `resourcemanager.folders.setIamPolicy` permission\non the identified folder.",
|
||||
"flatPath": "v2/folders/{foldersId}:setIamPolicy",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.folders.setIamPolicy",
|
||||
"parameterOrder": [
|
||||
"resource"
|
||||
],
|
||||
"parameters": {
|
||||
"resource": {
|
||||
"description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
|
||||
"location": "path",
|
||||
"pattern": "^folders/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2/{+resource}:setIamPolicy",
|
||||
"request": {
|
||||
"$ref": "SetIamPolicyRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Policy"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"testIamPermissions": {
|
||||
"description": "Returns permissions that a caller has on the specified Folder.\nThe `resource` field should be the Folder's resource name,\ne.g. \"folders/1234\".\n\nThere are no permissions required for making this API call.",
|
||||
"flatPath": "v2/folders/{foldersId}:testIamPermissions",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.folders.testIamPermissions",
|
||||
"parameterOrder": [
|
||||
"resource"
|
||||
],
|
||||
"parameters": {
|
||||
"resource": {
|
||||
"description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
|
||||
"location": "path",
|
||||
"pattern": "^folders/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2/{+resource}:testIamPermissions",
|
||||
"request": {
|
||||
"$ref": "TestIamPermissionsRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "TestIamPermissionsResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"undelete": {
|
||||
"description": "Cancels the deletion request for a Folder. This method may only be\ncalled on a Folder in the\nDELETE_REQUESTED state.\nIn order to succeed, the Folder's parent must be in the\nACTIVE state.\nIn addition, reintroducing the folder into the tree must not violate\nfolder naming, height and fanout constraints described in the\nCreateFolder documentation.\nThe caller must have `resourcemanager.folders.undelete` permission on the\nidentified folder.",
|
||||
"flatPath": "v2/folders/{foldersId}:undelete",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.folders.undelete",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The resource name of the Folder to undelete.\nMust be of the form `folders/{folder_id}`.",
|
||||
"location": "path",
|
||||
"pattern": "^folders/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2/{+name}:undelete",
|
||||
"request": {
|
||||
"$ref": "UndeleteFolderRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Folder"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180315",
|
||||
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
|
||||
"schemas": {
|
||||
"AuditConfig": {
|
||||
"description": "Specifies the audit configuration for a service.\nThe configuration determines which permission types are logged, and what\nidentities, if any, are exempted from logging.\nAn AuditConfig must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service,\nthe union of the two AuditConfigs is used for that service: the log_types\nspecified in each AuditConfig are enabled, and the exempted_members in each\nAuditLogConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n {\n \"audit_configs\": [\n {\n \"service\": \"allServices\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n },\n {\n \"log_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n \"service\": \"fooservice.googleapis.com\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n },\n {\n \"log_type\": \"DATA_WRITE\",\n \"exempted_members\": [\n \"user:bar@gmail.com\"\n ]\n }\n ]\n }\n ]\n }\n\nFor fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@gmail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRITE logging.",
|
||||
"id": "AuditConfig",
|
||||
"properties": {
|
||||
"auditLogConfigs": {
|
||||
"description": "The configuration for logging of each type of permission.\nNext ID: 4",
|
||||
"items": {
|
||||
"$ref": "AuditLogConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"service": {
|
||||
"description": "Specifies a service that will be enabled for audit logging.\nFor example, `storage.googleapis.com`, `cloudsql.googleapis.com`.\n`allServices` is a special value that covers all services.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AuditLogConfig": {
|
||||
"description": "Provides the configuration for logging a type of permissions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting\nfoo@gmail.com from DATA_READ logging.",
|
||||
"id": "AuditLogConfig",
|
||||
"properties": {
|
||||
"exemptedMembers": {
|
||||
"description": "Specifies the identities that do not cause logging for this type of\npermission.\nFollows the same format of Binding.members.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"logType": {
|
||||
"description": "The log type that this config enables.",
|
||||
"enum": [
|
||||
"LOG_TYPE_UNSPECIFIED",
|
||||
"ADMIN_READ",
|
||||
"DATA_WRITE",
|
||||
"DATA_READ"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Default case. Should never be this.",
|
||||
"Admin reads. Example: CloudIAM getIamPolicy",
|
||||
"Data writes. Example: CloudSQL Users create",
|
||||
"Data reads. Example: CloudSQL Users list"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Binding": {
|
||||
"description": "Associates `members` with a `role`.",
|
||||
"id": "Binding",
|
||||
"properties": {
|
||||
"members": {
|
||||
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"role": {
|
||||
"description": "Role that is assigned to `members`.\nFor example, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Folder": {
|
||||
"description": "A Folder in an Organization's resource hierarchy, used to\norganize that Organization's resources.",
|
||||
"id": "Folder",
|
||||
"properties": {
|
||||
"createTime": {
|
||||
"description": "Output only. Timestamp when the Folder was created. Assigned by the server.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"displayName": {
|
||||
"description": "The folder’s display name.\nA folder’s display name must be unique amongst its siblings, e.g.\nno two folders with the same parent can share the same display name.\nThe display name must start and end with a letter or digit, may contain\nletters, digits, spaces, hyphens and underscores and can be no longer\nthan 30 characters. This is captured by the regular expression:\n[\\p{L}\\p{N}]({\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?.",
|
||||
"type": "string"
|
||||
},
|
||||
"lifecycleState": {
|
||||
"description": "Output only. The lifecycle state of the folder.\nUpdates to the lifecycle_state must be performed via\nDeleteFolder and\nUndeleteFolder.",
|
||||
"enum": [
|
||||
"LIFECYCLE_STATE_UNSPECIFIED",
|
||||
"ACTIVE",
|
||||
"DELETE_REQUESTED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Unspecified state.",
|
||||
"The normal and active state.",
|
||||
"The folder has been marked for deletion by the user."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "Output only. The resource name of the Folder.\nIts format is `folders/{folder_id}`, for example: \"folders/1234\".",
|
||||
"type": "string"
|
||||
},
|
||||
"parent": {
|
||||
"description": "The Folder’s parent's resource name.\nUpdates to the folder's parent must be performed via\nMoveFolder.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"FolderOperation": {
|
||||
"description": "Metadata describing a long running folder operation",
|
||||
"id": "FolderOperation",
|
||||
"properties": {
|
||||
"destinationParent": {
|
||||
"description": "The resource name of the folder or organization we are either creating\nthe folder under or moving the folder to.",
|
||||
"type": "string"
|
||||
},
|
||||
"displayName": {
|
||||
"description": "The display name of the folder.",
|
||||
"type": "string"
|
||||
},
|
||||
"operationType": {
|
||||
"description": "The type of this operation.",
|
||||
"enum": [
|
||||
"OPERATION_TYPE_UNSPECIFIED",
|
||||
"CREATE",
|
||||
"MOVE"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Operation type not specified.",
|
||||
"A create folder operation.",
|
||||
"A move folder operation."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"sourceParent": {
|
||||
"description": "The resource name of the folder's parent.\nOnly applicable when the operation_type is MOVE.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"FolderOperationError": {
|
||||
"description": "A classification of the Folder Operation error.",
|
||||
"id": "FolderOperationError",
|
||||
"properties": {
|
||||
"errorMessageId": {
|
||||
"description": "The type of operation error experienced.",
|
||||
"enum": [
|
||||
"ERROR_TYPE_UNSPECIFIED",
|
||||
"ACTIVE_FOLDER_HEIGHT_VIOLATION",
|
||||
"MAX_CHILD_FOLDERS_VIOLATION",
|
||||
"FOLDER_NAME_UNIQUENESS_VIOLATION",
|
||||
"RESOURCE_DELETED_VIOLATION",
|
||||
"PARENT_DELETED_VIOLATION",
|
||||
"CYCLE_INTRODUCED_VIOLATION",
|
||||
"FOLDER_BEING_MOVED_VIOLATION",
|
||||
"FOLDER_TO_DELETE_NON_EMPTY_VIOLATION",
|
||||
"DELETED_FOLDER_HEIGHT_VIOLATION"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"The error type was unrecognized or unspecified.",
|
||||
"The attempted action would violate the max folder depth constraint.",
|
||||
"The attempted action would violate the max child folders constraint.",
|
||||
"The attempted action would violate the locally-unique folder\ndisplay_name constraint.",
|
||||
"The resource being moved has been deleted.",
|
||||
"The resource a folder was being added to has been deleted.",
|
||||
"The attempted action would introduce cycle in resource path.",
|
||||
"The attempted action would move a folder that is already being moved.",
|
||||
"The folder the caller is trying to delete contains active resources.",
|
||||
"The attempted action would violate the max deleted folder depth\nconstraint."
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GetIamPolicyRequest": {
|
||||
"description": "Request message for `GetIamPolicy` method.",
|
||||
"id": "GetIamPolicyRequest",
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"ListFoldersResponse": {
|
||||
"description": "The ListFolders response message.",
|
||||
"id": "ListFoldersResponse",
|
||||
"properties": {
|
||||
"folders": {
|
||||
"description": "A possibly paginated list of Folders that are direct descendants of\nthe specified parent resource.",
|
||||
"items": {
|
||||
"$ref": "Folder"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "A pagination token returned from a previous call to `ListFolders`\nthat indicates from where listing should continue.\nThis field is optional.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"MoveFolderRequest": {
|
||||
"description": "The MoveFolder request message.",
|
||||
"id": "MoveFolderRequest",
|
||||
"properties": {
|
||||
"destinationParent": {
|
||||
"description": "The resource name of the Folder or Organization to reparent\nthe folder under.\nMust be of the form `folders/{folder_id}` or `organizations/{org_id}`.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Operation": {
|
||||
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
|
||||
"id": "Operation",
|
||||
"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"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Policy": {
|
||||
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\",\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
|
||||
"id": "Policy",
|
||||
"properties": {
|
||||
"auditConfigs": {
|
||||
"description": "Specifies cloud audit logging configuration for this policy.",
|
||||
"items": {
|
||||
"$ref": "AuditConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"bindings": {
|
||||
"description": "Associates a list of `members` to a `role`.\n`bindings` with no members will result in an error.",
|
||||
"items": {
|
||||
"$ref": "Binding"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"etag": {
|
||||
"description": "`etag` is used for optimistic concurrency control as a way to help\nprevent simultaneous updates of a policy from overwriting each other.\nIt is strongly suggested that systems make use of the `etag` in the\nread-modify-write cycle to perform policy updates in order to avoid race\nconditions: An `etag` is returned in the response to `getIamPolicy`, and\nsystems are expected to put that etag in the request to `setIamPolicy` to\nensure that their change will be applied to the same version of the policy.\n\nIf no `etag` is provided in the call to `setIamPolicy`, then the existing\npolicy is overwritten blindly.",
|
||||
"format": "byte",
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"description": "Deprecated.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ProjectCreationStatus": {
|
||||
"description": "A status object which is used as the `metadata` field for the Operation\nreturned by CreateProject. It provides insight for when significant phases of\nProject creation have completed.",
|
||||
"id": "ProjectCreationStatus",
|
||||
"properties": {
|
||||
"createTime": {
|
||||
"description": "Creation time of the project creation workflow.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"gettable": {
|
||||
"description": "True if the project can be retrieved using GetProject. No other operations\non the project are guaranteed to work until the project creation is\ncomplete.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"ready": {
|
||||
"description": "True if the project creation process is complete.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SearchFoldersRequest": {
|
||||
"description": "The request message for searching folders.",
|
||||
"id": "SearchFoldersRequest",
|
||||
"properties": {
|
||||
"pageSize": {
|
||||
"description": "The maximum number of folders to return in the response.\nThis field is optional.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "A pagination token returned from a previous call to `SearchFolders`\nthat indicates from where search should continue.\nThis field is optional.",
|
||||
"type": "string"
|
||||
},
|
||||
"query": {
|
||||
"description": "Search criteria used to select the Folders to return.\nIf no search criteria is specified then all accessible folders will be\nreturned.\n\nQuery expressions can be used to restrict results based upon displayName,\nlifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR`\ncan be used along with the suffix wildcard symbol `*`.\n\nSome example queries are:\n\n|Query | Description|\n|----- | -----------|\n|displayName=Test* | Folders whose display name starts with \"Test\".\n|lifecycleState=ACTIVE | Folders whose lifecycleState is ACTIVE.\n|parent=folders/123 | Folders whose parent is \"folders/123\".\n|parent=folders/123 AND lifecycleState=ACTIVE | Active folders whose parent is \"folders/123\".|",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SearchFoldersResponse": {
|
||||
"description": "The response message for searching folders.",
|
||||
"id": "SearchFoldersResponse",
|
||||
"properties": {
|
||||
"folders": {
|
||||
"description": "A possibly paginated folder search results.\nthe specified parent resource.",
|
||||
"items": {
|
||||
"$ref": "Folder"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "A pagination token returned from a previous call to `SearchFolders`\nthat indicates from where searching should continue.\nThis field is optional.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SetIamPolicyRequest": {
|
||||
"description": "Request message for `SetIamPolicy` method.",
|
||||
"id": "SetIamPolicyRequest",
|
||||
"properties": {
|
||||
"policy": {
|
||||
"$ref": "Policy",
|
||||
"description": "REQUIRED: The complete policy to be applied to the `resource`. The size of\nthe policy is limited to a few 10s of KB. An empty policy is a\nvalid policy but certain Cloud Platform services (such as Projects)\nmight reject them."
|
||||
},
|
||||
"updateMask": {
|
||||
"description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only\nthe fields in the mask will be modified. If no mask is provided, the\nfollowing default mask is used:\npaths: \"bindings, etag\"\nThis field is only used by Cloud IAM.",
|
||||
"format": "google-fieldmask",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"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.",
|
||||
"id": "Status",
|
||||
"properties": {
|
||||
"code": {
|
||||
"description": "The status code, which should be an enum value of google.rpc.Code.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"TestIamPermissionsRequest": {
|
||||
"description": "Request message for `TestIamPermissions` method.",
|
||||
"id": "TestIamPermissionsRequest",
|
||||
"properties": {
|
||||
"permissions": {
|
||||
"description": "The set of permissions to check for the `resource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"TestIamPermissionsResponse": {
|
||||
"description": "Response message for `TestIamPermissions` method.",
|
||||
"id": "TestIamPermissionsResponse",
|
||||
"properties": {
|
||||
"permissions": {
|
||||
"description": "A subset of `TestPermissionsRequest.permissions` that the caller is\nallowed.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UndeleteFolderRequest": {
|
||||
"description": "The UndeleteFolder request message.",
|
||||
"id": "UndeleteFolderRequest",
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "",
|
||||
"title": "Cloud Resource Manager API",
|
||||
"version": "v2"
|
||||
}
|
2826
vendor/google.golang.org/api/cloudresourcemanager/v2/cloudresourcemanager-gen.go
generated
vendored
Normal file
2826
vendor/google.golang.org/api/cloudresourcemanager/v2/cloudresourcemanager-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1474
vendor/google.golang.org/api/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json
generated
vendored
1474
vendor/google.golang.org/api/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
// Package cloudresourcemanager provides access to the Google Cloud Resource Manager API.
|
||||
// Package cloudresourcemanager provides access to the Cloud Resource Manager API.
|
||||
//
|
||||
// See https://cloud.google.com/resource-manager
|
||||
//
|
||||
@ -99,7 +99,7 @@ type FoldersService struct {
|
||||
// log_types
|
||||
// specified in each AuditConfig are enabled, and the exempted_members
|
||||
// in each
|
||||
// AuditConfig are exempted.
|
||||
// AuditLogConfig are exempted.
|
||||
//
|
||||
// Example Policy with multiple AuditConfigs:
|
||||
//
|
||||
|
802
vendor/google.golang.org/api/cloudshell/v1/cloudshell-api.json
generated
vendored
802
vendor/google.golang.org/api/cloudshell/v1/cloudshell-api.json
generated
vendored
@ -1,51 +1,339 @@
|
||||
{
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"basePath": "",
|
||||
"baseUrl": "https://cloudshell.googleapis.com/",
|
||||
"batchPath": "batch",
|
||||
"canonicalName": "Cloud Shell",
|
||||
"description": "Allows users to start, configure, and connect to interactive shell sessions running in the cloud.\n",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": true,
|
||||
"documentationLink": "https://cloud.google.com/shell/docs/",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"id": "cloudshell:v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "cloudshell",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"$.xgafv": {
|
||||
"description": "V1 error format.",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for response.",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"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",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"operations": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.",
|
||||
"flatPath": "v1/operations/{operationsId}:cancel",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudshell.operations.cancel",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The name of the operation resource to be cancelled.",
|
||||
"location": "path",
|
||||
"pattern": "^operations/.+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}:cancel",
|
||||
"request": {
|
||||
"$ref": "CancelOperationRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"description": "Deletes a long-running operation. This method indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.",
|
||||
"flatPath": "v1/operations/{operationsId}",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "cloudshell.operations.delete",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The name of the operation resource to be deleted.",
|
||||
"location": "path",
|
||||
"pattern": "^operations/.+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}",
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"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.",
|
||||
"flatPath": "v1/operations/{operationsId}",
|
||||
"httpMethod": "GET",
|
||||
"id": "cloudshell.operations.get",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The name of the operation resource.",
|
||||
"location": "path",
|
||||
"pattern": "^operations/.+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}",
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"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.",
|
||||
"flatPath": "v1/operations",
|
||||
"httpMethod": "GET",
|
||||
"id": "cloudshell.operations.list",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"filter": {
|
||||
"description": "The standard list filter.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "The name of the operation's parent resource.",
|
||||
"location": "path",
|
||||
"pattern": "^operations$",
|
||||
"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": "v1/{+name}",
|
||||
"response": {
|
||||
"$ref": "ListOperationsResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180203",
|
||||
"rootUrl": "https://cloudshell.googleapis.com/",
|
||||
"schemas": {
|
||||
"CancelOperationRequest": {
|
||||
"type": "object",
|
||||
"properties": {},
|
||||
"description": "The request message for Operations.CancelOperation.",
|
||||
"id": "CancelOperationRequest",
|
||||
"description": "The request message for Operations.CancelOperation."
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"StartEnvironmentMetadata": {
|
||||
"description": "Message included in the metadata field of operations returned from\nStartEnvironment.",
|
||||
"type": "object",
|
||||
"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 `{}`.",
|
||||
"id": "Empty",
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"Environment": {
|
||||
"description": "A Cloud Shell environment, which is defined as the combination of a Docker\nimage specifying what is installed on the environment and a home directory\ncontaining the user's data that will remain across sessions. Each user has a\nsingle environment with the ID \"default\".",
|
||||
"id": "Environment",
|
||||
"properties": {
|
||||
"dockerImage": {
|
||||
"description": "Required. Full path to the Docker image used to run this environment, e.g.\n\"gcr.io/dev-con/cloud-devshell:latest\".",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "Output only. The environment's identifier, which is always \"default\".",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the\nemail address of the user to whom this environment belongs, and\n`{environment_id}` is the identifier of this environment. For example,\n`users/someone@example.com/environments/default`.",
|
||||
"type": "string"
|
||||
},
|
||||
"publicKeys": {
|
||||
"description": "Output only. Public keys associated with the environment. Clients can\nconnect to this environment via SSH only if they possess a private key\ncorresponding to at least one of these public keys. Keys can be added to or\nremoved from the environment using the CreatePublicKey and DeletePublicKey\nmethods.",
|
||||
"items": {
|
||||
"$ref": "PublicKey"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"sshHost": {
|
||||
"description": "Output only. Host to which clients can connect to initiate SSH sessions\nwith the environment.",
|
||||
"type": "string"
|
||||
},
|
||||
"sshPort": {
|
||||
"description": "Output only. Port to which clients can connect to initiate SSH sessions\nwith the environment.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"sshUsername": {
|
||||
"description": "Output only. Username that clients should use when initiating SSH sessions\nwith the environment.",
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"enumDescriptions": [
|
||||
"The environment's start state is unknown.",
|
||||
"The environment is in the process of being started, but no additional\ndetails are available.",
|
||||
"Startup is waiting for the user's disk to be unarchived. This can happen\nwhen the user returns to Cloud Shell after not having used it for a\nwhile, and suggests that startup will take longer than normal.",
|
||||
"Startup is complete and the user should be able to establish an SSH\nconnection to their environment."
|
||||
],
|
||||
"description": "Output only. Current execution state of this environment.",
|
||||
"enum": [
|
||||
"STATE_UNSPECIFIED",
|
||||
"DISABLED",
|
||||
"STARTING",
|
||||
"UNARCHIVING_DISK",
|
||||
"FINISHED"
|
||||
"RUNNING"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"The environment's states is unknown.",
|
||||
"The environment is not running and can't be connected to. Starting the\nenvironment will transition it to the STARTING state.",
|
||||
"The environment is being started but is not yet ready to accept\nconnections.",
|
||||
"The environment is running and ready to accept connections. It will\nautomatically transition back to DISABLED after a period of inactivity or\nif another environment is started."
|
||||
],
|
||||
"description": "Current state of the environment being started.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "StartEnvironmentMetadata"
|
||||
"type": "object"
|
||||
},
|
||||
"ListOperationsResponse": {
|
||||
"description": "The response message for Operations.ListOperations.",
|
||||
"id": "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"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Operation": {
|
||||
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
|
||||
"type": "object",
|
||||
"id": "Operation",
|
||||
"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"
|
||||
"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"
|
||||
},
|
||||
"error": {
|
||||
"$ref": "Status",
|
||||
@ -59,138 +347,27 @@
|
||||
"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": "Operation"
|
||||
},
|
||||
"ListOperationsResponse": {
|
||||
"description": "The response message for Operations.ListOperations.",
|
||||
"type": "object",
|
||||
"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.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Operation"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ListOperationsResponse"
|
||||
},
|
||||
"Environment": {
|
||||
"properties": {
|
||||
"publicKeys": {
|
||||
"description": "Output only. Public keys associated with the environment. Clients can\nconnect to this environment via SSH only if they possess a private key\ncorresponding to at least one of these public keys. Keys can be added to or\nremoved from the environment using the CreatePublicKey and DeletePublicKey\nmethods.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "PublicKey"
|
||||
}
|
||||
},
|
||||
"dockerImage": {
|
||||
"type": "string",
|
||||
"description": "Required. Full path to the Docker image used to run this environment, e.g.\n\"gcr.io/dev-con/cloud-devshell:latest\"."
|
||||
},
|
||||
"state": {
|
||||
"description": "Output only. Current execution state of this environment.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"The environment's states is unknown.",
|
||||
"The environment is not running and can't be connected to. Starting the\nenvironment will transition it to the STARTING state.",
|
||||
"The environment is being started but is not yet ready to accept\nconnections.",
|
||||
"The environment is running and ready to accept connections. It will\nautomatically transition back to DISABLED after a period of inactivity or\nif another environment is started."
|
||||
],
|
||||
"enum": [
|
||||
"STATE_UNSPECIFIED",
|
||||
"DISABLED",
|
||||
"STARTING",
|
||||
"RUNNING"
|
||||
]
|
||||
},
|
||||
"name": {
|
||||
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the\nemail address of the user to whom this environment belongs, and\n`{environment_id}` is the identifier of this environment. For example,\n`users/someone@example.com/environments/default`.",
|
||||
"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"
|
||||
},
|
||||
"sshHost": {
|
||||
"description": "Output only. Host to which clients can connect to initiate SSH sessions\nwith the environment.",
|
||||
"type": "string"
|
||||
},
|
||||
"sshPort": {
|
||||
"description": "Output only. Port to which clients can connect to initiate SSH sessions\nwith the environment.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"id": {
|
||||
"description": "Output only. The environment's identifier, which is always \"default\".",
|
||||
"type": "string"
|
||||
},
|
||||
"sshUsername": {
|
||||
"description": "Output only. Username that clients should use when initiating SSH sessions\nwith the environment.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "Environment",
|
||||
"description": "A Cloud Shell environment, which is defined as the combination of a Docker\nimage specifying what is installed on the environment and a home directory\ncontaining the user's data that will remain across sessions. Each user has a\nsingle environment with the ID \"default\".",
|
||||
"type": "object"
|
||||
},
|
||||
"StartEnvironmentResponse": {
|
||||
"description": "Message included in the response field of operations returned from\nStartEnvironment once the\noperation is complete.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"environment": {
|
||||
"description": "Environment that was started.",
|
||||
"$ref": "Environment"
|
||||
}
|
||||
},
|
||||
"id": "StartEnvironmentResponse"
|
||||
},
|
||||
"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": {
|
||||
"description": "The status code, which should be an enum value of google.rpc.Code.",
|
||||
"format": "int32",
|
||||
"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": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"type": "object"
|
||||
"response": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use."
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "Status"
|
||||
"type": "object"
|
||||
},
|
||||
"PublicKey": {
|
||||
"description": "A public SSH key, corresponding to a private SSH key held by the client.",
|
||||
"type": "object",
|
||||
"id": "PublicKey",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.\n`{owner_email}` is the email address of the user to whom the key belongs.\n`{environment_id}` is the identifier of the environment to which the key\ngrants access. `{key_id}` is the unique identifier of the key. For example,\n`users/someone@example.com/environments/default/publicKeys/myKey`."
|
||||
},
|
||||
"key": {
|
||||
"description": "Required. Content of this key.",
|
||||
"format": "byte",
|
||||
"type": "string"
|
||||
},
|
||||
"format": {
|
||||
"description": "Required. Format of this key's content.",
|
||||
"enum": [
|
||||
"FORMAT_UNSPECIFIED",
|
||||
"SSH_DSS",
|
||||
@ -199,8 +376,6 @@
|
||||
"ECDSA_SHA2_NISTP384",
|
||||
"ECDSA_SHA2_NISTP521"
|
||||
],
|
||||
"description": "Required. Format of this key's content.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Unknown format. Do not use.",
|
||||
"`ssh-dss` key format (see RFC4253).",
|
||||
@ -208,260 +383,85 @@
|
||||
"`ecdsa-sha2-nistp256` key format (see RFC5656).",
|
||||
"`ecdsa-sha2-nistp384` key format (see RFC5656).",
|
||||
"`ecdsa-sha2-nistp521` key format (see RFC5656)."
|
||||
]
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"description": "Required. Content of this key.",
|
||||
"format": "byte",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.\n`{owner_email}` is the email address of the user to whom the key belongs.\n`{environment_id}` is the identifier of the environment to which the key\ngrants access. `{key_id}` is the unique identifier of the key. For example,\n`users/someone@example.com/environments/default/publicKeys/myKey`.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "PublicKey"
|
||||
"type": "object"
|
||||
},
|
||||
"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 `{}`.",
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"protocol": "rest",
|
||||
"canonicalName": "Cloud Shell",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
"StartEnvironmentMetadata": {
|
||||
"description": "Message included in the metadata field of operations returned from\nStartEnvironment.",
|
||||
"id": "StartEnvironmentMetadata",
|
||||
"properties": {
|
||||
"state": {
|
||||
"description": "Current state of the environment being started.",
|
||||
"enum": [
|
||||
"STATE_UNSPECIFIED",
|
||||
"STARTING",
|
||||
"UNARCHIVING_DISK",
|
||||
"FINISHED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"The environment's start state is unknown.",
|
||||
"The environment is in the process of being started, but no additional\ndetails are available.",
|
||||
"Startup is waiting for the user's disk to be unarchived. This can happen\nwhen the user returns to Cloud Shell after not having used it for a\nwhile, and suggests that startup will take longer than normal.",
|
||||
"Startup is complete and the user should be able to establish an SSH\nconnection to their environment."
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://cloudshell.googleapis.com/",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "cloudshell",
|
||||
"batchPath": "batch",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
"title": "Cloud Shell API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"operations": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"id": "cloudshell.operations.cancel",
|
||||
"path": "v1/{+name}:cancel",
|
||||
"request": {
|
||||
"$ref": "CancelOperationRequest"
|
||||
},
|
||||
"description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.",
|
||||
"httpMethod": "POST",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The name of the operation resource to be cancelled.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^operations/.+$",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"flatPath": "v1/operations/{operationsId}:cancel"
|
||||
},
|
||||
"delete": {
|
||||
"path": "v1/{+name}",
|
||||
"id": "cloudshell.operations.delete",
|
||||
"description": "Deletes a long-running operation. This method indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.",
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"httpMethod": "DELETE",
|
||||
"parameters": {
|
||||
"name": {
|
||||
"pattern": "^operations/.+$",
|
||||
"location": "path",
|
||||
"description": "The name of the operation resource to be deleted.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"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.",
|
||||
"response": {
|
||||
"$ref": "ListOperationsResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"filter": {
|
||||
"location": "query",
|
||||
"description": "The standard list filter.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"location": "path",
|
||||
"description": "The name of the operation's parent resource.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^operations$"
|
||||
},
|
||||
"pageToken": {
|
||||
"location": "query",
|
||||
"description": "The standard list page token.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"location": "query",
|
||||
"description": "The standard list page size.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"flatPath": "v1/operations",
|
||||
"path": "v1/{+name}",
|
||||
"id": "cloudshell.operations.list"
|
||||
},
|
||||
"get": {
|
||||
"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.",
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"pattern": "^operations/.+$",
|
||||
"location": "path",
|
||||
"description": "The name of the operation resource.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/operations/{operationsId}",
|
||||
"path": "v1/{+name}",
|
||||
"id": "cloudshell.operations.get"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"StartEnvironmentResponse": {
|
||||
"description": "Message included in the response field of operations returned from\nStartEnvironment once the\noperation is complete.",
|
||||
"id": "StartEnvironmentResponse",
|
||||
"properties": {
|
||||
"environment": {
|
||||
"$ref": "Environment",
|
||||
"description": "Environment that was started."
|
||||
}
|
||||
}
|
||||
},
|
||||
"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.",
|
||||
"id": "Status",
|
||||
"properties": {
|
||||
"code": {
|
||||
"description": "The status code, which should be an enum value of google.rpc.Code.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"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": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "OAuth access token."
|
||||
},
|
||||
"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.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"bearer_token": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token."
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"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.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "JSONP"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"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",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json"
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://cloudshell.googleapis.com/",
|
||||
"servicePath": "",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "Allows users to start, configure, and connect to interactive shell sessions running in the cloud.\n",
|
||||
"basePath": "",
|
||||
"id": "cloudshell:v1",
|
||||
"documentationLink": "https://cloud.google.com/shell/docs/",
|
||||
"revision": "20180118"
|
||||
}
|
||||
"title": "Cloud Shell API",
|
||||
"version": "v1",
|
||||
"version_module": true
|
||||
}
|
744
vendor/google.golang.org/api/cloudshell/v1alpha1/cloudshell-api.json
generated
vendored
744
vendor/google.golang.org/api/cloudshell/v1alpha1/cloudshell-api.json
generated
vendored
@ -1,159 +1,267 @@
|
||||
{
|
||||
"rootUrl": "https://cloudshell.googleapis.com/",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "cloudshell",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"basePath": "",
|
||||
"baseUrl": "https://cloudshell.googleapis.com/",
|
||||
"batchPath": "batch",
|
||||
"canonicalName": "Cloud Shell",
|
||||
"description": "Allows users to start, configure, and connect to interactive shell sessions running in the cloud.\n",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://cloud.google.com/shell/docs/",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
"title": "Cloud Shell API",
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"id": "cloudshell:v1alpha1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "cloudshell",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"$.xgafv": {
|
||||
"description": "V1 error format.",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for response.",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"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",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"users": {
|
||||
"resources": {
|
||||
"environments": {
|
||||
"methods": {
|
||||
"start": {
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"get": {
|
||||
"description": "Gets an environment. Returns NOT_FOUND if the environment does not exist.",
|
||||
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}",
|
||||
"httpMethod": "GET",
|
||||
"id": "cloudshell.users.environments.get",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"httpMethod": "POST",
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Name of the requested resource, for example `users/me/environments/default`\nor `users/someone@example.com/environments/default`.",
|
||||
"location": "path",
|
||||
"pattern": "^users/[^/]+/environments/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1alpha1/{+name}",
|
||||
"response": {
|
||||
"$ref": "Environment"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"description": "Updates an existing environment.",
|
||||
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}",
|
||||
"httpMethod": "PATCH",
|
||||
"id": "cloudshell.users.environments.patch",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Name of the resource to be updated, for example\n`users/me/environments/default` or\n`users/someone@example.com/environments/default`.",
|
||||
"location": "path",
|
||||
"pattern": "^users/[^/]+/environments/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"updateMask": {
|
||||
"description": "Mask specifying which fields in the environment should be updated.",
|
||||
"format": "google-fieldmask",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1alpha1/{+name}",
|
||||
"request": {
|
||||
"$ref": "Environment"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Environment"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"start": {
|
||||
"description": "Starts an existing environment, allowing clients to connect to it. The\nreturned operation will contain an instance of StartEnvironmentMetadata in\nits metadata field. Users can wait for the environment to start by polling\nthis operation via GetOperation. Once the environment has finished starting\nand is ready to accept connections, the operation will contain a\nStartEnvironmentResponse in its response field.",
|
||||
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}:start",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudshell.users.environments.start",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Name of the resource that should be started, for example\n`users/me/environments/default` or\n`users/someone@example.com/environments/default`.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"location": "path",
|
||||
"pattern": "^users/[^/]+/environments/[^/]+$",
|
||||
"location": "path"
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}:start",
|
||||
"path": "v1alpha1/{+name}:start",
|
||||
"id": "cloudshell.users.environments.start",
|
||||
"description": "Starts an existing environment, allowing clients to connect to it. The\nreturned operation will contain an instance of StartEnvironmentMetadata in\nits metadata field. Users can wait for the environment to start by polling\nthis operation via GetOperation. Once the environment has finished starting\nand is ready to accept connections, the operation will contain a\nStartEnvironmentResponse in its response field.",
|
||||
"request": {
|
||||
"$ref": "StartEnvironmentRequest"
|
||||
}
|
||||
},
|
||||
"get": {
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Environment"
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"location": "path",
|
||||
"description": "Name of the requested resource, for example `users/me/environments/default`\nor `users/someone@example.com/environments/default`.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^users/[^/]+/environments/[^/]+$"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}",
|
||||
"id": "cloudshell.users.environments.get",
|
||||
"path": "v1alpha1/{+name}",
|
||||
"description": "Gets an environment. Returns NOT_FOUND if the environment does not exist."
|
||||
},
|
||||
"patch": {
|
||||
"request": {
|
||||
"$ref": "Environment"
|
||||
},
|
||||
"description": "Updates an existing environment.",
|
||||
"httpMethod": "PATCH",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Environment"
|
||||
},
|
||||
"parameters": {
|
||||
"updateMask": {
|
||||
"location": "query",
|
||||
"description": "Mask specifying which fields in the environment should be updated.",
|
||||
"format": "google-fieldmask",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"pattern": "^users/[^/]+/environments/[^/]+$",
|
||||
"location": "path",
|
||||
"description": "Name of the resource to be updated, for example\n`users/me/environments/default` or\n`users/someone@example.com/environments/default`.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}",
|
||||
"id": "cloudshell.users.environments.patch",
|
||||
"path": "v1alpha1/{+name}"
|
||||
]
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"publicKeys": {
|
||||
"methods": {
|
||||
"create": {
|
||||
"id": "cloudshell.users.environments.publicKeys.create",
|
||||
"path": "v1alpha1/{+parent}/publicKeys",
|
||||
"description": "Adds a public SSH key to an environment, allowing clients with the\ncorresponding private key to connect to that environment via SSH. If a key\nwith the same format and content already exists, this will return the\nexisting key.",
|
||||
"request": {
|
||||
"$ref": "CreatePublicKeyRequest"
|
||||
},
|
||||
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}/publicKeys",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudshell.users.environments.publicKeys.create",
|
||||
"parameterOrder": [
|
||||
"parent"
|
||||
],
|
||||
"parameters": {
|
||||
"parent": {
|
||||
"description": "Parent resource name, e.g. `users/me/environments/default`.",
|
||||
"location": "path",
|
||||
"pattern": "^users/[^/]+/environments/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1alpha1/{+parent}/publicKeys",
|
||||
"request": {
|
||||
"$ref": "CreatePublicKeyRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "PublicKey"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"description": "Removes a public SSH key from an environment. Clients will no longer be\nable to connect to the environment using the corresponding private key.",
|
||||
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}/publicKeys/{publicKeysId}",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "cloudshell.users.environments.publicKeys.delete",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"parent": {
|
||||
"pattern": "^users/[^/]+/environments/[^/]+$",
|
||||
"name": {
|
||||
"description": "Name of the resource to be deleted, e.g.\n`users/me/environments/default/publicKeys/my-key`.",
|
||||
"location": "path",
|
||||
"description": "Parent resource name, e.g. `users/me/environments/default`.",
|
||||
"pattern": "^users/[^/]+/environments/[^/]+/publicKeys/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}/publicKeys"
|
||||
},
|
||||
"delete": {
|
||||
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}/publicKeys/{publicKeysId}",
|
||||
"id": "cloudshell.users.environments.publicKeys.delete",
|
||||
"path": "v1alpha1/{+name}",
|
||||
"description": "Removes a public SSH key from an environment. Clients will no longer be\nable to connect to the environment using the corresponding private key.",
|
||||
"httpMethod": "DELETE",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Name of the resource to be deleted, e.g.\n`users/me/environments/default/publicKeys/my-key`.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^users/[^/]+/environments/[^/]+/publicKeys/[^/]+$",
|
||||
"location": "path"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -162,136 +270,88 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"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.",
|
||||
"type": "boolean",
|
||||
"default": "true",
|
||||
"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": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"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": {
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
]
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"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": "Data format for response.",
|
||||
"default": "json"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"version": "v1alpha1",
|
||||
"baseUrl": "https://cloudshell.googleapis.com/",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "Allows users to start, configure, and connect to interactive shell sessions running in the cloud.\n",
|
||||
"servicePath": "",
|
||||
"basePath": "",
|
||||
"revision": "20180118",
|
||||
"documentationLink": "https://cloud.google.com/shell/docs/",
|
||||
"id": "cloudshell:v1alpha1",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": true,
|
||||
"revision": "20180203",
|
||||
"rootUrl": "https://cloudshell.googleapis.com/",
|
||||
"schemas": {
|
||||
"StartEnvironmentMetadata": {
|
||||
"id": "StartEnvironmentMetadata",
|
||||
"description": "Message included in the metadata field of operations returned from\nStartEnvironment.",
|
||||
"type": "object",
|
||||
"CreatePublicKeyRequest": {
|
||||
"description": "Request message for CreatePublicKey.",
|
||||
"id": "CreatePublicKeyRequest",
|
||||
"properties": {
|
||||
"key": {
|
||||
"$ref": "PublicKey",
|
||||
"description": "Key that should be added to the environment."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"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 `{}`.",
|
||||
"id": "Empty",
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"Environment": {
|
||||
"description": "A Cloud Shell environment, which is defined as the combination of a Docker\nimage specifying what is installed on the environment and a home directory\ncontaining the user's data that will remain across sessions. Each user has a\nsingle environment with the ID \"default\".",
|
||||
"id": "Environment",
|
||||
"properties": {
|
||||
"dockerImage": {
|
||||
"description": "Required. Full path to the Docker image used to run this environment, e.g.\n\"gcr.io/dev-con/cloud-devshell:latest\".",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "Output only. The environment's identifier, which is always \"default\".",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the\nemail address of the user to whom this environment belongs, and\n`{environment_id}` is the identifier of this environment. For example,\n`users/someone@example.com/environments/default`.",
|
||||
"type": "string"
|
||||
},
|
||||
"publicKeys": {
|
||||
"description": "Output only. Public keys associated with the environment. Clients can\nconnect to this environment via SSH only if they possess a private key\ncorresponding to at least one of these public keys. Keys can be added to or\nremoved from the environment using the CreatePublicKey and DeletePublicKey\nmethods.",
|
||||
"items": {
|
||||
"$ref": "PublicKey"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"sshHost": {
|
||||
"description": "Output only. Host to which clients can connect to initiate SSH sessions\nwith the environment.",
|
||||
"type": "string"
|
||||
},
|
||||
"sshPort": {
|
||||
"description": "Output only. Port to which clients can connect to initiate SSH sessions\nwith the environment.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"sshUsername": {
|
||||
"description": "Output only. Username that clients should use when initiating SSH sessions\nwith the environment.",
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"enumDescriptions": [
|
||||
"The environment's start state is unknown.",
|
||||
"The environment is in the process of being started, but no additional\ndetails are available.",
|
||||
"Startup is waiting for the user's disk to be unarchived. This can happen\nwhen the user returns to Cloud Shell after not having used it for a\nwhile, and suggests that startup will take longer than normal.",
|
||||
"Startup is complete and the user should be able to establish an SSH\nconnection to their environment."
|
||||
],
|
||||
"description": "Output only. Current execution state of this environment.",
|
||||
"enum": [
|
||||
"STATE_UNSPECIFIED",
|
||||
"DISABLED",
|
||||
"STARTING",
|
||||
"UNARCHIVING_DISK",
|
||||
"FINISHED"
|
||||
"RUNNING"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"The environment's states is unknown.",
|
||||
"The environment is not running and can't be connected to. Starting the\nenvironment will transition it to the STARTING state.",
|
||||
"The environment is being started but is not yet ready to accept\nconnections.",
|
||||
"The environment is running and ready to accept connections. It will\nautomatically transition back to DISABLED after a period of inactivity or\nif another environment is started."
|
||||
],
|
||||
"description": "Current state of the environment being started.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Operation": {
|
||||
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
|
||||
"type": "object",
|
||||
"id": "Operation",
|
||||
"properties": {
|
||||
"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"
|
||||
"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"
|
||||
},
|
||||
"error": {
|
||||
"$ref": "Status",
|
||||
@ -305,9 +365,9 @@
|
||||
"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"
|
||||
"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"
|
||||
},
|
||||
"response": {
|
||||
"additionalProperties": {
|
||||
@ -318,140 +378,22 @@
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"id": "Operation"
|
||||
},
|
||||
"Environment": {
|
||||
"id": "Environment",
|
||||
"description": "A Cloud Shell environment, which is defined as the combination of a Docker\nimage specifying what is installed on the environment and a home directory\ncontaining the user's data that will remain across sessions. Each user has a\nsingle environment with the ID \"default\".",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"publicKeys": {
|
||||
"description": "Output only. Public keys associated with the environment. Clients can\nconnect to this environment via SSH only if they possess a private key\ncorresponding to at least one of these public keys. Keys can be added to or\nremoved from the environment using the CreatePublicKey and DeletePublicKey\nmethods.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "PublicKey"
|
||||
}
|
||||
},
|
||||
"dockerImage": {
|
||||
"description": "Required. Full path to the Docker image used to run this environment, e.g.\n\"gcr.io/dev-con/cloud-devshell:latest\".",
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"enumDescriptions": [
|
||||
"The environment's states is unknown.",
|
||||
"The environment is not running and can't be connected to. Starting the\nenvironment will transition it to the STARTING state.",
|
||||
"The environment is being started but is not yet ready to accept\nconnections.",
|
||||
"The environment is running and ready to accept connections. It will\nautomatically transition back to DISABLED after a period of inactivity or\nif another environment is started."
|
||||
],
|
||||
"enum": [
|
||||
"STATE_UNSPECIFIED",
|
||||
"DISABLED",
|
||||
"STARTING",
|
||||
"RUNNING"
|
||||
],
|
||||
"description": "Output only. Current execution state of this environment.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the\nemail address of the user to whom this environment belongs, and\n`{environment_id}` is the identifier of this environment. For example,\n`users/someone@example.com/environments/default`.",
|
||||
"type": "string"
|
||||
},
|
||||
"sshHost": {
|
||||
"description": "Output only. Host to which clients can connect to initiate SSH sessions\nwith the environment.",
|
||||
"type": "string"
|
||||
},
|
||||
"sshPort": {
|
||||
"description": "Output only. Port to which clients can connect to initiate SSH sessions\nwith the environment.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"id": {
|
||||
"description": "Output only. The environment's identifier, which is always \"default\".",
|
||||
"type": "string"
|
||||
},
|
||||
"sshUsername": {
|
||||
"description": "Output only. Username that clients should use when initiating SSH sessions\nwith the environment.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"CreatePublicKeyRequest": {
|
||||
"description": "Request message for CreatePublicKey.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
"$ref": "PublicKey",
|
||||
"description": "Key that should be added to the environment."
|
||||
}
|
||||
},
|
||||
"id": "CreatePublicKeyRequest"
|
||||
},
|
||||
"Status": {
|
||||
"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",
|
||||
"properties": {
|
||||
"code": {
|
||||
"description": "The status code, which should be an enum value of google.rpc.Code.",
|
||||
"format": "int32",
|
||||
"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": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use."
|
||||
}
|
||||
}
|
||||
},
|
||||
"StartEnvironmentResponse": {
|
||||
"id": "StartEnvironmentResponse",
|
||||
"description": "Message included in the response field of operations returned from\nStartEnvironment once the\noperation is complete.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"environment": {
|
||||
"description": "Environment that was started.",
|
||||
"$ref": "Environment"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StartEnvironmentRequest": {
|
||||
"description": "Request message for StartEnvironment.",
|
||||
"type": "object",
|
||||
"properties": {},
|
||||
"id": "StartEnvironmentRequest"
|
||||
},
|
||||
"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"
|
||||
"type": "object"
|
||||
},
|
||||
"PublicKey": {
|
||||
"description": "A public SSH key, corresponding to a private SSH key held by the client.",
|
||||
"type": "object",
|
||||
"id": "PublicKey",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.\n`{owner_email}` is the email address of the user to whom the key belongs.\n`{environment_id}` is the identifier of the environment to which the key\ngrants access. `{key_id}` is the unique identifier of the key. For example,\n`users/someone@example.com/environments/default/publicKeys/myKey`.",
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"description": "Required. Content of this key.",
|
||||
"format": "byte",
|
||||
"type": "string"
|
||||
},
|
||||
"format": {
|
||||
"description": "Required. Format of this key's content.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"FORMAT_UNSPECIFIED",
|
||||
"SSH_DSS",
|
||||
"SSH_RSA",
|
||||
"ECDSA_SHA2_NISTP256",
|
||||
"ECDSA_SHA2_NISTP384",
|
||||
"ECDSA_SHA2_NISTP521"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Unknown format. Do not use.",
|
||||
"`ssh-dss` key format (see RFC4253).",
|
||||
@ -460,32 +402,90 @@
|
||||
"`ecdsa-sha2-nistp384` key format (see RFC5656).",
|
||||
"`ecdsa-sha2-nistp521` key format (see RFC5656)."
|
||||
],
|
||||
"enum": [
|
||||
"FORMAT_UNSPECIFIED",
|
||||
"SSH_DSS",
|
||||
"SSH_RSA",
|
||||
"ECDSA_SHA2_NISTP256",
|
||||
"ECDSA_SHA2_NISTP384",
|
||||
"ECDSA_SHA2_NISTP521"
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"description": "Required. Content of this key.",
|
||||
"format": "byte",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.\n`{owner_email}` is the email address of the user to whom the key belongs.\n`{environment_id}` is the identifier of the environment to which the key\ngrants access. `{key_id}` is the unique identifier of the key. For example,\n`users/someone@example.com/environments/default/publicKeys/myKey`.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "PublicKey"
|
||||
}
|
||||
},
|
||||
"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 Shell",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
"type": "object"
|
||||
},
|
||||
"StartEnvironmentMetadata": {
|
||||
"description": "Message included in the metadata field of operations returned from\nStartEnvironment.",
|
||||
"id": "StartEnvironmentMetadata",
|
||||
"properties": {
|
||||
"state": {
|
||||
"description": "Current state of the environment being started.",
|
||||
"enum": [
|
||||
"STATE_UNSPECIFIED",
|
||||
"STARTING",
|
||||
"UNARCHIVING_DISK",
|
||||
"FINISHED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"The environment's start state is unknown.",
|
||||
"The environment is in the process of being started, but no additional\ndetails are available.",
|
||||
"Startup is waiting for the user's disk to be unarchived. This can happen\nwhen the user returns to Cloud Shell after not having used it for a\nwhile, and suggests that startup will take longer than normal.",
|
||||
"Startup is complete and the user should be able to establish an SSH\nconnection to their environment."
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"StartEnvironmentRequest": {
|
||||
"description": "Request message for StartEnvironment.",
|
||||
"id": "StartEnvironmentRequest",
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"StartEnvironmentResponse": {
|
||||
"description": "Message included in the response field of operations returned from\nStartEnvironment once the\noperation is complete.",
|
||||
"id": "StartEnvironmentResponse",
|
||||
"properties": {
|
||||
"environment": {
|
||||
"$ref": "Environment",
|
||||
"description": "Environment that was started."
|
||||
}
|
||||
},
|
||||
"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.",
|
||||
"id": "Status",
|
||||
"properties": {
|
||||
"code": {
|
||||
"description": "The status code, which should be an enum value of google.rpc.Code.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"servicePath": "",
|
||||
"title": "Cloud Shell API",
|
||||
"version": "v1alpha1",
|
||||
"version_module": true
|
||||
}
|
2840
vendor/google.golang.org/api/cloudtasks/v2beta2/cloudtasks-api.json
generated
vendored
2840
vendor/google.golang.org/api/cloudtasks/v2beta2/cloudtasks-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
818
vendor/google.golang.org/api/cloudtasks/v2beta2/cloudtasks-gen.go
generated
vendored
818
vendor/google.golang.org/api/cloudtasks/v2beta2/cloudtasks-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
670
vendor/google.golang.org/api/cloudtrace/v1/cloudtrace-api.json
generated
vendored
670
vendor/google.golang.org/api/cloudtrace/v1/cloudtrace-api.json
generated
vendored
@ -1,67 +1,357 @@
|
||||
{
|
||||
"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.append": {
|
||||
"description": "Write Trace data for a project or application"
|
||||
},
|
||||
"https://www.googleapis.com/auth/trace.readonly": {
|
||||
"description": "Read Trace data for a project or application"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"basePath": "",
|
||||
"documentationLink": "https://cloud.google.com/trace",
|
||||
"id": "cloudtrace:v1",
|
||||
"revision": "20180109",
|
||||
"baseUrl": "https://cloudtrace.googleapis.com/",
|
||||
"batchPath": "batch",
|
||||
"canonicalName": "Cloud Trace",
|
||||
"description": "Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API.\n",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": true,
|
||||
"schemas": {
|
||||
"Traces": {
|
||||
"properties": {
|
||||
"traces": {
|
||||
"description": "List of traces.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
}
|
||||
"documentationLink": "https://cloud.google.com/trace",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"id": "cloudtrace:v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "cloudtrace",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"$.xgafv": {
|
||||
"description": "V1 error format.",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for response.",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"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",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"projects": {
|
||||
"methods": {
|
||||
"patchTraces": {
|
||||
"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.",
|
||||
"flatPath": "v1/projects/{projectId}/traces",
|
||||
"httpMethod": "PATCH",
|
||||
"id": "cloudtrace.projects.patchTraces",
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
"request": {
|
||||
"$ref": "Traces"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.append"
|
||||
]
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"traces": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Gets a single trace by its ID.",
|
||||
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"httpMethod": "GET",
|
||||
"id": "cloudtrace.projects.traces.get",
|
||||
"parameterOrder": [
|
||||
"projectId",
|
||||
"traceId"
|
||||
],
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"traceId": {
|
||||
"description": "ID of the trace to return.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"response": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Returns of a list of traces that match the specified filter conditions.",
|
||||
"flatPath": "v1/projects/{projectId}/traces",
|
||||
"httpMethod": "GET",
|
||||
"id": "cloudtrace.projects.traces.list",
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"parameters": {
|
||||
"endTime": {
|
||||
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"format": "google-datetime",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"filter": {
|
||||
"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`.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"orderBy": {
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"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.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"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.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"projectId": {
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"format": "google-datetime",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"view": {
|
||||
"description": "Type of data returned for traces in the list. Optional. Default is\n`MINIMAL`.",
|
||||
"enum": [
|
||||
"VIEW_TYPE_UNSPECIFIED",
|
||||
"MINIMAL",
|
||||
"ROOTSPAN",
|
||||
"COMPLETE"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
"response": {
|
||||
"$ref": "ListTracesResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180312",
|
||||
"rootUrl": "https://cloudtrace.googleapis.com/",
|
||||
"schemas": {
|
||||
"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 `{}`.",
|
||||
"id": "Empty",
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"ListTracesResponse": {
|
||||
"description": "The response message for the `ListTraces` method.",
|
||||
"id": "ListTracesResponse",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
"description": "If defined, indicates that there are more traces that match the request\nand that this value should be passed to the next request to continue\nretrieving additional traces.",
|
||||
"type": "string"
|
||||
},
|
||||
"traces": {
|
||||
"description": "List of trace records returned.",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"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.",
|
||||
"id": "Trace",
|
||||
"properties": {
|
||||
"projectId": {
|
||||
"description": "Project ID of the Cloud project where the trace data is stored.",
|
||||
"type": "string"
|
||||
},
|
||||
"spans": {
|
||||
"description": "Collection of spans in the trace.",
|
||||
"items": {
|
||||
"$ref": "TraceSpan"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "Traces",
|
||||
"description": "List of new or updated traces.",
|
||||
"type": "object"
|
||||
},
|
||||
"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",
|
||||
"id": "TraceSpan",
|
||||
"properties": {
|
||||
"endTime": {
|
||||
"description": "End time of the span in nanoseconds from the UNIX epoch.",
|
||||
"format": "google-datetime",
|
||||
"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",
|
||||
"enum": [
|
||||
"SPAN_KIND_UNSPECIFIED",
|
||||
"RPC_SERVER",
|
||||
"RPC_CLIENT"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Unspecified.",
|
||||
"Indicates that the span covers server-side handling of an RPC or other\nremote network request.",
|
||||
"Indicates that the span covers the client-side wrapper around an RPC or\nother remote request."
|
||||
],
|
||||
"enum": [
|
||||
"SPAN_KIND_UNSPECIFIED",
|
||||
"RPC_SERVER",
|
||||
"RPC_CLIENT"
|
||||
]
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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/path`\n* `/http/redirected_url`\n* `/http/request/size`\n* `/http/response/size`\n* `/http/route`\n* `/http/status_code`\n* `/http/url`\n* `/http/user_agent`\n* `/pid`\n* `/stacktrace`\n* `/tid`",
|
||||
"type": "object"
|
||||
},
|
||||
"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": {
|
||||
"description": "Identifier for the span. Must be a 64-bit integer other than 0 and\nunique within a trace.",
|
||||
"format": "uint64",
|
||||
"type": "string"
|
||||
},
|
||||
"parentSpanId": {
|
||||
"description": "ID of the parent span, if any. Optional.",
|
||||
"format": "uint64",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "End time of the span in nanoseconds from the UNIX epoch.",
|
||||
"format": "google-datetime",
|
||||
"spanId": {
|
||||
"description": "Identifier for the span. Must be a 64-bit integer other than 0 and\nunique within a trace.",
|
||||
"format": "uint64",
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
@ -70,315 +360,25 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "TraceSpan"
|
||||
"type": "object"
|
||||
},
|
||||
"ListTracesResponse": {
|
||||
"description": "The response message for the `ListTraces` method.",
|
||||
"type": "object",
|
||||
"Traces": {
|
||||
"description": "List of new or updated traces.",
|
||||
"id": "Traces",
|
||||
"properties": {
|
||||
"traces": {
|
||||
"description": "List of trace records returned.",
|
||||
"type": "array",
|
||||
"description": "List of traces.",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
}
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "If defined, indicates that there are more traces that match the request\nand that this value should be passed to the next request to continue\nretrieving additional traces.",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"id": "ListTracesResponse"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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": {
|
||||
"projectId": {
|
||||
"description": "Project ID of the Cloud project where the trace data is stored.",
|
||||
"type": "string"
|
||||
},
|
||||
"spans": {
|
||||
"description": "Collection of spans in the trace.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "TraceSpan"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "Trace"
|
||||
"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"
|
||||
},
|
||||
"canonicalName": "Cloud Trace",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://cloudtrace.googleapis.com/",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "cloudtrace",
|
||||
"batchPath": "batch",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
"title": "Stackdriver Trace API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"projects": {
|
||||
"methods": {
|
||||
"patchTraces": {
|
||||
"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",
|
||||
"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.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/projects/{projectId}/traces",
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
"id": "cloudtrace.projects.patchTraces"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"traces": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
"id": "cloudtrace.projects.traces.list",
|
||||
"description": "Returns of a list of traces that match the specified filter conditions.",
|
||||
"response": {
|
||||
"$ref": "ListTracesResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
],
|
||||
"parameters": {
|
||||
"orderBy": {
|
||||
"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.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"projectId": {
|
||||
"location": "path",
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"filter": {
|
||||
"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",
|
||||
"location": "query"
|
||||
},
|
||||
"endTime": {
|
||||
"location": "query",
|
||||
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"format": "google-datetime",
|
||||
"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": {
|
||||
"description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"format": "google-datetime",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pageSize": {
|
||||
"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.",
|
||||
"format": "int32",
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/projects/{projectId}/traces"
|
||||
},
|
||||
"get": {
|
||||
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"path": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"id": "cloudtrace.projects.traces.get",
|
||||
"description": "Gets a single trace by its ID.",
|
||||
"response": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId",
|
||||
"traceId"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
],
|
||||
"parameters": {
|
||||
"traceId": {
|
||||
"location": "path",
|
||||
"description": "ID of the trace to return.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"projectId": {
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"location": "path"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"location": "query",
|
||||
"description": "JSONP",
|
||||
"type": "string"
|
||||
},
|
||||
"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": "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"
|
||||
},
|
||||
"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.",
|
||||
"type": "boolean",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://cloudtrace.googleapis.com/",
|
||||
"servicePath": "",
|
||||
"description": "Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API.\n",
|
||||
"kind": "discovery#restDescription"
|
||||
}
|
||||
"title": "Stackdriver Trace API",
|
||||
"version": "v1",
|
||||
"version_module": true
|
||||
}
|
2
vendor/google.golang.org/api/cloudtrace/v1/cloudtrace-gen.go
generated
vendored
2
vendor/google.golang.org/api/cloudtrace/v1/cloudtrace-gen.go
generated
vendored
@ -261,9 +261,11 @@ type TraceSpan struct {
|
||||
// * `/http/client_region`
|
||||
// * `/http/host`
|
||||
// * `/http/method`
|
||||
// * `/http/path`
|
||||
// * `/http/redirected_url`
|
||||
// * `/http/request/size`
|
||||
// * `/http/response/size`
|
||||
// * `/http/route`
|
||||
// * `/http/status_code`
|
||||
// * `/http/url`
|
||||
// * `/http/user_agent`
|
||||
|
996
vendor/google.golang.org/api/cloudtrace/v2/cloudtrace-api.json
generated
vendored
996
vendor/google.golang.org/api/cloudtrace/v2/cloudtrace-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
3660
vendor/google.golang.org/api/clouduseraccounts/v0.alpha/clouduseraccounts-api.json
generated
vendored
3660
vendor/google.golang.org/api/clouduseraccounts/v0.alpha/clouduseraccounts-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
2678
vendor/google.golang.org/api/clouduseraccounts/v0.beta/clouduseraccounts-api.json
generated
vendored
2678
vendor/google.golang.org/api/clouduseraccounts/v0.beta/clouduseraccounts-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
3660
vendor/google.golang.org/api/clouduseraccounts/vm_alpha/clouduseraccounts-api.json
generated
vendored
3660
vendor/google.golang.org/api/clouduseraccounts/vm_alpha/clouduseraccounts-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
2678
vendor/google.golang.org/api/clouduseraccounts/vm_beta/clouduseraccounts-api.json
generated
vendored
2678
vendor/google.golang.org/api/clouduseraccounts/vm_beta/clouduseraccounts-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
86522
vendor/google.golang.org/api/compute/v0.alpha/compute-api.json
generated
vendored
86522
vendor/google.golang.org/api/compute/v0.alpha/compute-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
10601
vendor/google.golang.org/api/compute/v0.alpha/compute-gen.go
generated
vendored
10601
vendor/google.golang.org/api/compute/v0.alpha/compute-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
70517
vendor/google.golang.org/api/compute/v0.beta/compute-api.json
generated
vendored
70517
vendor/google.golang.org/api/compute/v0.beta/compute-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
6726
vendor/google.golang.org/api/compute/v0.beta/compute-gen.go
generated
vendored
6726
vendor/google.golang.org/api/compute/v0.beta/compute-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
59498
vendor/google.golang.org/api/compute/v1/compute-api.json
generated
vendored
59498
vendor/google.golang.org/api/compute/v1/compute-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
7685
vendor/google.golang.org/api/compute/v1/compute-gen.go
generated
vendored
7685
vendor/google.golang.org/api/compute/v1/compute-gen.go
generated
vendored
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
Loading…
Reference in New Issue
Block a user