forked from TrueCloudLab/restic
Update dependencies
This commit is contained in:
parent
f3b49987f8
commit
fda563d606
926 changed files with 189726 additions and 98666 deletions
12
vendor/google.golang.org/api/.gitignore
generated
vendored
Normal file
12
vendor/google.golang.org/api/.gitignore
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
_obj/
|
||||
*_testmain.go
|
||||
clientid.dat
|
||||
clientsecret.dat
|
||||
/google-api-go-generator/google-api-go-generator
|
||||
|
||||
*.6
|
||||
*.8
|
||||
*~
|
||||
*.out
|
||||
*.test
|
||||
*.exe
|
11
vendor/google.golang.org/api/.hgignore
generated
vendored
11
vendor/google.golang.org/api/.hgignore
generated
vendored
|
@ -1,11 +0,0 @@
|
|||
_obj
|
||||
_testmain.go
|
||||
clientid.dat
|
||||
clientsecret.dat
|
||||
google-api-go-generator/google-api-go-gen
|
||||
|
||||
syntax:glob
|
||||
*.6
|
||||
*.8
|
||||
*~
|
||||
*.out
|
27
vendor/google.golang.org/api/Makefile
generated
vendored
27
vendor/google.golang.org/api/Makefile
generated
vendored
|
@ -1,27 +0,0 @@
|
|||
API_JSON = $(wildcard */*/*-api.json */*/*/*-api.json)
|
||||
|
||||
# Download all API specifications and rebuild Go bindings.
|
||||
# All downloaded files are cached in $TMPDIR for reuse with 'cached' below.
|
||||
all: generator
|
||||
$(GOPATH)/bin/google-api-go-generator -cache=false -install -api=*
|
||||
|
||||
# Reuse cached API specifications in $TMPDIR and rebuild Go bindings.
|
||||
cached: generator
|
||||
$(GOPATH)/bin/google-api-go-generator -cache=true -install -api=*
|
||||
|
||||
# Only rebuild Go bindings, do not modify API specifications.
|
||||
# For every existing */*/*-api.json file, */*/*-gen.go will be built.
|
||||
local: $(API_JSON:-api.json=-gen.go)
|
||||
|
||||
# Pattern rule for the 'local' target.
|
||||
# Translates otherwise unnamed targets with a -gen.go suffix into the
|
||||
# matching input file with a -api.json suffix. $< is the input file.
|
||||
%-gen.go: %-api.json generator
|
||||
$(GOPATH)/bin/google-api-go-generator -api_json_file=$<
|
||||
|
||||
# Rebuild and install $(GOPATH)/bin/google-api-go-generator
|
||||
generator:
|
||||
go install google.golang.org/api/googleapi
|
||||
go install google.golang.org/api/google-api-go-generator
|
||||
|
||||
.PHONY: all cached local generator
|
79
vendor/google.golang.org/api/README.md
generated
vendored
79
vendor/google.golang.org/api/README.md
generated
vendored
|
@ -1,20 +1,50 @@
|
|||
# Google APIs Client Library for Go
|
||||
|
||||
## Library maintenance
|
||||
This client library is supported, but in maintenance mode only.
|
||||
We are fixing necessary bugs and adding essential features to ensure this
|
||||
library continues to meet your needs for accessing Google APIs.
|
||||
Non-critical issues will be closed.
|
||||
Any issue may be reopened if it is causing ongoing problems.
|
||||
## Getting Started
|
||||
|
||||
```
|
||||
$ go get google.golang.org/api/tasks/v1
|
||||
$ go get google.golang.org/api/moderator/v1
|
||||
$ go get google.golang.org/api/urlshortener/v1
|
||||
... etc ...
|
||||
```
|
||||
|
||||
and using:
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"google.golang.org/api/urlshortener/v1"
|
||||
)
|
||||
|
||||
func main() {
|
||||
svc, err := urlshortener.New(http.DefaultClient)
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
* For a longer tutorial, see the [Getting Started guide](https://github.com/google/google-api-go-client/blob/master/GettingStarted.md).
|
||||
* For examples, see the [examples directory](https://github.com/google/google-api-go-client/tree/master/examples).
|
||||
* For support, use the [golang-nuts](https://groups.google.com/group/golang-nuts) mailing list.
|
||||
|
||||
## Status
|
||||
[](https://travis-ci.org/google/google-api-go-client)
|
||||
[](https://godoc.org/google.golang.org/api)
|
||||
|
||||
These are auto-generated Go libraries from the Google Discovery Service's JSON description files of the available "new style" Google APIs.
|
||||
|
||||
Due to the auto-generated nature of this collection of libraries, complete APIs or specific versions can appear or go away without notice.
|
||||
As a result, you should always locally vendor any API(s) that your code relies upon.
|
||||
|
||||
This client library is supported, but in maintenance mode only.
|
||||
We are fixing necessary bugs and adding essential features to ensure this
|
||||
library continues to meet your needs for accessing Google APIs.
|
||||
Non-critical issues will be closed.
|
||||
Any issue may be reopened if it is causing ongoing problems.
|
||||
|
||||
If you're working with Google Cloud Platform APIs such as Datastore or Pub/Sub,
|
||||
consider using the
|
||||
[Cloud Client Libraries for Go](https://github.com/GoogleCloudPlatform/google-cloud-go)
|
||||
|
@ -25,37 +55,6 @@ The generator itself and the code it produces are beta. Some APIs are
|
|||
alpha/beta, and indicated as such in the import path (e.g.,
|
||||
"google.golang.org/api/someapi/v1alpha").
|
||||
|
||||
Announcement email:
|
||||
|
||||
* http://groups.google.com/group/golang-nuts/browse_thread/thread/6c7281450be9a21e
|
||||
|
||||
Getting started documentation:
|
||||
|
||||
* https://github.com/google/google-api-go-client/blob/master/GettingStarted.md
|
||||
|
||||
In summary:
|
||||
|
||||
```
|
||||
$ go get google.golang.org/api/storage/v1
|
||||
$ go get google.golang.org/api/tasks/v1
|
||||
$ go get google.golang.org/api/moderator/v1
|
||||
... etc ...
|
||||
```
|
||||
|
||||
For docs, see e.g.:
|
||||
|
||||
* https://godoc.org/google.golang.org/api/storage/v1
|
||||
|
||||
The package of a given import is the second-to-last component, before the version number.
|
||||
|
||||
For examples, see:
|
||||
|
||||
* https://github.com/google/google-api-go-client/tree/master/examples
|
||||
|
||||
For support, use the golang-nuts@ mailing list:
|
||||
|
||||
* https://groups.google.com/group/golang-nuts
|
||||
|
||||
## Application Default Credentials Example
|
||||
|
||||
Application Default Credentials provide a simplified way to obtain credentials
|
||||
|
@ -68,13 +67,13 @@ applications that run on Google Compute Engine or Google App Engine.
|
|||
|
||||
Default credentials are provided by the `golang.org/x/oauth2/google` package. To use them, add the following import:
|
||||
|
||||
```
|
||||
```go
|
||||
import "golang.org/x/oauth2/google"
|
||||
```
|
||||
|
||||
Some credentials types require you to specify scopes, and service entry points may not inject them. If you encounter this situation you may need to specify scopes as follows:
|
||||
|
||||
```
|
||||
```go
|
||||
import (
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/oauth2/google"
|
||||
|
@ -98,7 +97,7 @@ func main() {
|
|||
|
||||
If you need a `oauth2.TokenSource`, use the `DefaultTokenSource` function:
|
||||
|
||||
```
|
||||
```go
|
||||
ts, err := google.DefaultTokenSource(ctx, scope1, scope2, ...)
|
||||
if err != nil {
|
||||
//...
|
||||
|
|
176
vendor/google.golang.org/api/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-api.json
generated
vendored
176
vendor/google.golang.org/api/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-api.json
generated
vendored
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"basePath": "",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "acceleratedmobilepageurl",
|
||||
"batchPath": "batch",
|
||||
|
@ -6,41 +7,31 @@
|
|||
"documentationLink": "https://developers.google.com/amp/cache/",
|
||||
"revision": "20170718",
|
||||
"title": "Accelerated Mobile Pages (AMP) URL API",
|
||||
"discoveryVersion": "v1",
|
||||
"ownerName": "Google",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": "True",
|
||||
"resources": {
|
||||
"ampUrls": {
|
||||
"methods": {
|
||||
"batchGet": {
|
||||
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
|
||||
"request": {
|
||||
"$ref": "BatchGetAmpUrlsRequest"
|
||||
},
|
||||
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
|
||||
"httpMethod": "POST",
|
||||
"parameterOrder": [],
|
||||
"response": {
|
||||
"$ref": "BatchGetAmpUrlsResponse"
|
||||
},
|
||||
"parameterOrder": [],
|
||||
"httpMethod": "POST",
|
||||
"parameters": {},
|
||||
"flatPath": "v1/ampUrls:batchGet",
|
||||
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
|
||||
"path": "v1/ampUrls:batchGet"
|
||||
"path": "v1/ampUrls:batchGet",
|
||||
"id": "acceleratedmobilepageurl.ampUrls.batchGet"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"bearer_token": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token."
|
||||
},
|
||||
"upload_protocol": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
|
@ -53,35 +44,34 @@
|
|||
"type": "boolean"
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"location": "query",
|
||||
"description": "JSONP",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query"
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
|
@ -94,7 +84,8 @@
|
|||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response."
|
||||
"description": "Data format for response.",
|
||||
"default": "json"
|
||||
},
|
||||
"access_token": {
|
||||
"location": "query",
|
||||
|
@ -102,68 +93,39 @@
|
|||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"location": "query",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string"
|
||||
"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"
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pp": {
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"BatchGetAmpUrlsResponse": {
|
||||
"description": "Batch AMP URL response.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"urlErrors": {
|
||||
"items": {
|
||||
"$ref": "AmpUrlError"
|
||||
},
|
||||
"type": "array",
|
||||
"description": "The errors for requested URLs that have no AMP URL."
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "BatchGetAmpUrlsResponse"
|
||||
},
|
||||
"AmpUrl": {
|
||||
"description": "AMP URL response for a requested URL.",
|
||||
"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."
|
||||
},
|
||||
"ampUrl": {
|
||||
"description": "The AMP URL pointing to the publisher's web server.",
|
||||
"type": "string"
|
||||
},
|
||||
"originalUrl": {
|
||||
"type": "string",
|
||||
"description": "The original non-AMP URL."
|
||||
}
|
||||
},
|
||||
"id": "AmpUrl"
|
||||
},
|
||||
"AmpUrlError": {
|
||||
"description": "AMP URL Error resource for a requested URL that couldn't be found.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"errorCode": {
|
||||
"description": "The error code of an API call.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Not specified error.",
|
||||
|
@ -180,8 +142,7 @@
|
|||
"APPLICATION_ERROR",
|
||||
"URL_IS_VALID_AMP",
|
||||
"URL_IS_INVALID_AMP"
|
||||
],
|
||||
"description": "The error code of an API call."
|
||||
]
|
||||
},
|
||||
"originalUrl": {
|
||||
"description": "The original non-AMP URL.",
|
||||
|
@ -198,13 +159,6 @@
|
|||
"description": "AMP URL request for a batch of URLs.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"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"
|
||||
},
|
||||
"lookupStrategy": {
|
||||
"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.",
|
||||
|
@ -216,9 +170,56 @@
|
|||
],
|
||||
"description": "The lookup_strategy being requested.",
|
||||
"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"
|
||||
},
|
||||
"BatchGetAmpUrlsResponse": {
|
||||
"description": "Batch AMP URL response.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"urlErrors": {
|
||||
"description": "The errors for requested URLs that have no AMP URL.",
|
||||
"items": {
|
||||
"$ref": "AmpUrlError"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "BatchGetAmpUrlsResponse"
|
||||
},
|
||||
"AmpUrl": {
|
||||
"description": "AMP URL response for a requested URL.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"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"
|
||||
},
|
||||
"ampUrl": {
|
||||
"description": "The AMP URL pointing to the publisher's web server.",
|
||||
"type": "string"
|
||||
},
|
||||
"originalUrl": {
|
||||
"description": "The original non-AMP URL.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "AmpUrl"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
|
@ -228,9 +229,8 @@
|
|||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
|
||||
"servicePath": "",
|
||||
"description": "Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).\n",
|
||||
"kind": "discovery#restDescription",
|
||||
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
|
||||
"basePath": ""
|
||||
"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/"
|
||||
}
|
||||
|
|
4
vendor/google.golang.org/api/adexchangebuyer/v1.2/adexchangebuyer-api.json
generated
vendored
4
vendor/google.golang.org/api/adexchangebuyer/v1.2/adexchangebuyer-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/0_pkDGZUigw6P9-q8PUQy4V9Lvo\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/-1DKqIhPUpLfO8DBj8P3gNrIPtE\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "adexchangebuyer:v1.2",
|
||||
"name": "adexchangebuyer",
|
||||
"canonicalName": "Ad Exchange Buyer",
|
||||
"version": "v1.2",
|
||||
"revision": "20170504",
|
||||
"revision": "20170810",
|
||||
"title": "Ad Exchange Buyer API",
|
||||
"description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
|
||||
"ownerDomain": "google.com",
|
||||
|
|
4
vendor/google.golang.org/api/adexchangebuyer/v1.3/adexchangebuyer-api.json
generated
vendored
4
vendor/google.golang.org/api/adexchangebuyer/v1.3/adexchangebuyer-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/AyER-m-NeyHqidJeSDw3qhKYlvg\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/_RwUq281eKa7d-tJKPdh-IE_OEk\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "adexchangebuyer:v1.3",
|
||||
"name": "adexchangebuyer",
|
||||
"canonicalName": "Ad Exchange Buyer",
|
||||
"version": "v1.3",
|
||||
"revision": "20170504",
|
||||
"revision": "20170810",
|
||||
"title": "Ad Exchange Buyer API",
|
||||
"description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
|
||||
"ownerDomain": "google.com",
|
||||
|
|
6
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-api.json
generated
vendored
6
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/XvWFbU-Khae3KqVnoqt96DoRPGo\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/nD15-sVgx0hSdEaD_RN4E40IFV8\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "adexchangebuyer:v1.4",
|
||||
"name": "adexchangebuyer",
|
||||
"canonicalName": "Ad Exchange Buyer",
|
||||
"version": "v1.4",
|
||||
"revision": "20170504",
|
||||
"revision": "20170810",
|
||||
"title": "Ad Exchange Buyer API",
|
||||
"description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -2160,7 +2160,7 @@
|
|||
"properties": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "The account id of the seller."
|
||||
"description": "Deprecated: use the seller.account_id. The account id of the seller."
|
||||
},
|
||||
"audience": {
|
||||
"type": "string",
|
||||
|
|
3
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-gen.go
generated
vendored
3
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-gen.go
generated
vendored
|
@ -3361,7 +3361,8 @@ func (s *Proposal) MarshalJSON() ([]byte, error) {
|
|||
}
|
||||
|
||||
type PublisherProfileApiProto struct {
|
||||
// AccountId: The account id of the seller.
|
||||
// AccountId: Deprecated: use the seller.account_id. The account id of
|
||||
// the seller.
|
||||
AccountId string `json:"accountId,omitempty"`
|
||||
|
||||
// Audience: Publisher provided info on its audience.
|
||||
|
|
5024
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json
generated
vendored
5024
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
7
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go
generated
vendored
7
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go
generated
vendored
|
@ -2172,6 +2172,11 @@ type ListCreativeStatusBreakdownByDetailResponse struct {
|
|||
// see
|
||||
// [ad-product-categories](https://developers.google.com/ad-exchange/
|
||||
// rtb/downloads/ad-product-categories).
|
||||
// "DISAPPROVAL_REASON" - Indicates that the detail ID refers to a
|
||||
// disapproval reason; see
|
||||
// DisapprovalReason enum in
|
||||
// [snippet-status-report-proto](https://developers.google.com/ad-exchang
|
||||
// e/rtb/downloads/snippet-status-report-proto).
|
||||
DetailType string `json:"detailType,omitempty"`
|
||||
|
||||
// FilteredBidDetailRows: List of rows, with counts of bids with a given
|
||||
|
@ -8415,7 +8420,7 @@ func (c *AccountsFilterSetsFilteredBidsDetailsListCall) Do(opts ...googleapi.Cal
|
|||
// "type": "string"
|
||||
// },
|
||||
// "creativeStatusId": {
|
||||
// "description": "The ID of the creative status for which to retrieve a breakdown by detail.\nSee\n[creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).\nDetails are only available for statuses 14, 15, 17, 18, 19, 86, and 87.",
|
||||
// "description": "The ID of the creative status for which to retrieve a breakdown by detail.\nSee\n[creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).\nDetails are only available for statuses 10, 14, 15, 17, 18, 19, 86, and 87.",
|
||||
// "format": "int32",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
|
|
418
vendor/google.golang.org/api/adexperiencereport/v1/adexperiencereport-api.json
generated
vendored
418
vendor/google.golang.org/api/adexperiencereport/v1/adexperiencereport-api.json
generated
vendored
|
@ -1,37 +1,196 @@
|
|||
{
|
||||
"ownerDomain": "google.com",
|
||||
"name": "adexperiencereport",
|
||||
"batchPath": "batch",
|
||||
"title": "Google Ad Experience Report API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"sites": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"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.",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "^sites/[^/]+$"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/xapi.zoo"
|
||||
],
|
||||
"flatPath": "v1/sites/{sitesId}",
|
||||
"id": "adexperiencereport.sites.get",
|
||||
"path": "v1/{+name}",
|
||||
"description": "Gets a summary of the ad experience rating of a site."
|
||||
}
|
||||
}
|
||||
},
|
||||
"violatingSites": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists sites with Ad Experience Report statuses of \"Failing\" or \"Warning\".",
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [],
|
||||
"response": {
|
||||
"$ref": "ViolatingSitesResponse"
|
||||
},
|
||||
"parameters": {},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/xapi.zoo"
|
||||
],
|
||||
"flatPath": "v1/violatingSites",
|
||||
"path": "v1/violatingSites",
|
||||
"id": "adexperiencereport.violatingSites.list"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"alt": {
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"location": "query",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string"
|
||||
},
|
||||
"quotaUser": {
|
||||
"location": "query",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
},
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"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": "",
|
||||
"revision": "20170731",
|
||||
"revision": "20170819",
|
||||
"documentationLink": "https://developers.google.com/ad-experience-report/",
|
||||
"id": "adexperiencereport:v1",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": "True",
|
||||
"version_module": true,
|
||||
"schemas": {
|
||||
"ViolatingSitesResponse": {
|
||||
"description": "Response message for ListViolatingSites.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"violatingSites": {
|
||||
"description": "A list of summaries of violating sites.",
|
||||
"items": {
|
||||
"$ref": "SiteSummaryResponse"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"id": "ViolatingSitesResponse"
|
||||
},
|
||||
"SiteSummaryResponse": {
|
||||
"description": "Response message for GetSiteSummary.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"mobileSummary": {
|
||||
"$ref": "PlatformSummary",
|
||||
"description": "Summary for the mobile review of the site."
|
||||
},
|
||||
"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": {
|
||||
"lastChangeTime": {
|
||||
"format": "google-datetime",
|
||||
"description": "The last time that the site changed status.",
|
||||
"type": "string"
|
||||
},
|
||||
"egregiousStatus": {
|
||||
"enumDescriptions": [
|
||||
"Not reviewed.",
|
||||
"Passing.",
|
||||
"Failing."
|
||||
],
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"PASSING",
|
||||
"FAILING"
|
||||
],
|
||||
"description": "The status of the site reviewed for egregious ads.",
|
||||
"type": "string"
|
||||
},
|
||||
"betterAdsStatus": {
|
||||
"enumDescriptions": [
|
||||
"Not reviewed.",
|
||||
|
@ -48,12 +207,21 @@
|
|||
"description": "The status of the site reviewed for the Better Ads Standards.",
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"abusiveStatus": {
|
||||
"description": "The status of the site reviewed for abusive ads.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Ad standard not yet defined for your region.",
|
||||
"Region A.",
|
||||
"Region B."
|
||||
"Not reviewed.",
|
||||
"Passing.",
|
||||
"Failing."
|
||||
],
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"PASSING",
|
||||
"FAILING"
|
||||
]
|
||||
},
|
||||
"region": {
|
||||
"description": "The assigned regions for the site and platform.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
|
@ -63,7 +231,12 @@
|
|||
"REGION_B"
|
||||
]
|
||||
},
|
||||
"type": "array"
|
||||
"type": "array",
|
||||
"enumDescriptions": [
|
||||
"Ad standard not yet defined for your region.",
|
||||
"Region A.",
|
||||
"Region B."
|
||||
]
|
||||
},
|
||||
"enforcementTime": {
|
||||
"format": "google-datetime",
|
||||
|
@ -95,49 +268,21 @@
|
|||
"reportUrl": {
|
||||
"description": "A link that leads to a full ad experience report.",
|
||||
"type": "string"
|
||||
},
|
||||
"lastChangeTime": {
|
||||
"format": "google-datetime",
|
||||
"description": "The last time that the site changed status.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "PlatformSummary"
|
||||
},
|
||||
"ViolatingSitesResponse": {
|
||||
"description": "Response message for ListViolatingSites.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"violatingSites": {
|
||||
"description": "A list of summaries of violating sites.",
|
||||
"items": {
|
||||
"$ref": "SiteSummaryResponse"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"id": "ViolatingSitesResponse"
|
||||
},
|
||||
"SiteSummaryResponse": {
|
||||
"description": "Response message for GetSiteSummary.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"reviewedSite": {
|
||||
"description": "The name of the site reviewed.",
|
||||
"type": "string"
|
||||
},
|
||||
"desktopSummary": {
|
||||
"$ref": "PlatformSummary",
|
||||
"description": "Summary for the desktop review of the site."
|
||||
},
|
||||
"mobileSummary": {
|
||||
"description": "Summary for the mobile review of the site.",
|
||||
"$ref": "PlatformSummary"
|
||||
}
|
||||
},
|
||||
"id": "SiteSummaryResponse"
|
||||
}
|
||||
},
|
||||
"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",
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"canonicalName": "Ad Experience Report",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
|
@ -148,150 +293,5 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://adexperiencereport.googleapis.com/",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "adexperiencereport",
|
||||
"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.",
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "SiteSummaryResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/xapi.zoo"
|
||||
],
|
||||
"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,\nhttps%3A%2F%2Fwww.google.com. The server will return an error of\nBAD_REQUEST if this field is not filled in. Note that if the site property\nis not yet verified in Search Console, the reportUrl field returned by the\nAPI will lead to the verification page, prompting the user to go through\nthat process before they can gain access to the Ad Experience Report.",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "^sites/[^/]+$",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"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",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/xapi.zoo"
|
||||
],
|
||||
"parameters": {},
|
||||
"flatPath": "v1/violatingSites",
|
||||
"id": "adexperiencereport.violatingSites.list",
|
||||
"path": "v1/violatingSites"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
]
|
||||
},
|
||||
"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": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://adexperiencereport.googleapis.com/"
|
||||
"rootUrl": "https://adexperiencereport.googleapis.com/"
|
||||
}
|
||||
|
|
33
vendor/google.golang.org/api/adexperiencereport/v1/adexperiencereport-gen.go
generated
vendored
33
vendor/google.golang.org/api/adexperiencereport/v1/adexperiencereport-gen.go
generated
vendored
|
@ -99,6 +99,14 @@ type ViolatingSitesService struct {
|
|||
// PlatformSummary: Summary of the ad experience rating of a site for a
|
||||
// specific platform.
|
||||
type PlatformSummary struct {
|
||||
// AbusiveStatus: The status of the site reviewed for abusive ads.
|
||||
//
|
||||
// Possible values:
|
||||
// "UNKNOWN" - Not reviewed.
|
||||
// "PASSING" - Passing.
|
||||
// "FAILING" - Failing.
|
||||
AbusiveStatus string `json:"abusiveStatus,omitempty"`
|
||||
|
||||
// BetterAdsStatus: The status of the site reviewed for the Better Ads
|
||||
// Standards.
|
||||
//
|
||||
|
@ -109,14 +117,6 @@ type PlatformSummary struct {
|
|||
// "FAILING" - Failing.
|
||||
BetterAdsStatus string `json:"betterAdsStatus,omitempty"`
|
||||
|
||||
// EgregiousStatus: The status of the site reviewed for egregious ads.
|
||||
//
|
||||
// Possible values:
|
||||
// "UNKNOWN" - Not reviewed.
|
||||
// "PASSING" - Passing.
|
||||
// "FAILING" - Failing.
|
||||
EgregiousStatus string `json:"egregiousStatus,omitempty"`
|
||||
|
||||
// EnforcementTime: The date on which ad filtering begins.
|
||||
EnforcementTime string `json:"enforcementTime,omitempty"`
|
||||
|
||||
|
@ -147,7 +147,7 @@ type PlatformSummary struct {
|
|||
// UnderReview: Whether the site is currently under review.
|
||||
UnderReview bool `json:"underReview,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "BetterAdsStatus") to
|
||||
// ForceSendFields is a list of field names (e.g. "AbusiveStatus") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
|
@ -155,13 +155,12 @@ type PlatformSummary struct {
|
|||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "BetterAdsStatus") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
// NullFields is a list of field names (e.g. "AbusiveStatus") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
|
@ -364,7 +363,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*SiteSummaryResponse, e
|
|||
// ],
|
||||
// "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,\nhttps%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.",
|
||||
// "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,
|
||||
|
|
4
vendor/google.golang.org/api/adsense/v1.4/adsense-api.json
generated
vendored
4
vendor/google.golang.org/api/adsense/v1.4/adsense-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/ZPtwp1J-B1sy3-qRXXf2y9wrQDQ\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/JUHnWdtkgRO5aAK7_Wqm8rZ_rJ8\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "adsense:v1.4",
|
||||
"name": "adsense",
|
||||
"canonicalName": "AdSense",
|
||||
"version": "v1.4",
|
||||
"revision": "20170606",
|
||||
"revision": "20170910",
|
||||
"title": "AdSense Management API",
|
||||
"description": "Accesses AdSense publishers' inventory and generates performance reports.",
|
||||
"ownerDomain": "google.com",
|
||||
|
|
4
vendor/google.golang.org/api/adsensehost/v4.1/adsensehost-api.json
generated
vendored
4
vendor/google.golang.org/api/adsensehost/v4.1/adsensehost-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/GUIZYIY3cfuYjkhoORNXzoLuN-o\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/QFztQ_ABS3emSn-gE83ENFOi4tE\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "adsensehost:v4.1",
|
||||
"name": "adsensehost",
|
||||
"canonicalName": "AdSense Host",
|
||||
"version": "v4.1",
|
||||
"revision": "20170606",
|
||||
"revision": "20170910",
|
||||
"title": "AdSense Host API",
|
||||
"description": "Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts.",
|
||||
"ownerDomain": "google.com",
|
||||
|
|
4
vendor/google.golang.org/api/analytics/v2.4/analytics-api.json
generated
vendored
4
vendor/google.golang.org/api/analytics/v2.4/analytics-api.json
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/uF7o_i10s0Ir7WGM7zLi8NwSHXI\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/kYN47VW3boRYzE7pkj4HK3FyEC0\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "analytics:v2.4",
|
||||
"name": "analytics",
|
||||
"version": "v2.4",
|
||||
"revision": "20170321",
|
||||
"revision": "20170807",
|
||||
"title": "Google Analytics API",
|
||||
"description": "Views and manages your Google Analytics data.",
|
||||
"ownerDomain": "google.com",
|
||||
|
|
19
vendor/google.golang.org/api/analytics/v3/analytics-api.json
generated
vendored
19
vendor/google.golang.org/api/analytics/v3/analytics-api.json
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/-SiQlGIRBbnzY0JcLS-jmuPpVII\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/DSG2TEF18bxTdYooKf_C2-FmmME\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "analytics:v3",
|
||||
"name": "analytics",
|
||||
"version": "v3",
|
||||
"revision": "20170726",
|
||||
"revision": "20170807",
|
||||
"title": "Google Analytics API",
|
||||
"description": "Views and manages your Google Analytics data.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -505,6 +505,13 @@
|
|||
"type": "string"
|
||||
}
|
||||
},
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"description": "Collection of schema headers of the custom data source.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "Link for this Analytics custom data source."
|
||||
|
@ -519,7 +526,8 @@
|
|||
"format": "date-time"
|
||||
},
|
||||
"uploadType": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "Upload type of the custom data source."
|
||||
},
|
||||
"webPropertyId": {
|
||||
"type": "string",
|
||||
|
@ -3253,6 +3261,11 @@
|
|||
"status": {
|
||||
"type": "string",
|
||||
"description": "Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING, DELETED."
|
||||
},
|
||||
"uploadTime": {
|
||||
"type": "string",
|
||||
"description": "Time this file is uploaded.",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
65
vendor/google.golang.org/api/analytics/v3/analytics-gen.go
generated
vendored
65
vendor/google.golang.org/api/analytics/v3/analytics-gen.go
generated
vendored
|
@ -960,6 +960,9 @@ type CustomDataSource struct {
|
|||
// source.
|
||||
ProfilesLinked []string `json:"profilesLinked,omitempty"`
|
||||
|
||||
// Schema: Collection of schema headers of the custom data source.
|
||||
Schema []string `json:"schema,omitempty"`
|
||||
|
||||
// SelfLink: Link for this Analytics custom data source.
|
||||
SelfLink string `json:"selfLink,omitempty"`
|
||||
|
||||
|
@ -969,6 +972,7 @@ type CustomDataSource struct {
|
|||
// Updated: Time this custom data source was last modified.
|
||||
Updated string `json:"updated,omitempty"`
|
||||
|
||||
// UploadType: Upload type of the custom data source.
|
||||
UploadType string `json:"uploadType,omitempty"`
|
||||
|
||||
// WebPropertyId: Web property ID of the form UA-XXXXX-YY to which this
|
||||
|
@ -5077,6 +5081,9 @@ type Upload struct {
|
|||
// DELETING, DELETED.
|
||||
Status string `json:"status,omitempty"`
|
||||
|
||||
// UploadTime: Time this file is uploaded.
|
||||
UploadTime string `json:"uploadTime,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
@ -16341,11 +16348,7 @@ type ManagementUploadsUploadDataCall struct {
|
|||
webPropertyId string
|
||||
customDataSourceId string
|
||||
urlParams_ gensupport.URLParams
|
||||
media_ io.Reader
|
||||
mediaBuffer_ *gensupport.MediaBuffer
|
||||
mediaType_ string
|
||||
mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.
|
||||
progressUpdater_ googleapi.ProgressUpdater
|
||||
mediaInfo_ *gensupport.MediaInfo
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
@ -16368,12 +16371,7 @@ func (r *ManagementUploadsService) UploadData(accountId string, webPropertyId st
|
|||
// supplied.
|
||||
// At most one of Media and ResumableMedia may be set.
|
||||
func (c *ManagementUploadsUploadDataCall) Media(r io.Reader, options ...googleapi.MediaOption) *ManagementUploadsUploadDataCall {
|
||||
opts := googleapi.ProcessMediaOptions(options)
|
||||
chunkSize := opts.ChunkSize
|
||||
if !opts.ForceEmptyContentType {
|
||||
r, c.mediaType_ = gensupport.DetermineContentType(r, opts.ContentType)
|
||||
}
|
||||
c.media_, c.mediaBuffer_ = gensupport.PrepareUpload(r, chunkSize)
|
||||
c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -16388,11 +16386,7 @@ func (c *ManagementUploadsUploadDataCall) Media(r io.Reader, options ...googleap
|
|||
// supersede any context previously provided to the Context method.
|
||||
func (c *ManagementUploadsUploadDataCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ManagementUploadsUploadDataCall {
|
||||
c.ctx_ = ctx
|
||||
rdr := gensupport.ReaderAtToReader(r, size)
|
||||
rdr, c.mediaType_ = gensupport.DetermineContentType(rdr, mediaType)
|
||||
c.mediaBuffer_ = gensupport.NewMediaBuffer(rdr, googleapi.DefaultUploadChunkSize)
|
||||
c.media_ = nil
|
||||
c.mediaSize_ = size
|
||||
c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -16401,7 +16395,7 @@ func (c *ManagementUploadsUploadDataCall) ResumableMedia(ctx context.Context, r
|
|||
// not slow down the upload operation. This should only be called when
|
||||
// using ResumableMedia (as opposed to Media).
|
||||
func (c *ManagementUploadsUploadDataCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ManagementUploadsUploadDataCall {
|
||||
c.progressUpdater_ = pu
|
||||
c.mediaInfo_.SetProgressUpdater(pu)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -16441,27 +16435,16 @@ func (c *ManagementUploadsUploadDataCall) doRequest(alt string) (*http.Response,
|
|||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads")
|
||||
if c.media_ != nil || c.mediaBuffer_ != nil {
|
||||
if c.mediaInfo_ != nil {
|
||||
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
|
||||
protocol := "multipart"
|
||||
if c.mediaBuffer_ != nil {
|
||||
protocol = "resumable"
|
||||
}
|
||||
c.urlParams_.Set("uploadType", protocol)
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
if c.media_ != nil {
|
||||
combined, ctype := gensupport.CombineBodyMedia(body, "application/json", c.media_, c.mediaType_)
|
||||
defer combined.Close()
|
||||
reqHeaders.Set("Content-Type", ctype)
|
||||
body = combined
|
||||
}
|
||||
if c.mediaBuffer_ != nil && c.mediaType_ != "" {
|
||||
reqHeaders.Set("X-Upload-Content-Type", c.mediaType_)
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
|
@ -16499,20 +16482,10 @@ func (c *ManagementUploadsUploadDataCall) Do(opts ...googleapi.CallOption) (*Upl
|
|||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if c.mediaBuffer_ != nil {
|
||||
loc := res.Header.Get("Location")
|
||||
rx := &gensupport.ResumableUpload{
|
||||
Client: c.s.client,
|
||||
UserAgent: c.s.userAgent(),
|
||||
URI: loc,
|
||||
Media: c.mediaBuffer_,
|
||||
MediaType: c.mediaType_,
|
||||
Callback: func(curr int64) {
|
||||
if c.progressUpdater_ != nil {
|
||||
c.progressUpdater_(curr, c.mediaSize_)
|
||||
}
|
||||
},
|
||||
}
|
||||
rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
|
||||
if rx != nil {
|
||||
rx.Client = c.s.client
|
||||
rx.UserAgent = c.s.userAgent()
|
||||
ctx := c.ctx_
|
||||
if ctx == nil {
|
||||
ctx = context.TODO()
|
||||
|
|
1510
vendor/google.golang.org/api/analyticsreporting/v4/analyticsreporting-api.json
generated
vendored
1510
vendor/google.golang.org/api/analyticsreporting/v4/analyticsreporting-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
1310
vendor/google.golang.org/api/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json
generated
vendored
1310
vendor/google.golang.org/api/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
395
vendor/google.golang.org/api/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go
generated
vendored
395
vendor/google.golang.org/api/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go
generated
vendored
|
@ -123,11 +123,11 @@ type ClaimDeviceRequest struct {
|
|||
// DeviceIdentifier: The device identifier of the device to claim.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// SectionType: Section to claim
|
||||
// SectionType: The section to claim.
|
||||
//
|
||||
// Possible values:
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch section type.
|
||||
SectionType string `json:"sectionType,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CustomerId") to
|
||||
|
@ -156,12 +156,12 @@ func (s *ClaimDeviceRequest) MarshalJSON() ([]byte, error) {
|
|||
// ClaimDeviceResponse: Response message containing device id of the
|
||||
// claim.
|
||||
type ClaimDeviceResponse struct {
|
||||
// DeviceId: the device id of the claimed device.
|
||||
// DeviceId: The device ID of the claimed device.
|
||||
DeviceId int64 `json:"deviceId,omitempty,string"`
|
||||
|
||||
// DeviceName: the resource name of the device
|
||||
// in
|
||||
// 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'.
|
||||
// DeviceName: The resource name of the device in the
|
||||
// format
|
||||
// `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
||||
DeviceName string `json:"deviceName,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -194,7 +194,7 @@ func (s *ClaimDeviceResponse) MarshalJSON() ([]byte, error) {
|
|||
// ClaimDevicesRequest: Request to claim devices asynchronously in
|
||||
// batch.
|
||||
type ClaimDevicesRequest struct {
|
||||
// Claims: list of claims.
|
||||
// Claims: List of claims.
|
||||
Claims []*PartnerClaim `json:"claims,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Claims") to
|
||||
|
@ -222,13 +222,33 @@ func (s *ClaimDevicesRequest) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// Company: Company
|
||||
type Company struct {
|
||||
// CompanyId: company id
|
||||
// AdminEmails: Admin emails.
|
||||
// Admins are able to operate on the portal.
|
||||
// This field is a write-only field at creation time.
|
||||
AdminEmails []string `json:"adminEmails,omitempty"`
|
||||
|
||||
// CompanyId: Company ID.
|
||||
CompanyId int64 `json:"companyId,omitempty,string"`
|
||||
|
||||
// CompanyName: company name
|
||||
// CompanyName: Company name.
|
||||
CompanyName string `json:"companyName,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CompanyId") to
|
||||
// Name: The API resource name of the company in the
|
||||
// format
|
||||
// `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// OwnerEmails: Owner emails.
|
||||
// Owners are able to operate on the portal, and modify admins or
|
||||
// other
|
||||
// owners. This field is a write-only field at creation time.
|
||||
OwnerEmails []string `json:"ownerEmails,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AdminEmails") 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
|
||||
|
@ -236,10 +256,10 @@ type Company struct {
|
|||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CompanyId") 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. "AdminEmails") 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:"-"`
|
||||
|
@ -251,21 +271,53 @@ func (s *Company) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Device: Device
|
||||
// CreateCustomerRequest: Request message to create a customer.
|
||||
type CreateCustomerRequest struct {
|
||||
// Customer: The customer to create.
|
||||
Customer *Company `json:"customer,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Customer") 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. "Customer") 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 *CreateCustomerRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CreateCustomerRequest
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Device: An Android device.
|
||||
type Device struct {
|
||||
// Claims: claims
|
||||
// Claims: Claims.
|
||||
Claims []*DeviceClaim `json:"claims,omitempty"`
|
||||
|
||||
// DeviceId: Device id
|
||||
// Configuration: The resource name of the configuration.
|
||||
// Only set for customers.
|
||||
Configuration string `json:"configuration,omitempty"`
|
||||
|
||||
// DeviceId: Device ID.
|
||||
DeviceId int64 `json:"deviceId,omitempty,string"`
|
||||
|
||||
// DeviceIdentifier: Device identifier
|
||||
// DeviceIdentifier: Device identifier.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// DeviceMetadata: Device metadata
|
||||
// DeviceMetadata: Device metadata.
|
||||
DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"`
|
||||
|
||||
// Name: Resource name in 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'.
|
||||
// Name: Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -295,17 +347,16 @@ func (s *Device) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// DeviceClaim: containing the necessary info about a claim for a
|
||||
// partner.
|
||||
// DeviceClaim: Information about a device claimed for a partner.
|
||||
type DeviceClaim struct {
|
||||
// OwnerCompanyId: owner id
|
||||
// OwnerCompanyId: Owner ID.
|
||||
OwnerCompanyId int64 `json:"ownerCompanyId,omitempty,string"`
|
||||
|
||||
// SectionType: section type.
|
||||
// SectionType: Section type of the device claim.
|
||||
//
|
||||
// Possible values:
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch section type.
|
||||
SectionType string `json:"sectionType,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "OwnerCompanyId") to
|
||||
|
@ -332,22 +383,21 @@ func (s *DeviceClaim) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// DeviceIdentifier: DeviceIdentifiers identifies an unique device.
|
||||
// DeviceIdentifier: Identifies a unique device.
|
||||
type DeviceIdentifier struct {
|
||||
// Imei: IMEI (either IMEI or MEID is required).
|
||||
// Imei: IMEI number.
|
||||
Imei string `json:"imei,omitempty"`
|
||||
|
||||
// Manufacturer: Manufacturer to match android.os.Build.MANUFACTURER
|
||||
// (required).
|
||||
// Manufacturer: Manufacturer name to match
|
||||
// `android.os.Build.MANUFACTURER` (required).
|
||||
// Allowed values listed in
|
||||
// [manufacturer names](/zero-touch/resources/manufacturer-names).
|
||||
Manufacturer string `json:"manufacturer,omitempty"`
|
||||
|
||||
// Meid: MEID
|
||||
// Meid: MEID number.
|
||||
Meid string `json:"meid,omitempty"`
|
||||
|
||||
// Model: Model to match android.os.Build.MODEL (required).
|
||||
Model string `json:"model,omitempty"`
|
||||
|
||||
// SerialNumber: Serial number (optional)
|
||||
// SerialNumber: Serial number (optional).
|
||||
SerialNumber string `json:"serialNumber,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Imei") to
|
||||
|
@ -373,7 +423,7 @@ func (s *DeviceIdentifier) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// DeviceMetadata: metadata
|
||||
// DeviceMetadata: A key-value pair of the device metadata.
|
||||
type DeviceMetadata struct {
|
||||
// Entries: Metadata entries
|
||||
Entries map[string]string `json:"entries,omitempty"`
|
||||
|
@ -415,8 +465,8 @@ type DevicesLongRunningOperationMetadata struct {
|
|||
// Possible values:
|
||||
// "BATCH_PROCESS_STATUS_UNSPECIFIED" - Invalid code. Shouldn't be
|
||||
// used.
|
||||
// "BATCH_PROCESS_PENDING" - Pending
|
||||
// "BATCH_PROCESS_IN_PROGRESS" - In progress
|
||||
// "BATCH_PROCESS_PENDING" - Pending.
|
||||
// "BATCH_PROCESS_IN_PROGRESS" - In progress.
|
||||
// "BATCH_PROCESS_PROCESSED" - Processed.
|
||||
// This doesn't mean all items were processed sucessfully, you
|
||||
// should
|
||||
|
@ -451,8 +501,8 @@ func (s *DevicesLongRunningOperationMetadata) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// DevicesLongRunningOperationResponse: Long running operation response.
|
||||
type DevicesLongRunningOperationResponse struct {
|
||||
// PerDeviceStatus: processing status for each device.
|
||||
// One PerDeviceStatus per device. The order is the same as in your
|
||||
// PerDeviceStatus: Processing status for each device.
|
||||
// One `PerDeviceStatus` per device. The order is the same as in your
|
||||
// requests.
|
||||
PerDeviceStatus []*OperationPerDevice `json:"perDeviceStatus,omitempty"`
|
||||
|
||||
|
@ -503,13 +553,13 @@ type Empty struct {
|
|||
|
||||
// FindDevicesByDeviceIdentifierRequest: Request to find devices.
|
||||
type FindDevicesByDeviceIdentifierRequest struct {
|
||||
// DeviceIdentifier: The device identifier to search
|
||||
// DeviceIdentifier: The device identifier to search.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// Limit: Number of devices to show.
|
||||
Limit int64 `json:"limit,omitempty,string"`
|
||||
|
||||
// PageToken: Page token
|
||||
// PageToken: Page token.
|
||||
PageToken string `json:"pageToken,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DeviceIdentifier") to
|
||||
|
@ -542,7 +592,7 @@ type FindDevicesByDeviceIdentifierResponse struct {
|
|||
// Devices: Found devices.
|
||||
Devices []*Device `json:"devices,omitempty"`
|
||||
|
||||
// NextPageToken: Page token of next page
|
||||
// NextPageToken: Page token of the next page.
|
||||
NextPageToken string `json:"nextPageToken,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -574,20 +624,20 @@ 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: List of customer IDs to search for.
|
||||
CustomerId googleapi.Int64s `json:"customerId,omitempty"`
|
||||
|
||||
// Limit: The number of devices to show in the result.
|
||||
Limit int64 `json:"limit,omitempty,string"`
|
||||
|
||||
// PageToken: Page token
|
||||
// PageToken: Page token.
|
||||
PageToken string `json:"pageToken,omitempty"`
|
||||
|
||||
// SectionType: The section type.
|
||||
//
|
||||
// Possible values:
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch section type.
|
||||
SectionType string `json:"sectionType,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CustomerId") to
|
||||
|
@ -618,7 +668,7 @@ type FindDevicesByOwnerResponse struct {
|
|||
// Devices: Devices found.
|
||||
Devices []*Device `json:"devices,omitempty"`
|
||||
|
||||
// NextPageToken: Page token of next page
|
||||
// NextPageToken: Page token of the next page.
|
||||
NextPageToken string `json:"nextPageToken,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -687,8 +737,8 @@ func (s *ListCustomersResponse) MarshalJSON() ([]byte, error) {
|
|||
type Operation struct {
|
||||
// Done: If the value is `false`, it means the operation is still in
|
||||
// progress.
|
||||
// If true, the operation is completed, and either `error` or `response`
|
||||
// is
|
||||
// If `true`, the operation is completed, and either `error` or
|
||||
// `response` is
|
||||
// available.
|
||||
Done bool `json:"done,omitempty"`
|
||||
|
||||
|
@ -781,20 +831,20 @@ func (s *OperationPerDevice) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// PartnerClaim: Identifies one claim request.
|
||||
type PartnerClaim struct {
|
||||
// CustomerId: customer id to claim for.
|
||||
// CustomerId: Customer ID to claim for.
|
||||
CustomerId int64 `json:"customerId,omitempty,string"`
|
||||
|
||||
// DeviceIdentifier: Device identifier of the device.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// DeviceMetadata: metadata to set at claim.
|
||||
// DeviceMetadata: Metadata to set at claim.
|
||||
DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"`
|
||||
|
||||
// SectionType: section type to claim.
|
||||
// SectionType: Section type to claim.
|
||||
//
|
||||
// Possible values:
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch section type.
|
||||
SectionType string `json:"sectionType,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CustomerId") to
|
||||
|
@ -822,17 +872,17 @@ func (s *PartnerClaim) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// PartnerUnclaim: Identifies one unclaim request.
|
||||
type PartnerUnclaim struct {
|
||||
// DeviceId: device id of the device.
|
||||
// DeviceId: Device ID of the device.
|
||||
DeviceId int64 `json:"deviceId,omitempty,string"`
|
||||
|
||||
// DeviceIdentifier: device identifier of the device.
|
||||
// DeviceIdentifier: Device identifier of the device.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// SectionType: section type to unclaim.
|
||||
// SectionType: Section type to unclaim.
|
||||
//
|
||||
// Possible values:
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch section type.
|
||||
SectionType string `json:"sectionType,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DeviceId") to
|
||||
|
@ -860,33 +910,33 @@ func (s *PartnerUnclaim) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// PerDeviceStatusInBatch: Stores the processing result for each device.
|
||||
type PerDeviceStatusInBatch struct {
|
||||
// DeviceId: device id of the device if process succeeds.
|
||||
// DeviceId: Device ID of the device if process succeeds.
|
||||
DeviceId int64 `json:"deviceId,omitempty,string"`
|
||||
|
||||
// ErrorIdentifier: Error identifier.
|
||||
ErrorIdentifier string `json:"errorIdentifier,omitempty"`
|
||||
|
||||
// ErrorMessage: Error message
|
||||
// ErrorMessage: Error message.
|
||||
ErrorMessage string `json:"errorMessage,omitempty"`
|
||||
|
||||
// Status: Process result.
|
||||
//
|
||||
// Possible values:
|
||||
// "SINGLE_DEVICE_STATUS_UNSPECIFIED" - Invalid code. Shouldn' be
|
||||
// "SINGLE_DEVICE_STATUS_UNSPECIFIED" - Invalid code. Shouldn't be
|
||||
// used.
|
||||
// "SINGLE_DEVICE_STATUS_UNKNOWN_ERROR" - Unknown error.
|
||||
// Unknown error is we don't expect it here.
|
||||
// We don't expect this error to occur here.
|
||||
// "SINGLE_DEVICE_STATUS_OTHER_ERROR" - Other error.
|
||||
// Other error is we know/expect this error, but not having proper
|
||||
// error
|
||||
// code yet.
|
||||
// We know/expect this error, but there's no defined error code for
|
||||
// the
|
||||
// error.
|
||||
// "SINGLE_DEVICE_STATUS_SUCCESS" - Success.
|
||||
// "SINGLE_DEVICE_STATUS_PERMISSION_DENIED" - Permission denied
|
||||
// "SINGLE_DEVICE_STATUS_PERMISSION_DENIED" - Permission denied.
|
||||
// "SINGLE_DEVICE_STATUS_INVALID_DEVICE_IDENTIFIER" - Invalid device
|
||||
// identifier.
|
||||
// "SINGLE_DEVICE_STATUS_INVALID_SECTION_TYPE" - Invalid section type.
|
||||
// "SINGLE_DEVICE_STATUS_SECTION_NOT_YOURS" - This section is claimed
|
||||
// by other company.
|
||||
// by another company.
|
||||
Status string `json:"status,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DeviceId") to
|
||||
|
@ -1033,18 +1083,18 @@ func (s *Status) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// UnclaimDeviceRequest: Request message to unclaim a device.
|
||||
type UnclaimDeviceRequest struct {
|
||||
// DeviceId: The device id returned by ClaimDevice.
|
||||
// DeviceId: The device ID returned by `ClaimDevice`.
|
||||
DeviceId int64 `json:"deviceId,omitempty,string"`
|
||||
|
||||
// DeviceIdentifier: The device identifier you use when you claimed this
|
||||
// device.
|
||||
// DeviceIdentifier: The device identifier you used when you claimed
|
||||
// this device.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// SectionType: The section type to unclaim for.
|
||||
//
|
||||
// Possible values:
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch
|
||||
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
|
||||
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch section type.
|
||||
SectionType string `json:"sectionType,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DeviceId") to
|
||||
|
@ -1073,7 +1123,7 @@ func (s *UnclaimDeviceRequest) MarshalJSON() ([]byte, error) {
|
|||
// UnclaimDevicesRequest: Request to unclaim devices asynchronously in
|
||||
// batch.
|
||||
type UnclaimDevicesRequest struct {
|
||||
// Unclaims: list of unclaims.
|
||||
// Unclaims: List of devices to unclaim.
|
||||
Unclaims []*PartnerUnclaim `json:"unclaims,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Unclaims") to
|
||||
|
@ -1102,7 +1152,7 @@ func (s *UnclaimDevicesRequest) MarshalJSON() ([]byte, error) {
|
|||
// UpdateDeviceMetadataInBatchRequest: Request to update device metadata
|
||||
// in batch.
|
||||
type UpdateDeviceMetadataInBatchRequest struct {
|
||||
// Updates: list of metadata updates.
|
||||
// Updates: List of metadata updates.
|
||||
Updates []*UpdateMetadataArguments `json:"updates,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Updates") to
|
||||
|
@ -1159,10 +1209,10 @@ func (s *UpdateDeviceMetadataRequest) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// UpdateMetadataArguments: Identifies metdata updates to one device.
|
||||
type UpdateMetadataArguments struct {
|
||||
// DeviceId: device id of the device.
|
||||
// DeviceId: Device ID of the device.
|
||||
DeviceId int64 `json:"deviceId,omitempty,string"`
|
||||
|
||||
// DeviceIdentifier: device identifier.
|
||||
// DeviceIdentifier: Device identifier.
|
||||
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
|
||||
|
||||
// DeviceMetadata: The metadata to update.
|
||||
|
@ -1331,6 +1381,141 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
|
|||
|
||||
}
|
||||
|
||||
// method id "androiddeviceprovisioning.partners.customers.create":
|
||||
|
||||
type PartnersCustomersCreateCall struct {
|
||||
s *Service
|
||||
parent string
|
||||
createcustomerrequest *CreateCustomerRequest
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Create: A customer for Zero Touch Provisioning will be created.
|
||||
// After a Customer is created, their admins and owners will be able to
|
||||
// manage
|
||||
// devices on partner.android.com/zerotouch or via their API.
|
||||
func (r *PartnersCustomersService) Create(parent string, createcustomerrequest *CreateCustomerRequest) *PartnersCustomersCreateCall {
|
||||
c := &PartnersCustomersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.parent = parent
|
||||
c.createcustomerrequest = createcustomerrequest
|
||||
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 *PartnersCustomersCreateCall) Fields(s ...googleapi.Field) *PartnersCustomersCreateCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *PartnersCustomersCreateCall) Context(ctx context.Context) *PartnersCustomersCreateCall {
|
||||
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 *PartnersCustomersCreateCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *PartnersCustomersCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.createcustomerrequest)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/customers")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"parent": c.parent,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "androiddeviceprovisioning.partners.customers.create" call.
|
||||
// Exactly one of *Company or error will be non-nil. Any non-2xx status
|
||||
// code is an error. Response headers are in either
|
||||
// *Company.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 *PartnersCustomersCreateCall) Do(opts ...googleapi.CallOption) (*Company, 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 := &Company{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "A customer for Zero Touch Provisioning will be created.\nAfter a Customer is created, their admins and owners will be able to manage\ndevices on partner.android.com/zerotouch or via their API.",
|
||||
// "flatPath": "v1/partners/{partnersId}/customers",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.customers.create",
|
||||
// "parameterOrder": [
|
||||
// "parent"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "parent": {
|
||||
// "description": "The parent resource in format `partners/[PARTNER_ID]'.",
|
||||
// "location": "path",
|
||||
// "pattern": "^partners/[^/]+$",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "v1/{+parent}/customers",
|
||||
// "request": {
|
||||
// "$ref": "CreateCustomerRequest"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "Company"
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "androiddeviceprovisioning.partners.customers.list":
|
||||
|
||||
type PartnersCustomersListCall struct {
|
||||
|
@ -1342,8 +1527,11 @@ type PartnersCustomersListCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: List all the customers that has delegates some role to this
|
||||
// customer.
|
||||
// List: List the customers that are enrolled to the reseller identified
|
||||
// by the
|
||||
// `partnerId` argument. This list includes customers that the
|
||||
// reseller
|
||||
// created and customers that enrolled themselves using the portal.
|
||||
func (r *PartnersCustomersService) List(partnerId int64) *PartnersCustomersListCall {
|
||||
c := &PartnersCustomersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.partnerId = partnerId
|
||||
|
@ -1444,7 +1632,7 @@ func (c *PartnersCustomersListCall) Do(opts ...googleapi.CallOption) (*ListCusto
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "List all the customers that has delegates some role to this customer.",
|
||||
// "description": "List the customers that are enrolled to the reseller identified by the\n`partnerId` argument. This list includes customers that the reseller\ncreated and customers that enrolled themselves using the portal.",
|
||||
// "flatPath": "v1/partners/{partnersId}/customers",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "androiddeviceprovisioning.partners.customers.list",
|
||||
|
@ -1453,7 +1641,7 @@ func (c *PartnersCustomersListCall) Do(opts ...googleapi.CallOption) (*ListCusto
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "the id of the partner.",
|
||||
// "description": "The ID of the partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
|
@ -1583,7 +1771,7 @@ func (c *PartnersDevicesClaimCall) Do(opts ...googleapi.CallOption) (*ClaimDevic
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "Id of the partner.",
|
||||
// "description": "ID of the partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
|
@ -1613,7 +1801,7 @@ type PartnersDevicesClaimAsyncCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// ClaimAsync: Claim devices asynchronously
|
||||
// ClaimAsync: Claim devices asynchronously.
|
||||
func (r *PartnersDevicesService) ClaimAsync(partnerId int64, claimdevicesrequest *ClaimDevicesRequest) *PartnersDevicesClaimAsyncCall {
|
||||
c := &PartnersDevicesClaimAsyncCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.partnerId = partnerId
|
||||
|
@ -1707,7 +1895,7 @@ func (c *PartnersDevicesClaimAsyncCall) Do(opts ...googleapi.CallOption) (*Opera
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Claim devices asynchronously",
|
||||
// "description": "Claim devices asynchronously.",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices:claimAsync",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.claimAsync",
|
||||
|
@ -1716,7 +1904,7 @@ func (c *PartnersDevicesClaimAsyncCall) Do(opts ...googleapi.CallOption) (*Opera
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "partner id.",
|
||||
// "description": "Partner ID.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
|
@ -1850,7 +2038,7 @@ func (c *PartnersDevicesFindByIdentifierCall) Do(opts ...googleapi.CallOption) (
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "id of the partner.",
|
||||
// "description": "ID of the partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
|
@ -2004,7 +2192,7 @@ func (c *PartnersDevicesFindByOwnerCall) Do(opts ...googleapi.CallOption) (*Find
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "id of the partner.",
|
||||
// "description": "ID of the partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
|
@ -2055,7 +2243,7 @@ type PartnersDevicesGetCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Get a device
|
||||
// Get: Get a device.
|
||||
func (r *PartnersDevicesService) Get(name string) *PartnersDevicesGetCall {
|
||||
c := &PartnersDevicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
@ -2156,7 +2344,7 @@ func (c *PartnersDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, erro
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Get a device",
|
||||
// "description": "Get a device.",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices/{devicesId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.get",
|
||||
|
@ -2165,7 +2353,7 @@ func (c *PartnersDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, erro
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "name": {
|
||||
// "description": "resource name in 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'.",
|
||||
// "description": "Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.",
|
||||
// "location": "path",
|
||||
// "pattern": "^partners/[^/]+/devices/[^/]+$",
|
||||
// "required": true,
|
||||
|
@ -2192,7 +2380,7 @@ type PartnersDevicesMetadataCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// Metadata: Update the metadata
|
||||
// Metadata: Update the metadata.
|
||||
func (r *PartnersDevicesService) Metadata(metadataOwnerId int64, deviceId int64, updatedevicemetadatarequest *UpdateDeviceMetadataRequest) *PartnersDevicesMetadataCall {
|
||||
c := &PartnersDevicesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.metadataOwnerId = metadataOwnerId
|
||||
|
@ -2288,7 +2476,7 @@ func (c *PartnersDevicesMetadataCall) Do(opts ...googleapi.CallOption) (*DeviceM
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Update the metadata",
|
||||
// "description": "Update the metadata.",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices/{devicesId}/metadata",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.metadata",
|
||||
|
@ -2298,7 +2486,7 @@ func (c *PartnersDevicesMetadataCall) Do(opts ...googleapi.CallOption) (*DeviceM
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "deviceId": {
|
||||
// "description": "id of the partner.",
|
||||
// "description": "ID of the partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
|
@ -2306,7 +2494,7 @@ func (c *PartnersDevicesMetadataCall) Do(opts ...googleapi.CallOption) (*DeviceM
|
|||
// "type": "string"
|
||||
// },
|
||||
// "metadataOwnerId": {
|
||||
// "description": "The owner of the newly set metadata. Should be partner id itself.",
|
||||
// "description": "The owner of the newly set metadata. Set this to the partner ID.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
|
@ -2336,7 +2524,8 @@ type PartnersDevicesUnclaimCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// Unclaim: Unclaim the device identified by device_id or identifier.
|
||||
// Unclaim: Unclaim the device identified by the `device_id` or the
|
||||
// `deviceIdentifier`.
|
||||
func (r *PartnersDevicesService) Unclaim(partnerId int64, unclaimdevicerequest *UnclaimDeviceRequest) *PartnersDevicesUnclaimCall {
|
||||
c := &PartnersDevicesUnclaimCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.partnerId = partnerId
|
||||
|
@ -2430,7 +2619,7 @@ func (c *PartnersDevicesUnclaimCall) Do(opts ...googleapi.CallOption) (*Empty, e
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Unclaim the device identified by device_id or identifier.",
|
||||
// "description": "Unclaim the device identified by the `device_id` or the `deviceIdentifier`.",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices:unclaim",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.unclaim",
|
||||
|
@ -2439,7 +2628,7 @@ func (c *PartnersDevicesUnclaimCall) Do(opts ...googleapi.CallOption) (*Empty, e
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "Id of the partner.",
|
||||
// "description": "ID of the partner.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
|
@ -2469,7 +2658,7 @@ type PartnersDevicesUnclaimAsyncCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// UnclaimAsync: Unclaim devices asynchronously
|
||||
// UnclaimAsync: Unclaim devices asynchronously.
|
||||
func (r *PartnersDevicesService) UnclaimAsync(partnerId int64, unclaimdevicesrequest *UnclaimDevicesRequest) *PartnersDevicesUnclaimAsyncCall {
|
||||
c := &PartnersDevicesUnclaimAsyncCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.partnerId = partnerId
|
||||
|
@ -2563,7 +2752,7 @@ func (c *PartnersDevicesUnclaimAsyncCall) Do(opts ...googleapi.CallOption) (*Ope
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Unclaim devices asynchronously",
|
||||
// "description": "Unclaim devices asynchronously.",
|
||||
// "flatPath": "v1/partners/{partnersId}/devices:unclaimAsync",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androiddeviceprovisioning.partners.devices.unclaimAsync",
|
||||
|
@ -2572,7 +2761,7 @@ func (c *PartnersDevicesUnclaimAsyncCall) Do(opts ...googleapi.CallOption) (*Ope
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "partner id.",
|
||||
// "description": "Partner ID.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
|
@ -2705,7 +2894,7 @@ func (c *PartnersDevicesUpdateMetadataAsyncCall) Do(opts ...googleapi.CallOption
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "partnerId": {
|
||||
// "description": "partner id.",
|
||||
// "description": "Partner ID.",
|
||||
// "format": "int64",
|
||||
// "location": "path",
|
||||
// "pattern": "^[^/]+$",
|
||||
|
|
30
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-api.json
generated
vendored
30
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/DGIUP89Ib5-EtHtiJPYksWeqJMc\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/RhIHx1SwfJ96Awey5il5_fqGJDg\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "androidenterprise:v1",
|
||||
"name": "androidenterprise",
|
||||
"canonicalName": "Android Enterprise",
|
||||
"version": "v1",
|
||||
"revision": "20170726",
|
||||
"revision": "20170830",
|
||||
"title": "Google Play EMM API",
|
||||
"description": "Manages the deployment of apps to Android for Work users.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -493,7 +493,7 @@
|
|||
"GroupLicense": {
|
||||
"id": "GroupLicense",
|
||||
"type": "object",
|
||||
"description": "A group license object indicates a product that an enterprise admin has approved for use in the enterprise. The product may be free or paid. For free products, a group license object is created in these cases: if the enterprise admin approves a product in Google Play, if the product is added to a collection, or if an entitlement for the product is created for a user via the API. For paid products, a group license object is only created as part of the first bulk purchase of that product in Google Play by the enterprise admin.\n\nThe API can be used to query group licenses; the available information includes the total number of licenses purchased (for paid products) and the total number of licenses that have been provisioned, that is, the total number of user entitlements in existence for the product.\n\nGroup license objects are never deleted. If, for example, a free app is added to a collection and then removed, the group license will remain, allowing the enterprise admin to keep track of any remaining entitlements. An enterprise admin may indicate they are no longer interested in the group license by marking it as unapproved in Google Play.",
|
||||
"description": "Group license objects allow you to keep track of licenses (called entitlements) for both free and paid apps. For a free app, a group license is created when an enterprise admin first approves the product in Google Play or when the first entitlement for the product is created for a user via the API. For a paid app, a group license object is only created when an enterprise admin purchases the product in Google Play for the first time.\n\nUse the API to query group licenses. A Grouplicenses resource includes the total number of licenses purchased (paid apps only) and the total number of licenses currently in use. Iyn other words, the total number of Entitlements that exist for the product.\n\nOnly one group license object is created per product and group license objects are never deleted. If a product is unapproved, its group license remains. This allows enterprise admins to keep track of any remaining entitlements for the product.",
|
||||
"properties": {
|
||||
"acquisitionKind": {
|
||||
"type": "string",
|
||||
|
@ -933,7 +933,7 @@
|
|||
"properties": {
|
||||
"appVersion": {
|
||||
"type": "array",
|
||||
"description": "App versions currently available for this product. The returned list contains only public versions. Alpha and beta versions are not included.",
|
||||
"description": "App versions currently available for this product.",
|
||||
"items": {
|
||||
"$ref": "AppVersion"
|
||||
}
|
||||
|
@ -971,6 +971,10 @@
|
|||
"type": "boolean",
|
||||
"description": "Deprecated."
|
||||
},
|
||||
"signingCertificate": {
|
||||
"$ref": "ProductSigningCertificate",
|
||||
"description": "The certificate used to sign this product."
|
||||
},
|
||||
"smallIconUrl": {
|
||||
"type": "string",
|
||||
"description": "A link to a smaller image that can be used as an icon for the product. This image is suitable for use at up to 128px x 128px."
|
||||
|
@ -1072,7 +1076,21 @@
|
|||
},
|
||||
"productSetBehavior": {
|
||||
"type": "string",
|
||||
"description": "The interpretation of this product set. \"unknown\" should never be sent and is ignored if received. \"whitelist\" means that the user is entitled to access the product set. \"includeAll\" means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. \"allApproved\" means that the user is entitled to access all products that are approved for the enterprise. If the value is \"allApproved\" or \"includeAll\", the productId field is ignored. If no value is provided, it is interpreted as \"whitelist\" for backwards compatibility."
|
||||
"description": "The interpretation of this product set. \"unknown\" should never be sent and is ignored if received. \"whitelist\" means that the user is entitled to access the product set. \"includeAll\" means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. \"allApproved\" means that the user is entitled to access all products that are approved for the enterprise. If the value is \"allApproved\" or \"includeAll\", the productId field is ignored. If no value is provided, it is interpreted as \"whitelist\" for backwards compatibility. Further \"allApproved\" or \"includeAll\" does not enable automatic visibility of \"alpha\" or \"beta\" tracks for Android app. Use ProductVisibility to enable \"alpha\" or \"beta\" tracks per user."
|
||||
}
|
||||
}
|
||||
},
|
||||
"ProductSigningCertificate": {
|
||||
"id": "ProductSigningCertificate",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"certificateHashSha1": {
|
||||
"type": "string",
|
||||
"description": "The base64 urlsafe encoded SHA1 hash of the certificate. (This field is deprecated in favor of SHA2-256. It should not be used and may be removed at any time.)"
|
||||
},
|
||||
"certificateHashSha256": {
|
||||
"type": "string",
|
||||
"description": "The base64 urlsafe encoded SHA2-256 hash of the certificate."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -1900,7 +1918,7 @@
|
|||
"id": "androidenterprise.enterprises.sendTestPushNotification",
|
||||
"path": "enterprises/{enterpriseId}/sendTestPushNotification",
|
||||
"httpMethod": "POST",
|
||||
"description": "Sends a test push notification to validate the EMM integration with the Google Cloud Pub/Sub service for this enterprise.",
|
||||
"description": "Sends a test notification to validate the EMM integration with the Google Cloud Pub/Sub service for this enterprise.",
|
||||
"parameters": {
|
||||
"enterpriseId": {
|
||||
"type": "string",
|
||||
|
|
87
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-gen.go
generated
vendored
87
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-gen.go
generated
vendored
|
@ -1113,28 +1113,23 @@ func (s *EntitlementsListResponse) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// GroupLicense: A group license object indicates a product that an
|
||||
// enterprise admin has approved for use in the enterprise. The product
|
||||
// may be free or paid. For free products, a group license object is
|
||||
// created in these cases: if the enterprise admin approves a product in
|
||||
// Google Play, if the product is added to a collection, or if an
|
||||
// entitlement for the product is created for a user via the API. For
|
||||
// paid products, a group license object is only created as part of the
|
||||
// first bulk purchase of that product in Google Play by the enterprise
|
||||
// admin.
|
||||
// GroupLicense: Group license objects allow you to keep track of
|
||||
// licenses (called entitlements) for both free and paid apps. For a
|
||||
// free app, a group license is created when an enterprise admin first
|
||||
// approves the product in Google Play or when the first entitlement for
|
||||
// the product is created for a user via the API. For a paid app, a
|
||||
// group license object is only created when an enterprise admin
|
||||
// purchases the product in Google Play for the first time.
|
||||
//
|
||||
// The API can be used to query group licenses; the available
|
||||
// information includes the total number of licenses purchased (for paid
|
||||
// products) and the total number of licenses that have been
|
||||
// provisioned, that is, the total number of user entitlements in
|
||||
// existence for the product.
|
||||
// Use the API to query group licenses. A Grouplicenses resource
|
||||
// includes the total number of licenses purchased (paid apps only) and
|
||||
// the total number of licenses currently in use. Iyn other words, the
|
||||
// total number of Entitlements that exist for the product.
|
||||
//
|
||||
// Group license objects are never deleted. If, for example, a free app
|
||||
// is added to a collection and then removed, the group license will
|
||||
// remain, allowing the enterprise admin to keep track of any remaining
|
||||
// entitlements. An enterprise admin may indicate they are no longer
|
||||
// interested in the group license by marking it as unapproved in Google
|
||||
// Play.
|
||||
// Only one group license object is created per product and group
|
||||
// license objects are never deleted. If a product is unapproved, its
|
||||
// group license remains. This allows enterprise admins to keep track of
|
||||
// any remaining entitlements for the product.
|
||||
type GroupLicense struct {
|
||||
// AcquisitionKind: How this group license was acquired. "bulkPurchase"
|
||||
// means that this Grouplicenses resource was created because the
|
||||
|
@ -1960,9 +1955,7 @@ func (s *Permission) MarshalJSON() ([]byte, error) {
|
|||
// to the full Google Play details page) is intended to allow a basic
|
||||
// representation of the product within an EMM user interface.
|
||||
type Product struct {
|
||||
// AppVersion: App versions currently available for this product. The
|
||||
// returned list contains only public versions. Alpha and beta versions
|
||||
// are not included.
|
||||
// AppVersion: App versions currently available for this product.
|
||||
AppVersion []*AppVersion `json:"appVersion,omitempty"`
|
||||
|
||||
// AuthorName: The name of the author of the product (for example, the
|
||||
|
@ -2003,6 +1996,9 @@ type Product struct {
|
|||
// RequiresContainerApp: Deprecated.
|
||||
RequiresContainerApp bool `json:"requiresContainerApp,omitempty"`
|
||||
|
||||
// SigningCertificate: The certificate used to sign this product.
|
||||
SigningCertificate *ProductSigningCertificate `json:"signingCertificate,omitempty"`
|
||||
|
||||
// SmallIconUrl: A link to a smaller image that can be used as an icon
|
||||
// for the product. This image is suitable for use at up to 128px x
|
||||
// 128px.
|
||||
|
@ -2208,7 +2204,10 @@ type ProductSet struct {
|
|||
// access all products that are approved for the enterprise. If the
|
||||
// value is "allApproved" or "includeAll", the productId field is
|
||||
// ignored. If no value is provided, it is interpreted as "whitelist"
|
||||
// for backwards compatibility.
|
||||
// for backwards compatibility. Further "allApproved" or "includeAll"
|
||||
// does not enable automatic visibility of "alpha" or "beta" tracks for
|
||||
// Android app. Use ProductVisibility to enable "alpha" or "beta" tracks
|
||||
// per user.
|
||||
ProductSetBehavior string `json:"productSetBehavior,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -2238,6 +2237,40 @@ func (s *ProductSet) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type ProductSigningCertificate struct {
|
||||
// CertificateHashSha1: The base64 urlsafe encoded SHA1 hash of the
|
||||
// certificate. (This field is deprecated in favor of SHA2-256. It
|
||||
// should not be used and may be removed at any time.)
|
||||
CertificateHashSha1 string `json:"certificateHashSha1,omitempty"`
|
||||
|
||||
// CertificateHashSha256: The base64 urlsafe encoded SHA2-256 hash of
|
||||
// the certificate.
|
||||
CertificateHashSha256 string `json:"certificateHashSha256,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CertificateHashSha1")
|
||||
// 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. "CertificateHashSha1") 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 *ProductSigningCertificate) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ProductSigningCertificate
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type ProductsApproveRequest struct {
|
||||
// ApprovalUrlInfo: The approval URL that was shown to the user. Only
|
||||
// the permissions shown to the user with that URL will be accepted,
|
||||
|
@ -5325,8 +5358,8 @@ type EnterprisesSendTestPushNotificationCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// SendTestPushNotification: Sends a test push notification to validate
|
||||
// the EMM integration with the Google Cloud Pub/Sub service for this
|
||||
// SendTestPushNotification: Sends a test notification to validate the
|
||||
// EMM integration with the Google Cloud Pub/Sub service for this
|
||||
// enterprise.
|
||||
func (r *EnterprisesService) SendTestPushNotification(enterpriseId string) *EnterprisesSendTestPushNotificationCall {
|
||||
c := &EnterprisesSendTestPushNotificationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
|
@ -5417,7 +5450,7 @@ func (c *EnterprisesSendTestPushNotificationCall) Do(opts ...googleapi.CallOptio
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Sends a test push notification to validate the EMM integration with the Google Cloud Pub/Sub service for this enterprise.",
|
||||
// "description": "Sends a test notification to validate the EMM integration with the Google Cloud Pub/Sub service for this enterprise.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androidenterprise.enterprises.sendTestPushNotification",
|
||||
// "parameterOrder": [
|
||||
|
|
528
vendor/google.golang.org/api/androidmanagement/v1/androidmanagement-api.json
generated
vendored
528
vendor/google.golang.org/api/androidmanagement/v1/androidmanagement-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
1417
vendor/google.golang.org/api/androidmanagement/v1/androidmanagement-gen.go
generated
vendored
1417
vendor/google.golang.org/api/androidmanagement/v1/androidmanagement-gen.go
generated
vendored
File diff suppressed because it is too large
Load diff
8
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-api.json
generated
vendored
8
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/jAh44-3E4QU-_OC0i2RcuiwRQzw\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/LIbYVZb_4AVNYXTI7gW6jjbQKZE\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "androidpublisher:v1.1",
|
||||
"name": "androidpublisher",
|
||||
"canonicalName": "Android Publisher",
|
||||
"version": "v1.1",
|
||||
"revision": "20170504",
|
||||
"revision": "20170815",
|
||||
"title": "Google Play Developer API",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -96,6 +96,10 @@
|
|||
"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",
|
||||
|
|
4
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-gen.go
generated
vendored
4
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-gen.go
generated
vendored
|
@ -113,6 +113,10 @@ type InappPurchase struct {
|
|||
// androidpublisher service.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// OrderId: The order id associated with the purchase of the inapp
|
||||
// product.
|
||||
OrderId string `json:"orderId,omitempty"`
|
||||
|
||||
// PurchaseState: The purchase state of the order. Possible values are:
|
||||
//
|
||||
// - Purchased
|
||||
|
|
4
vendor/google.golang.org/api/androidpublisher/v1/androidpublisher-api.json
generated
vendored
4
vendor/google.golang.org/api/androidpublisher/v1/androidpublisher-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/JYnXSSeS9snUxwUvBiIlGUwDhtI\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/GFmAPKnOg_ftPo6thNMuQykGE_I\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "androidpublisher:v1",
|
||||
"name": "androidpublisher",
|
||||
"canonicalName": "Android Publisher",
|
||||
"version": "v1",
|
||||
"revision": "20170504",
|
||||
"revision": "20170815",
|
||||
"title": "Google Play Developer API",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"ownerDomain": "google.com",
|
||||
|
|
22
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-api.json
generated
vendored
22
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/fkMKFYhAB3V0ia83SVxm8xZB5LU\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/e4AtolObWHB9RMWbWiGGnmazpNA\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "androidpublisher:v2",
|
||||
"name": "androidpublisher",
|
||||
"canonicalName": "Android Publisher",
|
||||
"version": "v2",
|
||||
"revision": "20170504",
|
||||
"revision": "20170815",
|
||||
"title": "Google Play Developer API",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -100,6 +100,10 @@
|
|||
"sha1": {
|
||||
"type": "string",
|
||||
"description": "A sha1 hash of the APK payload, encoded as a hex string and matching the output of the sha1sum command."
|
||||
},
|
||||
"sha256": {
|
||||
"type": "string",
|
||||
"description": "A sha256 hash of the APK payload, encoded as a hex string and matching the output of the sha256sum command."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -830,6 +834,10 @@
|
|||
"description": "This kind represents an inappPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#productPurchase"
|
||||
},
|
||||
"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",
|
||||
|
@ -998,9 +1006,13 @@
|
|||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#subscriptionPurchase"
|
||||
},
|
||||
"orderId": {
|
||||
"type": "string",
|
||||
"description": "The order id of the latest recurring order associated with the purchase of the subscription."
|
||||
},
|
||||
"paymentState": {
|
||||
"type": "integer",
|
||||
"description": "The payment state of the subscription. Possible values are: \n- Payment pending \n- Payment received",
|
||||
"description": "The payment state of the subscription. Possible values are: \n- Payment pending \n- Payment received \n- Free trial",
|
||||
"format": "int32"
|
||||
},
|
||||
"priceAmountMicros": {
|
||||
|
@ -3491,7 +3503,7 @@
|
|||
"parameters": {
|
||||
"endTime": {
|
||||
"type": "string",
|
||||
"description": "The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time.",
|
||||
"description": "The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.",
|
||||
"format": "int64",
|
||||
"location": "query"
|
||||
},
|
||||
|
@ -3513,7 +3525,7 @@
|
|||
},
|
||||
"startTime": {
|
||||
"type": "string",
|
||||
"description": "The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days.",
|
||||
"description": "The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.",
|
||||
"format": "int64",
|
||||
"location": "query"
|
||||
},
|
||||
|
|
287
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-gen.go
generated
vendored
287
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-gen.go
generated
vendored
|
@ -317,6 +317,10 @@ type ApkBinary struct {
|
|||
// matching the output of the sha1sum command.
|
||||
Sha1 string `json:"sha1,omitempty"`
|
||||
|
||||
// Sha256: A sha256 hash of the APK payload, encoded as a hex string and
|
||||
// matching the output of the sha256sum command.
|
||||
Sha256 string `json:"sha256,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Sha1") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
|
@ -1696,6 +1700,10 @@ type ProductPurchase struct {
|
|||
// androidpublisher service.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// OrderId: The order id associated with the purchase of the inapp
|
||||
// product.
|
||||
OrderId string `json:"orderId,omitempty"`
|
||||
|
||||
// PurchaseState: The purchase state of the order. Possible values are:
|
||||
//
|
||||
// - Purchased
|
||||
|
@ -2032,10 +2040,15 @@ type SubscriptionPurchase struct {
|
|||
// androidpublisher service.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// OrderId: The order id of the latest recurring order associated with
|
||||
// the purchase of the subscription.
|
||||
OrderId string `json:"orderId,omitempty"`
|
||||
|
||||
// PaymentState: The payment state of the subscription. Possible values
|
||||
// are:
|
||||
// - Payment pending
|
||||
// - Payment received
|
||||
// - Free trial
|
||||
PaymentState *int64 `json:"paymentState,omitempty"`
|
||||
|
||||
// PriceAmountMicros: Price of the subscription, not including tax.
|
||||
|
@ -4325,17 +4338,13 @@ func (c *EditsApksListCall) Do(opts ...googleapi.CallOption) (*ApksListResponse,
|
|||
// method id "androidpublisher.edits.apks.upload":
|
||||
|
||||
type EditsApksUploadCall struct {
|
||||
s *Service
|
||||
packageNameid string
|
||||
editId string
|
||||
urlParams_ gensupport.URLParams
|
||||
media_ io.Reader
|
||||
mediaBuffer_ *gensupport.MediaBuffer
|
||||
mediaType_ string
|
||||
mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.
|
||||
progressUpdater_ googleapi.ProgressUpdater
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
s *Service
|
||||
packageNameid string
|
||||
editId string
|
||||
urlParams_ gensupport.URLParams
|
||||
mediaInfo_ *gensupport.MediaInfo
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Upload:
|
||||
|
@ -4355,12 +4364,7 @@ func (r *EditsApksService) Upload(packageNameid string, editId string) *EditsApk
|
|||
// supplied.
|
||||
// At most one of Media and ResumableMedia may be set.
|
||||
func (c *EditsApksUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *EditsApksUploadCall {
|
||||
opts := googleapi.ProcessMediaOptions(options)
|
||||
chunkSize := opts.ChunkSize
|
||||
if !opts.ForceEmptyContentType {
|
||||
r, c.mediaType_ = gensupport.DetermineContentType(r, opts.ContentType)
|
||||
}
|
||||
c.media_, c.mediaBuffer_ = gensupport.PrepareUpload(r, chunkSize)
|
||||
c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -4375,11 +4379,7 @@ func (c *EditsApksUploadCall) Media(r io.Reader, options ...googleapi.MediaOptio
|
|||
// supersede any context previously provided to the Context method.
|
||||
func (c *EditsApksUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *EditsApksUploadCall {
|
||||
c.ctx_ = ctx
|
||||
rdr := gensupport.ReaderAtToReader(r, size)
|
||||
rdr, c.mediaType_ = gensupport.DetermineContentType(rdr, mediaType)
|
||||
c.mediaBuffer_ = gensupport.NewMediaBuffer(rdr, googleapi.DefaultUploadChunkSize)
|
||||
c.media_ = nil
|
||||
c.mediaSize_ = size
|
||||
c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -4388,7 +4388,7 @@ func (c *EditsApksUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt,
|
|||
// not slow down the upload operation. This should only be called when
|
||||
// using ResumableMedia (as opposed to Media).
|
||||
func (c *EditsApksUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *EditsApksUploadCall {
|
||||
c.progressUpdater_ = pu
|
||||
c.mediaInfo_.SetProgressUpdater(pu)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -4428,27 +4428,16 @@ func (c *EditsApksUploadCall) doRequest(alt string) (*http.Response, error) {
|
|||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{packageName}/edits/{editId}/apks")
|
||||
if c.media_ != nil || c.mediaBuffer_ != nil {
|
||||
if c.mediaInfo_ != nil {
|
||||
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
|
||||
protocol := "multipart"
|
||||
if c.mediaBuffer_ != nil {
|
||||
protocol = "resumable"
|
||||
}
|
||||
c.urlParams_.Set("uploadType", protocol)
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
if c.media_ != nil {
|
||||
combined, ctype := gensupport.CombineBodyMedia(body, "application/json", c.media_, c.mediaType_)
|
||||
defer combined.Close()
|
||||
reqHeaders.Set("Content-Type", ctype)
|
||||
body = combined
|
||||
}
|
||||
if c.mediaBuffer_ != nil && c.mediaType_ != "" {
|
||||
reqHeaders.Set("X-Upload-Content-Type", c.mediaType_)
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
|
@ -4485,20 +4474,10 @@ func (c *EditsApksUploadCall) Do(opts ...googleapi.CallOption) (*Apk, error) {
|
|||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if c.mediaBuffer_ != nil {
|
||||
loc := res.Header.Get("Location")
|
||||
rx := &gensupport.ResumableUpload{
|
||||
Client: c.s.client,
|
||||
UserAgent: c.s.userAgent(),
|
||||
URI: loc,
|
||||
Media: c.mediaBuffer_,
|
||||
MediaType: c.mediaType_,
|
||||
Callback: func(curr int64) {
|
||||
if c.progressUpdater_ != nil {
|
||||
c.progressUpdater_(curr, c.mediaSize_)
|
||||
}
|
||||
},
|
||||
}
|
||||
rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
|
||||
if rx != nil {
|
||||
rx.Client = c.s.client
|
||||
rx.UserAgent = c.s.userAgent()
|
||||
ctx := c.ctx_
|
||||
if ctx == nil {
|
||||
ctx = context.TODO()
|
||||
|
@ -4582,11 +4561,7 @@ type EditsDeobfuscationfilesUploadCall struct {
|
|||
apkVersionCode int64
|
||||
deobfuscationFileType string
|
||||
urlParams_ gensupport.URLParams
|
||||
media_ io.Reader
|
||||
mediaBuffer_ *gensupport.MediaBuffer
|
||||
mediaType_ string
|
||||
mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.
|
||||
progressUpdater_ googleapi.ProgressUpdater
|
||||
mediaInfo_ *gensupport.MediaInfo
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
@ -4611,12 +4586,7 @@ func (r *EditsDeobfuscationfilesService) Upload(packageNameid string, editId str
|
|||
// supplied.
|
||||
// At most one of Media and ResumableMedia may be set.
|
||||
func (c *EditsDeobfuscationfilesUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *EditsDeobfuscationfilesUploadCall {
|
||||
opts := googleapi.ProcessMediaOptions(options)
|
||||
chunkSize := opts.ChunkSize
|
||||
if !opts.ForceEmptyContentType {
|
||||
r, c.mediaType_ = gensupport.DetermineContentType(r, opts.ContentType)
|
||||
}
|
||||
c.media_, c.mediaBuffer_ = gensupport.PrepareUpload(r, chunkSize)
|
||||
c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -4631,11 +4601,7 @@ func (c *EditsDeobfuscationfilesUploadCall) Media(r io.Reader, options ...google
|
|||
// supersede any context previously provided to the Context method.
|
||||
func (c *EditsDeobfuscationfilesUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *EditsDeobfuscationfilesUploadCall {
|
||||
c.ctx_ = ctx
|
||||
rdr := gensupport.ReaderAtToReader(r, size)
|
||||
rdr, c.mediaType_ = gensupport.DetermineContentType(rdr, mediaType)
|
||||
c.mediaBuffer_ = gensupport.NewMediaBuffer(rdr, googleapi.DefaultUploadChunkSize)
|
||||
c.media_ = nil
|
||||
c.mediaSize_ = size
|
||||
c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -4644,7 +4610,7 @@ func (c *EditsDeobfuscationfilesUploadCall) ResumableMedia(ctx context.Context,
|
|||
// not slow down the upload operation. This should only be called when
|
||||
// using ResumableMedia (as opposed to Media).
|
||||
func (c *EditsDeobfuscationfilesUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *EditsDeobfuscationfilesUploadCall {
|
||||
c.progressUpdater_ = pu
|
||||
c.mediaInfo_.SetProgressUpdater(pu)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -4684,27 +4650,16 @@ func (c *EditsDeobfuscationfilesUploadCall) doRequest(alt string) (*http.Respons
|
|||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}")
|
||||
if c.media_ != nil || c.mediaBuffer_ != nil {
|
||||
if c.mediaInfo_ != nil {
|
||||
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
|
||||
protocol := "multipart"
|
||||
if c.mediaBuffer_ != nil {
|
||||
protocol = "resumable"
|
||||
}
|
||||
c.urlParams_.Set("uploadType", protocol)
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
if c.media_ != nil {
|
||||
combined, ctype := gensupport.CombineBodyMedia(body, "application/json", c.media_, c.mediaType_)
|
||||
defer combined.Close()
|
||||
reqHeaders.Set("Content-Type", ctype)
|
||||
body = combined
|
||||
}
|
||||
if c.mediaBuffer_ != nil && c.mediaType_ != "" {
|
||||
reqHeaders.Set("X-Upload-Content-Type", c.mediaType_)
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
|
@ -4743,20 +4698,10 @@ func (c *EditsDeobfuscationfilesUploadCall) Do(opts ...googleapi.CallOption) (*D
|
|||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if c.mediaBuffer_ != nil {
|
||||
loc := res.Header.Get("Location")
|
||||
rx := &gensupport.ResumableUpload{
|
||||
Client: c.s.client,
|
||||
UserAgent: c.s.userAgent(),
|
||||
URI: loc,
|
||||
Media: c.mediaBuffer_,
|
||||
MediaType: c.mediaType_,
|
||||
Callback: func(curr int64) {
|
||||
if c.progressUpdater_ != nil {
|
||||
c.progressUpdater_(curr, c.mediaSize_)
|
||||
}
|
||||
},
|
||||
}
|
||||
rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
|
||||
if rx != nil {
|
||||
rx.Client = c.s.client
|
||||
rx.UserAgent = c.s.userAgent()
|
||||
ctx := c.ctx_
|
||||
if ctx == nil {
|
||||
ctx = context.TODO()
|
||||
|
@ -5816,11 +5761,7 @@ type EditsExpansionfilesUploadCall struct {
|
|||
apkVersionCode int64
|
||||
expansionFileType string
|
||||
urlParams_ gensupport.URLParams
|
||||
media_ io.Reader
|
||||
mediaBuffer_ *gensupport.MediaBuffer
|
||||
mediaType_ string
|
||||
mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.
|
||||
progressUpdater_ googleapi.ProgressUpdater
|
||||
mediaInfo_ *gensupport.MediaInfo
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
@ -5845,12 +5786,7 @@ func (r *EditsExpansionfilesService) Upload(packageNameid string, editId string,
|
|||
// supplied.
|
||||
// At most one of Media and ResumableMedia may be set.
|
||||
func (c *EditsExpansionfilesUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *EditsExpansionfilesUploadCall {
|
||||
opts := googleapi.ProcessMediaOptions(options)
|
||||
chunkSize := opts.ChunkSize
|
||||
if !opts.ForceEmptyContentType {
|
||||
r, c.mediaType_ = gensupport.DetermineContentType(r, opts.ContentType)
|
||||
}
|
||||
c.media_, c.mediaBuffer_ = gensupport.PrepareUpload(r, chunkSize)
|
||||
c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -5865,11 +5801,7 @@ func (c *EditsExpansionfilesUploadCall) Media(r io.Reader, options ...googleapi.
|
|||
// supersede any context previously provided to the Context method.
|
||||
func (c *EditsExpansionfilesUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *EditsExpansionfilesUploadCall {
|
||||
c.ctx_ = ctx
|
||||
rdr := gensupport.ReaderAtToReader(r, size)
|
||||
rdr, c.mediaType_ = gensupport.DetermineContentType(rdr, mediaType)
|
||||
c.mediaBuffer_ = gensupport.NewMediaBuffer(rdr, googleapi.DefaultUploadChunkSize)
|
||||
c.media_ = nil
|
||||
c.mediaSize_ = size
|
||||
c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -5878,7 +5810,7 @@ func (c *EditsExpansionfilesUploadCall) ResumableMedia(ctx context.Context, r io
|
|||
// not slow down the upload operation. This should only be called when
|
||||
// using ResumableMedia (as opposed to Media).
|
||||
func (c *EditsExpansionfilesUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *EditsExpansionfilesUploadCall {
|
||||
c.progressUpdater_ = pu
|
||||
c.mediaInfo_.SetProgressUpdater(pu)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -5918,27 +5850,16 @@ func (c *EditsExpansionfilesUploadCall) doRequest(alt string) (*http.Response, e
|
|||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}")
|
||||
if c.media_ != nil || c.mediaBuffer_ != nil {
|
||||
if c.mediaInfo_ != nil {
|
||||
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
|
||||
protocol := "multipart"
|
||||
if c.mediaBuffer_ != nil {
|
||||
protocol = "resumable"
|
||||
}
|
||||
c.urlParams_.Set("uploadType", protocol)
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
if c.media_ != nil {
|
||||
combined, ctype := gensupport.CombineBodyMedia(body, "application/json", c.media_, c.mediaType_)
|
||||
defer combined.Close()
|
||||
reqHeaders.Set("Content-Type", ctype)
|
||||
body = combined
|
||||
}
|
||||
if c.mediaBuffer_ != nil && c.mediaType_ != "" {
|
||||
reqHeaders.Set("X-Upload-Content-Type", c.mediaType_)
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
|
@ -5977,20 +5898,10 @@ func (c *EditsExpansionfilesUploadCall) Do(opts ...googleapi.CallOption) (*Expan
|
|||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if c.mediaBuffer_ != nil {
|
||||
loc := res.Header.Get("Location")
|
||||
rx := &gensupport.ResumableUpload{
|
||||
Client: c.s.client,
|
||||
UserAgent: c.s.userAgent(),
|
||||
URI: loc,
|
||||
Media: c.mediaBuffer_,
|
||||
MediaType: c.mediaType_,
|
||||
Callback: func(curr int64) {
|
||||
if c.progressUpdater_ != nil {
|
||||
c.progressUpdater_(curr, c.mediaSize_)
|
||||
}
|
||||
},
|
||||
}
|
||||
rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
|
||||
if rx != nil {
|
||||
rx.Client = c.s.client
|
||||
rx.UserAgent = c.s.userAgent()
|
||||
ctx := c.ctx_
|
||||
if ctx == nil {
|
||||
ctx = context.TODO()
|
||||
|
@ -6609,19 +6520,15 @@ func (c *EditsImagesListCall) Do(opts ...googleapi.CallOption) (*ImagesListRespo
|
|||
// method id "androidpublisher.edits.images.upload":
|
||||
|
||||
type EditsImagesUploadCall struct {
|
||||
s *Service
|
||||
packageNameid string
|
||||
editId string
|
||||
language string
|
||||
imageType string
|
||||
urlParams_ gensupport.URLParams
|
||||
media_ io.Reader
|
||||
mediaBuffer_ *gensupport.MediaBuffer
|
||||
mediaType_ string
|
||||
mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.
|
||||
progressUpdater_ googleapi.ProgressUpdater
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
s *Service
|
||||
packageNameid string
|
||||
editId string
|
||||
language string
|
||||
imageType string
|
||||
urlParams_ gensupport.URLParams
|
||||
mediaInfo_ *gensupport.MediaInfo
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Upload: Uploads a new image and adds it to the list of images for the
|
||||
|
@ -6644,12 +6551,7 @@ func (r *EditsImagesService) Upload(packageNameid string, editId string, languag
|
|||
// supplied.
|
||||
// At most one of Media and ResumableMedia may be set.
|
||||
func (c *EditsImagesUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *EditsImagesUploadCall {
|
||||
opts := googleapi.ProcessMediaOptions(options)
|
||||
chunkSize := opts.ChunkSize
|
||||
if !opts.ForceEmptyContentType {
|
||||
r, c.mediaType_ = gensupport.DetermineContentType(r, opts.ContentType)
|
||||
}
|
||||
c.media_, c.mediaBuffer_ = gensupport.PrepareUpload(r, chunkSize)
|
||||
c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -6664,11 +6566,7 @@ func (c *EditsImagesUploadCall) Media(r io.Reader, options ...googleapi.MediaOpt
|
|||
// supersede any context previously provided to the Context method.
|
||||
func (c *EditsImagesUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *EditsImagesUploadCall {
|
||||
c.ctx_ = ctx
|
||||
rdr := gensupport.ReaderAtToReader(r, size)
|
||||
rdr, c.mediaType_ = gensupport.DetermineContentType(rdr, mediaType)
|
||||
c.mediaBuffer_ = gensupport.NewMediaBuffer(rdr, googleapi.DefaultUploadChunkSize)
|
||||
c.media_ = nil
|
||||
c.mediaSize_ = size
|
||||
c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -6677,7 +6575,7 @@ func (c *EditsImagesUploadCall) ResumableMedia(ctx context.Context, r io.ReaderA
|
|||
// not slow down the upload operation. This should only be called when
|
||||
// using ResumableMedia (as opposed to Media).
|
||||
func (c *EditsImagesUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *EditsImagesUploadCall {
|
||||
c.progressUpdater_ = pu
|
||||
c.mediaInfo_.SetProgressUpdater(pu)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -6717,27 +6615,16 @@ func (c *EditsImagesUploadCall) doRequest(alt string) (*http.Response, error) {
|
|||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{packageName}/edits/{editId}/listings/{language}/{imageType}")
|
||||
if c.media_ != nil || c.mediaBuffer_ != nil {
|
||||
if c.mediaInfo_ != nil {
|
||||
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
|
||||
protocol := "multipart"
|
||||
if c.mediaBuffer_ != nil {
|
||||
protocol = "resumable"
|
||||
}
|
||||
c.urlParams_.Set("uploadType", protocol)
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
if c.media_ != nil {
|
||||
combined, ctype := gensupport.CombineBodyMedia(body, "application/json", c.media_, c.mediaType_)
|
||||
defer combined.Close()
|
||||
reqHeaders.Set("Content-Type", ctype)
|
||||
body = combined
|
||||
}
|
||||
if c.mediaBuffer_ != nil && c.mediaType_ != "" {
|
||||
reqHeaders.Set("X-Upload-Content-Type", c.mediaType_)
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
|
@ -6776,20 +6663,10 @@ func (c *EditsImagesUploadCall) Do(opts ...googleapi.CallOption) (*ImagesUploadR
|
|||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if c.mediaBuffer_ != nil {
|
||||
loc := res.Header.Get("Location")
|
||||
rx := &gensupport.ResumableUpload{
|
||||
Client: c.s.client,
|
||||
UserAgent: c.s.userAgent(),
|
||||
URI: loc,
|
||||
Media: c.mediaBuffer_,
|
||||
MediaType: c.mediaType_,
|
||||
Callback: func(curr int64) {
|
||||
if c.progressUpdater_ != nil {
|
||||
c.progressUpdater_(curr, c.mediaSize_)
|
||||
}
|
||||
},
|
||||
}
|
||||
rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
|
||||
if rx != nil {
|
||||
rx.Client = c.s.client
|
||||
rx.UserAgent = c.s.userAgent()
|
||||
ctx := c.ctx_
|
||||
if ctx == nil {
|
||||
ctx = context.TODO()
|
||||
|
@ -10901,7 +10778,10 @@ func (r *PurchasesVoidedpurchasesService) List(packageName string) *PurchasesVoi
|
|||
// milliseconds since the Epoch, of the newest voided in-app product
|
||||
// purchase that you want to see in the response. The value of this
|
||||
// parameter cannot be greater than the current time and is ignored if a
|
||||
// pagination token is set. Default value is current time.
|
||||
// pagination token is set. Default value is current time. Note: This
|
||||
// filter is applied on the time at which the record is seen as voided
|
||||
// by our systems and not the actual voided time returned in the
|
||||
// response.
|
||||
func (c *PurchasesVoidedpurchasesListCall) EndTime(endTime int64) *PurchasesVoidedpurchasesListCall {
|
||||
c.urlParams_.Set("endTime", fmt.Sprint(endTime))
|
||||
return c
|
||||
|
@ -10923,7 +10803,10 @@ func (c *PurchasesVoidedpurchasesListCall) StartIndex(startIndex int64) *Purchas
|
|||
// milliseconds since the Epoch, of the oldest voided in-app product
|
||||
// purchase that you want to see in the response. The value of this
|
||||
// parameter cannot be older than 30 days and is ignored if a pagination
|
||||
// token is set. Default value is current time minus 30 days.
|
||||
// token is set. Default value is current time minus 30 days. Note: This
|
||||
// filter is applied on the time at which the record is seen as voided
|
||||
// by our systems and not the actual voided time returned in the
|
||||
// response.
|
||||
func (c *PurchasesVoidedpurchasesListCall) StartTime(startTime int64) *PurchasesVoidedpurchasesListCall {
|
||||
c.urlParams_.Set("startTime", fmt.Sprint(startTime))
|
||||
return c
|
||||
|
@ -11037,7 +10920,7 @@ func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*Vo
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "endTime": {
|
||||
// "description": "The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time.",
|
||||
// "description": "The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.",
|
||||
// "format": "int64",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
|
@ -11059,7 +10942,7 @@ func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*Vo
|
|||
// "type": "integer"
|
||||
// },
|
||||
// "startTime": {
|
||||
// "description": "The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days.",
|
||||
// "description": "The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.",
|
||||
// "format": "int64",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
|
|
81
vendor/google.golang.org/api/api-list.json
generated
vendored
81
vendor/google.golang.org/api/api-list.json
generated
vendored
|
@ -279,7 +279,7 @@
|
|||
"name": "androiddeviceprovisioning",
|
||||
"version": "v1",
|
||||
"title": "Android Device Provisioning Partner API",
|
||||
"description": "Android Device Provisioning Partner API",
|
||||
"description": "Automates reseller integration into zero-touch enrollment by assigning devices to customers and creating device reports.",
|
||||
"discoveryRestUrl": "https://androiddeviceprovisioning.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
|
@ -929,6 +929,21 @@
|
|||
},
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "container:v1alpha1",
|
||||
"name": "container",
|
||||
"version": "v1alpha1",
|
||||
"title": "Google Container Engine API",
|
||||
"description": "The Google Container Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
|
||||
"discoveryRestUrl": "https://container.googleapis.com/$discovery/rest?version=v1alpha1",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/container-engine/",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "container:v1",
|
||||
|
@ -944,6 +959,21 @@
|
|||
"documentationLink": "https://cloud.google.com/container-engine/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "container:v1beta1",
|
||||
"name": "container",
|
||||
"version": "v1beta1",
|
||||
"title": "Google Container Engine API",
|
||||
"description": "The Google Container Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
|
||||
"discoveryRestUrl": "https://container.googleapis.com/$discovery/rest?version=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/container-engine/",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "content:v2sandbox",
|
||||
|
@ -1052,6 +1082,21 @@
|
|||
"documentationLink": "https://cloud.google.com/datastore/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "datastore:v1beta1",
|
||||
"name": "datastore",
|
||||
"version": "v1beta1",
|
||||
"title": "Google Cloud Datastore API",
|
||||
"description": "Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.",
|
||||
"discoveryRestUrl": "https://datastore.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/datastore/",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "datastore:v1beta3",
|
||||
|
@ -1292,6 +1337,21 @@
|
|||
"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",
|
||||
|
@ -2175,7 +2235,7 @@
|
|||
"name": "safebrowsing",
|
||||
"version": "v4",
|
||||
"title": "Google Safe Browsing API",
|
||||
"description": "The Safe Browsing API is an experimental API that allows client applications to check URLs against Google's constantly-updated blacklists of suspected phishing and malware pages. Your client application can use the API to download an encrypted table for local, client-side lookups of URLs.",
|
||||
"description": "Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources.",
|
||||
"discoveryRestUrl": "https://safebrowsing.googleapis.com/$discovery/rest?version=v4",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
|
@ -2190,7 +2250,7 @@
|
|||
"name": "script",
|
||||
"version": "v1",
|
||||
"title": "Google Apps Script Execution API",
|
||||
"description": "Executes Google Apps Script projects.",
|
||||
"description": "Executes functions in Google Apps Script projects.",
|
||||
"discoveryRestUrl": "https://script.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
|
@ -2595,6 +2655,21 @@
|
|||
"documentationLink": "https://developers.google.com/google-apps/tasks/firstapp",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "testing:v1",
|
||||
"name": "testing",
|
||||
"version": "v1",
|
||||
"title": "Google Cloud Testing API",
|
||||
"description": "Allows developers to run automated tests for their mobile applications on Google infrastructure.",
|
||||
"discoveryRestUrl": "https://testing.googleapis.com/$discovery/rest?version=v1",
|
||||
"icons": {
|
||||
"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/cloud-test-lab/",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"kind": "discovery#directoryItem",
|
||||
"id": "toolresults:v1beta3firstparty",
|
||||
|
|
4413
vendor/google.golang.org/api/appengine/v1/appengine-api.json
generated
vendored
4413
vendor/google.golang.org/api/appengine/v1/appengine-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
2282
vendor/google.golang.org/api/appengine/v1/appengine-gen.go
generated
vendored
2282
vendor/google.golang.org/api/appengine/v1/appengine-gen.go
generated
vendored
File diff suppressed because it is too large
Load diff
1656
vendor/google.golang.org/api/appengine/v1alpha/appengine-api.json
generated
vendored
1656
vendor/google.golang.org/api/appengine/v1alpha/appengine-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
3638
vendor/google.golang.org/api/appengine/v1beta/appengine-api.json
generated
vendored
3638
vendor/google.golang.org/api/appengine/v1beta/appengine-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
131
vendor/google.golang.org/api/appengine/v1beta/appengine-gen.go
generated
vendored
131
vendor/google.golang.org/api/appengine/v1beta/appengine-gen.go
generated
vendored
|
@ -449,6 +449,13 @@ type AuthorizedCertificate struct {
|
|||
// 12345.@OutputOnly
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
// ManagedCertificate: Only applicable if this certificate is managed by
|
||||
// App Engine. Managed certificates are tied to the lifecycle of a
|
||||
// DomainMapping and cannot be updated or deleted via the
|
||||
// AuthorizedCertificates API. If this certificate is manually
|
||||
// administered by the user, this field will be empty.@OutputOnly
|
||||
ManagedCertificate *ManagedCertificate `json:"managedCertificate,omitempty"`
|
||||
|
||||
// Name: Full path to the AuthorizedCertificate resource in the API.
|
||||
// Example: apps/myapp/authorizedCertificates/12345.@OutputOnly
|
||||
Name string `json:"name,omitempty"`
|
||||
|
@ -1962,6 +1969,56 @@ func (s *LocationMetadata) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ManagedCertificate: A certificate managed by App Engine.
|
||||
type ManagedCertificate struct {
|
||||
// LastRenewalTime: Time at which the certificate was last renewed. The
|
||||
// renewal process is fully managed. Certificate renewal will
|
||||
// automatically occur before the certificate expires. Renewal errors
|
||||
// can be tracked via ManagementStatus.@OutputOnly
|
||||
LastRenewalTime string `json:"lastRenewalTime,omitempty"`
|
||||
|
||||
// Status: Status of certificate management. Refers to the most recent
|
||||
// certificate acquisition or renewal attempt.@OutputOnly
|
||||
//
|
||||
// Possible values:
|
||||
// "MANAGEMENT_STATUS_UNSPECIFIED"
|
||||
// "OK" - Certificate was successfully obtained and inserted into the
|
||||
// serving system.
|
||||
// "PENDING" - Certificate is under active attempts to acquire or
|
||||
// renew.
|
||||
// "FAILED_RETRYING_NOT_VISIBLE" - Most recent renewal failed due to
|
||||
// an invalid DNS setup and will be retried. Renewal attempts will
|
||||
// continue to fail until the certificate domain's DNS configuration is
|
||||
// fixed. The last successfully provisioned certificate may still be
|
||||
// serving.
|
||||
// "FAILED_PERMANENT" - All renewal attempts have been exhausted,
|
||||
// likely due to an invalid DNS setup.
|
||||
Status string `json:"status,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "LastRenewalTime") 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. "LastRenewalTime") 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 *ManagedCertificate) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ManagedCertificate
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ManualScaling: A service with manual scaling runs continuously,
|
||||
// allowing you to perform complex initialization and rely on the state
|
||||
// of its memory over time.
|
||||
|
@ -1995,16 +2052,19 @@ func (s *ManualScaling) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Network: Extra network settings. Only applicable for VM runtimes.
|
||||
// Network: Extra network settings. Only applicable for App Engine
|
||||
// flexible environment versions
|
||||
type Network struct {
|
||||
// ForwardedPorts: List of ports, or port pairs, to forward from the
|
||||
// virtual machine to the application container.
|
||||
// virtual machine to the application container. Only applicable for App
|
||||
// Engine flexible environment versions.
|
||||
ForwardedPorts []string `json:"forwardedPorts,omitempty"`
|
||||
|
||||
// InstanceTag: Tag to apply to the VM instance during creation.
|
||||
// InstanceTag: Tag to apply to the VM instance during creation. Only
|
||||
// applicable for for App Engine flexible environment versions.
|
||||
InstanceTag string `json:"instanceTag,omitempty"`
|
||||
|
||||
// Name: Google Cloud Platform network where the virtual machines are
|
||||
// Name: Google Compute Engine network where the virtual machines are
|
||||
// created. Specify the short name, not the resource path.Defaults to
|
||||
// default.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
@ -2022,8 +2082,8 @@ type Network struct {
|
|||
// 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
|
||||
// specified, the subnetwork must exist in the same region as the Flex
|
||||
// app.
|
||||
// specified, the subnetwork must exist in the same region as the App
|
||||
// Engine flexible environment application.
|
||||
SubnetworkName string `json:"subnetworkName,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ForwardedPorts") to
|
||||
|
@ -2706,10 +2766,39 @@ func (s *Service) MarshalJSON() ([]byte, error) {
|
|||
// SslSettings: SSL configuration for a DomainMapping resource.
|
||||
type SslSettings struct {
|
||||
// CertificateId: ID of the AuthorizedCertificate resource configuring
|
||||
// SSL for the application. Clearing this field will remove SSL support.
|
||||
// Example: 12345.
|
||||
// SSL for the application. Clearing this field will remove SSL
|
||||
// support.By default, a managed certificate is automatically created
|
||||
// for every domain mapping. To omit SSL support or to configure SSL
|
||||
// manually, specify SslManagementType.MANUAL on a CREATE or UPDATE
|
||||
// request. You must be authorized to administer the
|
||||
// AuthorizedCertificate resource to manually map it to a DomainMapping
|
||||
// resource. Example: 12345.
|
||||
CertificateId string `json:"certificateId,omitempty"`
|
||||
|
||||
// PendingManagedCertificateId: ID of the managed AuthorizedCertificate
|
||||
// resource currently being provisioned, if applicable. Until the new
|
||||
// managed certificate has been successfully provisioned, the previous
|
||||
// SSL state will be preserved. Once the provisioning process completes,
|
||||
// the certificate_id field will reflect the new managed certificate and
|
||||
// this field will be left empty. To remove SSL support while there is
|
||||
// still a pending managed certificate, clear the certificate_id field
|
||||
// with an UpdateDomainMappingRequest.@OutputOnly
|
||||
PendingManagedCertificateId string `json:"pendingManagedCertificateId,omitempty"`
|
||||
|
||||
// SslManagementType: SSL management type for this domain. If AUTOMATIC,
|
||||
// a managed certificate is automatically provisioned. If MANUAL,
|
||||
// certificate_id must be manually specified in order to configure SSL
|
||||
// for this domain.
|
||||
//
|
||||
// Possible values:
|
||||
// "AUTOMATIC" - SSL support for this domain is configured
|
||||
// automatically. The mapped SSL certificate will be automatically
|
||||
// renewed.
|
||||
// "MANUAL" - SSL support for this domain is configured manually by
|
||||
// the user. Either the domain has no SSL support or a user-obtained SSL
|
||||
// certificate has been explictly mapped to this domain.
|
||||
SslManagementType string `json:"sslManagementType,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CertificateId") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
|
@ -3257,7 +3346,8 @@ type Version struct {
|
|||
// apps/myapp/services/default/versions/v1.@OutputOnly
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// Network: Extra network settings. Only applicable for VM runtimes.
|
||||
// Network: Extra network settings. Only applicable for App Engine
|
||||
// flexible environment versions.
|
||||
Network *Network `json:"network,omitempty"`
|
||||
|
||||
// NobuildFilesRegex: Files that match this pattern will not be built
|
||||
|
@ -8737,6 +8827,27 @@ type AppsServicesVersionsPatchCall struct {
|
|||
// ta/apps.services.versions#Version.FIELDS.automatic_scaling): For
|
||||
// Version resources that use automatic scaling and run in the App
|
||||
// Engine standard environment.
|
||||
// automatic_scaling.min_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.
|
||||
// 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.
|
||||
// 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
|
||||
// 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.
|
||||
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
|
||||
|
@ -8841,7 +8952,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.",
|
||||
// "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",
|
||||
|
|
3432
vendor/google.golang.org/api/appengine/v1beta4/appengine-api.json
generated
vendored
3432
vendor/google.golang.org/api/appengine/v1beta4/appengine-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
1954
vendor/google.golang.org/api/appengine/v1beta5/appengine-api.json
generated
vendored
1954
vendor/google.golang.org/api/appengine/v1beta5/appengine-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
4
vendor/google.golang.org/api/appsactivity/v1/appsactivity-api.json
generated
vendored
4
vendor/google.golang.org/api/appsactivity/v1/appsactivity-api.json
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/y29Ei9gfsS6BekrALyS-uw4tzTU\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/pDZ7o52oB1KPiP4jc8rmQ24ThMo\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "appsactivity:v1",
|
||||
"name": "appsactivity",
|
||||
"version": "v1",
|
||||
"revision": "20170215",
|
||||
"revision": "20170619",
|
||||
"title": "G Suite Activity API",
|
||||
"description": "Provides a historical view of activity.",
|
||||
"ownerDomain": "google.com",
|
||||
|
|
4
vendor/google.golang.org/api/appstate/v1/appstate-api.json
generated
vendored
4
vendor/google.golang.org/api/appstate/v1/appstate-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/u4lihwP33J0GgUtvl1xqXUmPaak\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/mbrci8GXE-W50F0APQRstWksGH8\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "appstate:v1",
|
||||
"name": "appstate",
|
||||
"canonicalName": "App State",
|
||||
"version": "v1",
|
||||
"revision": "20170601",
|
||||
"revision": "20170831",
|
||||
"title": "Google App State API",
|
||||
"description": "The Google App State API.",
|
||||
"ownerDomain": "google.com",
|
||||
|
|
140
vendor/google.golang.org/api/bigquery/v2/bigquery-api.json
generated
vendored
140
vendor/google.golang.org/api/bigquery/v2/bigquery-api.json
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/13U3pV34J3OFMsQ27oCh5yZ4wck\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/9Y-B0QHiU2mw4FGTgPCBJA_ja7U\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "bigquery:v2",
|
||||
"name": "bigquery",
|
||||
"version": "v2",
|
||||
"revision": "20170730",
|
||||
"revision": "20170903",
|
||||
"title": "BigQuery API",
|
||||
"description": "A data platform for customers to create, manage, share and query data.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -20,7 +20,7 @@
|
|||
"basePath": "/bigquery/v2/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "bigquery/v2/",
|
||||
"batchPath": "batch",
|
||||
"batchPath": "batch/bigquery/v2",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
|
@ -377,6 +377,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"EncryptionConfiguration": {
|
||||
"id": "EncryptionConfiguration",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"kmsKeyName": {
|
||||
"type": "string",
|
||||
"description": "[Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key."
|
||||
}
|
||||
}
|
||||
},
|
||||
"ErrorProto": {
|
||||
"id": "ErrorProto",
|
||||
"type": "object",
|
||||
|
@ -403,6 +413,16 @@
|
|||
"id": "ExplainQueryStage",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"computeMsAvg": {
|
||||
"type": "string",
|
||||
"description": "Milliseconds the average shard spent on CPU-bound tasks.",
|
||||
"format": "int64"
|
||||
},
|
||||
"computeMsMax": {
|
||||
"type": "string",
|
||||
"description": "Milliseconds the slowest shard spent on CPU-bound tasks.",
|
||||
"format": "int64"
|
||||
},
|
||||
"computeRatioAvg": {
|
||||
"type": "number",
|
||||
"description": "Relative amount of time the average shard spent on CPU-bound tasks.",
|
||||
|
@ -422,6 +442,16 @@
|
|||
"type": "string",
|
||||
"description": "Human-readable name for stage."
|
||||
},
|
||||
"readMsAvg": {
|
||||
"type": "string",
|
||||
"description": "Milliseconds the average shard spent reading input.",
|
||||
"format": "int64"
|
||||
},
|
||||
"readMsMax": {
|
||||
"type": "string",
|
||||
"description": "Milliseconds the slowest shard spent reading input.",
|
||||
"format": "int64"
|
||||
},
|
||||
"readRatioAvg": {
|
||||
"type": "number",
|
||||
"description": "Relative amount of time the average shard spent reading input.",
|
||||
|
@ -442,6 +472,16 @@
|
|||
"description": "Number of records written by the stage.",
|
||||
"format": "int64"
|
||||
},
|
||||
"shuffleOutputBytes": {
|
||||
"type": "string",
|
||||
"description": "Total number of bytes written to shuffle.",
|
||||
"format": "int64"
|
||||
},
|
||||
"shuffleOutputBytesSpilled": {
|
||||
"type": "string",
|
||||
"description": "Total number of bytes written to shuffle and spilled to disk.",
|
||||
"format": "int64"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "Current status for the stage."
|
||||
|
@ -453,6 +493,16 @@
|
|||
"$ref": "ExplainQueryStep"
|
||||
}
|
||||
},
|
||||
"waitMsAvg": {
|
||||
"type": "string",
|
||||
"description": "Milliseconds the average shard spent waiting to be scheduled.",
|
||||
"format": "int64"
|
||||
},
|
||||
"waitMsMax": {
|
||||
"type": "string",
|
||||
"description": "Milliseconds the slowest shard spent waiting to be scheduled.",
|
||||
"format": "int64"
|
||||
},
|
||||
"waitRatioAvg": {
|
||||
"type": "number",
|
||||
"description": "Relative amount of time the average shard spent waiting to be scheduled.",
|
||||
|
@ -463,6 +513,16 @@
|
|||
"description": "Relative amount of time the slowest shard spent waiting to be scheduled.",
|
||||
"format": "double"
|
||||
},
|
||||
"writeMsAvg": {
|
||||
"type": "string",
|
||||
"description": "Milliseconds the average shard spent on writing output.",
|
||||
"format": "int64"
|
||||
},
|
||||
"writeMsMax": {
|
||||
"type": "string",
|
||||
"description": "Milliseconds the slowest shard spent on writing output.",
|
||||
"format": "int64"
|
||||
},
|
||||
"writeRatioAvg": {
|
||||
"type": "number",
|
||||
"description": "Relative amount of time the average shard spent on writing output.",
|
||||
|
@ -535,7 +595,7 @@
|
|||
},
|
||||
"sourceUris": {
|
||||
"type": "array",
|
||||
"description": "[Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified, and it must end with '.backup_info'. Also, the '*' wildcard character is not allowed.",
|
||||
"description": "[Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the '*' wildcard character is not allowed.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
|
@ -606,6 +666,21 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"GetServiceAccountResponse": {
|
||||
"id": "GetServiceAccountResponse",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string",
|
||||
"description": "The service account email address."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The resource type of the response.",
|
||||
"default": "bigquery#getServiceAccountResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"GoogleSheetsOptions": {
|
||||
"id": "GoogleSheetsOptions",
|
||||
"type": "object",
|
||||
|
@ -766,6 +841,10 @@
|
|||
"type": "string",
|
||||
"description": "[Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion."
|
||||
},
|
||||
"destinationEncryptionConfiguration": {
|
||||
"$ref": "EncryptionConfiguration",
|
||||
"description": "[Experimental] Custom encryption configuration (e.g., Cloud KMS keys)."
|
||||
},
|
||||
"destinationTable": {
|
||||
"$ref": "TableReference",
|
||||
"description": "[Required] The destination table to load the data into."
|
||||
|
@ -834,11 +913,15 @@
|
|||
},
|
||||
"sourceUris": {
|
||||
"type": "array",
|
||||
"description": "[Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups: Exactly one URI can be specified, and it must end with '.backup_info'. Also, the '*' wildcard character is not allowed.",
|
||||
"description": "[Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups: Exactly one URI can be specified. Also, the '*' wildcard character is not allowed.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"timePartitioning": {
|
||||
"$ref": "TimePartitioning",
|
||||
"description": "[Experimental] If specified, configures time-based partitioning for the destination table."
|
||||
},
|
||||
"writeDisposition": {
|
||||
"type": "string",
|
||||
"description": "[Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion."
|
||||
|
@ -862,6 +945,10 @@
|
|||
"$ref": "DatasetReference",
|
||||
"description": "[Optional] Specifies the default dataset to use for unqualified table names in the query."
|
||||
},
|
||||
"destinationEncryptionConfiguration": {
|
||||
"$ref": "EncryptionConfiguration",
|
||||
"description": "[Experimental] Custom encryption configuration (e.g., Cloud KMS keys)."
|
||||
},
|
||||
"destinationTable": {
|
||||
"$ref": "TableReference",
|
||||
"description": "[Optional] Describes the table where the query results should be stored. If not present, a new table will be created to store the results. This property must be set for large results that exceed the maximum response size."
|
||||
|
@ -919,6 +1006,10 @@
|
|||
"$ref": "ExternalDataConfiguration"
|
||||
}
|
||||
},
|
||||
"timePartitioning": {
|
||||
"$ref": "TimePartitioning",
|
||||
"description": "[Experimental] If specified, configures time-based partitioning for the destination table."
|
||||
},
|
||||
"useLegacySql": {
|
||||
"type": "boolean",
|
||||
"description": "Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the value of flattenResults is ignored; query will be run as if flattenResults is false."
|
||||
|
@ -949,6 +1040,10 @@
|
|||
"type": "string",
|
||||
"description": "[Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion."
|
||||
},
|
||||
"destinationEncryptionConfiguration": {
|
||||
"$ref": "EncryptionConfiguration",
|
||||
"description": "[Experimental] Custom encryption configuration (e.g., Cloud KMS keys)."
|
||||
},
|
||||
"destinationTable": {
|
||||
"$ref": "TableReference",
|
||||
"description": "[Required] The destination table"
|
||||
|
@ -1533,6 +1628,10 @@
|
|||
"type": "string",
|
||||
"description": "[Optional] A user-friendly description of this table."
|
||||
},
|
||||
"encryptionConfiguration": {
|
||||
"$ref": "EncryptionConfiguration",
|
||||
"description": "[Experimental] Custom encryption configuration (e.g., Cloud KMS keys)."
|
||||
},
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "[Output-only] A hash of this resource."
|
||||
|
@ -1904,9 +2003,13 @@
|
|||
"description": "[Optional] Number of milliseconds for which to keep the storage for a partition.",
|
||||
"format": "int64"
|
||||
},
|
||||
"field": {
|
||||
"type": "string",
|
||||
"description": "[Experimental] [Optional] If not set, the table is partitioned by pseudo column '_PARTITIONTIME'; if set, the table is partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED."
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "[Required] The only type supported is DAY, which will generate one partition per day based on data loading time."
|
||||
"description": "[Required] The only type supported is DAY, which will generate one partition per day."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -2425,6 +2528,31 @@
|
|||
},
|
||||
"projects": {
|
||||
"methods": {
|
||||
"getServiceAccount": {
|
||||
"id": "bigquery.projects.getServiceAccount",
|
||||
"path": "projects/{projectId}/serviceAccount",
|
||||
"httpMethod": "GET",
|
||||
"description": "Returns the email address of the service account for your project used for interactions with Google Cloud KMS.",
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"type": "string",
|
||||
"description": "Project ID for which the service account is requested.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "GetServiceAccountResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/bigquery",
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "bigquery.projects.list",
|
||||
"path": "projects",
|
||||
|
|
364
vendor/google.golang.org/api/bigquery/v2/bigquery-gen.go
generated
vendored
364
vendor/google.golang.org/api/bigquery/v2/bigquery-gen.go
generated
vendored
|
@ -660,6 +660,36 @@ func (s *DatasetReference) MarshalJSON() ([]byte, error) {
|
|||
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
|
||||
// Service Account associated with your project requires access to this
|
||||
// encryption key.
|
||||
KmsKeyName string `json:"kmsKeyName,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "KmsKeyName") 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. "KmsKeyName") 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 *EncryptionConfiguration) MarshalJSON() ([]byte, error) {
|
||||
type noMethod EncryptionConfiguration
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type ErrorProto struct {
|
||||
// DebugInfo: Debugging information. This property is internal to Google
|
||||
// and should not be used.
|
||||
|
@ -698,6 +728,14 @@ func (s *ErrorProto) MarshalJSON() ([]byte, error) {
|
|||
}
|
||||
|
||||
type ExplainQueryStage struct {
|
||||
// ComputeMsAvg: Milliseconds the average shard spent on CPU-bound
|
||||
// tasks.
|
||||
ComputeMsAvg int64 `json:"computeMsAvg,omitempty,string"`
|
||||
|
||||
// ComputeMsMax: Milliseconds the slowest shard spent on CPU-bound
|
||||
// tasks.
|
||||
ComputeMsMax int64 `json:"computeMsMax,omitempty,string"`
|
||||
|
||||
// ComputeRatioAvg: Relative amount of time the average shard spent on
|
||||
// CPU-bound tasks.
|
||||
ComputeRatioAvg float64 `json:"computeRatioAvg,omitempty"`
|
||||
|
@ -712,6 +750,12 @@ type ExplainQueryStage struct {
|
|||
// Name: Human-readable name for stage.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// ReadMsAvg: Milliseconds the average shard spent reading input.
|
||||
ReadMsAvg int64 `json:"readMsAvg,omitempty,string"`
|
||||
|
||||
// ReadMsMax: Milliseconds the slowest shard spent reading input.
|
||||
ReadMsMax int64 `json:"readMsMax,omitempty,string"`
|
||||
|
||||
// ReadRatioAvg: Relative amount of time the average shard spent reading
|
||||
// input.
|
||||
ReadRatioAvg float64 `json:"readRatioAvg,omitempty"`
|
||||
|
@ -726,6 +770,13 @@ type ExplainQueryStage struct {
|
|||
// RecordsWritten: Number of records written by the stage.
|
||||
RecordsWritten int64 `json:"recordsWritten,omitempty,string"`
|
||||
|
||||
// ShuffleOutputBytes: Total number of bytes written to shuffle.
|
||||
ShuffleOutputBytes int64 `json:"shuffleOutputBytes,omitempty,string"`
|
||||
|
||||
// ShuffleOutputBytesSpilled: Total number of bytes written to shuffle
|
||||
// and spilled to disk.
|
||||
ShuffleOutputBytesSpilled int64 `json:"shuffleOutputBytesSpilled,omitempty,string"`
|
||||
|
||||
// Status: Current status for the stage.
|
||||
Status string `json:"status,omitempty"`
|
||||
|
||||
|
@ -733,6 +784,14 @@ type ExplainQueryStage struct {
|
|||
// (approximately chronological).
|
||||
Steps []*ExplainQueryStep `json:"steps,omitempty"`
|
||||
|
||||
// WaitMsAvg: Milliseconds the average shard spent waiting to be
|
||||
// scheduled.
|
||||
WaitMsAvg int64 `json:"waitMsAvg,omitempty,string"`
|
||||
|
||||
// WaitMsMax: Milliseconds the slowest shard spent waiting to be
|
||||
// scheduled.
|
||||
WaitMsMax int64 `json:"waitMsMax,omitempty,string"`
|
||||
|
||||
// WaitRatioAvg: Relative amount of time the average shard spent waiting
|
||||
// to be scheduled.
|
||||
WaitRatioAvg float64 `json:"waitRatioAvg,omitempty"`
|
||||
|
@ -741,6 +800,12 @@ type ExplainQueryStage struct {
|
|||
// to be scheduled.
|
||||
WaitRatioMax float64 `json:"waitRatioMax,omitempty"`
|
||||
|
||||
// WriteMsAvg: Milliseconds the average shard spent on writing output.
|
||||
WriteMsAvg int64 `json:"writeMsAvg,omitempty,string"`
|
||||
|
||||
// WriteMsMax: Milliseconds the slowest shard spent on writing output.
|
||||
WriteMsMax int64 `json:"writeMsMax,omitempty,string"`
|
||||
|
||||
// WriteRatioAvg: Relative amount of time the average shard spent on
|
||||
// writing output.
|
||||
WriteRatioAvg float64 `json:"writeRatioAvg,omitempty"`
|
||||
|
@ -749,7 +814,7 @@ type ExplainQueryStage struct {
|
|||
// writing output.
|
||||
WriteRatioMax float64 `json:"writeRatioMax,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ComputeRatioAvg") to
|
||||
// ForceSendFields is a list of field names (e.g. "ComputeMsAvg") 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,13 +822,12 @@ type ExplainQueryStage struct {
|
|||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "ComputeRatioAvg") 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. "ComputeMsAvg") 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:"-"`
|
||||
}
|
||||
|
||||
|
@ -894,8 +958,8 @@ type ExternalDataConfiguration struct {
|
|||
// data sources. For Google Cloud Bigtable URIs: Exactly one URI can be
|
||||
// specified and it has be a fully specified and valid HTTPS URL for a
|
||||
// Google Cloud Bigtable table. For Google Cloud Datastore backups,
|
||||
// exactly one URI can be specified, and it must end with
|
||||
// '.backup_info'. Also, the '*' wildcard character is not allowed.
|
||||
// exactly one URI can be specified. Also, the '*' wildcard character is
|
||||
// not allowed.
|
||||
SourceUris []string `json:"sourceUris,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Autodetect") to
|
||||
|
@ -1004,6 +1068,40 @@ func (s *GetQueryResultsResponse) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type GetServiceAccountResponse struct {
|
||||
// Email: The service account email address.
|
||||
Email string `json:"email,omitempty"`
|
||||
|
||||
// Kind: The resource type of the response.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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 *GetServiceAccountResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GetServiceAccountResponse
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type GoogleSheetsOptions struct {
|
||||
// SkipLeadingRows: [Optional] The number of rows at the top of a sheet
|
||||
// that BigQuery will skip when reading the data. The default value is
|
||||
|
@ -1271,6 +1369,10 @@ 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 *EncryptionConfiguration `json:"destinationEncryptionConfiguration,omitempty"`
|
||||
|
||||
// DestinationTable: [Required] The destination table to load the data
|
||||
// into.
|
||||
DestinationTable *TableReference `json:"destinationTable,omitempty"`
|
||||
|
@ -1381,10 +1483,14 @@ type JobConfigurationLoad struct {
|
|||
// data sources. For Google Cloud Bigtable URIs: Exactly one URI can be
|
||||
// specified and it has be a fully specified and valid HTTPS URL for a
|
||||
// Google Cloud Bigtable table. For Google Cloud Datastore backups:
|
||||
// Exactly one URI can be specified, and it must end with
|
||||
// '.backup_info'. Also, the '*' wildcard character is not allowed.
|
||||
// Exactly one URI can be specified. Also, the '*' wildcard character is
|
||||
// not allowed.
|
||||
SourceUris []string `json:"sourceUris,omitempty"`
|
||||
|
||||
// TimePartitioning: [Experimental] If specified, configures time-based
|
||||
// partitioning for the destination table.
|
||||
TimePartitioning *TimePartitioning `json:"timePartitioning,omitempty"`
|
||||
|
||||
// WriteDisposition: [Optional] Specifies the action that occurs if the
|
||||
// destination table already exists. The following values are supported:
|
||||
// WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the
|
||||
|
@ -1443,6 +1549,10 @@ 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 *EncryptionConfiguration `json:"destinationEncryptionConfiguration,omitempty"`
|
||||
|
||||
// DestinationTable: [Optional] Describes the table where the query
|
||||
// results should be stored. If not present, a new table will be created
|
||||
// to store the results. This property must be set for large results
|
||||
|
@ -1510,6 +1620,10 @@ type JobConfigurationQuery struct {
|
|||
// source can then be queried as if it were a standard BigQuery table.
|
||||
TableDefinitions map[string]ExternalDataConfiguration `json:"tableDefinitions,omitempty"`
|
||||
|
||||
// TimePartitioning: [Experimental] If specified, configures time-based
|
||||
// partitioning for the destination table.
|
||||
TimePartitioning *TimePartitioning `json:"timePartitioning,omitempty"`
|
||||
|
||||
// UseLegacySql: Specifies whether to use BigQuery's legacy SQL dialect
|
||||
// for this query. The default value is true. If set to false, the query
|
||||
// will use BigQuery's standard SQL:
|
||||
|
@ -1577,6 +1691,10 @@ 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 *EncryptionConfiguration `json:"destinationEncryptionConfiguration,omitempty"`
|
||||
|
||||
// DestinationTable: [Required] The destination table
|
||||
DestinationTable *TableReference `json:"destinationTable,omitempty"`
|
||||
|
||||
|
@ -2444,6 +2562,10 @@ 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 *EncryptionConfiguration `json:"encryptionConfiguration,omitempty"`
|
||||
|
||||
// Etag: [Output-only] A hash of this resource.
|
||||
Etag string `json:"etag,omitempty"`
|
||||
|
||||
|
@ -3039,8 +3161,14 @@ type TimePartitioning struct {
|
|||
// storage for a partition.
|
||||
ExpirationMs int64 `json:"expirationMs,omitempty,string"`
|
||||
|
||||
// Field: [Experimental] [Optional] If not set, the table is partitioned
|
||||
// by pseudo column '_PARTITIONTIME'; if set, the table is partitioned
|
||||
// by this field. The field must be a top-level TIMESTAMP or DATE field.
|
||||
// Its mode must be NULLABLE or REQUIRED.
|
||||
Field string `json:"field,omitempty"`
|
||||
|
||||
// Type: [Required] The only type supported is DAY, which will generate
|
||||
// one partition per day based on data loading time.
|
||||
// one partition per day.
|
||||
Type string `json:"type,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ExpirationMs") to
|
||||
|
@ -4563,17 +4691,13 @@ func (c *JobsGetQueryResultsCall) Pages(ctx context.Context, f func(*GetQueryRes
|
|||
// method id "bigquery.jobs.insert":
|
||||
|
||||
type JobsInsertCall struct {
|
||||
s *Service
|
||||
projectId string
|
||||
job *Job
|
||||
urlParams_ gensupport.URLParams
|
||||
media_ io.Reader
|
||||
mediaBuffer_ *gensupport.MediaBuffer
|
||||
mediaType_ string
|
||||
mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.
|
||||
progressUpdater_ googleapi.ProgressUpdater
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
s *Service
|
||||
projectId string
|
||||
job *Job
|
||||
urlParams_ gensupport.URLParams
|
||||
mediaInfo_ *gensupport.MediaInfo
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Insert: Starts a new asynchronous job. Requires the Can View project
|
||||
|
@ -4594,12 +4718,7 @@ func (r *JobsService) Insert(projectId string, job *Job) *JobsInsertCall {
|
|||
// supplied.
|
||||
// At most one of Media and ResumableMedia may be set.
|
||||
func (c *JobsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *JobsInsertCall {
|
||||
opts := googleapi.ProcessMediaOptions(options)
|
||||
chunkSize := opts.ChunkSize
|
||||
if !opts.ForceEmptyContentType {
|
||||
r, c.mediaType_ = gensupport.DetermineContentType(r, opts.ContentType)
|
||||
}
|
||||
c.media_, c.mediaBuffer_ = gensupport.PrepareUpload(r, chunkSize)
|
||||
c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -4614,11 +4733,7 @@ func (c *JobsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *J
|
|||
// supersede any context previously provided to the Context method.
|
||||
func (c *JobsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *JobsInsertCall {
|
||||
c.ctx_ = ctx
|
||||
rdr := gensupport.ReaderAtToReader(r, size)
|
||||
rdr, c.mediaType_ = gensupport.DetermineContentType(rdr, mediaType)
|
||||
c.mediaBuffer_ = gensupport.NewMediaBuffer(rdr, googleapi.DefaultUploadChunkSize)
|
||||
c.media_ = nil
|
||||
c.mediaSize_ = size
|
||||
c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -4627,7 +4742,7 @@ func (c *JobsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size
|
|||
// not slow down the upload operation. This should only be called when
|
||||
// using ResumableMedia (as opposed to Media).
|
||||
func (c *JobsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *JobsInsertCall {
|
||||
c.progressUpdater_ = pu
|
||||
c.mediaInfo_.SetProgressUpdater(pu)
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -4672,27 +4787,16 @@ func (c *JobsInsertCall) doRequest(alt string) (*http.Response, error) {
|
|||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{projectId}/jobs")
|
||||
if c.media_ != nil || c.mediaBuffer_ != nil {
|
||||
if c.mediaInfo_ != nil {
|
||||
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
|
||||
protocol := "multipart"
|
||||
if c.mediaBuffer_ != nil {
|
||||
protocol = "resumable"
|
||||
}
|
||||
c.urlParams_.Set("uploadType", protocol)
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
if c.media_ != nil {
|
||||
combined, ctype := gensupport.CombineBodyMedia(body, "application/json", c.media_, c.mediaType_)
|
||||
defer combined.Close()
|
||||
reqHeaders.Set("Content-Type", ctype)
|
||||
body = combined
|
||||
}
|
||||
if c.mediaBuffer_ != nil && c.mediaType_ != "" {
|
||||
reqHeaders.Set("X-Upload-Content-Type", c.mediaType_)
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
|
@ -4728,20 +4832,10 @@ func (c *JobsInsertCall) Do(opts ...googleapi.CallOption) (*Job, error) {
|
|||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if c.mediaBuffer_ != nil {
|
||||
loc := res.Header.Get("Location")
|
||||
rx := &gensupport.ResumableUpload{
|
||||
Client: c.s.client,
|
||||
UserAgent: c.s.userAgent(),
|
||||
URI: loc,
|
||||
Media: c.mediaBuffer_,
|
||||
MediaType: c.mediaType_,
|
||||
Callback: func(curr int64) {
|
||||
if c.progressUpdater_ != nil {
|
||||
c.progressUpdater_(curr, c.mediaSize_)
|
||||
}
|
||||
},
|
||||
}
|
||||
rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
|
||||
if rx != nil {
|
||||
rx.Client = c.s.client
|
||||
rx.UserAgent = c.s.userAgent()
|
||||
ctx := c.ctx_
|
||||
if ctx == nil {
|
||||
ctx = context.TODO()
|
||||
|
@ -5204,6 +5298,146 @@ func (c *JobsQueryCall) Do(opts ...googleapi.CallOption) (*QueryResponse, error)
|
|||
|
||||
}
|
||||
|
||||
// method id "bigquery.projects.getServiceAccount":
|
||||
|
||||
type ProjectsGetServiceAccountCall struct {
|
||||
s *Service
|
||||
projectId string
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// GetServiceAccount: Returns the email address of the service account
|
||||
// for your project used for interactions with Google Cloud KMS.
|
||||
func (r *ProjectsService) GetServiceAccount(projectId string) *ProjectsGetServiceAccountCall {
|
||||
c := &ProjectsGetServiceAccountCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
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 *ProjectsGetServiceAccountCall) Fields(s ...googleapi.Field) *ProjectsGetServiceAccountCall {
|
||||
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 *ProjectsGetServiceAccountCall) IfNoneMatch(entityTag string) *ProjectsGetServiceAccountCall {
|
||||
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 *ProjectsGetServiceAccountCall) Context(ctx context.Context) *ProjectsGetServiceAccountCall {
|
||||
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 *ProjectsGetServiceAccountCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *ProjectsGetServiceAccountCall) 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, "projects/{projectId}/serviceAccount")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"projectId": c.projectId,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "bigquery.projects.getServiceAccount" call.
|
||||
// Exactly one of *GetServiceAccountResponse or error will be non-nil.
|
||||
// Any non-2xx status code is an error. Response headers are in either
|
||||
// *GetServiceAccountResponse.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 *ProjectsGetServiceAccountCall) Do(opts ...googleapi.CallOption) (*GetServiceAccountResponse, 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 := &GetServiceAccountResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns the email address of the service account for your project used for interactions with Google Cloud KMS.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "bigquery.projects.getServiceAccount",
|
||||
// "parameterOrder": [
|
||||
// "projectId"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "projectId": {
|
||||
// "description": "Project ID for which the service account is requested.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "projects/{projectId}/serviceAccount",
|
||||
// "response": {
|
||||
// "$ref": "GetServiceAccountResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/bigquery",
|
||||
// "https://www.googleapis.com/auth/cloud-platform",
|
||||
// "https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "bigquery.projects.list":
|
||||
|
||||
type ProjectsListCall struct {
|
||||
|
|
2621
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-api.json
generated
vendored
2621
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
123
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go
generated
vendored
123
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go
generated
vendored
|
@ -274,8 +274,8 @@ type DataSource struct {
|
|||
// so it's useful to refresh data automatically.
|
||||
//
|
||||
// Possible values:
|
||||
// "NONE" - The data source won't support data auto refresh, which is
|
||||
// default value.
|
||||
// "DATA_REFRESH_TYPE_UNSPECIFIED" - The data source won't support
|
||||
// data auto refresh, which is default value.
|
||||
// "SLIDING_WINDOW" - The data source supports data auto refresh, and
|
||||
// runs will be scheduled
|
||||
// for the past few days. Does not allow custom values to be set for
|
||||
|
@ -317,6 +317,10 @@ type DataSource struct {
|
|||
// for the data source.
|
||||
ManualRunsDisabled bool `json:"manualRunsDisabled,omitempty"`
|
||||
|
||||
// MinimumScheduleInterval: The minimum interval between two consecutive
|
||||
// scheduled runs.
|
||||
MinimumScheduleInterval string `json:"minimumScheduleInterval,omitempty"`
|
||||
|
||||
// Name: Data source resource name.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
|
@ -331,11 +335,6 @@ type DataSource struct {
|
|||
// e.g., https://www.googleapis.com/auth/bigquery
|
||||
Scopes []string `json:"scopes,omitempty"`
|
||||
|
||||
// StatusUpdateDeadlineSeconds: The number of seconds to wait for a
|
||||
// status update from the data source
|
||||
// before BigQuery marks the transfer as failed.
|
||||
StatusUpdateDeadlineSeconds int64 `json:"statusUpdateDeadlineSeconds,omitempty"`
|
||||
|
||||
// SupportsCustomSchedule: Specifies whether the data source supports a
|
||||
// user defined schedule, or
|
||||
// operates on the default schedule.
|
||||
|
@ -361,6 +360,11 @@ type DataSource struct {
|
|||
// support multiple transfer configs per project.
|
||||
TransferType string `json:"transferType,omitempty"`
|
||||
|
||||
// UpdateDeadlineSeconds: The number of seconds to wait for an update
|
||||
// from the data source
|
||||
// before BigQuery marks the transfer as failed.
|
||||
UpdateDeadlineSeconds int64 `json:"updateDeadlineSeconds,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
@ -646,12 +650,11 @@ type ListTransferConfigsResponse struct {
|
|||
// the
|
||||
// `ListTransferConfigsRequest.page_token`
|
||||
// to request the next page of list results.
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
NextPageToken string `json:"nextPageToken,omitempty"`
|
||||
|
||||
// TransferConfigs: The stored pipeline transfer
|
||||
// configurations.
|
||||
// @OutputOnly
|
||||
// TransferConfigs: The stored pipeline transfer configurations.
|
||||
// Output only.
|
||||
TransferConfigs []*TransferConfig `json:"transferConfigs,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -689,11 +692,11 @@ type ListTransferLogsResponse struct {
|
|||
// the
|
||||
// `GetTransferRunLogRequest.page_token`
|
||||
// to request the next page of list results.
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
NextPageToken string `json:"nextPageToken,omitempty"`
|
||||
|
||||
// TransferMessages: The stored pipeline transfer messages.
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
TransferMessages []*TransferMessage `json:"transferMessages,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -731,11 +734,11 @@ type ListTransferRunsResponse struct {
|
|||
// this token can be used as the
|
||||
// `ListTransferRunsRequest.page_token`
|
||||
// to request the next page of list results.
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
NextPageToken string `json:"nextPageToken,omitempty"`
|
||||
|
||||
// TransferRuns: The stored pipeline transfer runs.
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
TransferRuns []*TransferRun `json:"transferRuns,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -938,7 +941,7 @@ type TransferConfig struct {
|
|||
// DatasetRegion: Region in which BigQuery dataset is located. Currently
|
||||
// possible values are:
|
||||
// "US" and "EU".
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
DatasetRegion string `json:"datasetRegion,omitempty"`
|
||||
|
||||
// DestinationDatasetId: The BigQuery target dataset id.
|
||||
|
@ -961,33 +964,36 @@ type TransferConfig struct {
|
|||
// run.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// NextRunTime: Next time when data transfer will run. Output only.
|
||||
// Applicable
|
||||
// only for batch data transfers.
|
||||
// @OutputOnly
|
||||
// NextRunTime: Next time when data transfer will run.
|
||||
// Output only.
|
||||
NextRunTime string `json:"nextRunTime,omitempty"`
|
||||
|
||||
// Params: Data transfer specific parameters.
|
||||
Params googleapi.RawMessage `json:"params,omitempty"`
|
||||
|
||||
// Schedule: Data transfer schedule in GROC format.
|
||||
// Schedule: Data transfer schedule.
|
||||
// If the data source does not support a custom schedule, this should
|
||||
// be
|
||||
// empty. If it is empty, the default value for the data source will
|
||||
// be
|
||||
// used.
|
||||
// The specified times are in UTC.
|
||||
// Examples of valid GROC include:
|
||||
// Examples of valid format:
|
||||
// `1st,3rd monday of month 15:30`,
|
||||
// `every wed,fri of jan,jun 13:15`, and
|
||||
// `first sunday of quarter 00:00`.
|
||||
// See more explanation about the format
|
||||
// here:
|
||||
// https://cloud.google.com/appengine/docs/flexible/python/scheduli
|
||||
// ng-jobs-with-cron-yaml#the_schedule_format
|
||||
// NOTE: the granularity should be at least 8 hours, or less frequent.
|
||||
Schedule string `json:"schedule,omitempty"`
|
||||
|
||||
// Status: Status of the most recently updated transfer run.
|
||||
// @OutputOnly
|
||||
// State: State of the most recently updated transfer run.
|
||||
// Output only.
|
||||
//
|
||||
// Possible values:
|
||||
// "TRANSFER_STATUS_UNSPECIFIED" - Status placeholder.
|
||||
// "TRANSFER_STATE_UNSPECIFIED" - State placeholder.
|
||||
// "INACTIVE" - Data transfer is inactive.
|
||||
// "PENDING" - Data transfer is scheduled and is waiting to be picked
|
||||
// up by
|
||||
|
@ -996,11 +1002,11 @@ type TransferConfig struct {
|
|||
// "SUCCEEDED" - Data transfer completed successsfully.
|
||||
// "FAILED" - Data transfer failed.
|
||||
// "CANCELLED" - Data transfer is cancelled.
|
||||
Status string `json:"status,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
|
||||
// UpdateTime: Data transfer modification time. Ignored by server on
|
||||
// input.
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
UpdateTime string `json:"updateTime,omitempty"`
|
||||
|
||||
// UserId: GaiaID of the user on whose behalf transfer is done.
|
||||
|
@ -1008,7 +1014,7 @@ type TransferConfig struct {
|
|||
// to data sources that do not support service accounts. When set to
|
||||
// 0,
|
||||
// the data source service account credentials are used.
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
UserId int64 `json:"userId,omitempty,string"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -1084,13 +1090,13 @@ func (s *TransferMessage) MarshalJSON() ([]byte, error) {
|
|||
// TransferRun: Represents a data transfer run.
|
||||
type TransferRun struct {
|
||||
// DataSourceId: Data source id.
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
DataSourceId string `json:"dataSourceId,omitempty"`
|
||||
|
||||
// DatasetRegion: Region in which BigQuery dataset is located. Currently
|
||||
// possible values are:
|
||||
// "US" and "EU".
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
DatasetRegion string `json:"datasetRegion,omitempty"`
|
||||
|
||||
// DestinationDatasetId: The BigQuery target dataset id.
|
||||
|
@ -1099,7 +1105,7 @@ type TransferRun struct {
|
|||
// EndTime: Time when transfer run ended. Parameter ignored by server
|
||||
// for input
|
||||
// requests.
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
EndTime string `json:"endTime,omitempty"`
|
||||
|
||||
// Name: The resource name of the transfer run.
|
||||
|
@ -1125,9 +1131,8 @@ type TransferRun struct {
|
|||
// this is empty.
|
||||
// NOTE: the system might choose to delay the schedule depending on
|
||||
// the
|
||||
// current load, so `schedule_time` doesn't always matches
|
||||
// this.
|
||||
// @OutputOnly
|
||||
// current load, so `schedule_time` doesn't always matches this.
|
||||
// Output only.
|
||||
Schedule string `json:"schedule,omitempty"`
|
||||
|
||||
// ScheduleTime: Minimum time after which a transfer run can be started.
|
||||
|
@ -1136,15 +1141,14 @@ type TransferRun struct {
|
|||
// StartTime: Time when transfer run was started. Parameter ignored by
|
||||
// server for input
|
||||
// requests.
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
StartTime string `json:"startTime,omitempty"`
|
||||
|
||||
// Status: Data transfer run status. Ignored for input
|
||||
// requests.
|
||||
// @OutputOnly
|
||||
// State: Data transfer run state. Ignored for input requests.
|
||||
// Output only.
|
||||
//
|
||||
// Possible values:
|
||||
// "TRANSFER_STATUS_UNSPECIFIED" - Status placeholder.
|
||||
// "TRANSFER_STATE_UNSPECIFIED" - State placeholder.
|
||||
// "INACTIVE" - Data transfer is inactive.
|
||||
// "PENDING" - Data transfer is scheduled and is waiting to be picked
|
||||
// up by
|
||||
|
@ -1153,15 +1157,14 @@ type TransferRun struct {
|
|||
// "SUCCEEDED" - Data transfer completed successsfully.
|
||||
// "FAILED" - Data transfer failed.
|
||||
// "CANCELLED" - Data transfer is cancelled.
|
||||
Status string `json:"status,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
|
||||
// UpdateTime: Last time the data transfer run status was
|
||||
// updated.
|
||||
// @OutputOnly
|
||||
// UpdateTime: Last time the data transfer run state was updated.
|
||||
// Output only.
|
||||
UpdateTime string `json:"updateTime,omitempty"`
|
||||
|
||||
// UserId: The user id for this transfer run.
|
||||
// @OutputOnly
|
||||
// Output only.
|
||||
UserId int64 `json:"userId,omitempty,string"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -4320,19 +4323,19 @@ func (c *ProjectsLocationsTransferConfigsRunsListCall) RunAttempt(runAttempt str
|
|||
return c
|
||||
}
|
||||
|
||||
// Statuses sets the optional parameter "statuses": When specified, only
|
||||
// transfer runs with requested statuses are returned.
|
||||
// States sets the optional parameter "states": When specified, only
|
||||
// transfer runs with requested states are returned.
|
||||
//
|
||||
// Possible values:
|
||||
// "TRANSFER_STATUS_UNSPECIFIED"
|
||||
// "TRANSFER_STATE_UNSPECIFIED"
|
||||
// "INACTIVE"
|
||||
// "PENDING"
|
||||
// "RUNNING"
|
||||
// "SUCCEEDED"
|
||||
// "FAILED"
|
||||
// "CANCELLED"
|
||||
func (c *ProjectsLocationsTransferConfigsRunsListCall) Statuses(statuses ...string) *ProjectsLocationsTransferConfigsRunsListCall {
|
||||
c.urlParams_.SetMulti("statuses", append([]string{}, statuses...))
|
||||
func (c *ProjectsLocationsTransferConfigsRunsListCall) States(states ...string) *ProjectsLocationsTransferConfigsRunsListCall {
|
||||
c.urlParams_.SetMulti("states", append([]string{}, states...))
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -4465,10 +4468,10 @@ func (c *ProjectsLocationsTransferConfigsRunsListCall) Do(opts ...googleapi.Call
|
|||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "statuses": {
|
||||
// "description": "When specified, only transfer runs with requested statuses are returned.",
|
||||
// "states": {
|
||||
// "description": "When specified, only transfer runs with requested states are returned.",
|
||||
// "enum": [
|
||||
// "TRANSFER_STATUS_UNSPECIFIED",
|
||||
// "TRANSFER_STATE_UNSPECIFIED",
|
||||
// "INACTIVE",
|
||||
// "PENDING",
|
||||
// "RUNNING",
|
||||
|
@ -6018,19 +6021,19 @@ func (c *ProjectsTransferConfigsRunsListCall) RunAttempt(runAttempt string) *Pro
|
|||
return c
|
||||
}
|
||||
|
||||
// Statuses sets the optional parameter "statuses": When specified, only
|
||||
// transfer runs with requested statuses are returned.
|
||||
// States sets the optional parameter "states": When specified, only
|
||||
// transfer runs with requested states are returned.
|
||||
//
|
||||
// Possible values:
|
||||
// "TRANSFER_STATUS_UNSPECIFIED"
|
||||
// "TRANSFER_STATE_UNSPECIFIED"
|
||||
// "INACTIVE"
|
||||
// "PENDING"
|
||||
// "RUNNING"
|
||||
// "SUCCEEDED"
|
||||
// "FAILED"
|
||||
// "CANCELLED"
|
||||
func (c *ProjectsTransferConfigsRunsListCall) Statuses(statuses ...string) *ProjectsTransferConfigsRunsListCall {
|
||||
c.urlParams_.SetMulti("statuses", append([]string{}, statuses...))
|
||||
func (c *ProjectsTransferConfigsRunsListCall) States(states ...string) *ProjectsTransferConfigsRunsListCall {
|
||||
c.urlParams_.SetMulti("states", append([]string{}, states...))
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -6163,10 +6166,10 @@ func (c *ProjectsTransferConfigsRunsListCall) Do(opts ...googleapi.CallOption) (
|
|||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "statuses": {
|
||||
// "description": "When specified, only transfer runs with requested statuses are returned.",
|
||||
// "states": {
|
||||
// "description": "When specified, only transfer runs with requested states are returned.",
|
||||
// "enum": [
|
||||
// "TRANSFER_STATUS_UNSPECIFIED",
|
||||
// "TRANSFER_STATE_UNSPECIFIED",
|
||||
// "INACTIVE",
|
||||
// "PENDING",
|
||||
// "RUNNING",
|
||||
|
|
2
vendor/google.golang.org/api/books/v1/books-api.json
generated
vendored
2
vendor/google.golang.org/api/books/v1/books-api.json
generated
vendored
|
@ -20,7 +20,7 @@
|
|||
"basePath": "/books/v1/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "books/v1/",
|
||||
"batchPath": "batch",
|
||||
"batchPath": "batch/books/v1",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
|
|
4
vendor/google.golang.org/api/calendar/v3/calendar-api.json
generated
vendored
4
vendor/google.golang.org/api/calendar/v3/calendar-api.json
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/h_kaqUFBJHsu0TsHlTyJklsHyzA\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/o_EybjCqMtVYBedHGweVn2CP_Ko\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "calendar:v3",
|
||||
"name": "calendar",
|
||||
"version": "v3",
|
||||
"revision": "20170723",
|
||||
"revision": "20170903",
|
||||
"title": "Calendar API",
|
||||
"description": "Manipulates events and other calendar data.",
|
||||
"ownerDomain": "google.com",
|
||||
|
|
2906
vendor/google.golang.org/api/classroom/v1/classroom-api.json
generated
vendored
2906
vendor/google.golang.org/api/classroom/v1/classroom-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
32
vendor/google.golang.org/api/classroom/v1/classroom-gen.go
generated
vendored
32
vendor/google.golang.org/api/classroom/v1/classroom-gen.go
generated
vendored
|
@ -485,9 +485,10 @@ type Course struct {
|
|||
// * the email address of the user
|
||||
// * the string literal "me", indicating the requesting user
|
||||
//
|
||||
// This must be set in a create request. Specifying this field in a
|
||||
// course
|
||||
// update mask results in an `INVALID_ARGUMENT` error.
|
||||
// This must be set in a create request. Admins can also specify this
|
||||
// field
|
||||
// in a patch course request to
|
||||
// transfer ownership. In other contexts, it is read-only.
|
||||
OwnerId string `json:"ownerId,omitempty"`
|
||||
|
||||
// Room: Optional room location.
|
||||
|
@ -2095,7 +2096,9 @@ type StudentSubmission struct {
|
|||
AlternateLink string `json:"alternateLink,omitempty"`
|
||||
|
||||
// AssignedGrade: Optional grade. If unset, no grade was set.
|
||||
// This must be a non-negative integer value.
|
||||
// This value must be non-negative. Decimal (i.e. non-integer) values
|
||||
// are
|
||||
// allowed, but will be rounded to two decimal places.
|
||||
//
|
||||
// This may be modified only by course teachers.
|
||||
AssignedGrade float64 `json:"assignedGrade,omitempty"`
|
||||
|
@ -2147,7 +2150,9 @@ type StudentSubmission struct {
|
|||
CreationTime string `json:"creationTime,omitempty"`
|
||||
|
||||
// DraftGrade: Optional pending grade. If unset, no grade was set.
|
||||
// This must be a non-negative integer value.
|
||||
// This value must be non-negative. Decimal (i.e. non-integer) values
|
||||
// are
|
||||
// allowed, but will be rounded to two decimal places.
|
||||
//
|
||||
// This is only visible to and modifiable by course teachers.
|
||||
DraftGrade float64 `json:"draftGrade,omitempty"`
|
||||
|
@ -2923,7 +2928,9 @@ type CoursesListCall struct {
|
|||
|
||||
// List: Returns a list of courses that the requesting user is permitted
|
||||
// to view,
|
||||
// restricted to those that match the request.
|
||||
// restricted to those that match the request. Returned courses are
|
||||
// ordered by
|
||||
// creation time, with the most recently created coming first.
|
||||
//
|
||||
// This method returns the following error codes:
|
||||
//
|
||||
|
@ -3091,7 +3098,7 @@ func (c *CoursesListCall) Do(opts ...googleapi.CallOption) (*ListCoursesResponse
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns a list of courses that the requesting user is permitted to view,\nrestricted to those that match the request.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` for access errors.\n* `INVALID_ARGUMENT` if the query argument is malformed.\n* `NOT_FOUND` if any users specified in the query arguments do not exist.",
|
||||
// "description": "Returns a list of courses that the requesting user is permitted to view,\nrestricted to those that match the request. Returned courses are ordered by\ncreation time, with the most recently created coming first.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` for access errors.\n* `INVALID_ARGUMENT` if the query argument is malformed.\n* `NOT_FOUND` if any users specified in the query arguments do not exist.",
|
||||
// "flatPath": "v1/courses",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "classroom.courses.list",
|
||||
|
@ -3209,6 +3216,13 @@ func (r *CoursesService) Patch(id string, course *Course) *CoursesPatchCall {
|
|||
// * `description`
|
||||
// * `room`
|
||||
// * `courseState`
|
||||
// * `ownerId`
|
||||
//
|
||||
// Note: patches to ownerId are treated as being effective immediately,
|
||||
// but in
|
||||
// practice it may take some time for the ownership transfer of all
|
||||
// affected
|
||||
// resources to complete.
|
||||
//
|
||||
// When set in a query parameter, this field should be specified
|
||||
// as
|
||||
|
@ -3320,7 +3334,7 @@ func (c *CoursesPatchCall) Do(opts ...googleapi.CallOption) (*Course, error) {
|
|||
// "type": "string"
|
||||
// },
|
||||
// "updateMask": {
|
||||
// "description": "Mask that identifies which fields on the course to update.\nThis field is required to do an update. The update will fail if invalid\nfields are specified. The following fields are valid:\n\n* `name`\n* `section`\n* `descriptionHeading`\n* `description`\n* `room`\n* `courseState`\n\nWhen set in a query parameter, this field should be specified as\n\n`updateMask=\u003cfield1\u003e,\u003cfield2\u003e,...`",
|
||||
// "description": "Mask that identifies which fields on the course to update.\nThis field is required to do an update. The update will fail if invalid\nfields are specified. The following fields are valid:\n\n* `name`\n* `section`\n* `descriptionHeading`\n* `description`\n* `room`\n* `courseState`\n* `ownerId`\n\nNote: patches to ownerId are treated as being effective immediately, but in\npractice it may take some time for the ownership transfer of all affected\nresources to complete.\n\nWhen set in a query parameter, this field should be specified as\n\n`updateMask=\u003cfield1\u003e,\u003cfield2\u003e,...`",
|
||||
// "format": "google-fieldmask",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
|
@ -5291,7 +5305,7 @@ func (c *CoursesCourseWorkStudentSubmissionsListCall) Do(opts ...googleapi.CallO
|
|||
// "type": "string"
|
||||
// },
|
||||
// "courseWorkId": {
|
||||
// "description": "Identifer of the student work to request.\nThis may be set to the string literal `\"-\"` to request student work for\nall course work in the specified course.",
|
||||
// "description": "Identifier of the student work to request.\nThis may be set to the string literal `\"-\"` to request student work for\nall course work in the specified course.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
|
|
363
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-api.json
generated
vendored
363
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-api.json
generated
vendored
|
@ -167,9 +167,233 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"resources": {
|
||||
"skus": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "cloudbilling.services.skus.list",
|
||||
"response": {
|
||||
"$ref": "ListSkusResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"parent"
|
||||
],
|
||||
"description": "Lists all publicly available SKUs for a given cloud service.",
|
||||
"flatPath": "v1/services/{servicesId}/skus",
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"parent": {
|
||||
"description": "The name of the service.\nExample: \"services/DA34-426B-A397\"",
|
||||
"required": true,
|
||||
"pattern": "^services/[^/]+$",
|
||||
"location": "path",
|
||||
"type": "string"
|
||||
},
|
||||
"currencyCode": {
|
||||
"description": "The ISO 4217 currency code for the pricing info in the response proto.\nWill use the conversion rate as of start_time.\nOptional. If not specified USD will be used.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "Optional exclusive end time of the time range for which the pricing\nversions will be returned. Timestamps in the future are not allowed.\nMaximum allowable time range is 1 month (31 days). Time range as a whole\nis optional. If not specified, the latest pricing will be returned (up to\n12 hours old at most).",
|
||||
"location": "query",
|
||||
"type": "string",
|
||||
"format": "google-datetime"
|
||||
},
|
||||
"pageSize": {
|
||||
"description": "Requested page size. Defaults to 5000.",
|
||||
"location": "query",
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"startTime": {
|
||||
"description": "Optional inclusive start time of the time range for which the pricing\nversions will be returned. Timestamps in the future are not allowed.\nMaximum allowable time range is 1 month (31 days). Time range as a whole\nis optional. If not specified, the latest pricing will be returned (up to\n12 hours old at most).",
|
||||
"location": "query",
|
||||
"type": "string",
|
||||
"format": "google-datetime"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "A token identifying a page of results to return. This should be a\n`next_page_token` value returned from a previous `ListSkus`\ncall. If unspecified, the first page of results is returned.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+parent}/skus"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "cloudbilling.services.list",
|
||||
"response": {
|
||||
"$ref": "ListServicesResponse"
|
||||
},
|
||||
"parameterOrder": [],
|
||||
"description": "Lists all public cloud services.",
|
||||
"flatPath": "v1/services",
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"pageSize": {
|
||||
"description": "Requested page size. Defaults to 5000.",
|
||||
"location": "query",
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "A token identifying a page of results to return. This should be a\n`next_page_token` value returned from a previous `ListServices`\ncall. If unspecified, the first page of results is returned.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/services"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"PricingExpression": {
|
||||
"description": "Expresses a mathematical pricing formula. For Example:-\n\n`usage_unit: GBy`\n`tiered_rates:`\n `[start_usage_amount: 20, unit_price: $10]`\n `[start_usage_amount: 100, unit_price: $5]`\n\nThe above expresses a pricing formula where the first 20GB is free, the\nnext 80GB is priced at $10 per GB followed by $5 per GB for additional\nusage.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"displayQuantity": {
|
||||
"description": "The recommended quantity of units for displaying pricing info. When\ndisplaying pricing info it is recommended to display:\n(unit_price * display_quantity) per display_quantity usage_unit.\nThis field does not affect the pricing formula and is for display purposes\nonly.\nExample: If the unit_price is \"0.0001 USD\", the usage_unit is \"GB\" and\nthe display_quantity is \"1000\" then the recommended way of displaying the\npricing info is \"0.10 USD per 1000 GB\"",
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
},
|
||||
"baseUnitDescription": {
|
||||
"description": "The base unit in human readable form.\nExample: \"byte\".",
|
||||
"type": "string"
|
||||
},
|
||||
"baseUnitConversionFactor": {
|
||||
"description": "Conversion factor for converting from price per usage_unit to price per\nbase_unit, and start_usage_amount to start_usage_amount in base_unit.\nunit_price / base_unit_conversion_factor = price per base_unit.\nstart_usage_amount * base_unit_conversion_factor = start_usage_amount in\nbase_unit.",
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
},
|
||||
"usageUnit": {
|
||||
"description": "The short hand for unit of usage this pricing is specified in.\nExample: usage_unit of \"GiBy\" means that usage is specified in \"Gibi Byte\".",
|
||||
"type": "string"
|
||||
},
|
||||
"baseUnit": {
|
||||
"description": "The base unit for the SKU which is the unit used in usage exports.\nExample: \"By\"",
|
||||
"type": "string"
|
||||
},
|
||||
"usageUnitDescription": {
|
||||
"description": "The unit of usage in human readable form.\nExample: \"gibi byte\".",
|
||||
"type": "string"
|
||||
},
|
||||
"tieredRates": {
|
||||
"description": "The list of tiered rates for this pricing. The total cost is computed by\napplying each of the tiered rates on usage. This repeated list is sorted\nby ascending order of start_usage_amount.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "TierRate"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "PricingExpression"
|
||||
},
|
||||
"Sku": {
|
||||
"description": "Encapsulates a single SKU in Google Cloud Platform",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {
|
||||
"description": "A human readable description of the SKU, has a maximum length of 256\ncharacters.",
|
||||
"type": "string"
|
||||
},
|
||||
"serviceRegions": {
|
||||
"description": "List of service regions this SKU is offered at.\nExample: \"asia-east1\"\nService regions can be found at https://cloud.google.com/about/locations/",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"serviceProviderName": {
|
||||
"description": "Identifies the service provider.\nThis is 'Google' for first party services in Google Cloud Platform.",
|
||||
"type": "string"
|
||||
},
|
||||
"pricingInfo": {
|
||||
"description": "A timeline of pricing info for this SKU in chronological order.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "PricingInfo"
|
||||
}
|
||||
},
|
||||
"skuId": {
|
||||
"description": "The identifier for the SKU.\nExample: \"AA95-CD31-42FE\"",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "The resource name for the SKU.\nExample: \"services/DA34-426B-A397/skus/AA95-CD31-42FE\"",
|
||||
"type": "string"
|
||||
},
|
||||
"category": {
|
||||
"description": "The category hierarchy of this SKU, purely for organizational purpose.",
|
||||
"$ref": "Category"
|
||||
}
|
||||
},
|
||||
"id": "Sku"
|
||||
},
|
||||
"Money": {
|
||||
"description": "Represents an amount of money with its currency type.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"currencyCode": {
|
||||
"description": "The 3-letter currency code defined in ISO 4217.",
|
||||
"type": "string"
|
||||
},
|
||||
"units": {
|
||||
"description": "The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.",
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"nanos": {
|
||||
"description": "Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.",
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
"id": "Money"
|
||||
},
|
||||
"AggregationInfo": {
|
||||
"description": "Represents the aggregation level and interval for pricing of a single SKU.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"aggregationInterval": {
|
||||
"enum": [
|
||||
"AGGREGATION_INTERVAL_UNSPECIFIED",
|
||||
"DAILY",
|
||||
"MONTHLY"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"aggregationLevel": {
|
||||
"enum": [
|
||||
"AGGREGATION_LEVEL_UNSPECIFIED",
|
||||
"ACCOUNT",
|
||||
"PROJECT"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"aggregationCount": {
|
||||
"description": "The number of intervals to aggregate over.\nExample: If aggregation_level is \"DAILY\" and aggregation_count is 14,\naggregation will be over 14 days.",
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
"id": "AggregationInfo"
|
||||
},
|
||||
"ProjectBillingInfo": {
|
||||
"description": "Encapsulation of billing information for a Cloud Console project. A project\nhas at most one associated billing account at a time (but a billing account\ncan be assigned to multiple projects).",
|
||||
"type": "object",
|
||||
|
@ -193,6 +417,106 @@
|
|||
},
|
||||
"id": "ProjectBillingInfo"
|
||||
},
|
||||
"ListBillingAccountsResponse": {
|
||||
"description": "Response message for `ListBillingAccounts`.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
"description": "A token to retrieve the next page of results. To retrieve the next page,\ncall `ListBillingAccounts` again with the `page_token` field set to this\nvalue. This field is empty if there are no more results to retrieve.",
|
||||
"type": "string"
|
||||
},
|
||||
"billingAccounts": {
|
||||
"description": "A list of billing accounts.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "BillingAccount"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ListBillingAccountsResponse"
|
||||
},
|
||||
"ListSkusResponse": {
|
||||
"description": "Response message for `ListSkus`.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
"description": "A token to retrieve the next page of results. To retrieve the next page,\ncall `ListSkus` again with the `page_token` field set to this\nvalue. This field is empty if there are no more results to retrieve.",
|
||||
"type": "string"
|
||||
},
|
||||
"skus": {
|
||||
"description": "The list of public SKUs of the given service.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Sku"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ListSkusResponse"
|
||||
},
|
||||
"Service": {
|
||||
"description": "Encapsulates a single service in Google Cloud Platform.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"description": "A human readable display name for this service.",
|
||||
"type": "string"
|
||||
},
|
||||
"serviceId": {
|
||||
"description": "The identifier for the service.\nExample: \"DA34-426B-A397\"",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "The resource name for the service.\nExample: \"services/DA34-426B-A397\"",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "Service"
|
||||
},
|
||||
"TierRate": {
|
||||
"description": "The price rate indicating starting usage and its corresponding price.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"unitPrice": {
|
||||
"description": "The price per unit of usage.\nExample: unit_price of amount $10 indicates that each unit will cost $10.",
|
||||
"$ref": "Money"
|
||||
},
|
||||
"startUsageAmount": {
|
||||
"description": "Usage is priced at this rate only after this amount.\nExample: start_usage_amount of 10 indicates that the usage will be priced\nat the unit_price after the first 10 usage_units.",
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
}
|
||||
},
|
||||
"id": "TierRate"
|
||||
},
|
||||
"PricingInfo": {
|
||||
"description": "Represents the pricing information for a SKU at a single point of time.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"effectiveTime": {
|
||||
"description": "The timestamp from which this pricing was effective.",
|
||||
"type": "string",
|
||||
"format": "google-datetime"
|
||||
},
|
||||
"aggregationInfo": {
|
||||
"description": "Aggregation Info. This can be left unspecified if the pricing expression\ndoesn't require aggregation.",
|
||||
"$ref": "AggregationInfo"
|
||||
},
|
||||
"currencyConversionRate": {
|
||||
"description": "Conversion rate for currency conversion, from USD to the currency specified\nin the request. If the currency is not specified this defaults to 1.0.\nExample: USD * currency_conversion_rate = JPY",
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
},
|
||||
"pricingExpression": {
|
||||
"description": "Expresses the pricing formula. See `PricingExpression` for an example.",
|
||||
"$ref": "PricingExpression"
|
||||
},
|
||||
"summary": {
|
||||
"description": "An optional human readable summary of the pricing information, has a\nmaximum length of 256 characters.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "PricingInfo"
|
||||
},
|
||||
"ListProjectBillingInfoResponse": {
|
||||
"description": "Request message for `ListProjectBillingInfoResponse`.",
|
||||
"type": "object",
|
||||
|
@ -211,23 +535,23 @@
|
|||
},
|
||||
"id": "ListProjectBillingInfoResponse"
|
||||
},
|
||||
"ListBillingAccountsResponse": {
|
||||
"description": "Response message for `ListBillingAccounts`.",
|
||||
"ListServicesResponse": {
|
||||
"description": "Response message for `ListServices`.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
"description": "A token to retrieve the next page of results. To retrieve the next page,\ncall `ListBillingAccounts` again with the `page_token` field set to this\nvalue. This field is empty if there are no more results to retrieve.",
|
||||
"description": "A token to retrieve the next page of results. To retrieve the next page,\ncall `ListServices` again with the `page_token` field set to this\nvalue. This field is empty if there are no more results to retrieve.",
|
||||
"type": "string"
|
||||
},
|
||||
"billingAccounts": {
|
||||
"description": "A list of billing accounts.",
|
||||
"services": {
|
||||
"description": "A list of services.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "BillingAccount"
|
||||
"$ref": "Service"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ListBillingAccountsResponse"
|
||||
"id": "ListServicesResponse"
|
||||
},
|
||||
"BillingAccount": {
|
||||
"description": "A billing account in [Google Cloud\nConsole](https://console.cloud.google.com/). You can assign a billing account\nto one or more projects.",
|
||||
|
@ -247,9 +571,32 @@
|
|||
}
|
||||
},
|
||||
"id": "BillingAccount"
|
||||
},
|
||||
"Category": {
|
||||
"description": "Represents the category hierarchy of a SKU.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"resourceFamily": {
|
||||
"description": "The type of product the SKU refers to.\nExample: \"Compute\", \"Storage\", \"Network\", \"ApplicationServices\" etc.",
|
||||
"type": "string"
|
||||
},
|
||||
"usageType": {
|
||||
"description": "Represents how the SKU is consumed.\nExample: \"OnDemand\", \"Preemptible\", \"Commit1Mo\", \"Commit1Yr\" etc.",
|
||||
"type": "string"
|
||||
},
|
||||
"resourceGroup": {
|
||||
"description": "A group classification for related SKUs.\nExample: \"RAM\", \"GPU\", \"Prediction\", \"Ops\", \"GoogleEgress\" etc.",
|
||||
"type": "string"
|
||||
},
|
||||
"serviceDisplayName": {
|
||||
"description": "The display name of the service this SKU belongs to.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "Category"
|
||||
}
|
||||
},
|
||||
"revision": "20170711",
|
||||
"revision": "20170813",
|
||||
"basePath": "",
|
||||
"icons": {
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif",
|
||||
|
|
986
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-gen.go
generated
vendored
986
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-gen.go
generated
vendored
File diff suppressed because it is too large
Load diff
1472
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-api.json
generated
vendored
1472
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
9
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-gen.go
generated
vendored
9
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-gen.go
generated
vendored
|
@ -792,8 +792,8 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
|
|||
type Operation struct {
|
||||
// Done: If the value is `false`, it means the operation is still in
|
||||
// progress.
|
||||
// If true, the operation is completed, and either `error` or `response`
|
||||
// is
|
||||
// If `true`, the operation is completed, and either `error` or
|
||||
// `response` is
|
||||
// available.
|
||||
Done bool `json:"done,omitempty"`
|
||||
|
||||
|
@ -990,9 +990,8 @@ type Source struct {
|
|||
// Repo.
|
||||
RepoSource *RepoSource `json:"repoSource,omitempty"`
|
||||
|
||||
// StorageSource: If provided, get the source from this location in in
|
||||
// Google Cloud
|
||||
// Storage.
|
||||
// StorageSource: If provided, get the source from this location in
|
||||
// Google Cloud Storage.
|
||||
StorageSource *StorageSource `json:"storageSource,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "RepoSource") to
|
||||
|
|
1574
vendor/google.golang.org/api/clouddebugger/v2/clouddebugger-api.json
generated
vendored
1574
vendor/google.golang.org/api/clouddebugger/v2/clouddebugger-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
163
vendor/google.golang.org/api/clouddebugger/v2/clouddebugger-gen.go
generated
vendored
163
vendor/google.golang.org/api/clouddebugger/v2/clouddebugger-gen.go
generated
vendored
|
@ -458,21 +458,20 @@ func (s *CloudWorkspaceSourceContext) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Debuggee: Represents the application to debug. The application may
|
||||
// Debuggee: Represents the debugged application. The application may
|
||||
// include one or more
|
||||
// replicated processes executing the same code. Each of these processes
|
||||
// is
|
||||
// attached with a debugger agent, carrying out the debugging
|
||||
// commands.
|
||||
// The agents attached to the same debuggee are identified by using
|
||||
// exactly the
|
||||
// same field values when registering.
|
||||
// Agents attached to the same debuggee identify themselves as such by
|
||||
// using
|
||||
// exactly the same Debuggee message value when registering.
|
||||
type Debuggee struct {
|
||||
// AgentVersion: Version ID of the agent release. The version ID is
|
||||
// structured as
|
||||
// following: `domain/type/vmajor.minor` (for
|
||||
// AgentVersion: Version ID of the agent.
|
||||
// Schema: `domain/language-platform/vmajor.minor` (for
|
||||
// example
|
||||
// `google.com/gcp-java/v1.1`).
|
||||
// `google.com/java-gcp/v1.1`).
|
||||
AgentVersion string `json:"agentVersion,omitempty"`
|
||||
|
||||
// Description: Human readable description of the debuggee.
|
||||
|
@ -485,10 +484,7 @@ type Debuggee struct {
|
|||
// source code used in the
|
||||
// deployed application.
|
||||
//
|
||||
// Contexts describing a remote repo related to the source code
|
||||
// have a `category` label of `remote_repo`. Source snapshot
|
||||
// source
|
||||
// contexts have a `category` of `snapshot`.
|
||||
// NOTE: this field is experimental and can be ignored.
|
||||
ExtSourceContexts []*ExtendedSourceContext `json:"extSourceContexts,omitempty"`
|
||||
|
||||
// Id: Unique identifier for the debuggee generated by the controller
|
||||
|
@ -500,9 +496,10 @@ type Debuggee struct {
|
|||
// detach from the debuggee.
|
||||
IsDisabled bool `json:"isDisabled,omitempty"`
|
||||
|
||||
// IsInactive: If set to `true`, indicates that the debuggee is
|
||||
// considered as inactive by
|
||||
// the Controller service.
|
||||
// IsInactive: If set to `true`, indicates that Controller service does
|
||||
// not detect any
|
||||
// activity from the debuggee agents and the application is possibly
|
||||
// stopped.
|
||||
IsInactive bool `json:"isInactive,omitempty"`
|
||||
|
||||
// Labels: A set of custom debuggee properties, populated by the agent,
|
||||
|
@ -511,19 +508,13 @@ type Debuggee struct {
|
|||
Labels map[string]string `json:"labels,omitempty"`
|
||||
|
||||
// Project: Project the debuggee is associated with.
|
||||
// Use the project number when registering a Google Cloud Platform
|
||||
// Use project number or id when registering a Google Cloud Platform
|
||||
// project.
|
||||
Project string `json:"project,omitempty"`
|
||||
|
||||
// SourceContexts: References to the locations and revisions of the
|
||||
// source code used in the
|
||||
// deployed application.
|
||||
//
|
||||
// NOTE: This field is deprecated. Consumers should
|
||||
// use
|
||||
// `ext_source_contexts` if it is not empty. Debug agents should
|
||||
// populate
|
||||
// both this field and `ext_source_contexts`.
|
||||
SourceContexts []*SourceContext `json:"sourceContexts,omitempty"`
|
||||
|
||||
// Status: Human readable message to be displayed to the user about this
|
||||
|
@ -533,10 +524,16 @@ type Debuggee struct {
|
|||
// informational or an error status.
|
||||
Status *StatusMessage `json:"status,omitempty"`
|
||||
|
||||
// Uniquifier: Debuggee uniquifier within the project.
|
||||
// Any string that identifies the application within the project can be
|
||||
// used.
|
||||
// Including environment and version or build IDs is recommended.
|
||||
// Uniquifier: Uniquifier to further distiguish the application.
|
||||
// It is possible that different applications might have identical
|
||||
// values in
|
||||
// the debuggee message, thus, incorrectly identified as a single
|
||||
// application
|
||||
// by the Controller service. This field adds salt to further distiguish
|
||||
// the
|
||||
// application. Agents should consider seeding this field with value
|
||||
// that
|
||||
// identifies the code, binary, configuration and environment.
|
||||
Uniquifier string `json:"uniquifier,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AgentVersion") to
|
||||
|
@ -772,14 +769,16 @@ type ListActiveBreakpointsResponse struct {
|
|||
// breakpoint.
|
||||
Breakpoints []*Breakpoint `json:"breakpoints,omitempty"`
|
||||
|
||||
// NextWaitToken: A wait token that can be used in the next method call
|
||||
// to block until
|
||||
// NextWaitToken: A token that can be used in the next method call to
|
||||
// block until
|
||||
// the list of breakpoints changes.
|
||||
NextWaitToken string `json:"nextWaitToken,omitempty"`
|
||||
|
||||
// WaitExpired: The `wait_expired` field is set to true by the server
|
||||
// when the
|
||||
// request times out and the field `success_on_timeout` is set to true.
|
||||
// WaitExpired: If set to `true`, indicates that there is no change to
|
||||
// the
|
||||
// list of active breakpoints and the server-selected timeout has
|
||||
// expired.
|
||||
// The `breakpoints` field would be empty and should be ignored.
|
||||
WaitExpired bool `json:"waitExpired,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -855,12 +854,11 @@ func (s *ListBreakpointsResponse) MarshalJSON() ([]byte, error) {
|
|||
// ListDebuggeesResponse: Response for listing debuggees.
|
||||
type ListDebuggeesResponse struct {
|
||||
// Debuggees: List of debuggees accessible to the calling user.
|
||||
// Note that the `description` field is the only human readable
|
||||
// field
|
||||
// that should be displayed to the user.
|
||||
// The fields `debuggee.id` and `description` fields are guaranteed to
|
||||
// be
|
||||
// set on each debuggee.
|
||||
// The fields `debuggee.id` and `description` are guaranteed to be
|
||||
// set.
|
||||
// The `description` field is a human readable field provided by agents
|
||||
// and
|
||||
// can be displayed to users.
|
||||
Debuggees []*Debuggee `json:"debuggees,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -959,6 +957,12 @@ type RegisterDebuggeeResponse struct {
|
|||
// Debuggee: Debuggee resource.
|
||||
// The field `id` is guranteed to be set (in addition to the echoed
|
||||
// fields).
|
||||
// If the field `is_disabled` is set to `true`, the agent should
|
||||
// disable
|
||||
// itself by removing all breakpoints and detaching from the
|
||||
// application.
|
||||
// It should however continue to poll `RegisterDebuggee` until
|
||||
// reenabled.
|
||||
Debuggee *Debuggee `json:"debuggee,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
@ -1226,6 +1230,8 @@ func (s *StatusMessage) MarshalJSON() ([]byte, error) {
|
|||
type UpdateActiveBreakpointRequest struct {
|
||||
// Breakpoint: Updated breakpoint information.
|
||||
// The field `id` must be set.
|
||||
// The agent must echo all Breakpoint specification fields in the
|
||||
// update.
|
||||
Breakpoint *Breakpoint `json:"breakpoint,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Breakpoint") to
|
||||
|
@ -1473,19 +1479,19 @@ type ControllerDebuggeesRegisterCall struct {
|
|||
|
||||
// Register: Registers the debuggee with the controller service.
|
||||
//
|
||||
// All agents attached to the same application should call this method
|
||||
// All agents attached to the same application must call this method
|
||||
// with
|
||||
// the same request content to get back the same stable `debuggee_id`.
|
||||
// Agents
|
||||
// should call this method again whenever `google.rpc.Code.NOT_FOUND`
|
||||
// is
|
||||
// returned from any controller method.
|
||||
// exactly the same request content to get back the same stable
|
||||
// `debuggee_id`.
|
||||
// Agents should call this method again whenever
|
||||
// `google.rpc.Code.NOT_FOUND`
|
||||
// is returned from any controller method.
|
||||
//
|
||||
// This allows the controller service to disable the agent or recover
|
||||
// from any
|
||||
// data loss. If the debuggee is disabled by the server, the response
|
||||
// will
|
||||
// have `is_disabled` set to `true`.
|
||||
// This protocol allows the controller service to disable debuggees,
|
||||
// recover
|
||||
// from data loss, or change the `debuggee_id` format. Agents must
|
||||
// handle
|
||||
// `debuggee_id` value changing upon re-registration.
|
||||
func (r *ControllerDebuggeesService) Register(registerdebuggeerequest *RegisterDebuggeeRequest) *ControllerDebuggeesRegisterCall {
|
||||
c := &ControllerDebuggeesRegisterCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.registerdebuggeerequest = registerdebuggeerequest
|
||||
|
@ -1575,7 +1581,7 @@ func (c *ControllerDebuggeesRegisterCall) Do(opts ...googleapi.CallOption) (*Reg
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Registers the debuggee with the controller service.\n\nAll agents attached to the same application should call this method with\nthe same request content to get back the same stable `debuggee_id`. Agents\nshould call this method again whenever `google.rpc.Code.NOT_FOUND` is\nreturned from any controller method.\n\nThis allows the controller service to disable the agent or recover from any\ndata loss. If the debuggee is disabled by the server, the response will\nhave `is_disabled` set to `true`.",
|
||||
// "description": "Registers the debuggee with the controller service.\n\nAll agents attached to the same application must call this method with\nexactly the same request content to get back the same stable `debuggee_id`.\nAgents should call this method again whenever `google.rpc.Code.NOT_FOUND`\nis returned from any controller method.\n\nThis protocol allows the controller service to disable debuggees, recover\nfrom data loss, or change the `debuggee_id` format. Agents must handle\n`debuggee_id` value changing upon re-registration.",
|
||||
// "flatPath": "v2/controller/debuggees/register",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "clouddebugger.controller.debuggees.register",
|
||||
|
@ -1635,25 +1641,27 @@ func (r *ControllerDebuggeesBreakpointsService) List(debuggeeId string) *Control
|
|||
}
|
||||
|
||||
// SuccessOnTimeout sets the optional parameter "successOnTimeout": If
|
||||
// set to `true`, returns `google.rpc.Code.OK` status and sets
|
||||
// the
|
||||
// `wait_expired` response field to `true` when the server-selected
|
||||
// timeout
|
||||
// has expired (recommended).
|
||||
// set to `true` (recommended), returns `google.rpc.Code.OK` status
|
||||
// and
|
||||
// sets the `wait_expired` response field to `true` when the
|
||||
// server-selected
|
||||
// timeout has expired.
|
||||
//
|
||||
// If set to `false`, returns `google.rpc.Code.ABORTED` status when
|
||||
// the
|
||||
// server-selected timeout has expired (deprecated).
|
||||
// If set to `false` (deprecated), returns `google.rpc.Code.ABORTED`
|
||||
// status
|
||||
// when the server-selected timeout has expired.
|
||||
func (c *ControllerDebuggeesBreakpointsListCall) SuccessOnTimeout(successOnTimeout bool) *ControllerDebuggeesBreakpointsListCall {
|
||||
c.urlParams_.Set("successOnTimeout", fmt.Sprint(successOnTimeout))
|
||||
return c
|
||||
}
|
||||
|
||||
// WaitToken sets the optional parameter "waitToken": A wait token that,
|
||||
// if specified, blocks the method call until the list
|
||||
// of active breakpoints has changed, or a server selected timeout
|
||||
// WaitToken sets the optional parameter "waitToken": A token that, if
|
||||
// specified, blocks the method call until the list
|
||||
// of active breakpoints has changed, or a server-selected timeout
|
||||
// has
|
||||
// expired. The value should be set from the last returned response.
|
||||
// expired. The value should be set from the `next_wait_token` field
|
||||
// in
|
||||
// the last response. The initial value should be set to "init".
|
||||
func (c *ControllerDebuggeesBreakpointsListCall) WaitToken(waitToken string) *ControllerDebuggeesBreakpointsListCall {
|
||||
c.urlParams_.Set("waitToken", waitToken)
|
||||
return c
|
||||
|
@ -1768,12 +1776,12 @@ func (c *ControllerDebuggeesBreakpointsListCall) Do(opts ...googleapi.CallOption
|
|||
// "type": "string"
|
||||
// },
|
||||
// "successOnTimeout": {
|
||||
// "description": "If set to `true`, returns `google.rpc.Code.OK` status and sets the\n`wait_expired` response field to `true` when the server-selected timeout\nhas expired (recommended).\n\nIf set to `false`, returns `google.rpc.Code.ABORTED` status when the\nserver-selected timeout has expired (deprecated).",
|
||||
// "description": "If set to `true` (recommended), returns `google.rpc.Code.OK` status and\nsets the `wait_expired` response field to `true` when the server-selected\ntimeout has expired.\n\nIf set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status\nwhen the server-selected timeout has expired.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "waitToken": {
|
||||
// "description": "A wait token that, if specified, blocks the method call until the list\nof active breakpoints has changed, or a server selected timeout has\nexpired. The value should be set from the last returned response.",
|
||||
// "description": "A token that, if specified, blocks the method call until the list\nof active breakpoints has changed, or a server-selected timeout has\nexpired. The value should be set from the `next_wait_token` field in\nthe last response. The initial value should be set to `\"init\"`.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
|
@ -1803,8 +1811,7 @@ type ControllerDebuggeesBreakpointsUpdateCall struct {
|
|||
}
|
||||
|
||||
// Update: Updates the breakpoint state or mutable fields.
|
||||
// The entire Breakpoint message must be sent back to the
|
||||
// controller
|
||||
// The entire Breakpoint message must be sent back to the controller
|
||||
// service.
|
||||
//
|
||||
// Updates to active breakpoint fields are only allowed if the new
|
||||
|
@ -1911,7 +1918,7 @@ func (c *ControllerDebuggeesBreakpointsUpdateCall) Do(opts ...googleapi.CallOpti
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates the breakpoint state or mutable fields.\nThe entire Breakpoint message must be sent back to the controller\nservice.\n\nUpdates to active breakpoint fields are only allowed if the new value\ndoes not change the breakpoint specification. Updates to the `location`,\n`condition` and `expressions` fields should not alter the breakpoint\nsemantics. These may only make changes such as canonicalizing a value\nor snapping the location to the correct line of code.",
|
||||
// "description": "Updates the breakpoint state or mutable fields.\nThe entire Breakpoint message must be sent back to the controller service.\n\nUpdates to active breakpoint fields are only allowed if the new value\ndoes not change the breakpoint specification. Updates to the `location`,\n`condition` and `expressions` fields should not alter the breakpoint\nsemantics. These may only make changes such as canonicalizing a value\nor snapping the location to the correct line of code.",
|
||||
// "flatPath": "v2/controller/debuggees/{debuggeeId}/breakpoints/{id}",
|
||||
// "httpMethod": "PUT",
|
||||
// "id": "clouddebugger.controller.debuggees.breakpoints.update",
|
||||
|
@ -1958,7 +1965,7 @@ type DebuggerDebuggeesListCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: Lists all the debuggees that the user can set breakpoints to.
|
||||
// List: Lists all the debuggees that the user has access to.
|
||||
func (r *DebuggerDebuggeesService) List() *DebuggerDebuggeesListCall {
|
||||
c := &DebuggerDebuggeesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
return c
|
||||
|
@ -1966,7 +1973,7 @@ func (r *DebuggerDebuggeesService) List() *DebuggerDebuggeesListCall {
|
|||
|
||||
// ClientVersion sets the optional parameter "clientVersion": The client
|
||||
// version making the call.
|
||||
// Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||
func (c *DebuggerDebuggeesListCall) ClientVersion(clientVersion string) *DebuggerDebuggeesListCall {
|
||||
c.urlParams_.Set("clientVersion", clientVersion)
|
||||
return c
|
||||
|
@ -2079,14 +2086,14 @@ func (c *DebuggerDebuggeesListCall) Do(opts ...googleapi.CallOption) (*ListDebug
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Lists all the debuggees that the user can set breakpoints to.",
|
||||
// "description": "Lists all the debuggees that the user has access to.",
|
||||
// "flatPath": "v2/debugger/debuggees",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "clouddebugger.debugger.debuggees.list",
|
||||
// "parameterOrder": [],
|
||||
// "parameters": {
|
||||
// "clientVersion": {
|
||||
// "description": "The client version making the call.\nFollowing: `domain/type/version` (e.g., `google.com/intellij/v1`).",
|
||||
// "description": "The client version making the call.\nSchema: `domain/type/version` (e.g., `google.com/intellij/v1`).",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
|
@ -2134,7 +2141,7 @@ func (r *DebuggerDebuggeesBreakpointsService) Delete(debuggeeId string, breakpoi
|
|||
|
||||
// ClientVersion sets the optional parameter "clientVersion": The client
|
||||
// version making the call.
|
||||
// Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||
func (c *DebuggerDebuggeesBreakpointsDeleteCall) ClientVersion(clientVersion string) *DebuggerDebuggeesBreakpointsDeleteCall {
|
||||
c.urlParams_.Set("clientVersion", clientVersion)
|
||||
return c
|
||||
|
@ -2238,7 +2245,7 @@ func (c *DebuggerDebuggeesBreakpointsDeleteCall) Do(opts ...googleapi.CallOption
|
|||
// "type": "string"
|
||||
// },
|
||||
// "clientVersion": {
|
||||
// "description": "The client version making the call.\nFollowing: `domain/type/version` (e.g., `google.com/intellij/v1`).",
|
||||
// "description": "The client version making the call.\nSchema: `domain/type/version` (e.g., `google.com/intellij/v1`).",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
|
@ -2283,7 +2290,7 @@ func (r *DebuggerDebuggeesBreakpointsService) Get(debuggeeId string, breakpointI
|
|||
|
||||
// ClientVersion sets the optional parameter "clientVersion": The client
|
||||
// version making the call.
|
||||
// Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||
func (c *DebuggerDebuggeesBreakpointsGetCall) ClientVersion(clientVersion string) *DebuggerDebuggeesBreakpointsGetCall {
|
||||
c.urlParams_.Set("clientVersion", clientVersion)
|
||||
return c
|
||||
|
@ -2400,7 +2407,7 @@ func (c *DebuggerDebuggeesBreakpointsGetCall) Do(opts ...googleapi.CallOption) (
|
|||
// "type": "string"
|
||||
// },
|
||||
// "clientVersion": {
|
||||
// "description": "The client version making the call.\nFollowing: `domain/type/version` (e.g., `google.com/intellij/v1`).",
|
||||
// "description": "The client version making the call.\nSchema: `domain/type/version` (e.g., `google.com/intellij/v1`).",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
|
@ -2454,7 +2461,7 @@ func (c *DebuggerDebuggeesBreakpointsListCall) ActionValue(actionValue string) *
|
|||
|
||||
// ClientVersion sets the optional parameter "clientVersion": The client
|
||||
// version making the call.
|
||||
// Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||
func (c *DebuggerDebuggeesBreakpointsListCall) ClientVersion(clientVersion string) *DebuggerDebuggeesBreakpointsListCall {
|
||||
c.urlParams_.Set("clientVersion", clientVersion)
|
||||
return c
|
||||
|
@ -2612,7 +2619,7 @@ func (c *DebuggerDebuggeesBreakpointsListCall) Do(opts ...googleapi.CallOption)
|
|||
// "type": "string"
|
||||
// },
|
||||
// "clientVersion": {
|
||||
// "description": "The client version making the call.\nFollowing: `domain/type/version` (e.g., `google.com/intellij/v1`).",
|
||||
// "description": "The client version making the call.\nSchema: `domain/type/version` (e.g., `google.com/intellij/v1`).",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
|
@ -2676,7 +2683,7 @@ func (r *DebuggerDebuggeesBreakpointsService) Set(debuggeeId string, breakpoint
|
|||
|
||||
// ClientVersion sets the optional parameter "clientVersion": The client
|
||||
// version making the call.
|
||||
// Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||
func (c *DebuggerDebuggeesBreakpointsSetCall) ClientVersion(clientVersion string) *DebuggerDebuggeesBreakpointsSetCall {
|
||||
c.urlParams_.Set("clientVersion", clientVersion)
|
||||
return c
|
||||
|
@ -2777,7 +2784,7 @@ func (c *DebuggerDebuggeesBreakpointsSetCall) Do(opts ...googleapi.CallOption) (
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "clientVersion": {
|
||||
// "description": "The client version making the call.\nFollowing: `domain/type/version` (e.g., `google.com/intellij/v1`).",
|
||||
// "description": "The client version making the call.\nSchema: `domain/type/version` (e.g., `google.com/intellij/v1`).",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
|
|
1116
vendor/google.golang.org/api/clouderrorreporting/v1beta1/clouderrorreporting-api.json
generated
vendored
1116
vendor/google.golang.org/api/clouderrorreporting/v1beta1/clouderrorreporting-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
431
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-api.json
generated
vendored
431
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-api.json
generated
vendored
|
@ -1,22 +1,92 @@
|
|||
{
|
||||
"rootUrl": "https://cloudfunctions.googleapis.com/",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "cloudfunctions",
|
||||
"batchPath": "batch",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
"title": "Google Cloud Functions API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"operations": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"path": "v1/{+name}",
|
||||
"id": "cloudfunctions.operations.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.",
|
||||
"httpMethod": "GET",
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "^operations/[^/]+$",
|
||||
"location": "path",
|
||||
"description": "The name of the operation resource."
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/operations/{operationsId}"
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [],
|
||||
"response": {
|
||||
"$ref": "ListOperationsResponse"
|
||||
},
|
||||
"parameters": {
|
||||
"pageToken": {
|
||||
"location": "query",
|
||||
"description": "The standard list page token.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"location": "query",
|
||||
"description": "The name of the operation's parent resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"type": "integer",
|
||||
"location": "query",
|
||||
"format": "int32",
|
||||
"description": "The standard list page size."
|
||||
},
|
||||
"filter": {
|
||||
"description": "The standard list filter.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"flatPath": "v1/operations",
|
||||
"path": "v1/operations",
|
||||
"id": "cloudfunctions.operations.list"
|
||||
}
|
||||
}
|
||||
},
|
||||
"projects": {
|
||||
"resources": {
|
||||
"locations": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"path": "v1/{+name}/locations",
|
||||
"id": "cloudfunctions.projects.locations.list",
|
||||
"description": "Lists information about the supported locations for this service.",
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "ListLocationsResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"pageToken": {
|
||||
|
@ -25,100 +95,51 @@
|
|||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"location": "path",
|
||||
"description": "The resource that owns the locations collection, if applicable.",
|
||||
"type": "string",
|
||||
"required": true
|
||||
"required": true,
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"location": "path"
|
||||
},
|
||||
"pageSize": {
|
||||
"location": "query",
|
||||
"format": "int32",
|
||||
"description": "The standard list page size.",
|
||||
"type": "integer",
|
||||
"location": "query"
|
||||
"type": "integer"
|
||||
},
|
||||
"filter": {
|
||||
"location": "query",
|
||||
"description": "The standard list filter.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/projects/{projectsId}/locations",
|
||||
"path": "v1/{+name}/locations",
|
||||
"id": "cloudfunctions.projects.locations.list"
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"flatPath": "v1/projects/{projectsId}/locations"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"operations": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"parameters": {
|
||||
"name": {
|
||||
"pattern": "^operations/[^/]+$",
|
||||
"location": "path",
|
||||
"description": "The name of the operation resource.",
|
||||
"type": "string",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"flatPath": "v1/operations/{operationsId}",
|
||||
"id": "cloudfunctions.operations.get",
|
||||
"path": "v1/{+name}",
|
||||
"description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"httpMethod": "GET"
|
||||
},
|
||||
"list": {
|
||||
"path": "v1/operations",
|
||||
"id": "cloudfunctions.operations.list",
|
||||
"description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [],
|
||||
"response": {
|
||||
"$ref": "ListOperationsResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"pageToken": {
|
||||
"description": "The standard list page token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"name": {
|
||||
"location": "query",
|
||||
"description": "The name of the operation's parent resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"format": "int32",
|
||||
"description": "The standard list page size.",
|
||||
"type": "integer",
|
||||
"location": "query"
|
||||
},
|
||||
"filter": {
|
||||
"description": "The standard list filter.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/operations"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
|
@ -130,16 +151,16 @@
|
|||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
|
@ -159,12 +180,6 @@
|
|||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
|
@ -172,6 +187,12 @@
|
|||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
]
|
||||
},
|
||||
"access_token": {
|
||||
|
@ -180,93 +201,42 @@
|
|||
"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",
|
||||
"location": "query"
|
||||
"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": {
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://cloudfunctions.googleapis.com/",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "API for managing lightweight user-provided functions executed in response to events.",
|
||||
"servicePath": "",
|
||||
"description": "API for managing lightweight user-provided functions executed in response to events.",
|
||||
"kind": "discovery#restDescription",
|
||||
"basePath": "",
|
||||
"id": "cloudfunctions:v1",
|
||||
"documentationLink": "https://cloud.google.com/functions",
|
||||
"revision": "20170729",
|
||||
"revision": "20170912",
|
||||
"id": "cloudfunctions:v1",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": "True",
|
||||
"version_module": true,
|
||||
"schemas": {
|
||||
"OperationMetadataV1Beta2": {
|
||||
"description": "Metadata describing an Operation",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"target": {
|
||||
"description": "Target of the operation - for example\nprojects/project-1/locations/region-1/functions/function-1",
|
||||
"type": "string"
|
||||
},
|
||||
"request": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "The original request that started the operation.",
|
||||
"type": "object"
|
||||
},
|
||||
"type": {
|
||||
"enumDescriptions": [
|
||||
"Unknown operation type.",
|
||||
"Triggered by CreateFunction call",
|
||||
"Triggered by UpdateFunction call",
|
||||
"Triggered by DeleteFunction call."
|
||||
],
|
||||
"enum": [
|
||||
"OPERATION_UNSPECIFIED",
|
||||
"CREATE_FUNCTION",
|
||||
"UPDATE_FUNCTION",
|
||||
"DELETE_FUNCTION"
|
||||
],
|
||||
"description": "Type of operation.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "OperationMetadataV1Beta2"
|
||||
},
|
||||
"Status": {
|
||||
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client."
|
||||
},
|
||||
"details": {
|
||||
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
|
||||
"items": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
"type": "any",
|
||||
"description": "Properties of the object. Contains field @type with type URL."
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
|
@ -281,42 +251,42 @@
|
|||
"id": "Status"
|
||||
},
|
||||
"ListLocationsResponse": {
|
||||
"id": "ListLocationsResponse",
|
||||
"description": "The response message for Locations.ListLocations.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
"description": "The standard List next-page token.",
|
||||
"type": "string"
|
||||
},
|
||||
"locations": {
|
||||
"description": "A list of locations that matches the specified filter in the request.",
|
||||
"items": {
|
||||
"$ref": "Location"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "The standard List next-page token.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ListLocationsResponse"
|
||||
},
|
||||
"Location": {
|
||||
"description": "A resource that represents Google Cloud Platform location.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Resource name for the location, which may vary between implementations.\nFor example: `\"projects/example-project/locations/us-east1\"`",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "Resource name for the location, which may vary between implementations.\nFor example: `\"projects/example-project/locations/us-east1\"`"
|
||||
},
|
||||
"locationId": {
|
||||
"description": "The canonical id for this location. For example: `\"us-east1\"`.",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "The canonical id for this location. For example: `\"us-east1\"`."
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Service-specific metadata. For example the available capacity at the given\nlocation.",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
}
|
||||
},
|
||||
"description": "Service-specific metadata. For example the available capacity at the given\nlocation.",
|
||||
"type": "object"
|
||||
},
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
|
@ -328,45 +298,7 @@
|
|||
},
|
||||
"id": "Location"
|
||||
},
|
||||
"Operation": {
|
||||
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
|
||||
"type": "object",
|
||||
"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"
|
||||
},
|
||||
"error": {
|
||||
"description": "The error result of the operation in case of failure or cancellation.",
|
||||
"$ref": "Status"
|
||||
},
|
||||
"metadata": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
|
||||
"type": "object"
|
||||
},
|
||||
"done": {
|
||||
"description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"response": {
|
||||
"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",
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "Operation"
|
||||
},
|
||||
"ListOperationsResponse": {
|
||||
"id": "ListOperationsResponse",
|
||||
"description": "The response message for Operations.ListOperations.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
"description": "The standard List next-page token.",
|
||||
|
@ -379,14 +311,87 @@
|
|||
},
|
||||
"type": "array"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ListOperationsResponse",
|
||||
"description": "The response message for Operations.ListOperations.",
|
||||
"type": "object"
|
||||
},
|
||||
"Operation": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"description": "The error result of the operation in case of failure or cancellation.",
|
||||
"$ref": "Status"
|
||||
},
|
||||
"metadata": {
|
||||
"additionalProperties": {
|
||||
"type": "any",
|
||||
"description": "Properties of the object. Contains field @type with type URL."
|
||||
},
|
||||
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
|
||||
"type": "object"
|
||||
},
|
||||
"done": {
|
||||
"description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "Operation",
|
||||
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call."
|
||||
},
|
||||
"OperationMetadataV1Beta2": {
|
||||
"description": "Metadata describing an Operation",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"OPERATION_UNSPECIFIED",
|
||||
"CREATE_FUNCTION",
|
||||
"UPDATE_FUNCTION",
|
||||
"DELETE_FUNCTION"
|
||||
],
|
||||
"description": "Type of operation.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Unknown operation type.",
|
||||
"Triggered by CreateFunction call",
|
||||
"Triggered by UpdateFunction call",
|
||||
"Triggered by DeleteFunction call."
|
||||
]
|
||||
},
|
||||
"target": {
|
||||
"type": "string",
|
||||
"description": "Target of the operation - for example\nprojects/project-1/locations/region-1/functions/function-1"
|
||||
},
|
||||
"request": {
|
||||
"description": "The original request that started the operation.",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "OperationMetadataV1Beta2"
|
||||
}
|
||||
},
|
||||
"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",
|
||||
"icons": {
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif",
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif"
|
||||
},
|
||||
"canonicalName": "Cloud Functions",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
|
@ -396,9 +401,5 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://cloudfunctions.googleapis.com/",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "cloudfunctions",
|
||||
"batchPath": "batch"
|
||||
}
|
||||
}
|
||||
|
|
4
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-gen.go
generated
vendored
4
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-gen.go
generated
vendored
|
@ -232,8 +232,8 @@ func (s *Location) MarshalJSON() ([]byte, error) {
|
|||
type Operation struct {
|
||||
// Done: If the value is `false`, it means the operation is still in
|
||||
// progress.
|
||||
// If true, the operation is completed, and either `error` or `response`
|
||||
// is
|
||||
// If `true`, the operation is completed, and either `error` or
|
||||
// `response` is
|
||||
// available.
|
||||
Done bool `json:"done,omitempty"`
|
||||
|
||||
|
|
1044
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-api.json
generated
vendored
1044
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
49
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-gen.go
generated
vendored
49
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-gen.go
generated
vendored
|
@ -339,6 +339,9 @@ type EventTrigger struct {
|
|||
// `providers/firebase.database/eventTypes/data.write`
|
||||
EventType string `json:"eventType,omitempty"`
|
||||
|
||||
// FailurePolicy: Specifies policy for failed executions.
|
||||
FailurePolicy *FailurePolicy `json:"failurePolicy,omitempty"`
|
||||
|
||||
// Resource: Which instance of the source's service should send events.
|
||||
// E.g. for Pub/Sub
|
||||
// this would be a Pub/Sub topic at `projects/*/topics/*`. For Google
|
||||
|
@ -373,6 +376,38 @@ func (s *EventTrigger) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// FailurePolicy: Describes the policy in case of function's execution
|
||||
// failure.
|
||||
// If empty, then defaults to ignoring failures (i.e. not retrying
|
||||
// them).
|
||||
type FailurePolicy struct {
|
||||
// Retry: If specified, then the function will be retried in case of a
|
||||
// failure.
|
||||
Retry *Retry `json:"retry,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Retry") 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. "Retry") 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 *FailurePolicy) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FailurePolicy
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// HTTPSTrigger: Describes HTTPSTrigger, could be used to connect web
|
||||
// hooks to function.
|
||||
type HTTPSTrigger struct {
|
||||
|
@ -566,8 +601,8 @@ func (s *Location) MarshalJSON() ([]byte, error) {
|
|||
type Operation struct {
|
||||
// Done: If the value is `false`, it means the operation is still in
|
||||
// progress.
|
||||
// If true, the operation is completed, and either `error` or `response`
|
||||
// is
|
||||
// If `true`, the operation is completed, and either `error` or
|
||||
// `response` is
|
||||
// available.
|
||||
Done bool `json:"done,omitempty"`
|
||||
|
||||
|
@ -677,6 +712,16 @@ func (s *OperationMetadataV1Beta2) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Retry: Describes the retry policy in case of function's execution
|
||||
// failure.
|
||||
// A function execution will be retried on any failure.
|
||||
// A failed execution will be retried up to 7 days with an exponential
|
||||
// backoff
|
||||
// (capped at 10 seconds).
|
||||
// Retried execution is charged as any other execution.
|
||||
type Retry struct {
|
||||
}
|
||||
|
||||
// SourceRepository: Describes the location of the function source in a
|
||||
// remote repository.
|
||||
type SourceRepository struct {
|
||||
|
|
1711
vendor/google.golang.org/api/cloudkms/v1/cloudkms-api.json
generated
vendored
1711
vendor/google.golang.org/api/cloudkms/v1/cloudkms-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
326
vendor/google.golang.org/api/cloudkms/v1/cloudkms-gen.go
generated
vendored
326
vendor/google.golang.org/api/cloudkms/v1/cloudkms-gen.go
generated
vendored
|
@ -364,169 +364,6 @@ func (s *Binding) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CloudAuditOptions: Write a Cloud Audit log
|
||||
type CloudAuditOptions struct {
|
||||
// LogName: The log_name to populate in the Cloud Audit Record.
|
||||
//
|
||||
// Possible values:
|
||||
// "UNSPECIFIED_LOG_NAME" - Default. Should not be used.
|
||||
// "ADMIN_ACTIVITY" - Corresponds to
|
||||
// "cloudaudit.googleapis.com/activity"
|
||||
// "DATA_ACCESS" - Corresponds to
|
||||
// "cloudaudit.googleapis.com/data_access"
|
||||
LogName string `json:"logName,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "LogName") 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. "LogName") 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 *CloudAuditOptions) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CloudAuditOptions
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Condition: A condition to be met.
|
||||
type Condition struct {
|
||||
// Iam: Trusted attributes supplied by the IAM system.
|
||||
//
|
||||
// Possible values:
|
||||
// "NO_ATTR" - Default non-attribute.
|
||||
// "AUTHORITY" - Either principal or (if present) authority selector.
|
||||
// "ATTRIBUTION" - The principal (even if an authority selector is
|
||||
// present), which
|
||||
// must only be used for attribution, not authorization.
|
||||
// "APPROVER" - An approver (distinct from the requester) that has
|
||||
// authorized this
|
||||
// request.
|
||||
// When used with IN, the condition indicates that one of the
|
||||
// approvers
|
||||
// associated with the request matches the specified principal, or is
|
||||
// a
|
||||
// member of the specified group. Approvers can only grant
|
||||
// additional
|
||||
// access, and are thus only used in a strictly positive context
|
||||
// (e.g. ALLOW/IN or DENY/NOT_IN).
|
||||
// "JUSTIFICATION_TYPE" - What types of justifications have been
|
||||
// supplied with this request.
|
||||
// String values should match enum names from
|
||||
// tech.iam.JustificationType,
|
||||
// e.g. "MANUAL_STRING". It is not permitted to grant access based
|
||||
// on
|
||||
// the *absence* of a justification, so justification conditions can
|
||||
// only
|
||||
// be used in a "positive" context (e.g., ALLOW/IN or
|
||||
// DENY/NOT_IN).
|
||||
//
|
||||
// Multiple justifications, e.g., a Buganizer ID and a
|
||||
// manually-entered
|
||||
// reason, are normal and supported.
|
||||
Iam string `json:"iam,omitempty"`
|
||||
|
||||
// Op: An operator to apply the subject with.
|
||||
//
|
||||
// Possible values:
|
||||
// "NO_OP" - Default no-op.
|
||||
// "EQUALS" - DEPRECATED. Use IN instead.
|
||||
// "NOT_EQUALS" - DEPRECATED. Use NOT_IN instead.
|
||||
// "IN" - The condition is true if the subject (or any element of it
|
||||
// if it is
|
||||
// a set) matches any of the supplied values.
|
||||
// "NOT_IN" - The condition is true if the subject (or every element
|
||||
// of it if it is
|
||||
// a set) matches none of the supplied values.
|
||||
// "DISCHARGED" - Subject is discharged
|
||||
Op string `json:"op,omitempty"`
|
||||
|
||||
// Svc: Trusted attributes discharged by the service.
|
||||
Svc string `json:"svc,omitempty"`
|
||||
|
||||
// Sys: Trusted attributes supplied by any service that owns resources
|
||||
// and uses
|
||||
// the IAM system for access control.
|
||||
//
|
||||
// Possible values:
|
||||
// "NO_ATTR" - Default non-attribute type
|
||||
// "REGION" - Region of the resource
|
||||
// "SERVICE" - Service name
|
||||
// "NAME" - Resource name
|
||||
// "IP" - IP address of the caller
|
||||
Sys string `json:"sys,omitempty"`
|
||||
|
||||
// Value: DEPRECATED. Use 'values' instead.
|
||||
Value string `json:"value,omitempty"`
|
||||
|
||||
// Values: The objects of the condition. This is mutually exclusive with
|
||||
// 'value'.
|
||||
Values []string `json:"values,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Iam") 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. "Iam") 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 *Condition) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Condition
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CounterOptions: Options for counters
|
||||
type CounterOptions struct {
|
||||
// Field: The field value to attribute.
|
||||
Field string `json:"field,omitempty"`
|
||||
|
||||
// Metric: The metric to update.
|
||||
Metric string `json:"metric,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Field") 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. "Field") 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 *CounterOptions) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CounterOptions
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CryptoKey: A CryptoKey represents a logical key that can be used for
|
||||
// cryptographic
|
||||
// operations.
|
||||
|
@ -538,6 +375,9 @@ type CryptoKey struct {
|
|||
// created.
|
||||
CreateTime string `json:"createTime,omitempty"`
|
||||
|
||||
// Labels: Labels with user defined metadata.
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
|
||||
// Name: Output only. The resource name for this CryptoKey in the
|
||||
// format
|
||||
// `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
||||
|
@ -620,6 +460,14 @@ func (s *CryptoKey) MarshalJSON() ([]byte, error) {
|
|||
// parent CryptoKey, in which case the server will choose the
|
||||
// appropriate
|
||||
// version for the operation.
|
||||
//
|
||||
// For security reasons, the raw cryptographic key material represented
|
||||
// by a
|
||||
// CryptoKeyVersion can never be viewed or exported. It can only be used
|
||||
// to
|
||||
// encrypt or decrypt data when an authorized user or application
|
||||
// invokes Cloud
|
||||
// KMS.
|
||||
type CryptoKeyVersion struct {
|
||||
// CreateTime: Output only. The time at which this CryptoKeyVersion was
|
||||
// created.
|
||||
|
@ -689,10 +537,6 @@ func (s *CryptoKeyVersion) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// DataAccessOptions: Write a Data Access (Gin) log
|
||||
type DataAccessOptions struct {
|
||||
}
|
||||
|
||||
// DecryptRequest: Request message for KeyManagementService.Decrypt.
|
||||
type DecryptRequest struct {
|
||||
// AdditionalAuthenticatedData: Optional data that must match the data
|
||||
|
@ -1146,69 +990,6 @@ func (s *Location) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// LogConfig: Specifies what kind of log the caller must write
|
||||
// Increment a streamz counter with the specified metric and field
|
||||
// names.
|
||||
//
|
||||
// Metric names should start with a '/', generally be
|
||||
// lowercase-only,
|
||||
// and end in "_count". Field names should not contain an initial
|
||||
// slash.
|
||||
// The actual exported metric names will have "/iam/policy"
|
||||
// prepended.
|
||||
//
|
||||
// Field names correspond to IAM request parameters and field values
|
||||
// are
|
||||
// their respective values.
|
||||
//
|
||||
// At present the only supported field names are
|
||||
// - "iam_principal", corresponding to IAMContext.principal;
|
||||
// - "" (empty string), resulting in one aggretated counter with no
|
||||
// field.
|
||||
//
|
||||
// Examples:
|
||||
// counter { metric: "/debug_access_count" field: "iam_principal" }
|
||||
// ==> increment counter /iam/policy/backend_debug_access_count
|
||||
// {iam_principal=[value of
|
||||
// IAMContext.principal]}
|
||||
//
|
||||
// At this time we do not support:
|
||||
// * multiple field names (though this may be supported in the future)
|
||||
// * decrementing the counter
|
||||
// * incrementing it by anything other than 1
|
||||
type LogConfig struct {
|
||||
// CloudAudit: Cloud audit options.
|
||||
CloudAudit *CloudAuditOptions `json:"cloudAudit,omitempty"`
|
||||
|
||||
// Counter: Counter options.
|
||||
Counter *CounterOptions `json:"counter,omitempty"`
|
||||
|
||||
// DataAccess: Data access options.
|
||||
DataAccess *DataAccessOptions `json:"dataAccess,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CloudAudit") 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. "CloudAudit") 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 *LogConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod LogConfig
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Policy: Defines an Identity and Access Management (IAM) policy. It is
|
||||
// used to
|
||||
// specify access control policies for Cloud Platform resources.
|
||||
|
@ -1276,20 +1057,6 @@ type Policy struct {
|
|||
|
||||
IamOwned bool `json:"iamOwned,omitempty"`
|
||||
|
||||
// Rules: If more than one rule is specified, the rules are applied in
|
||||
// the following
|
||||
// manner:
|
||||
// - All matching LOG rules are always applied.
|
||||
// - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
|
||||
// Logging will be applied if one or more matching rule requires
|
||||
// logging.
|
||||
// - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
|
||||
// granted.
|
||||
// Logging will be applied if one or more matching rule requires
|
||||
// logging.
|
||||
// - Otherwise, if no rule applies, permission is denied.
|
||||
Rules []*Rule `json:"rules,omitempty"`
|
||||
|
||||
// Version: Version of the `Policy`. The default version is 0.
|
||||
Version int64 `json:"version,omitempty"`
|
||||
|
||||
|
@ -1325,77 +1092,6 @@ func (s *Policy) MarshalJSON() ([]byte, error) {
|
|||
type RestoreCryptoKeyVersionRequest struct {
|
||||
}
|
||||
|
||||
// Rule: A rule to be applied in a Policy.
|
||||
type Rule struct {
|
||||
// Action: Required
|
||||
//
|
||||
// Possible values:
|
||||
// "NO_ACTION" - Default no action.
|
||||
// "ALLOW" - Matching 'Entries' grant access.
|
||||
// "ALLOW_WITH_LOG" - Matching 'Entries' grant access and the caller
|
||||
// promises to log
|
||||
// the request per the returned log_configs.
|
||||
// "DENY" - Matching 'Entries' deny access.
|
||||
// "DENY_WITH_LOG" - Matching 'Entries' deny access and the caller
|
||||
// promises to log
|
||||
// the request per the returned log_configs.
|
||||
// "LOG" - Matching 'Entries' tell IAM.Check callers to generate logs.
|
||||
Action string `json:"action,omitempty"`
|
||||
|
||||
// Conditions: Additional restrictions that must be met
|
||||
Conditions []*Condition `json:"conditions,omitempty"`
|
||||
|
||||
// Description: Human-readable description of the rule.
|
||||
Description string `json:"description,omitempty"`
|
||||
|
||||
// In: If one or more 'in' clauses are specified, the rule matches
|
||||
// if
|
||||
// the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
|
||||
In []string `json:"in,omitempty"`
|
||||
|
||||
// LogConfig: The config returned to callers of tech.iam.IAM.CheckPolicy
|
||||
// for any entries
|
||||
// that match the LOG action.
|
||||
LogConfig []*LogConfig `json:"logConfig,omitempty"`
|
||||
|
||||
// NotIn: If one or more 'not_in' clauses are specified, the rule
|
||||
// matches
|
||||
// if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
|
||||
// The format for in and not_in entries is the same as for members in
|
||||
// a
|
||||
// Binding (see google/iam/v1/policy.proto).
|
||||
NotIn []string `json:"notIn,omitempty"`
|
||||
|
||||
// Permissions: A permission is a string of form '<service>.<resource
|
||||
// type>.<verb>'
|
||||
// (e.g., 'storage.buckets.list'). A value of '*' matches all
|
||||
// permissions,
|
||||
// and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
|
||||
Permissions []string `json:"permissions,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 *Rule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Rule
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// SetIamPolicyRequest: Request message for `SetIamPolicy` method.
|
||||
type SetIamPolicyRequest struct {
|
||||
// Policy: REQUIRED: The complete policy to be applied to the
|
||||
|
|
2
vendor/google.golang.org/api/cloudmonitoring/v2beta2/cloudmonitoring-api.json
generated
vendored
2
vendor/google.golang.org/api/cloudmonitoring/v2beta2/cloudmonitoring-api.json
generated
vendored
|
@ -21,7 +21,7 @@
|
|||
"basePath": "/cloudmonitoring/v2beta2/projects/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "cloudmonitoring/v2beta2/projects/",
|
||||
"batchPath": "batch",
|
||||
"batchPath": "batch/cloudmonitoring/v2beta2",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
|
|
3040
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-api.json
generated
vendored
3040
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
4
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-gen.go
generated
vendored
4
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-gen.go
generated
vendored
|
@ -1377,8 +1377,8 @@ func (s *ListProjectsResponse) MarshalJSON() ([]byte, error) {
|
|||
type Operation struct {
|
||||
// Done: If the value is `false`, it means the operation is still in
|
||||
// progress.
|
||||
// If true, the operation is completed, and either `error` or `response`
|
||||
// is
|
||||
// If `true`, the operation is completed, and either `error` or
|
||||
// `response` is
|
||||
// available.
|
||||
Done bool `json:"done,omitempty"`
|
||||
|
||||
|
|
1670
vendor/google.golang.org/api/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json
generated
vendored
1670
vendor/google.golang.org/api/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
|
@ -997,7 +997,8 @@ type ResourceId struct {
|
|||
|
||||
// Type: Required field representing the resource type this id is
|
||||
// for.
|
||||
// At present, the valid types are "project" and "organization".
|
||||
// At present, the valid types are "project", "folder", and
|
||||
// "organization".
|
||||
Type string `json:"type,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Id") to
|
||||
|
|
1442
vendor/google.golang.org/api/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json
generated
vendored
1442
vendor/google.golang.org/api/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
|
@ -559,8 +559,8 @@ func (s *MoveFolderRequest) MarshalJSON() ([]byte, error) {
|
|||
type Operation struct {
|
||||
// Done: If the value is `false`, it means the operation is still in
|
||||
// progress.
|
||||
// If true, the operation is completed, and either `error` or `response`
|
||||
// is
|
||||
// If `true`, the operation is completed, and either `error` or
|
||||
// `response` is
|
||||
// available.
|
||||
Done bool `json:"done,omitempty"`
|
||||
|
||||
|
|
1492
vendor/google.golang.org/api/cloudtasks/v2beta2/cloudtasks-api.json
generated
vendored
Normal file
1492
vendor/google.golang.org/api/cloudtasks/v2beta2/cloudtasks-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
5623
vendor/google.golang.org/api/cloudtasks/v2beta2/cloudtasks-gen.go
generated
vendored
Normal file
5623
vendor/google.golang.org/api/cloudtasks/v2beta2/cloudtasks-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
276
vendor/google.golang.org/api/cloudtrace/v1/cloudtrace-api.json
generated
vendored
276
vendor/google.golang.org/api/cloudtrace/v1/cloudtrace-api.json
generated
vendored
|
@ -1,22 +1,4 @@
|
|||
{
|
||||
"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",
|
||||
"title": "Stackdriver Trace API",
|
||||
|
@ -25,40 +7,38 @@
|
|||
"projects": {
|
||||
"methods": {
|
||||
"patchTraces": {
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
"id": "cloudtrace.projects.patchTraces",
|
||||
"request": {
|
||||
"$ref": "Traces"
|
||||
},
|
||||
"description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing trace data. If the\nID does not match, a new trace is created.",
|
||||
"httpMethod": "PATCH",
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"httpMethod": "PATCH",
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.append"
|
||||
],
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"location": "path",
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"type": "string",
|
||||
"required": true
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/projects/{projectId}/traces",
|
||||
"id": "cloudtrace.projects.patchTraces",
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
"request": {
|
||||
"$ref": "Traces"
|
||||
},
|
||||
"description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing trace data. If the\nID does not match, a new trace is created."
|
||||
"flatPath": "v1/projects/{projectId}/traces"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"traces": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Gets a single trace by its ID.",
|
||||
"httpMethod": "GET",
|
||||
"response": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
|
@ -66,27 +46,29 @@
|
|||
"projectId",
|
||||
"traceId"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"location": "path",
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"traceId": {
|
||||
"location": "path",
|
||||
"description": "ID of the trace to return.",
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"projectId": {
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
],
|
||||
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"id": "cloudtrace.projects.traces.get",
|
||||
"path": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"id": "cloudtrace.projects.traces.get"
|
||||
"description": "Gets a single trace by its ID."
|
||||
},
|
||||
"list": {
|
||||
"response": {
|
||||
|
@ -96,6 +78,10 @@
|
|||
"projectId"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
],
|
||||
"parameters": {
|
||||
"orderBy": {
|
||||
"location": "query",
|
||||
|
@ -103,26 +89,20 @@
|
|||
"type": "string"
|
||||
},
|
||||
"projectId": {
|
||||
"location": "path",
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
"required": true
|
||||
},
|
||||
"filter": {
|
||||
"location": "query",
|
||||
"description": "An optional filter against labels for the request.\n\nBy default, searches use prefix matching. To specify exact match, prepend\na plus symbol (`+`) to the search term.\nMultiple terms are ANDed. Syntax:\n\n* `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root\n span starts with `NAME_PREFIX`.\n* `+root:NAME` or `+NAME`: Return traces where any root span's name is\n exactly `NAME`.\n* `span:NAME_PREFIX`: Return traces where any span starts with\n `NAME_PREFIX`.\n* `+span:NAME`: Return traces where any span's name is exactly\n `NAME`.\n* `latency:DURATION`: Return traces whose overall latency is\n greater or equal to than `DURATION`. Accepted units are nanoseconds\n (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For\n example, `latency:24ms` returns traces whose overall latency\n is greater than or equal to 24 milliseconds.\n* `label:LABEL_KEY`: Return all traces containing the specified\n label key (exact match, case-sensitive) regardless of the key:value\n pair's value (including empty values).\n* `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified\n label key (exact match, case-sensitive) whose value starts with\n `VALUE_PREFIX`. Both a key and a value must be specified.\n* `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair\n exactly matching the specified text. Both a key and a value must be\n specified.\n* `method:VALUE`: Equivalent to `/http/method:VALUE`.\n* `url:VALUE`: Equivalent to `/http/url:VALUE`.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"format": "google-datetime",
|
||||
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"startTime": {
|
||||
"location": "query",
|
||||
"format": "google-datetime",
|
||||
"description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageToken": {
|
||||
|
@ -130,11 +110,17 @@
|
|||
"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"
|
||||
},
|
||||
"pageSize": {
|
||||
"startTime": {
|
||||
"location": "query",
|
||||
"format": "google-datetime",
|
||||
"description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"format": "int32",
|
||||
"description": "Maximum number of traces to return. If not specified or \u003c= 0, the\nimplementation selects a reasonable value. The implementation may\nreturn fewer traces than the requested page size. Optional.",
|
||||
"type": "integer"
|
||||
"type": "integer",
|
||||
"location": "query"
|
||||
},
|
||||
"view": {
|
||||
"location": "query",
|
||||
|
@ -148,10 +134,6 @@
|
|||
"type": "string"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
],
|
||||
"flatPath": "v1/projects/{projectId}/traces",
|
||||
"id": "cloudtrace.projects.traces.list",
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
|
@ -163,6 +145,48 @@
|
|||
}
|
||||
},
|
||||
"parameters": {
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"access_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth access token.",
|
||||
"type": "string"
|
||||
},
|
||||
"quotaUser": {
|
||||
"location": "query",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
|
@ -174,9 +198,9 @@
|
|||
"location": "query"
|
||||
},
|
||||
"callback": {
|
||||
"location": "query",
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
"type": "string"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
|
@ -192,6 +216,8 @@
|
|||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
|
@ -203,50 +229,6 @@
|
|||
"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": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
|
@ -256,34 +238,17 @@
|
|||
"description": "Send and retrieve trace data from Stackdriver Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Stackdriver Trace for display, reporting, and analysis.\n",
|
||||
"kind": "discovery#restDescription",
|
||||
"basePath": "",
|
||||
"documentationLink": "https://cloud.google.com/trace",
|
||||
"revision": "20170802",
|
||||
"id": "cloudtrace:v1",
|
||||
"revision": "20170905",
|
||||
"documentationLink": "https://cloud.google.com/trace",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": "True",
|
||||
"version_module": true,
|
||||
"schemas": {
|
||||
"Traces": {
|
||||
"description": "List of new or updated traces.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"traces": {
|
||||
"description": "List of traces.",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"id": "Traces"
|
||||
},
|
||||
"TraceSpan": {
|
||||
"id": "TraceSpan",
|
||||
"description": "A span represents a single timed event within a trace. Spans can be nested\nand form a trace tree. Often, a trace contains a root span that describes the\nend-to-end latency of an operation and, optionally, one or more subspans for\nits suboperations. Spans do not need to be contiguous. There may be gaps\nbetween spans in a trace.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Name of the span. Must be less than 128 bytes. The span name is sanitized\nand displayed in the Stackdriver Trace tool in the\n{% dynamic print site_values.console_name %}.\nThe name may be a method name or some other per-call site name.\nFor the same executable and the same call point, a best practice is\nto use a consistent name, which makes it easier to correlate\ncross-trace spans.",
|
||||
"type": "string"
|
||||
},
|
||||
"spanId": {
|
||||
"format": "uint64",
|
||||
"description": "Identifier for the span. Must be a 64-bit integer other than 0 and\nunique within a trace.",
|
||||
|
@ -305,6 +270,8 @@
|
|||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"description": "Distinguishes between spans generated in a particular context. For example,\ntwo spans with the same name may be distinguished using `RPC_CLIENT`\nand `RPC_SERVER` to identify queueing latency associated with the span.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Unspecified.",
|
||||
"Indicates that the span covers server-side handling of an RPC or other\nremote network request.",
|
||||
|
@ -314,19 +281,20 @@
|
|||
"SPAN_KIND_UNSPECIFIED",
|
||||
"RPC_SERVER",
|
||||
"RPC_CLIENT"
|
||||
],
|
||||
"description": "Distinguishes between spans generated in a particular context. For example,\ntwo spans with the same name may be distinguished using `RPC_CLIENT`\nand `RPC_SERVER` to identify queueing latency associated with the span.",
|
||||
"type": "string"
|
||||
]
|
||||
},
|
||||
"labels": {
|
||||
"description": "Collection of labels associated with the span. Label keys must be less than\n128 bytes. Label values must be less than 16 kilobytes (10MB for\n`/stacktrace` values).\n\nSome predefined label keys exist, or you may create your own. When creating\nyour own, we recommend the following formats:\n\n* `/category/product/key` for agents of well-known products (e.g.\n `/db/mongodb/read_size`).\n* `short_host/path/key` for domain-specific keys (e.g.\n `foo.com/myproduct/bar`)\n\nPredefined labels include:\n\n* `/agent`\n* `/component`\n* `/error/message`\n* `/error/name`\n* `/http/client_city`\n* `/http/client_country`\n* `/http/client_protocol`\n* `/http/client_region`\n* `/http/host`\n* `/http/method`\n* `/http/redirected_url`\n* `/http/request/size`\n* `/http/response/size`\n* `/http/status_code`\n* `/http/url`\n* `/http/user_agent`\n* `/pid`\n* `/stacktrace`\n* `/tid`",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "TraceSpan"
|
||||
}
|
||||
},
|
||||
"Empty": {
|
||||
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
|
||||
|
@ -353,6 +321,7 @@
|
|||
"id": "ListTracesResponse"
|
||||
},
|
||||
"Trace": {
|
||||
"id": "Trace",
|
||||
"description": "A trace describes how long it takes for an application to perform an\noperation. It consists of a set of spans, each of which represent a single\ntimed event within the operation.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
@ -371,13 +340,44 @@
|
|||
"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"
|
||||
}
|
||||
},
|
||||
"Traces": {
|
||||
"id": "Traces",
|
||||
"description": "List of new or updated traces.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"traces": {
|
||||
"description": "List of traces.",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
"protocol": "rest",
|
||||
"canonicalName": "Cloud Trace",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/trace.append": {
|
||||
"description": "Write Trace data for a project or application"
|
||||
},
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
},
|
||||
"https://www.googleapis.com/auth/trace.readonly": {
|
||||
"description": "Read Trace data for a project or application"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://cloudtrace.googleapis.com/",
|
||||
"ownerDomain": "google.com"
|
||||
}
|
||||
|
|
877
vendor/google.golang.org/api/cloudtrace/v2/cloudtrace-api.json
generated
vendored
877
vendor/google.golang.org/api/cloudtrace/v2/cloudtrace-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
37
vendor/google.golang.org/api/cloudtrace/v2/cloudtrace-gen.go
generated
vendored
37
vendor/google.golang.org/api/cloudtrace/v2/cloudtrace-gen.go
generated
vendored
|
@ -481,13 +481,14 @@ func (s *Module) MarshalJSON() ([]byte, error) {
|
|||
// NetworkEvent: An event describing an RPC message sent or received on
|
||||
// the network.
|
||||
type NetworkEvent struct {
|
||||
// CompressedMessageSize: The number of compressed bytes sent or
|
||||
// received.
|
||||
CompressedMessageSize uint64 `json:"compressedMessageSize,omitempty,string"`
|
||||
|
||||
// MessageId: An identifier for the message, which must be unique in
|
||||
// this span.
|
||||
MessageId uint64 `json:"messageId,omitempty,string"`
|
||||
|
||||
// MessageSize: The number of bytes sent or received.
|
||||
MessageSize uint64 `json:"messageSize,omitempty,string"`
|
||||
|
||||
// Time: For sent messages, this is the time at which the first bit was
|
||||
// sent.
|
||||
// For received messages, this is the time at which the last bit
|
||||
|
@ -505,20 +506,26 @@ type NetworkEvent struct {
|
|||
// "RECV" - Indicates a received RPC message.
|
||||
Type string `json:"type,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "MessageId") 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.
|
||||
// UncompressedMessageSize: The number of uncompressed bytes sent or
|
||||
// received.
|
||||
UncompressedMessageSize uint64 `json:"uncompressedMessageSize,omitempty,string"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "CompressedMessageSize") 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. "MessageId") 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. "CompressedMessageSize") 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:"-"`
|
||||
}
|
||||
|
||||
|
|
7023
vendor/google.golang.org/api/compute/v0.alpha/compute-api.json
generated
vendored
7023
vendor/google.golang.org/api/compute/v0.alpha/compute-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
11781
vendor/google.golang.org/api/compute/v0.alpha/compute-gen.go
generated
vendored
11781
vendor/google.golang.org/api/compute/v0.alpha/compute-gen.go
generated
vendored
File diff suppressed because it is too large
Load diff
1825
vendor/google.golang.org/api/compute/v0.beta/compute-api.json
generated
vendored
1825
vendor/google.golang.org/api/compute/v0.beta/compute-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
5390
vendor/google.golang.org/api/compute/v0.beta/compute-gen.go
generated
vendored
5390
vendor/google.golang.org/api/compute/v0.beta/compute-gen.go
generated
vendored
File diff suppressed because it is too large
Load diff
878
vendor/google.golang.org/api/compute/v1/compute-api.json
generated
vendored
878
vendor/google.golang.org/api/compute/v1/compute-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
3898
vendor/google.golang.org/api/compute/v1/compute-gen.go
generated
vendored
3898
vendor/google.golang.org/api/compute/v1/compute-gen.go
generated
vendored
File diff suppressed because it is too large
Load diff
3733
vendor/google.golang.org/api/container/v1/container-api.json
generated
vendored
3733
vendor/google.golang.org/api/container/v1/container-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
98
vendor/google.golang.org/api/container/v1/container-gen.go
generated
vendored
98
vendor/google.golang.org/api/container/v1/container-gen.go
generated
vendored
|
@ -850,28 +850,43 @@ func (s *HttpLoadBalancing) MarshalJSON() ([]byte, error) {
|
|||
// IPAllocationPolicy: Configuration for controlling how IPs are
|
||||
// allocated in the cluster.
|
||||
type IPAllocationPolicy struct {
|
||||
// ClusterIpv4Cidr: The IP address range for the cluster pod IPs. If
|
||||
// this field is set, then
|
||||
// ClusterIpv4Cidr: This field is deprecated, use
|
||||
// cluster_ipv4_cidr_block.
|
||||
ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
|
||||
|
||||
// ClusterIpv4CidrBlock: The IP address range for the cluster pod IPs.
|
||||
// If this field is set, then
|
||||
// `cluster.cluster_ipv4_cidr` must be left blank.
|
||||
//
|
||||
// This field is only applicable when `use_ip_aliases` is true.
|
||||
//
|
||||
// Set to blank to have a range will be chosen with the default
|
||||
// size.
|
||||
// Set to blank to have a range chosen with the default size.
|
||||
//
|
||||
// Set to /netmask (e.g. `/14`) to have a range be chosen with a
|
||||
// Set to /netmask (e.g. `/14`) to have a range chosen with a
|
||||
// specific
|
||||
// netmask.
|
||||
//
|
||||
// Set to a
|
||||
// Set to
|
||||
// a
|
||||
// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
||||
// no
|
||||
// tation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks
|
||||
//
|
||||
// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks
|
||||
// (e.g.
|
||||
// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific
|
||||
// range
|
||||
// to use.
|
||||
ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
|
||||
ClusterIpv4CidrBlock string `json:"clusterIpv4CidrBlock,omitempty"`
|
||||
|
||||
// ClusterSecondaryRangeName: The name of the secondary range to be used
|
||||
// for the cluster CIDR
|
||||
// block. The secondary range will be used for pod IP
|
||||
// addresses. This must be an existing secondary range associated
|
||||
// with the cluster subnetwork.
|
||||
//
|
||||
// This field is only applicable with use_ip_aliases is true
|
||||
// and
|
||||
// create_subnetwork is false.
|
||||
ClusterSecondaryRangeName string `json:"clusterSecondaryRangeName,omitempty"`
|
||||
|
||||
// CreateSubnetwork: Whether a new subnetwork will be created
|
||||
// automatically for the cluster.
|
||||
|
@ -879,50 +894,68 @@ type IPAllocationPolicy struct {
|
|||
// This field is only applicable when `use_ip_aliases` is true.
|
||||
CreateSubnetwork bool `json:"createSubnetwork,omitempty"`
|
||||
|
||||
// NodeIpv4Cidr: The IP address range of the instance IPs in this
|
||||
// NodeIpv4Cidr: This field is deprecated, use node_ipv4_cidr_block.
|
||||
NodeIpv4Cidr string `json:"nodeIpv4Cidr,omitempty"`
|
||||
|
||||
// NodeIpv4CidrBlock: The IP address range of the instance IPs in this
|
||||
// cluster.
|
||||
//
|
||||
// This is applicable only if `create_subnetwork` is true.
|
||||
//
|
||||
// Set to blank to have a range will be chosen with the default
|
||||
// size.
|
||||
// Set to blank to have a range chosen with the default size.
|
||||
//
|
||||
// Set to /netmask (e.g. `/14`) to have a range be chosen with a
|
||||
// Set to /netmask (e.g. `/14`) to have a range chosen with a
|
||||
// specific
|
||||
// netmask.
|
||||
//
|
||||
// Set to a
|
||||
// Set to
|
||||
// a
|
||||
// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
||||
// no
|
||||
// tation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks
|
||||
//
|
||||
// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks
|
||||
// (e.g.
|
||||
// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific
|
||||
// range
|
||||
// to use.
|
||||
NodeIpv4Cidr string `json:"nodeIpv4Cidr,omitempty"`
|
||||
NodeIpv4CidrBlock string `json:"nodeIpv4CidrBlock,omitempty"`
|
||||
|
||||
// ServicesIpv4Cidr: The IP address range of the services IPs in this
|
||||
// cluster. If blank, a range
|
||||
// ServicesIpv4Cidr: This field is deprecated, use
|
||||
// services_ipv4_cidr_block.
|
||||
ServicesIpv4Cidr string `json:"servicesIpv4Cidr,omitempty"`
|
||||
|
||||
// ServicesIpv4CidrBlock: The IP address range of the services IPs in
|
||||
// this cluster. If blank, a range
|
||||
// will be automatically chosen with the default size.
|
||||
//
|
||||
// This field is only applicable when `use_ip_aliases` is true.
|
||||
//
|
||||
// Set to blank to have a range will be chosen with the default
|
||||
// size.
|
||||
// Set to blank to have a range chosen with the default size.
|
||||
//
|
||||
// Set to /netmask (e.g. `/14`) to have a range be chosen with a
|
||||
// Set to /netmask (e.g. `/14`) to have a range chosen with a
|
||||
// specific
|
||||
// netmask.
|
||||
//
|
||||
// Set to a
|
||||
// Set to
|
||||
// a
|
||||
// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
||||
// no
|
||||
// tation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks
|
||||
//
|
||||
// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks
|
||||
// (e.g.
|
||||
// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific
|
||||
// range
|
||||
// to use.
|
||||
ServicesIpv4Cidr string `json:"servicesIpv4Cidr,omitempty"`
|
||||
ServicesIpv4CidrBlock string `json:"servicesIpv4CidrBlock,omitempty"`
|
||||
|
||||
// ServicesSecondaryRangeName: The name of the secondary range to be
|
||||
// used as for the services
|
||||
// CIDR block. The secondary range will be used for service
|
||||
// ClusterIPs. This must be an existing secondary range associated
|
||||
// with the cluster subnetwork.
|
||||
//
|
||||
// This field is only applicable with use_ip_aliases is true
|
||||
// and
|
||||
// create_subnetwork is false.
|
||||
ServicesSecondaryRangeName string `json:"servicesSecondaryRangeName,omitempty"`
|
||||
|
||||
// SubnetworkName: A custom subnetwork name to be used if
|
||||
// `create_subnetwork` is true. If
|
||||
|
@ -1313,7 +1346,8 @@ type NodeConfig struct {
|
|||
// and conflicts should be avoided.
|
||||
// For more information, including usage and the valid values,
|
||||
// see:
|
||||
// http://kubernetes.io/v1.1/docs/user-guide/labels.html
|
||||
// https://kubernetes.io/docs/concepts/overview/working-with-objects
|
||||
// /labels/
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
|
||||
// LocalSsdCount: The number of local SSD disks to be attached to the
|
||||
|
@ -1627,6 +1661,11 @@ type Operation struct {
|
|||
// Detail: Detailed operation progress, if available.
|
||||
Detail string `json:"detail,omitempty"`
|
||||
|
||||
// EndTime: [Output only] The time the operation completed,
|
||||
// in
|
||||
// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
||||
EndTime string `json:"endTime,omitempty"`
|
||||
|
||||
// Name: The server-assigned ID for the operation.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
|
@ -1654,6 +1693,11 @@ type Operation struct {
|
|||
// SelfLink: Server-defined URL for the resource.
|
||||
SelfLink string `json:"selfLink,omitempty"`
|
||||
|
||||
// StartTime: [Output only] The time the operation started,
|
||||
// in
|
||||
// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
||||
StartTime string `json:"startTime,omitempty"`
|
||||
|
||||
// Status: The current status of the operation.
|
||||
//
|
||||
// Possible values:
|
||||
|
|
7
vendor/google.golang.org/api/container/v1alpha1/container-api.json
generated
vendored
Normal file
7
vendor/google.golang.org/api/container/v1alpha1/container-api.json
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"error": {
|
||||
"code": 404,
|
||||
"message": "Discovery document not found for API service: container.googleapis.com format: rest version: v1alpha1",
|
||||
"status": "NOT_FOUND"
|
||||
}
|
||||
}
|
65
vendor/google.golang.org/api/container/v1alpha1/container-gen.go
generated
vendored
Normal file
65
vendor/google.golang.org/api/container/v1alpha1/container-gen.go
generated
vendored
Normal file
|
@ -0,0 +1,65 @@
|
|||
// Package container provides access to the .
|
||||
//
|
||||
// Usage example:
|
||||
//
|
||||
// import "google.golang.org/api/container/v1alpha1"
|
||||
// ...
|
||||
// containerService, err := container.New(oauthHttpClient)
|
||||
package container // import "google.golang.org/api/container/v1alpha1"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
// below doesn't.
|
||||
var _ = bytes.NewBuffer
|
||||
var _ = strconv.Itoa
|
||||
var _ = fmt.Sprintf
|
||||
var _ = json.NewDecoder
|
||||
var _ = io.Copy
|
||||
var _ = url.Parse
|
||||
var _ = gensupport.MarshalJSON
|
||||
var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = ""
|
||||
const apiName = ""
|
||||
const apiVersion = ""
|
||||
const basePath = "https://www.googleapis.com/discovery/v1/apis"
|
||||
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
if client == nil {
|
||||
return nil, errors.New("client is nil")
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
}
|
||||
|
||||
func (s *Service) userAgent() string {
|
||||
if s.UserAgent == "" {
|
||||
return googleapi.UserAgent
|
||||
}
|
||||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
2892
vendor/google.golang.org/api/container/v1beta1/container-api.json
generated
vendored
Normal file
2892
vendor/google.golang.org/api/container/v1beta1/container-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
9066
vendor/google.golang.org/api/container/v1beta1/container-gen.go
generated
vendored
Normal file
9066
vendor/google.golang.org/api/container/v1beta1/container-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
20
vendor/google.golang.org/api/content/v2/content-api.json
generated
vendored
20
vendor/google.golang.org/api/content/v2/content-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/Jt8A6kt1GnP24vdp0UtThptYtC0\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/7DxE-WvhKyxBCPMjpNGA9QTXnO8\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "content:v2",
|
||||
"name": "content",
|
||||
"canonicalName": "Shopping Content",
|
||||
"version": "v2",
|
||||
"revision": "20170803",
|
||||
"revision": "20170905",
|
||||
"title": "Content API for Shopping",
|
||||
"description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -444,6 +444,10 @@
|
|||
"description": "An entry ID, unique within the batch request.",
|
||||
"format": "uint32"
|
||||
},
|
||||
"force": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the account should be deleted if the account has offers. Only applicable if the method is delete."
|
||||
},
|
||||
"merchantId": {
|
||||
"type": "string",
|
||||
"description": "The ID of the managing account.",
|
||||
|
@ -3875,6 +3879,10 @@
|
|||
"$ref": "DeliveryTime",
|
||||
"description": "Time spent in various aspects from order to the delivery of the product. Required."
|
||||
},
|
||||
"minimumOrderValue": {
|
||||
"$ref": "Price",
|
||||
"description": "Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency."
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Free-form name of the service. Must be unique within target account. Required."
|
||||
|
@ -4425,7 +4433,7 @@
|
|||
},
|
||||
"overwrite": {
|
||||
"type": "boolean",
|
||||
"description": "Flag to remove any existing claim on the requested website by another account and replace it with a claim from this account.",
|
||||
"description": "Only available to selected merchants. When set to True, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
|
@ -4480,6 +4488,12 @@
|
|||
"description": "Flag to run the request in dry-run mode.",
|
||||
"location": "query"
|
||||
},
|
||||
"force": {
|
||||
"type": "boolean",
|
||||
"description": "Flag to delete sub-accounts with products. The default value of false will become active on September 28, 2017.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"merchantId": {
|
||||
"type": "string",
|
||||
"description": "The ID of the managing account.",
|
||||
|
|
32
vendor/google.golang.org/api/content/v2/content-gen.go
generated
vendored
32
vendor/google.golang.org/api/content/v2/content-gen.go
generated
vendored
|
@ -741,6 +741,10 @@ type AccountsCustomBatchRequestEntry struct {
|
|||
// BatchId: An entry ID, unique within the batch request.
|
||||
BatchId int64 `json:"batchId,omitempty"`
|
||||
|
||||
// Force: Whether the account should be deleted if the account has
|
||||
// offers. Only applicable if the method is delete.
|
||||
Force bool `json:"force,omitempty"`
|
||||
|
||||
// MerchantId: The ID of the managing account.
|
||||
MerchantId uint64 `json:"merchantId,omitempty,string"`
|
||||
|
||||
|
@ -6023,6 +6027,11 @@ type Service struct {
|
|||
// delivery of the product. Required.
|
||||
DeliveryTime *DeliveryTime `json:"deliveryTime,omitempty"`
|
||||
|
||||
// MinimumOrderValue: Minimum order value for this service. If set,
|
||||
// indicates that customers will have to spend at least this amount. All
|
||||
// prices within a service must have the same currency.
|
||||
MinimumOrderValue *Price `json:"minimumOrderValue,omitempty"`
|
||||
|
||||
// Name: Free-form name of the service. Must be unique within target
|
||||
// account. Required.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
@ -6815,9 +6824,10 @@ func (r *AccountsService) Claimwebsite(merchantId uint64, accountId uint64) *Acc
|
|||
return c
|
||||
}
|
||||
|
||||
// Overwrite sets the optional parameter "overwrite": Flag to remove any
|
||||
// existing claim on the requested website by another account and
|
||||
// replace it with a claim from this account.
|
||||
// Overwrite sets the optional parameter "overwrite": Only available to
|
||||
// selected merchants. When set to True, this flag removes any existing
|
||||
// claim on the requested website by another account and replaces it
|
||||
// with a claim from this account.
|
||||
func (c *AccountsClaimwebsiteCall) Overwrite(overwrite bool) *AccountsClaimwebsiteCall {
|
||||
c.urlParams_.Set("overwrite", fmt.Sprint(overwrite))
|
||||
return c
|
||||
|
@ -6928,7 +6938,7 @@ func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsCl
|
|||
// "type": "string"
|
||||
// },
|
||||
// "overwrite": {
|
||||
// "description": "Flag to remove any existing claim on the requested website by another account and replace it with a claim from this account.",
|
||||
// "description": "Only available to selected merchants. When set to True, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
|
@ -7103,6 +7113,14 @@ func (c *AccountsDeleteCall) DryRun(dryRun bool) *AccountsDeleteCall {
|
|||
return c
|
||||
}
|
||||
|
||||
// Force sets the optional parameter "force": Flag to delete
|
||||
// sub-accounts with products. The default value of false will become
|
||||
// active on September 28, 2017.
|
||||
func (c *AccountsDeleteCall) Force(force bool) *AccountsDeleteCall {
|
||||
c.urlParams_.Set("force", fmt.Sprint(force))
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
|
@ -7180,6 +7198,12 @@ func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) error {
|
|||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "force": {
|
||||
// "default": "true",
|
||||
// "description": "Flag to delete sub-accounts with products. The default value of false will become active on September 28, 2017.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "merchantId": {
|
||||
// "description": "The ID of the managing account.",
|
||||
// "format": "uint64",
|
||||
|
|
4
vendor/google.golang.org/api/content/v2sandbox/content-api.json
generated
vendored
4
vendor/google.golang.org/api/content/v2sandbox/content-api.json
generated
vendored
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/QLI1M7q1prH-C-6ZsfL_vaGQmBM\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/R4bc8bYIPV7Xpbth35g-aCtObI0\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "content:v2sandbox",
|
||||
"name": "content",
|
||||
"canonicalName": "Shopping Content",
|
||||
"version": "v2sandbox",
|
||||
"revision": "20170803",
|
||||
"revision": "20170905",
|
||||
"title": "Content API for Shopping",
|
||||
"description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
|
||||
"ownerDomain": "google.com",
|
||||
|
|
4
vendor/google.golang.org/api/customsearch/v1/customsearch-api.json
generated
vendored
4
vendor/google.golang.org/api/customsearch/v1/customsearch-api.json
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/mEVn7ZP7sXAW_2rxSFljK04NT4w\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/vjsLOntBAplI6gHuETouIyrKBJI\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "customsearch:v1",
|
||||
"name": "customsearch",
|
||||
"version": "v1",
|
||||
"revision": "20170530",
|
||||
"revision": "20170615",
|
||||
"title": "CustomSearch API",
|
||||
"description": "Searches over a website or collection of websites",
|
||||
"ownerDomain": "google.com",
|
||||
|
|
5129
vendor/google.golang.org/api/dataflow/v1b3/dataflow-api.json
generated
vendored
5129
vendor/google.golang.org/api/dataflow/v1b3/dataflow-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
94
vendor/google.golang.org/api/dataflow/v1b3/dataflow-gen.go
generated
vendored
94
vendor/google.golang.org/api/dataflow/v1b3/dataflow-gen.go
generated
vendored
|
@ -837,6 +837,10 @@ type CounterStructuredName struct {
|
|||
// counter's origin.
|
||||
OriginNamespace string `json:"originNamespace,omitempty"`
|
||||
|
||||
// OriginalShuffleStepName: The GroupByKey step name from the original
|
||||
// graph.
|
||||
OriginalShuffleStepName string `json:"originalShuffleStepName,omitempty"`
|
||||
|
||||
// OriginalStepName: System generated name of the original step in the
|
||||
// user's graph, before
|
||||
// optimization.
|
||||
|
@ -850,6 +854,15 @@ type CounterStructuredName struct {
|
|||
// "VALUE" - Counter reports a value.
|
||||
Portion string `json:"portion,omitempty"`
|
||||
|
||||
// SideInput: ID of a side input being read from/written to. Side inputs
|
||||
// are identified
|
||||
// by a pair of (reader, input_index). The reader is usually equal to
|
||||
// the
|
||||
// original name, but it may be different, if a ParDo emits it's
|
||||
// Iterator /
|
||||
// Map side input object.
|
||||
SideInput *SideInputId `json:"sideInput,omitempty"`
|
||||
|
||||
// WorkerId: ID of a particular worker.
|
||||
WorkerId string `json:"workerId,omitempty"`
|
||||
|
||||
|
@ -4176,6 +4189,40 @@ func (s *ShellTask) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// SideInputId: Uniquely identifies a side input.
|
||||
type SideInputId struct {
|
||||
// DeclaringStepName: The step that receives and usually consumes this
|
||||
// side input.
|
||||
DeclaringStepName string `json:"declaringStepName,omitempty"`
|
||||
|
||||
// InputIndex: The index of the side input, from the list of
|
||||
// non_parallel_inputs.
|
||||
InputIndex int64 `json:"inputIndex,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DeclaringStepName")
|
||||
// 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. "DeclaringStepName") 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 *SideInputId) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SideInputId
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// SideInputInfo: Information about a side input of a DoFn or an input
|
||||
// of a SeqDoFn.
|
||||
type SideInputInfo struct {
|
||||
|
@ -6057,6 +6104,9 @@ type WorkerMessage struct {
|
|||
// WorkerMetrics: Resource metrics reported by workers.
|
||||
WorkerMetrics *ResourceUtilizationReport `json:"workerMetrics,omitempty"`
|
||||
|
||||
// WorkerShutdownNotice: Shutdown notice by workers.
|
||||
WorkerShutdownNotice *WorkerShutdownNotice `json:"workerShutdownNotice,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Labels") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
|
@ -6177,6 +6227,10 @@ type WorkerMessageResponse struct {
|
|||
// (currently empty).
|
||||
WorkerMetricsResponse *ResourceUtilizationReportResponse `json:"workerMetricsResponse,omitempty"`
|
||||
|
||||
// WorkerShutdownNoticeResponse: Service's response to shutdown notice
|
||||
// (currently empty).
|
||||
WorkerShutdownNoticeResponse *WorkerShutdownNoticeResponse `json:"workerShutdownNoticeResponse,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "WorkerHealthReportResponse") to unconditionally include in API
|
||||
// requests. By default, fields with empty values are omitted from API
|
||||
|
@ -6450,6 +6504,46 @@ func (s *WorkerSettings) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// WorkerShutdownNotice: Shutdown notification from workers. This is to
|
||||
// be sent by the shutdown
|
||||
// script of the worker VM so that the backend knows that the VM is
|
||||
// being
|
||||
// shut down.
|
||||
type WorkerShutdownNotice struct {
|
||||
// Reason: Optional reason to be attached for the shutdown notice.
|
||||
// For example: "PREEMPTION" would indicate the VM is being shut down
|
||||
// because
|
||||
// of preemption. Other possible reasons may be added in the future.
|
||||
Reason string `json:"reason,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Reason") 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. "Reason") 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 *WorkerShutdownNotice) MarshalJSON() ([]byte, error) {
|
||||
type noMethod WorkerShutdownNotice
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// WorkerShutdownNoticeResponse: Service-side response to WorkerMessage
|
||||
// issuing shutdown notice.
|
||||
type WorkerShutdownNoticeResponse struct {
|
||||
}
|
||||
|
||||
// WriteInstruction: An instruction that writes records.
|
||||
// Takes one input, produces no outputs.
|
||||
type WriteInstruction struct {
|
||||
|
|
2068
vendor/google.golang.org/api/dataproc/v1/dataproc-api.json
generated
vendored
2068
vendor/google.golang.org/api/dataproc/v1/dataproc-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
2
vendor/google.golang.org/api/dataproc/v1/dataproc-gen.go
generated
vendored
2
vendor/google.golang.org/api/dataproc/v1/dataproc-gen.go
generated
vendored
|
@ -1623,7 +1623,7 @@ type SoftwareConfig struct {
|
|||
// mapred: mapred-site.xml
|
||||
// pig: pig.properties
|
||||
// spark: spark-defaults.conf
|
||||
// yarn: yarn-site.xml
|
||||
// yarn: yarn-site.xmlFor more information, see Cluster properties.
|
||||
Properties map[string]string `json:"properties,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ImageVersion") to
|
||||
|
|
2912
vendor/google.golang.org/api/dataproc/v1beta2/dataproc-api.json
generated
vendored
2912
vendor/google.golang.org/api/dataproc/v1beta2/dataproc-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
45
vendor/google.golang.org/api/dataproc/v1beta2/dataproc-gen.go
generated
vendored
45
vendor/google.golang.org/api/dataproc/v1beta2/dataproc-gen.go
generated
vendored
|
@ -272,6 +272,10 @@ type ClusterConfig struct {
|
|||
//
|
||||
InitializationActions []*NodeInitializationAction `json:"initializationActions,omitempty"`
|
||||
|
||||
// LifecycleConfig: Optional. The config setting for auto delete cluster
|
||||
// schedule.
|
||||
LifecycleConfig *LifecycleConfig `json:"lifecycleConfig,omitempty"`
|
||||
|
||||
// MasterConfig: Optional. The Google Compute Engine config settings for
|
||||
// the master instance in a cluster.
|
||||
MasterConfig *InstanceGroupConfig `json:"masterConfig,omitempty"`
|
||||
|
@ -1162,6 +1166,45 @@ func (s *JobStatus) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// LifecycleConfig: Specifies the cluster auto delete related schedule
|
||||
// configuration.
|
||||
type LifecycleConfig struct {
|
||||
// AutoDeleteTime: Optional. The time when cluster will be auto-deleted.
|
||||
AutoDeleteTime string `json:"autoDeleteTime,omitempty"`
|
||||
|
||||
// AutoDeleteTtl: Optional. The life duration of cluster, the cluster
|
||||
// will be auto-deleted at the end of this duration.
|
||||
AutoDeleteTtl string `json:"autoDeleteTtl,omitempty"`
|
||||
|
||||
// IdleDeleteTtl: Optional. The longest duration that cluster would keep
|
||||
// alive while staying idle; passing this threshold will cause cluster
|
||||
// to be auto-deleted.
|
||||
IdleDeleteTtl string `json:"idleDeleteTtl,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AutoDeleteTime") 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. "AutoDeleteTime") 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 *LifecycleConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod LifecycleConfig
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ListClustersResponse: The list of all clusters in a project.
|
||||
type ListClustersResponse struct {
|
||||
// Clusters: Output-only. The clusters in the project.
|
||||
|
@ -1623,7 +1666,7 @@ type SoftwareConfig struct {
|
|||
// mapred: mapred-site.xml
|
||||
// pig: pig.properties
|
||||
// spark: spark-defaults.conf
|
||||
// yarn: yarn-site.xml
|
||||
// yarn: yarn-site.xmlFor more information, see Cluster properties.
|
||||
Properties map[string]string `json:"properties,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ImageVersion") to
|
||||
|
|
1861
vendor/google.golang.org/api/datastore/v1/datastore-api.json
generated
vendored
1861
vendor/google.golang.org/api/datastore/v1/datastore-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
1286
vendor/google.golang.org/api/datastore/v1/datastore-gen.go
generated
vendored
1286
vendor/google.golang.org/api/datastore/v1/datastore-gen.go
generated
vendored
File diff suppressed because it is too large
Load diff
463
vendor/google.golang.org/api/datastore/v1beta1/datastore-api.json
generated
vendored
Normal file
463
vendor/google.golang.org/api/datastore/v1beta1/datastore-api.json
generated
vendored
Normal file
|
@ -0,0 +1,463 @@
|
|||
{
|
||||
"version": "v1beta1",
|
||||
"baseUrl": "https://datastore.googleapis.com/",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/datastore": {
|
||||
"description": "View and manage your Google Cloud Datastore data"
|
||||
},
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.\n",
|
||||
"kind": "discovery#restDescription",
|
||||
"servicePath": "",
|
||||
"rootUrl": "https://datastore.googleapis.com/",
|
||||
"basePath": "",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "datastore",
|
||||
"batchPath": "batch",
|
||||
"documentationLink": "https://cloud.google.com/datastore/",
|
||||
"id": "datastore:v1beta1",
|
||||
"revision": "20170821",
|
||||
"title": "Google Cloud Datastore API",
|
||||
"ownerName": "Google",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": true,
|
||||
"resources": {
|
||||
"projects": {
|
||||
"methods": {
|
||||
"export": {
|
||||
"response": {
|
||||
"$ref": "GoogleLongrunningOperation"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"httpMethod": "POST",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/datastore"
|
||||
],
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"location": "path",
|
||||
"description": "Project ID against which to make the request.",
|
||||
"type": "string",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"flatPath": "v1beta1/projects/{projectId}:export",
|
||||
"id": "datastore.projects.export",
|
||||
"path": "v1beta1/projects/{projectId}:export",
|
||||
"request": {
|
||||
"$ref": "GoogleDatastoreAdminV1beta1ExportEntitiesRequest"
|
||||
},
|
||||
"description": "Exports a copy of all or a subset of entities from Google Cloud Datastore\nto another storage system, such as Google Cloud Storage. Recent updates to\nentities may not be reflected in the export. The export occurs in the\nbackground and its progress can be monitored and managed via the\nOperation resource that is created. The output of an export may only be\nused once the associated operation is done. If an export operation is\ncancelled before completion it may leave partial data behind in Google\nCloud Storage."
|
||||
},
|
||||
"import": {
|
||||
"path": "v1beta1/projects/{projectId}:import",
|
||||
"id": "datastore.projects.import",
|
||||
"request": {
|
||||
"$ref": "GoogleDatastoreAdminV1beta1ImportEntitiesRequest"
|
||||
},
|
||||
"description": "Imports entities into Google Cloud Datastore. Existing entities with the\nsame key are overwritten. The import occurs in the background and its\nprogress can be monitored and managed via the Operation resource that is\ncreated. If an ImportEntities operation is cancelled, it is possible\nthat a subset of the data has already been imported to Cloud Datastore.",
|
||||
"httpMethod": "POST",
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "GoogleLongrunningOperation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/datastore"
|
||||
],
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"description": "Project ID against which to make the request.",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1beta1/projects/{projectId}:import"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"callback": {
|
||||
"location": "query",
|
||||
"description": "JSONP",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"location": "query",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"Status": {
|
||||
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
|
||||
"type": "string"
|
||||
},
|
||||
"details": {
|
||||
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
|
||||
"items": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"code": {
|
||||
"format": "int32",
|
||||
"description": "The status code, which should be an enum value of google.rpc.Code.",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"id": "Status"
|
||||
},
|
||||
"GoogleDatastoreAdminV1beta1ExportEntitiesRequest": {
|
||||
"description": "The request for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"outputUrlPrefix": {
|
||||
"description": "Location for the export metadata and data files.\n\nThe full resource URL of the external storage location. Currently, only\nGoogle Cloud Storage is supported. So output_url_prefix should be of the\nform: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the\nname of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud\nStorage namespace path (this is not a Cloud Datastore namespace). For more\ninformation about Cloud Storage namespace paths, see\n[Object name\nconsiderations](https://cloud.google.com/storage/docs/naming#object-considerations).\n\nThe resulting files will be nested deeper than the specified URL prefix.\nThe final output URL will be provided in the\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url\nfield. That value should be used for subsequent ImportEntities operations.\n\nBy nesting the data files deeper, the same Cloud Storage bucket can be used\nin multiple ExportEntities operations without conflict.",
|
||||
"type": "string"
|
||||
},
|
||||
"entityFilter": {
|
||||
"description": "Description of what data from the project is included in the export.",
|
||||
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter"
|
||||
},
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Client-assigned labels.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesRequest"
|
||||
},
|
||||
"GoogleDatastoreAdminV1beta1ExportEntitiesMetadata": {
|
||||
"properties": {
|
||||
"progressEntities": {
|
||||
"$ref": "GoogleDatastoreAdminV1beta1Progress",
|
||||
"description": "An estimate of the number of entities processed."
|
||||
},
|
||||
"common": {
|
||||
"description": "Metadata common to all Datastore Admin operations.",
|
||||
"$ref": "GoogleDatastoreAdminV1beta1CommonMetadata"
|
||||
},
|
||||
"progressBytes": {
|
||||
"description": "An estimate of the number of bytes processed.",
|
||||
"$ref": "GoogleDatastoreAdminV1beta1Progress"
|
||||
},
|
||||
"outputUrlPrefix": {
|
||||
"description": "Location for the export metadata and data files. This will be the same\nvalue as the\ngoogle.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix\nfield. The final output location is provided in\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.",
|
||||
"type": "string"
|
||||
},
|
||||
"entityFilter": {
|
||||
"description": "Description of which entities are being exported.",
|
||||
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter"
|
||||
}
|
||||
},
|
||||
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesMetadata",
|
||||
"description": "Metadata for ExportEntities operations.",
|
||||
"type": "object"
|
||||
},
|
||||
"GoogleDatastoreAdminV1beta1ExportEntitiesResponse": {
|
||||
"properties": {
|
||||
"outputUrl": {
|
||||
"description": "Location of the output metadata file. This can be used to begin an import\ninto Cloud Datastore (this project or another project). See\ngoogle.datastore.admin.v1beta1.ImportEntitiesRequest.input_url.\nOnly present if the operation completed successfully.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesResponse",
|
||||
"description": "The response for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.",
|
||||
"type": "object"
|
||||
},
|
||||
"GoogleDatastoreAdminV1beta1ImportEntitiesRequest": {
|
||||
"description": "The request for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"inputUrl": {
|
||||
"description": "The full resource URL of the external storage location. Currently, only\nGoogle Cloud Storage is supported. So input_url should be of the form:\n`gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where\n`BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is\nan optional Cloud Storage namespace path (this is not a Cloud Datastore\nnamespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written\nby the ExportEntities operation. For more information about Cloud Storage\nnamespace paths, see\n[Object name\nconsiderations](https://cloud.google.com/storage/docs/naming#object-considerations).\n\nFor more information, see\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.",
|
||||
"type": "string"
|
||||
},
|
||||
"entityFilter": {
|
||||
"description": "Optionally specify which kinds/namespaces are to be imported. If provided,\nthe list must be a subset of the EntityFilter used in creating the export,\notherwise a FAILED_PRECONDITION error will be returned. If no filter is\nspecified then all entities from the export are imported.",
|
||||
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter"
|
||||
},
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Client-assigned labels.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"id": "GoogleDatastoreAdminV1beta1ImportEntitiesRequest"
|
||||
},
|
||||
"GoogleDatastoreAdminV1beta1ImportEntitiesMetadata": {
|
||||
"properties": {
|
||||
"common": {
|
||||
"description": "Metadata common to all Datastore Admin operations.",
|
||||
"$ref": "GoogleDatastoreAdminV1beta1CommonMetadata"
|
||||
},
|
||||
"inputUrl": {
|
||||
"description": "The location of the import metadata file. This will be the same value as\nthe google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url\nfield.",
|
||||
"type": "string"
|
||||
},
|
||||
"progressBytes": {
|
||||
"$ref": "GoogleDatastoreAdminV1beta1Progress",
|
||||
"description": "An estimate of the number of bytes processed."
|
||||
},
|
||||
"entityFilter": {
|
||||
"description": "Description of which entities are being imported.",
|
||||
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter"
|
||||
},
|
||||
"progressEntities": {
|
||||
"$ref": "GoogleDatastoreAdminV1beta1Progress",
|
||||
"description": "An estimate of the number of entities processed."
|
||||
}
|
||||
},
|
||||
"id": "GoogleDatastoreAdminV1beta1ImportEntitiesMetadata",
|
||||
"description": "Metadata for ImportEntities operations.",
|
||||
"type": "object"
|
||||
},
|
||||
"GoogleDatastoreAdminV1beta1Progress": {
|
||||
"description": "Measures the progress of a particular metric.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"workEstimated": {
|
||||
"format": "int64",
|
||||
"description": "An estimate of how much work needs to be performed. May be zero if the\nwork estimate is unavailable.",
|
||||
"type": "string"
|
||||
},
|
||||
"workCompleted": {
|
||||
"format": "int64",
|
||||
"description": "Note that this may be greater than work_estimated.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "GoogleDatastoreAdminV1beta1Progress"
|
||||
},
|
||||
"GoogleDatastoreAdminV1beta1EntityFilter": {
|
||||
"properties": {
|
||||
"namespaceIds": {
|
||||
"description": "An empty list represents all namespaces. This is the preferred\nusage for projects that don't use namespaces.\n\nAn empty string element represents the default namespace. This should be\nused if the project has data in non-default namespaces, but doesn't want to\ninclude them.\nEach namespace in this list must be unique.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"kinds": {
|
||||
"description": "If empty, then this represents all kinds.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"id": "GoogleDatastoreAdminV1beta1EntityFilter",
|
||||
"description": "Identifies a subset of entities in a project. This is specified as\ncombinations of kind + namespace (either or both of which may be all, as\ndescribed in the following examples).\nExample usage:\n\nEntire project:\n kinds=[], namespace_ids=[]\n\nKinds Foo and Bar in all namespaces:\n kinds=['Foo', 'Bar'], namespace_ids=[]\n\nKinds Foo and Bar only in the default namespace:\n kinds=['Foo', 'Bar'], namespace_ids=['']\n\nKinds Foo and Bar in both the default and Baz namespaces:\n kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']\n\nThe entire Baz namespace:\n kinds=[], namespace_ids=['Baz']",
|
||||
"type": "object"
|
||||
},
|
||||
"GoogleLongrunningOperation": {
|
||||
"properties": {
|
||||
"done": {
|
||||
"description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"response": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
|
||||
"type": "object"
|
||||
},
|
||||
"name": {
|
||||
"description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.",
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"$ref": "Status",
|
||||
"description": "The error result of the operation in case of failure or cancellation."
|
||||
},
|
||||
"metadata": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"id": "GoogleLongrunningOperation",
|
||||
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
|
||||
"type": "object"
|
||||
},
|
||||
"GoogleDatastoreAdminV1beta1CommonMetadata": {
|
||||
"description": "Metadata common to all Datastore Admin operations.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "The client-assigned labels which were provided when the operation was\ncreated. May also include additional labels.",
|
||||
"type": "object"
|
||||
},
|
||||
"endTime": {
|
||||
"format": "google-datetime",
|
||||
"description": "The time the operation ended, either successfully or otherwise.",
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"enum": [
|
||||
"STATE_UNSPECIFIED",
|
||||
"INITIALIZING",
|
||||
"PROCESSING",
|
||||
"CANCELLING",
|
||||
"FINALIZING",
|
||||
"SUCCESSFUL",
|
||||
"FAILED",
|
||||
"CANCELLED"
|
||||
],
|
||||
"description": "The current state of the Operation.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Unspecified.",
|
||||
"Request is being prepared for processing.",
|
||||
"Request is actively being processed.",
|
||||
"Request is in the process of being cancelled after user called\nlongrunning.Operations.CancelOperation on the operation.",
|
||||
"Request has been processed and is in its finalization stage.",
|
||||
"Request has completed successfully.",
|
||||
"Request has finished being processed, but encountered an error.",
|
||||
"Request has finished being cancelled after user called\nlongrunning.Operations.CancelOperation."
|
||||
]
|
||||
},
|
||||
"operationType": {
|
||||
"enumDescriptions": [
|
||||
"Unspecified.",
|
||||
"ExportEntities.",
|
||||
"ImportEntities.",
|
||||
"Build an index.",
|
||||
"Clear an index."
|
||||
],
|
||||
"enum": [
|
||||
"OPERATION_TYPE_UNSPECIFIED",
|
||||
"EXPORT_ENTITIES",
|
||||
"IMPORT_ENTITIES",
|
||||
"BUILD_INDEX",
|
||||
"CLEAR_INDEX"
|
||||
],
|
||||
"description": "The type of the operation. Can be used as a filter in\nListOperationsRequest.",
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"format": "google-datetime",
|
||||
"description": "The time that work began on the operation.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "GoogleDatastoreAdminV1beta1CommonMetadata"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
1000
vendor/google.golang.org/api/datastore/v1beta1/datastore-gen.go
generated
vendored
Normal file
1000
vendor/google.golang.org/api/datastore/v1beta1/datastore-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1279
vendor/google.golang.org/api/datastore/v1beta3/datastore-api.json
generated
vendored
1279
vendor/google.golang.org/api/datastore/v1beta3/datastore-api.json
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…
Add table
Add a link
Reference in a new issue