vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537055 additions and 189679 deletions
+12
View 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
View File
@@ -1,11 +0,0 @@
_obj
_testmain.go
clientid.dat
clientsecret.dat
google-api-go-generator/google-api-go-gen
syntax:glob
*.6
*.8
*~
*.out
+1 -1
View File
@@ -11,7 +11,7 @@ before_install:
- openssl aes-256-cbc -K $encrypted_6c6ebd86ce52_key -iv $encrypted_6c6ebd86ce52_iv -in key.json.enc -out key.json -d
install:
- go get -v -p 1 google.golang.org/api/...
- go get -v -t -p 1 google.golang.org/api/...
script:
- GCLOUD_TESTS_GOLANG_PROJECT_ID="dulcet-port-762" GCLOUD_TESTS_GOLANG_DESTRUCTIVE_TEST_BUCKET_NAME="dulcet-port-762-api-go-client-storage-integration-test" GCLOUD_TESTS_GOLANG_KEY="$(pwd)/key.json" go test -v -tags=integration google.golang.org/api/...
-27
View File
@@ -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
+39 -40
View File
@@ -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
[![Build Status](https://travis-ci.org/google/google-api-go-client.png)](https://travis-ci.org/google/google-api-go-client)
[![GoDoc](https://godoc.org/google.golang.org/api?status.svg)](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 {
//...
@@ -1,19 +1,13 @@
{
"basePath": "",
"ownerDomain": "google.com",
"name": "acceleratedmobilepageurl",
"batchPath": "batch",
"id": "acceleratedmobilepageurl:v1",
"documentationLink": "https://developers.google.com/amp/cache/",
"revision": "20170504",
"title": "Accelerated Mobile Pages (AMP) URL API",
"discoveryVersion": "v1",
"ownerName": "Google",
"version_module": "True",
"version_module": true,
"resources": {
"ampUrls": {
"methods": {
"batchGet": {
"request": {
"$ref": "BatchGetAmpUrlsRequest"
},
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
"httpMethod": "POST",
"parameterOrder": [],
"response": {
@@ -21,37 +15,39 @@
},
"parameters": {},
"flatPath": "v1/ampUrls:batchGet",
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
"path": "v1/ampUrls:batchGet",
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
"request": {
"$ref": "BatchGetAmpUrlsRequest"
}
"id": "acceleratedmobilepageurl.ampUrls.batchGet"
}
}
}
},
"parameters": {
"pp": {
"location": "query",
"description": "Pretty-print response.",
"default": "true",
"type": "boolean"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string",
"location": "query"
},
"prettyPrint": {
"bearer_token": {
"description": "OAuth bearer token.",
"type": "string",
"location": "query"
},
"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",
"default": "true"
"location": "query"
},
"fields": {
"location": "query",
@@ -63,6 +59,11 @@
"type": "string",
"location": "query"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
@@ -76,13 +77,7 @@
"description": "V1 error format.",
"type": "string"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"alt": {
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
@@ -95,74 +90,43 @@
"json",
"media",
"proto"
]
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
],
"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"
},
"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"
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"pp": {
"description": "Pretty-print response.",
"type": "boolean",
"default": "true",
"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"
}
},
"schemas": {
"BatchGetAmpUrlsRequest": {
"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)).",
"type": "array",
"items": {
"type": "string"
}
},
"lookupStrategy": {
"description": "The lookup_strategy being requested.",
"type": "string",
"enumDescriptions": [
"FETCH_LIVE_DOC strategy involves live document fetch of URLs not found in\nthe index. Any request URL not found in the index is crawled in realtime\nto validate if there is a corresponding AMP URL. This strategy has higher\ncoverage but with extra latency introduced by realtime crawling. This is\nthe default strategy. Applications using this strategy should set higher\nHTTP timeouts of the API calls.",
"IN_INDEX_DOC strategy skips fetching live documents of URL(s) not found\nin index. For applications which need low latency use of IN_INDEX_DOC\nstrategy is recommended."
],
"enum": [
"FETCH_LIVE_DOC",
"IN_INDEX_DOC"
]
}
},
"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": {
"type": "array",
"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"
},
"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."
},
"urlErrors": {
"description": "The errors for requested URLs that have no AMP URL.",
"type": "array",
"items": {
"$ref": "AmpUrlError"
}
"type": "array"
}
},
"id": "BatchGetAmpUrlsResponse"
@@ -175,13 +139,13 @@
"description": "The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to\nthe cached document in the Google AMP Cache.",
"type": "string"
},
"originalUrl": {
"description": "The original non-AMP URL.",
"type": "string"
},
"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"
@@ -190,11 +154,8 @@
"description": "AMP URL Error resource for a requested URL that couldn't be found.",
"type": "object",
"properties": {
"errorMessage": {
"description": "An optional descriptive error message.",
"type": "string"
},
"errorCode": {
"description": "The error code of an API call.",
"type": "string",
"enumDescriptions": [
"Not specified error.",
@@ -211,15 +172,44 @@
"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.",
"type": "string"
},
"errorMessage": {
"description": "An optional descriptive error message.",
"type": "string"
}
},
"id": "AmpUrlError"
},
"BatchGetAmpUrlsRequest": {
"description": "AMP URL request for a batch of URLs.",
"type": "object",
"properties": {
"lookupStrategy": {
"description": "The lookup_strategy being requested.",
"type": "string",
"enumDescriptions": [
"FETCH_LIVE_DOC strategy involves live document fetch of URLs not found in\nthe index. Any request URL not found in the index is crawled in realtime\nto validate if there is a corresponding AMP URL. This strategy has higher\ncoverage but with extra latency introduced by realtime crawling. This is\nthe default strategy. Applications using this strategy should set higher\nHTTP timeouts of the API calls.",
"IN_INDEX_DOC strategy skips fetching live documents of URL(s) not found\nin index. For applications which need low latency use of IN_INDEX_DOC\nstrategy is recommended."
],
"enum": [
"FETCH_LIVE_DOC",
"IN_INDEX_DOC"
]
},
"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"
}
},
"protocol": "rest",
@@ -230,7 +220,17 @@
"version": "v1",
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"servicePath": "",
"description": "Retrieves the list of AMP URL (and equivalent AMP Cache URL) for a given list of public URL(s).\n",
"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/"
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "acceleratedmobilepageurl",
"batchPath": "batch",
"revision": "20170926",
"documentationLink": "https://developers.google.com/amp/cache/",
"id": "acceleratedmobilepageurl:v1",
"title": "Accelerated Mobile Pages (AMP) URL API",
"ownerName": "Google",
"discoveryVersion": "v1"
}
@@ -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",
@@ -21,7 +21,7 @@
"basePath": "/adexchangebuyer/v1.2/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangebuyer/v1.2/",
"batchPath": "batch",
"batchPath": "batch/adexchangebuyer/v1.2",
"parameters": {
"alt": {
"type": "string",
@@ -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",
@@ -21,7 +21,7 @@
"basePath": "/adexchangebuyer/v1.3/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangebuyer/v1.3/",
"batchPath": "batch",
"batchPath": "batch/adexchangebuyer/v1.3",
"parameters": {
"alt": {
"type": "string",
@@ -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",
@@ -21,7 +21,7 @@
"basePath": "/adexchangebuyer/v1.4/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangebuyer/v1.4/",
"batchPath": "batch",
"batchPath": "batch/adexchangebuyer/v1.4",
"parameters": {
"alt": {
"type": "string",
@@ -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",
+2 -1
View File
@@ -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.
File diff suppressed because it is too large Load Diff
+17 -344
View File
@@ -1,6 +1,6 @@
// Package adexchangebuyer2 provides access to the Ad Exchange Buyer API II.
//
// See https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
// See https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
//
// Usage example:
//
@@ -233,23 +233,11 @@ type AccountsFilterSetsFilteredBidsService struct {
func NewAccountsFilterSetsFilteredBidsCreativesService(s *Service) *AccountsFilterSetsFilteredBidsCreativesService {
rs := &AccountsFilterSetsFilteredBidsCreativesService{s: s}
rs.Details = NewAccountsFilterSetsFilteredBidsCreativesDetailsService(s)
return rs
}
type AccountsFilterSetsFilteredBidsCreativesService struct {
s *Service
Details *AccountsFilterSetsFilteredBidsCreativesDetailsService
}
func NewAccountsFilterSetsFilteredBidsCreativesDetailsService(s *Service) *AccountsFilterSetsFilteredBidsCreativesDetailsService {
rs := &AccountsFilterSetsFilteredBidsCreativesDetailsService{s: s}
return rs
}
type AccountsFilterSetsFilteredBidsCreativesDetailsService struct {
s *Service
}
func NewAccountsFilterSetsFilteredBidsDetailsService(s *Service) *AccountsFilterSetsFilteredBidsDetailsService {
@@ -1569,8 +1557,8 @@ type FilterSet struct {
// optional.
//
// Possible values:
// "INTERVAL_UNSPECIFIED" - A placeholder for an unspecified interval;
// no time series is applied.
// "TIME_SERIES_GRANULARITY_UNSPECIFIED" - A placeholder for an
// unspecified interval; no time series is applied.
// All rows in response will contain data for the entire requested time
// range.
// "HOURLY" - Indicates that data will be broken down by the hour.
@@ -2106,81 +2094,6 @@ func (s *ListClientsResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListCreativeStatusAndCreativeBreakdownByDetailResponse: Response
// message for listing all details associated with a given filtered
// bid
// reason and a given creative.
type ListCreativeStatusAndCreativeBreakdownByDetailResponse struct {
// DetailType: The type of detail that the detail IDs represent.
//
// Possible values:
// "TYPE_UNSPECIFIED" - A placeholder for an undefined status.
// This value will never be returned in responses.
// "CREATIVE_ATTRIBUTE" - Indicates that the detail ID refers to a
// creative attribute;
// see
// [publisher-excludable-creative-attributes](https://developers.goog
// le.com/ad-exchange/rtb/downloads/publisher-excludable-creative-attribu
// tes).
// "VENDOR" - Indicates that the detail ID refers to a vendor;
// see
// [vendors](https://developers.google.com/ad-exchange/rtb/downloads/
// vendors).
// "SENSITIVE_CATEGORY" - Indicates that the detail ID refers to a
// sensitive category;
// see
// [ad-sensitive-categories](https://developers.google.com/ad-exchang
// e/rtb/downloads/ad-sensitive-categories).
// "PRODUCT_CATEGORY" - Indicates that the detail ID refers to a
// product category;
// see
// [ad-product-categories](https://developers.google.com/ad-exchange/
// rtb/downloads/ad-product-categories).
DetailType string `json:"detailType,omitempty"`
// FilteredBidDetailRows: List of rows, with counts of bids with a given
// creative status and
// creative, aggregated by detail.
FilteredBidDetailRows []*FilteredBidDetailRow `json:"filteredBidDetailRows,omitempty"`
// NextPageToken: A token to retrieve the next page of results.
// Pass this value in
// the
// ListCreativeStatusAndCreativeBreakdownByDetailRequest.pageToken
// fi
// eld in the subsequent call to
// the
// accounts.filterSets.filteredBids.creatives.details.list
// method to retrieve the next page of results.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DetailType") 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. "DetailType") 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 *ListCreativeStatusAndCreativeBreakdownByDetailResponse) MarshalJSON() ([]byte, error) {
type noMethod ListCreativeStatusAndCreativeBreakdownByDetailResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListCreativeStatusBreakdownByCreativeResponse: Response message for
// listing all creatives associated with a given filtered
// bid reason.
@@ -2236,7 +2149,8 @@ type ListCreativeStatusBreakdownByDetailResponse struct {
// DetailType: The type of detail that the detail IDs represent.
//
// Possible values:
// "TYPE_UNSPECIFIED" - A placeholder for an undefined status.
// "DETAIL_TYPE_UNSPECIFIED" - A placeholder for an undefined
// status.
// This value will never be returned in responses.
// "CREATIVE_ATTRIBUTE" - Indicates that the detail ID refers to a
// creative attribute;
@@ -2258,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
@@ -3207,22 +3126,7 @@ func (s *ServingRestriction) MarshalJSON() ([]byte, error) {
type StopWatchingCreativeRequest struct {
}
// TimeInterval: An interval of time, with an absolute start and
// end.
// This is included in the response, for several reasons:
// 1) The request may have specified start or end times relative to the
// time the
// request was sent; the response indicates the corresponding
// absolute time
// interval.
// 2) The request may have specified an end time past the latest time
// for which
// data was available (e.g. if requesting data for the today); the
// response
// indicates the latest time for which data was actually returned.
// 3) The response data for a single request may be broken down into
// multiple
// time intervals, if a time series was requested.
// TimeInterval: An interval of time, with an absolute start and end.
type TimeInterval struct {
// EndTime: The timestamp marking the end of the range (exclusive) for
// which data is
@@ -5336,10 +5240,12 @@ func (c *AccountsCreativesListCall) PageToken(pageToken string) *AccountsCreativ
// not_checked}
// <li>attribute: {a numeric attribute from the list of
// attributes}
// <li>disapprovalReason: {a reason from
// <li>disapprovalReason: {a reason
// from
// DisapprovalReason
// </ul>
// Example: 'accountId=12345 AND (dealsStatus:disapproved AND
// Example: 'accountId=12345 AND (dealsStatus:disapproved
// AND
// disapprovalReason:unacceptable_content) OR attribute:47'
func (c *AccountsCreativesListCall) Query(query string) *AccountsCreativesListCall {
c.urlParams_.Set("query", query)
@@ -5466,7 +5372,7 @@ func (c *AccountsCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCreat
// "type": "string"
// },
// "query": {
// "description": "An optional query string to filter creatives. If no filter is specified,\nall active creatives will be returned.\nSupported queries are:\n\u003cul\u003e\n\u003cli\u003eaccountId=\u003ci\u003eaccount_id_string\u003c/i\u003e\n\u003cli\u003ecreativeId=\u003ci\u003ecreative_id_string\u003c/i\u003e\n\u003cli\u003edealsStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eopenAuctionStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eattribute: {a numeric attribute from the list of attributes}\n\u003cli\u003edisapprovalReason: {a reason from DisapprovalReason\n\u003c/ul\u003e\nExample: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR attribute:47'",
// "description": "An optional query string to filter creatives. If no filter is specified,\nall active creatives will be returned.\nSupported queries are:\n\u003cul\u003e\n\u003cli\u003eaccountId=\u003ci\u003eaccount_id_string\u003c/i\u003e\n\u003cli\u003ecreativeId=\u003ci\u003ecreative_id_string\u003c/i\u003e\n\u003cli\u003edealsStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eopenAuctionStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eattribute: {a numeric attribute from the list of attributes}\n\u003cli\u003edisapprovalReason: {a reason from\nDisapprovalReason\n\u003c/ul\u003e\nExample: 'accountId=12345 AND (dealsStatus:disapproved AND\ndisapprovalReason:unacceptable_content) OR attribute:47'",
// "location": "query",
// "type": "string"
// }
@@ -8339,239 +8245,6 @@ func (c *AccountsFilterSetsFilteredBidsCreativesListCall) Pages(ctx context.Cont
}
}
// method id "adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list":
type AccountsFilterSetsFilteredBidsCreativesDetailsListCall struct {
s *Service
accountId int64
filterSetId int64
creativeStatusId int64
creativeId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: List all details associated with a specific reason for which
// bids were
// filtered and a specific creative that was filtered for that reason,
// with
// the number of bids filtered for each detail.
func (r *AccountsFilterSetsFilteredBidsCreativesDetailsService) List(accountId int64, filterSetId int64, creativeStatusId int64, creativeId string) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
c := &AccountsFilterSetsFilteredBidsCreativesDetailsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.filterSetId = filterSetId
c.creativeStatusId = creativeStatusId
c.creativeId = creativeId
return c
}
// PageSize sets the optional parameter "pageSize": Requested page size.
// The server may return fewer results than requested.
// If unspecified, the server will pick an appropriate default.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) PageSize(pageSize int64) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": A token
// identifying a page of results the server should return.
// Typically, this is the value
// of
// ListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToke
// n
// returned from the previous call to
// the
// accounts.filterSets.filteredBids.creatives.details.list
// method.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) PageToken(pageToken string) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) Fields(s ...googleapi.Field) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
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 *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) IfNoneMatch(entityTag string) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
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 *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) Context(ctx context.Context) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
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 *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) 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, "v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives/{creativeId}/details")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
"filterSetId": strconv.FormatInt(c.filterSetId, 10),
"creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10),
"creativeId": c.creativeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list" call.
// Exactly one of
// *ListCreativeStatusAndCreativeBreakdownByDetailResponse or error will
// be non-nil. Any non-2xx status code is an error. Response headers are
// in either
// *ListCreativeStatusAndCreativeBreakdownByDetailResponse.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 *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) Do(opts ...googleapi.CallOption) (*ListCreativeStatusAndCreativeBreakdownByDetailResponse, 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 := &ListCreativeStatusAndCreativeBreakdownByDetailResponse{
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": "List all details associated with a specific reason for which bids were\nfiltered and a specific creative that was filtered for that reason, with\nthe number of bids filtered for each detail.",
// "flatPath": "v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives/{creativeId}/details",
// "httpMethod": "GET",
// "id": "adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list",
// "parameterOrder": [
// "accountId",
// "filterSetId",
// "creativeStatusId",
// "creativeId"
// ],
// "parameters": {
// "accountId": {
// "description": "Account ID of the buyer.",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "creativeId": {
// "description": "The creative ID for which to retrieve a breakdown by detail.",
// "location": "path",
// "required": true,
// "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).",
// "format": "int32",
// "location": "path",
// "required": true,
// "type": "integer"
// },
// "filterSetId": {
// "description": "The ID of the filter set to apply.",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "pageSize": {
// "description": "Requested page size. The server may return fewer results than requested.\nIf unspecified, the server will pick an appropriate default.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "A token identifying a page of results the server should return.\nTypically, this is the value of\nListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToken\nreturned from the previous call to the\naccounts.filterSets.filteredBids.creatives.details.list\nmethod.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives/{creativeId}/details",
// "response": {
// "$ref": "ListCreativeStatusAndCreativeBreakdownByDetailResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) Pages(ctx context.Context, f func(*ListCreativeStatusAndCreativeBreakdownByDetailResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "adexchangebuyer2.accounts.filterSets.filteredBids.details.list":
type AccountsFilterSetsFilteredBidsDetailsListCall struct {
@@ -8734,7 +8407,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).",
// "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,
@@ -21,7 +21,7 @@
"basePath": "/adexchangeseller/v1.1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangeseller/v1.1/",
"batchPath": "batch",
"batchPath": "batch/adexchangeseller/v1.1",
"parameters": {
"alt": {
"type": "string",
@@ -21,7 +21,7 @@
"basePath": "/adexchangeseller/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangeseller/v1/",
"batchPath": "batch",
"batchPath": "batch/adexchangeseller/v1",
"parameters": {
"alt": {
"type": "string",
@@ -21,7 +21,7 @@
"basePath": "/adexchangeseller/v2.0/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adexchangeseller/v2.0/",
"batchPath": "batch",
"batchPath": "batch/adexchangeseller/v2.0",
"parameters": {
"alt": {
"type": "string",
+100 -114
View File
@@ -1,6 +1,4 @@
{
"discoveryVersion": "v1",
"version_module": "True",
"schemas": {
"ViolatingSitesResponse": {
"description": "Response message for ListViolatingSites.",
@@ -20,6 +18,10 @@
"description": "Response message for GetSiteSummary.",
"type": "object",
"properties": {
"mobileSummary": {
"description": "Summary for the mobile review of the site.",
"$ref": "PlatformSummary"
},
"reviewedSite": {
"description": "The name of the site reviewed.",
"type": "string"
@@ -27,19 +29,24 @@
"desktopSummary": {
"description": "Summary for the desktop review of the site.",
"$ref": "PlatformSummary"
},
"mobileSummary": {
"$ref": "PlatformSummary",
"description": "Summary for the mobile review of the site."
}
},
"id": "SiteSummaryResponse"
},
"PlatformSummary": {
"description": "Summary of the ads rating of a site for a specific platform.",
"type": "object",
"properties": {
"lastChangeTime": {
"format": "google-datetime",
"description": "The last time that the site changed status.",
"type": "string"
},
"betterAdsStatus": {
"enum": [
"UNKNOWN",
"PASSING",
"WARNING",
"FAILING"
],
"description": "The status of the site reviewed for the Better Ads Standards.",
"type": "string",
"enumDescriptions": [
@@ -47,19 +54,8 @@
"Passing.",
"Warning.",
"Failing."
],
"enum": [
"UNKNOWN",
"PASSING",
"WARNING",
"FAILING"
]
},
"enforcementTime": {
"format": "google-datetime",
"description": "The date on which ad filtering begins.",
"type": "string"
},
"region": {
"enumDescriptions": [
"Ad standard not yet defined for your region.",
@@ -68,18 +64,21 @@
],
"description": "The assigned regions for the site and platform.",
"items": {
"type": "string",
"enum": [
"REGION_UNKNOWN",
"REGION_A",
"REGION_B"
]
],
"type": "string"
},
"type": "array"
},
"enforcementTime": {
"format": "google-datetime",
"description": "The date on which ad filtering begins.",
"type": "string"
},
"filterStatus": {
"description": "The ad filtering status of the site.",
"type": "string",
"enumDescriptions": [
"N/A.",
"Ad filtering is on.",
@@ -93,7 +92,9 @@
"OFF",
"PAUSED",
"PENDING"
]
],
"description": "The ad filtering status of the site.",
"type": "string"
},
"underReview": {
"description": "Whether the site is currently under review.",
@@ -102,35 +103,18 @@
"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"
},
"egregiousStatus": {
"enumDescriptions": [
"Not reviewed.",
"Passing.",
"Failing."
],
"enum": [
"UNKNOWN",
"PASSING",
"FAILING"
],
"description": "The status of the site reviewed for egregious ads.",
"type": "string"
}
},
"id": "PlatformSummary"
"id": "PlatformSummary",
"description": "Summary of the ad experience rating of a site for a specific platform.",
"type": "object"
}
},
"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": "Ad Experience Report",
"auth": {
"oauth2": {
@@ -148,94 +132,90 @@
"title": "Google Ad Experience Report API",
"ownerName": "Google",
"resources": {
"sites": {
"methods": {
"get": {
"description": "Gets a summary of the ads rating of a site.",
"httpMethod": "GET",
"parameterOrder": [
"name"
],
"response": {
"$ref": "SiteSummaryResponse"
},
"scopes": [
"https://www.googleapis.com/auth/xapi.zoo"
],
"parameters": {
"name": {
"location": "path",
"description": "The required site name. It should be a site property registered in Search\nConsole. The server will return an error of BAD_REQUEST if this field is\nnot filled in.",
"type": "string",
"required": true,
"pattern": "^sites/[^/]+$"
}
},
"flatPath": "v1/sites/{sitesId}",
"path": "v1/{+name}",
"id": "adexperiencereport.sites.get"
}
}
},
"violatingSites": {
"methods": {
"list": {
"flatPath": "v1/violatingSites",
"path": "v1/violatingSites",
"id": "adexperiencereport.violatingSites.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"
]
],
"parameters": {},
"flatPath": "v1/violatingSites",
"path": "v1/violatingSites",
"id": "adexperiencereport.violatingSites.list",
"description": "Lists sites with Ad Experience Report statuses of \"Failing\" or \"Warning\"."
}
}
},
"sites": {
"methods": {
"get": {
"description": "Gets a summary of the ad experience rating of a site.",
"response": {
"$ref": "SiteSummaryResponse"
},
"parameterOrder": [
"name"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/xapi.zoo"
],
"parameters": {
"name": {
"pattern": "^sites/[^/]+$",
"location": "path",
"description": "The required site name. It should be the site property whose ad experiences\nmay have been reviewed, and it should be URL-encoded. For example,\nsites/https%3A%2F%2Fwww.google.com. The server will return an error of\nBAD_REQUEST if this field is not filled in. Note that if the site property\nis not yet verified in Search Console, the reportUrl field returned by the\nAPI will lead to the verification page, prompting the user to go through\nthat process before they can gain access to the Ad Experience Report.",
"type": "string",
"required": true
}
},
"flatPath": "v1/sites/{sitesId}",
"id": "adexperiencereport.sites.get",
"path": "v1/{+name}"
}
}
}
},
"parameters": {
"pp": {
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
"location": "query"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string",
"location": "query"
"type": "string"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
"type": "string"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string",
"location": "query"
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean",
"type": "boolean"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"$.xgafv": {
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
@@ -244,14 +224,12 @@
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string"
]
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
"type": "string",
"location": "query"
},
"alt": {
"enum": [
@@ -270,9 +248,9 @@
"default": "json"
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
"type": "string",
"location": "query"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
@@ -280,18 +258,26 @@
"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"
}
},
"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": "",
"kind": "discovery#restDescription",
"basePath": "",
"id": "adexperiencereport:v1",
"documentationLink": "https://developers.google.com/ad-experience-report/",
"revision": "20170628",
"id": "adexperiencereport:v1"
"revision": "20170918",
"discoveryVersion": "v1",
"version_module": true
}
@@ -96,8 +96,8 @@ type ViolatingSitesService struct {
s *Service
}
// PlatformSummary: Summary of the ads rating of a site for a specific
// platform.
// PlatformSummary: Summary of the ad experience rating of a site for a
// specific platform.
type PlatformSummary struct {
// BetterAdsStatus: The status of the site reviewed for the Better Ads
// Standards.
@@ -109,14 +109,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"`
@@ -254,7 +246,7 @@ type SitesGetCall struct {
header_ http.Header
}
// Get: Gets a summary of the ads rating of a site.
// Get: Gets a summary of the ad experience rating of a site.
func (r *SitesService) Get(name string) *SitesGetCall {
c := &SitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
@@ -355,7 +347,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*SiteSummaryResponse, e
}
return ret, nil
// {
// "description": "Gets a summary of the ads rating of a site.",
// "description": "Gets a summary of the ad experience rating of a site.",
// "flatPath": "v1/sites/{sitesId}",
// "httpMethod": "GET",
// "id": "adexperiencereport.sites.get",
@@ -364,7 +356,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*SiteSummaryResponse, e
// ],
// "parameters": {
// "name": {
// "description": "The required site name. It should be a site property registered in Search\nConsole. The server will return an error of BAD_REQUEST if this field is\nnot filled in.",
// "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,
+1 -1
View File
@@ -22,7 +22,7 @@
"basePath": "/admin/datatransfer/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "admin/datatransfer/v1/",
"batchPath": "batch",
"batchPath": "batch/admin/datatransfer_v1",
"parameters": {
"alt": {
"type": "string",
+105 -19
View File
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/976YNPTJkb16sYg_Lp8esJdwsGQ\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/JB19efQGH5f-JRT49yZz7BTyNQU\"",
"discoveryVersion": "v1",
"id": "admin:directory_v1",
"name": "admin",
"canonicalName": "directory",
"version": "directory_v1",
"revision": "20170530",
"revision": "20170830",
"title": "Admin Directory API",
"description": "The Admin SDK Directory API lets you view and manage enterprise resources such as users and groups, administrative notifications, security features, and more.",
"ownerDomain": "google.com",
@@ -22,7 +22,7 @@
"basePath": "/admin/directory/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "admin/directory/v1/",
"batchPath": "batch",
"batchPath": "batch/admin/directory_v1",
"parameters": {
"alt": {
"type": "string",
@@ -277,6 +277,10 @@
"type": "string",
"description": "ETag of the resource."
},
"generatedResourceName": {
"type": "string",
"description": "The auto-generated name of the calendar resource which includes metadata about the resource such as building name, floor, capacity, etc. For example, NYC-2-Training Room 1A (16)"
},
"kind": {
"type": "string",
"description": "The type of the resource. For calendar resources, the value is admin#directory#resources#calendars#CalendarResource.",
@@ -292,21 +296,11 @@
},
"resourceId": {
"type": "string",
"description": "The unique ID for the calendar resource.",
"annotations": {
"required": [
"directory.resources.calendars.insert"
]
}
"description": "The unique ID for the calendar resource."
},
"resourceName": {
"type": "string",
"description": "The name of the calendar resource. For example, Training Room 1A",
"annotations": {
"required": [
"directory.resources.calendars.insert"
]
}
"description": "The name of the calendar resource. For example, Training Room 1A"
},
"resourceType": {
"type": "string",
@@ -579,6 +573,25 @@
}
}
},
"ChromeOsMoveDevicesToOu": {
"id": "ChromeOsMoveDevicesToOu",
"type": "object",
"description": "JSON request template for moving ChromeOs Device to given OU in Directory Devices API.",
"properties": {
"deviceIds": {
"type": "array",
"description": "ChromeOs Devices to be moved to OU",
"items": {
"type": "string"
},
"annotations": {
"required": [
"directory.chromeosdevices.moveDevicesToOu"
]
}
}
}
},
"Customer": {
"id": "Customer",
"type": "object",
@@ -1824,6 +1837,9 @@
"externalIds": {
"type": "any"
},
"gender": {
"type": "any"
},
"hashFunction": {
"type": "string",
"description": "Hash function name for password. Supported are MD5, SHA-1 and crypt"
@@ -1868,6 +1884,9 @@
"description": "Is mailbox setup (Read-only)",
"readOnly": true
},
"keywords": {
"type": "any"
},
"kind": {
"type": "string",
"description": "Kind of resource this is.",
@@ -2091,6 +2110,24 @@
}
}
},
"UserGender": {
"id": "UserGender",
"type": "object",
"properties": {
"addressMeAs": {
"type": "string",
"description": "AddressMeAs. A human-readable string containing the proper way to refer to the profile owner by humans, for example \"he/him/his\" or \"they/them/their\"."
},
"customGender": {
"type": "string",
"description": "Custom gender."
},
"type": {
"type": "string",
"description": "Gender."
}
}
},
"UserIm": {
"id": "UserIm",
"type": "object",
@@ -2122,6 +2159,25 @@
}
}
},
"UserKeyword": {
"id": "UserKeyword",
"type": "object",
"description": "JSON template for a keyword entry.",
"properties": {
"customType": {
"type": "string",
"description": "Custom Type."
},
"type": {
"type": "string",
"description": "Each entry can have a type which indicates standard type of that entry. For example, keyword could be of type occupation or outlook. In addition to the standard type, an entry can have a custom type and can give it any name. Such types should have the CUSTOM value as type and also have a customType value."
},
"value": {
"type": "string",
"description": "Keyword."
}
}
},
"UserLanguage": {
"id": "UserLanguage",
"type": "object",
@@ -2354,9 +2410,9 @@
"description": "The GECOS (user information) for this account."
},
"gid": {
"type": "integer",
"type": "string",
"description": "The default group ID.",
"format": "int32"
"format": "uint64"
},
"homeDirectory": {
"type": "string",
@@ -2375,9 +2431,9 @@
"description": "System identifier for which account Username or Uid apply to."
},
"uid": {
"type": "integer",
"type": "string",
"description": "The POSIX compliant user ID.",
"format": "int32"
"format": "uint64"
},
"username": {
"type": "string",
@@ -2816,6 +2872,36 @@
"https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"
]
},
"moveDevicesToOu": {
"id": "directory.chromeosdevices.moveDevicesToOu",
"path": "customer/{customerId}/devices/chromeos/moveDevicesToOu",
"httpMethod": "POST",
"description": "Move or insert multiple Chrome OS Devices to Organization Unit",
"parameters": {
"customerId": {
"type": "string",
"description": "Immutable ID of the G Suite account",
"required": true,
"location": "path"
},
"orgUnitPath": {
"type": "string",
"description": "Full path of the target organization unit or its Id",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"customerId",
"orgUnitPath"
],
"request": {
"$ref": "ChromeOsMoveDevicesToOu"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.device.chromeos"
]
},
"patch": {
"id": "directory.chromeosdevices.patch",
"path": "customer/{customerId}/devices/chromeos/{deviceId}",
+227 -2
View File
@@ -608,6 +608,11 @@ type CalendarResource struct {
// Etags: ETag of the resource.
Etags string `json:"etags,omitempty"`
// GeneratedResourceName: The auto-generated name of the calendar
// resource which includes metadata about the resource such as building
// name, floor, capacity, etc. For example, NYC-2-Training Room 1A (16)
GeneratedResourceName string `json:"generatedResourceName,omitempty"`
// Kind: The type of the resource. For calendar resources, the value is
// admin#directory#resources#calendars#CalendarResource.
Kind string `json:"kind,omitempty"`
@@ -1019,6 +1024,35 @@ func (s *ChromeOsDevices) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ChromeOsMoveDevicesToOu: JSON request template for moving ChromeOs
// Device to given OU in Directory Devices API.
type ChromeOsMoveDevicesToOu struct {
// DeviceIds: ChromeOs Devices to be moved to OU
DeviceIds []string `json:"deviceIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeviceIds") 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. "DeviceIds") 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 *ChromeOsMoveDevicesToOu) MarshalJSON() ([]byte, error) {
type noMethod ChromeOsMoveDevicesToOu
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Customer: JSON template for Customer Resource object in Directory
// API.
type Customer struct {
@@ -2620,6 +2654,8 @@ type User struct {
ExternalIds interface{} `json:"externalIds,omitempty"`
Gender interface{} `json:"gender,omitempty"`
// HashFunction: Hash function name for password. Supported are MD5,
// SHA-1 and crypt
HashFunction string `json:"hashFunction,omitempty"`
@@ -2652,6 +2688,8 @@ type User struct {
// IsMailboxSetup: Is mailbox setup (Read-only)
IsMailboxSetup bool `json:"isMailboxSetup,omitempty"`
Keywords interface{} `json:"keywords,omitempty"`
// Kind: Kind of resource this is.
Kind string `json:"kind,omitempty"`
@@ -2911,6 +2949,41 @@ func (s *UserExternalId) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UserGender struct {
// AddressMeAs: AddressMeAs. A human-readable string containing the
// proper way to refer to the profile owner by humans, for example
// "he/him/his" or "they/them/their".
AddressMeAs string `json:"addressMeAs,omitempty"`
// CustomGender: Custom gender.
CustomGender string `json:"customGender,omitempty"`
// Type: Gender.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "AddressMeAs") 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. "AddressMeAs") 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 *UserGender) MarshalJSON() ([]byte, error) {
type noMethod UserGender
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserIm: JSON template for instant messenger of an user.
type UserIm struct {
// CustomProtocol: Custom protocol.
@@ -2962,6 +3035,44 @@ func (s *UserIm) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserKeyword: JSON template for a keyword entry.
type UserKeyword struct {
// CustomType: Custom Type.
CustomType string `json:"customType,omitempty"`
// Type: Each entry can have a type which indicates standard type of
// that entry. For example, keyword could be of type occupation or
// outlook. In addition to the standard type, an entry can have a custom
// type and can give it any name. Such types should have the CUSTOM
// value as type and also have a customType value.
Type string `json:"type,omitempty"`
// Value: Keyword.
Value string `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "CustomType") 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. "CustomType") 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 *UserKeyword) MarshalJSON() ([]byte, error) {
type noMethod UserKeyword
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserLanguage: JSON template for a language entry.
type UserLanguage struct {
// CustomLanguage: Other language. User can provide own language name if
@@ -3283,7 +3394,7 @@ type UserPosixAccount struct {
Gecos string `json:"gecos,omitempty"`
// Gid: The default group ID.
Gid int64 `json:"gid,omitempty"`
Gid uint64 `json:"gid,omitempty,string"`
// HomeDirectory: The path to the home directory for this account.
HomeDirectory string `json:"homeDirectory,omitempty"`
@@ -3299,7 +3410,7 @@ type UserPosixAccount struct {
SystemId string `json:"systemId,omitempty"`
// Uid: The POSIX compliant user ID.
Uid int64 `json:"uid,omitempty"`
Uid uint64 `json:"uid,omitempty,string"`
// Username: The username of the account.
Username string `json:"username,omitempty"`
@@ -4666,6 +4777,120 @@ func (c *ChromeosdevicesListCall) Pages(ctx context.Context, f func(*ChromeOsDev
}
}
// method id "directory.chromeosdevices.moveDevicesToOu":
type ChromeosdevicesMoveDevicesToOuCall struct {
s *Service
customerId string
chromeosmovedevicestoou *ChromeOsMoveDevicesToOu
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// MoveDevicesToOu: Move or insert multiple Chrome OS Devices to
// Organization Unit
func (r *ChromeosdevicesService) MoveDevicesToOu(customerId string, orgUnitPath string, chromeosmovedevicestoou *ChromeOsMoveDevicesToOu) *ChromeosdevicesMoveDevicesToOuCall {
c := &ChromeosdevicesMoveDevicesToOuCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.customerId = customerId
c.urlParams_.Set("orgUnitPath", orgUnitPath)
c.chromeosmovedevicestoou = chromeosmovedevicestoou
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 *ChromeosdevicesMoveDevicesToOuCall) Fields(s ...googleapi.Field) *ChromeosdevicesMoveDevicesToOuCall {
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 *ChromeosdevicesMoveDevicesToOuCall) Context(ctx context.Context) *ChromeosdevicesMoveDevicesToOuCall {
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 *ChromeosdevicesMoveDevicesToOuCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ChromeosdevicesMoveDevicesToOuCall) 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.chromeosmovedevicestoou)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "customer/{customerId}/devices/chromeos/moveDevicesToOu")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"customerId": c.customerId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "directory.chromeosdevices.moveDevicesToOu" call.
func (c *ChromeosdevicesMoveDevicesToOuCall) Do(opts ...googleapi.CallOption) error {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if err != nil {
return err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return err
}
return nil
// {
// "description": "Move or insert multiple Chrome OS Devices to Organization Unit",
// "httpMethod": "POST",
// "id": "directory.chromeosdevices.moveDevicesToOu",
// "parameterOrder": [
// "customerId",
// "orgUnitPath"
// ],
// "parameters": {
// "customerId": {
// "description": "Immutable ID of the G Suite account",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "orgUnitPath": {
// "description": "Full path of the target organization unit or its Id",
// "location": "query",
// "required": true,
// "type": "string"
// }
// },
// "path": "customer/{customerId}/devices/chromeos/moveDevicesToOu",
// "request": {
// "$ref": "ChromeOsMoveDevicesToOu"
// },
// "scopes": [
// "https://www.googleapis.com/auth/admin.directory.device.chromeos"
// ]
// }
}
// method id "directory.chromeosdevices.patch":
type ChromeosdevicesPatchCall struct {
+6 -6
View File
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/-tkaOVzArVVhbxGreMOY21mRaV8\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/YvMEbSpUd5h8xmSpskCE_HPECco\"",
"discoveryVersion": "v1",
"id": "admin:reports_v1",
"name": "admin",
"canonicalName": "reports",
"version": "reports_v1",
"revision": "20170320",
"revision": "20170622",
"title": "Admin Reports API",
"description": "Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.",
"ownerDomain": "google.com",
@@ -22,7 +22,7 @@
"basePath": "/admin/reports/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "admin/reports/v1/",
"batchPath": "batch",
"batchPath": "batch/admin/reports_v1",
"parameters": {
"alt": {
"type": "string",
@@ -464,7 +464,7 @@
"type": "string",
"description": "Application name for which the events are to be retrieved.",
"required": true,
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)",
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
"location": "path"
},
"customerId": {
@@ -543,7 +543,7 @@
"type": "string",
"description": "Application name for which the events are to be retrieved.",
"required": true,
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)",
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
"location": "path"
},
"customerId": {
@@ -659,7 +659,7 @@
"parameters": {
"type": "string",
"description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
"pattern": "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
"pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
"location": "query"
}
},
+3 -3
View File
@@ -845,7 +845,7 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*Activities, erro
// "applicationName": {
// "description": "Application name for which the events are to be retrieved.",
// "location": "path",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
// "required": true,
// "type": "string"
// },
@@ -1113,7 +1113,7 @@ func (c *ActivitiesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error)
// "applicationName": {
// "description": "Application name for which the events are to be retrieved.",
// "location": "path",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
// "required": true,
// "type": "string"
// },
@@ -1435,7 +1435,7 @@ func (c *CustomerUsageReportsGetCall) Do(opts ...googleapi.CallOption) (*UsageRe
// "parameters": {
// "description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
// "location": "query",
// "pattern": "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
// "pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
// "type": "string"
// }
// },
+3 -3
View File
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/ZPtwp1J-B1sy3-qRXXf2y9wrQDQ\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/5dfOA4TQ4h1l0_SNvBmZicECrgQ\"",
"discoveryVersion": "v1",
"id": "adsense:v1.4",
"name": "adsense",
"canonicalName": "AdSense",
"version": "v1.4",
"revision": "20170606",
"revision": "20170912",
"title": "AdSense Management API",
"description": "Accesses AdSense publishers' inventory and generates performance reports.",
"ownerDomain": "google.com",
@@ -21,7 +21,7 @@
"basePath": "/adsense/v1.4/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adsense/v1.4/",
"batchPath": "batch",
"batchPath": "batch/adsense/v1.4",
"parameters": {
"alt": {
"type": "string",
+3 -3
View File
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/GUIZYIY3cfuYjkhoORNXzoLuN-o\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/HzRIN4Gi3jUuNGWAsKKaxu4tH4k\"",
"discoveryVersion": "v1",
"id": "adsensehost:v4.1",
"name": "adsensehost",
"canonicalName": "AdSense Host",
"version": "v4.1",
"revision": "20170606",
"revision": "20170912",
"title": "AdSense Host API",
"description": "Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts.",
"ownerDomain": "google.com",
@@ -24,7 +24,7 @@
"basePath": "/adsensehost/v4.1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "adsensehost/v4.1/",
"batchPath": "batch",
"batchPath": "batch/adsensehost/v4.1",
"parameters": {
"alt": {
"type": "string",
+3 -3
View File
@@ -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",
@@ -20,7 +20,7 @@
"basePath": "/analytics/v2.4/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "analytics/v2.4/",
"batchPath": "batch",
"batchPath": "batch/analytics/v2.4",
"parameters": {
"alt": {
"type": "string",
+18 -5
View File
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/kNCxeHzf8zHSdahaoD4fNF__mRA\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/DSG2TEF18bxTdYooKf_C2-FmmME\"",
"discoveryVersion": "v1",
"id": "analytics:v3",
"name": "analytics",
"version": "v3",
"revision": "20170321",
"revision": "20170807",
"title": "Google Analytics API",
"description": "Views and manages your Google Analytics data.",
"ownerDomain": "google.com",
@@ -20,7 +20,7 @@
"basePath": "/analytics/v3/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "analytics/v3/",
"batchPath": "batch",
"batchPath": "batch/analytics/v3",
"parameters": {
"alt": {
"type": "string",
@@ -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",
@@ -2115,7 +2123,7 @@
},
"type": {
"type": "string",
"description": "The type of the foreign account. For example `ADWORDS_LINKS`."
"description": "The type of the foreign account. For example, `ADWORDS_LINKS`, `DBM_LINKS`, `MCC_LINKS` or `OPTIMIZE`."
},
"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"
}
}
},
+21 -47
View File
@@ -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
@@ -3473,7 +3477,8 @@ type LinkedForeignAccount struct {
// Status: The status of this foreign account link.
Status string `json:"status,omitempty"`
// Type: The type of the foreign account. For example `ADWORDS_LINKS`.
// Type: The type of the foreign account. For example, `ADWORDS_LINKS`,
// `DBM_LINKS`, `MCC_LINKS` or `OPTIMIZE`.
Type string `json:"type,omitempty"`
// WebPropertyId: Web property ID of the form UA-XXXXX-YY to which this
@@ -5076,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:"-"`
@@ -16340,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
}
@@ -16367,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
}
@@ -16387,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
}
@@ -16400,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
}
@@ -16440,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
@@ -16498,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()
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/Eo4yAE5hsqiZm3AyzEBz2cSs7e4\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/eOnhI7vohdeU44iGbzR45SHL-EI\"",
"discoveryVersion": "v1",
"id": "androidenterprise:v1",
"name": "androidenterprise",
"canonicalName": "Android Enterprise",
"version": "v1",
"revision": "20170531",
"revision": "20170911",
"title": "Google Play EMM API",
"description": "Manages the deployment of apps to Android for Work users.",
"ownerDomain": "google.com",
@@ -21,7 +21,7 @@
"basePath": "/androidenterprise/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "androidenterprise/v1/",
"batchPath": "batch",
"batchPath": "batch/androidenterprise/v1",
"parameters": {
"alt": {
"type": "string",
@@ -127,6 +127,22 @@
}
}
},
"AndroidDevicePolicyConfig": {
"id": "AndroidDevicePolicyConfig",
"type": "object",
"description": "The Android Device Policy configuration of an enterprise.",
"properties": {
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"androidenterprise#androidDevicePolicyConfig\".",
"default": "androidenterprise#androidDevicePolicyConfig"
},
"state": {
"type": "string",
"description": "The state of Android Device Policy. \"enabled\" indicates that Android Device Policy is enabled for the enterprise and the EMM is allowed to manage devices with Android Device Policy, while \"disabled\" means that it cannot."
}
}
},
"AppRestrictionsSchema": {
"id": "AppRestrictionsSchema",
"type": "object",
@@ -477,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",
@@ -917,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"
}
@@ -955,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."
@@ -1056,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."
}
}
},
@@ -1722,6 +1756,29 @@
"https://www.googleapis.com/auth/androidenterprise"
]
},
"getAndroidDevicePolicyConfig": {
"id": "androidenterprise.enterprises.getAndroidDevicePolicyConfig",
"path": "enterprises/{enterpriseId}/androidDevicePolicyConfig",
"httpMethod": "GET",
"description": "Returns the Android Device Policy config resource.",
"parameters": {
"enterpriseId": {
"type": "string",
"description": "The ID of the enterprise.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"enterpriseId"
],
"response": {
"$ref": "AndroidDevicePolicyConfig"
},
"scopes": [
"https://www.googleapis.com/auth/androidenterprise"
]
},
"getServiceAccount": {
"id": "androidenterprise.enterprises.getServiceAccount",
"path": "enterprises/{enterpriseId}/serviceAccount",
@@ -1861,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",
@@ -1906,6 +1963,32 @@
"https://www.googleapis.com/auth/androidenterprise"
]
},
"setAndroidDevicePolicyConfig": {
"id": "androidenterprise.enterprises.setAndroidDevicePolicyConfig",
"path": "enterprises/{enterpriseId}/androidDevicePolicyConfig",
"httpMethod": "PUT",
"description": "Sets the Android Device Policy config resource. EMM may use this method to enable or disable Android Device Policy support for the specified enterprise. To learn more about managing devices and apps with Android Device Policy, see the Android Management API.",
"parameters": {
"enterpriseId": {
"type": "string",
"description": "The ID of the enterprise.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"enterpriseId"
],
"request": {
"$ref": "AndroidDevicePolicyConfig"
},
"response": {
"$ref": "AndroidDevicePolicyConfig"
},
"scopes": [
"https://www.googleapis.com/auth/androidenterprise"
]
},
"setStoreLayout": {
"id": "androidenterprise.enterprises.setStoreLayout",
"path": "enterprises/{enterpriseId}/storeLayout",
+375 -27
View File
@@ -350,6 +350,46 @@ func (s *AdministratorWebTokenSpec) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AndroidDevicePolicyConfig: The Android Device Policy configuration of
// an enterprise.
type AndroidDevicePolicyConfig struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#androidDevicePolicyConfig".
Kind string `json:"kind,omitempty"`
// State: The state of Android Device Policy. "enabled" indicates that
// Android Device Policy is enabled for the enterprise and the EMM is
// allowed to manage devices with Android Device Policy, while
// "disabled" means that it cannot.
State string `json:"state,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AndroidDevicePolicyConfig) MarshalJSON() ([]byte, error) {
type noMethod AndroidDevicePolicyConfig
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AppRestrictionsSchema: Represents the list of app restrictions
// available to be pre-configured for the product.
type AppRestrictionsSchema struct {
@@ -1073,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
@@ -1920,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
@@ -1963,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.
@@ -2168,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
@@ -2198,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,
@@ -4397,6 +4470,144 @@ func (c *EnterprisesGetCall) Do(opts ...googleapi.CallOption) (*Enterprise, erro
}
// method id "androidenterprise.enterprises.getAndroidDevicePolicyConfig":
type EnterprisesGetAndroidDevicePolicyConfigCall struct {
s *Service
enterpriseId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// GetAndroidDevicePolicyConfig: Returns the Android Device Policy
// config resource.
func (r *EnterprisesService) GetAndroidDevicePolicyConfig(enterpriseId string) *EnterprisesGetAndroidDevicePolicyConfigCall {
c := &EnterprisesGetAndroidDevicePolicyConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.enterpriseId = enterpriseId
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 *EnterprisesGetAndroidDevicePolicyConfigCall) Fields(s ...googleapi.Field) *EnterprisesGetAndroidDevicePolicyConfigCall {
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 *EnterprisesGetAndroidDevicePolicyConfigCall) IfNoneMatch(entityTag string) *EnterprisesGetAndroidDevicePolicyConfigCall {
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 *EnterprisesGetAndroidDevicePolicyConfigCall) Context(ctx context.Context) *EnterprisesGetAndroidDevicePolicyConfigCall {
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 *EnterprisesGetAndroidDevicePolicyConfigCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *EnterprisesGetAndroidDevicePolicyConfigCall) 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, "enterprises/{enterpriseId}/androidDevicePolicyConfig")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"enterpriseId": c.enterpriseId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidenterprise.enterprises.getAndroidDevicePolicyConfig" call.
// Exactly one of *AndroidDevicePolicyConfig or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *AndroidDevicePolicyConfig.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 *EnterprisesGetAndroidDevicePolicyConfigCall) Do(opts ...googleapi.CallOption) (*AndroidDevicePolicyConfig, 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 := &AndroidDevicePolicyConfig{
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 Android Device Policy config resource.",
// "httpMethod": "GET",
// "id": "androidenterprise.enterprises.getAndroidDevicePolicyConfig",
// "parameterOrder": [
// "enterpriseId"
// ],
// "parameters": {
// "enterpriseId": {
// "description": "The ID of the enterprise.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "enterprises/{enterpriseId}/androidDevicePolicyConfig",
// "response": {
// "$ref": "AndroidDevicePolicyConfig"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidenterprise"
// ]
// }
}
// method id "androidenterprise.enterprises.getServiceAccount":
type EnterprisesGetServiceAccountCall struct {
@@ -5147,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)}
@@ -5239,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": [
@@ -5398,6 +5609,143 @@ func (c *EnterprisesSetAccountCall) Do(opts ...googleapi.CallOption) (*Enterpris
}
// method id "androidenterprise.enterprises.setAndroidDevicePolicyConfig":
type EnterprisesSetAndroidDevicePolicyConfigCall struct {
s *Service
enterpriseId string
androiddevicepolicyconfig *AndroidDevicePolicyConfig
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetAndroidDevicePolicyConfig: Sets the Android Device Policy config
// resource. EMM may use this method to enable or disable Android Device
// Policy support for the specified enterprise. To learn more about
// managing devices and apps with Android Device Policy, see the Android
// Management API.
func (r *EnterprisesService) SetAndroidDevicePolicyConfig(enterpriseId string, androiddevicepolicyconfig *AndroidDevicePolicyConfig) *EnterprisesSetAndroidDevicePolicyConfigCall {
c := &EnterprisesSetAndroidDevicePolicyConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.enterpriseId = enterpriseId
c.androiddevicepolicyconfig = androiddevicepolicyconfig
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 *EnterprisesSetAndroidDevicePolicyConfigCall) Fields(s ...googleapi.Field) *EnterprisesSetAndroidDevicePolicyConfigCall {
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 *EnterprisesSetAndroidDevicePolicyConfigCall) Context(ctx context.Context) *EnterprisesSetAndroidDevicePolicyConfigCall {
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 *EnterprisesSetAndroidDevicePolicyConfigCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *EnterprisesSetAndroidDevicePolicyConfigCall) 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.androiddevicepolicyconfig)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "enterprises/{enterpriseId}/androidDevicePolicyConfig")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"enterpriseId": c.enterpriseId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidenterprise.enterprises.setAndroidDevicePolicyConfig" call.
// Exactly one of *AndroidDevicePolicyConfig or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *AndroidDevicePolicyConfig.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 *EnterprisesSetAndroidDevicePolicyConfigCall) Do(opts ...googleapi.CallOption) (*AndroidDevicePolicyConfig, 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 := &AndroidDevicePolicyConfig{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Sets the Android Device Policy config resource. EMM may use this method to enable or disable Android Device Policy support for the specified enterprise. To learn more about managing devices and apps with Android Device Policy, see the Android Management API.",
// "httpMethod": "PUT",
// "id": "androidenterprise.enterprises.setAndroidDevicePolicyConfig",
// "parameterOrder": [
// "enterpriseId"
// ],
// "parameters": {
// "enterpriseId": {
// "description": "The ID of the enterprise.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "enterprises/{enterpriseId}/androidDevicePolicyConfig",
// "request": {
// "$ref": "AndroidDevicePolicyConfig"
// },
// "response": {
// "$ref": "AndroidDevicePolicyConfig"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidenterprise"
// ]
// }
}
// method id "androidenterprise.enterprises.setStoreLayout":
type EnterprisesSetStoreLayoutCall struct {
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/jAh44-3E4QU-_OC0i2RcuiwRQzw\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/EKUDjWuy8xhU5dHne-WullXJgWw\"",
"discoveryVersion": "v1",
"id": "androidpublisher:v1.1",
"name": "androidpublisher",
"canonicalName": "Android Publisher",
"version": "v1.1",
"revision": "20170504",
"revision": "20170913",
"title": "Google Play Developer API",
"description": "Lets Android application developers access their Google Play accounts.",
"ownerDomain": "google.com",
@@ -21,7 +21,7 @@
"basePath": "/androidpublisher/v1.1/applications/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "androidpublisher/v1.1/applications/",
"batchPath": "batch",
"batchPath": "batch/androidpublisher/v1.1",
"parameters": {
"alt": {
"type": "string",
@@ -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",
@@ -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
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/JYnXSSeS9snUxwUvBiIlGUwDhtI\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/Ex2nsAPYjRP0NRWSGg4yyxwNJ18\"",
"discoveryVersion": "v1",
"id": "androidpublisher:v1",
"name": "androidpublisher",
"canonicalName": "Android Publisher",
"version": "v1",
"revision": "20170504",
"revision": "20170913",
"title": "Google Play Developer API",
"description": "Lets Android application developers access their Google Play accounts.",
"ownerDomain": "google.com",
@@ -21,7 +21,7 @@
"basePath": "/androidpublisher/v1/applications/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "androidpublisher/v1/applications/",
"batchPath": "batch",
"batchPath": "batch/androidpublisher/v1",
"parameters": {
"alt": {
"type": "string",
+19 -7
View File
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/fkMKFYhAB3V0ia83SVxm8xZB5LU\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/QjVvqrUMRW1tTVdJHVqdnKd9gLQ\"",
"discoveryVersion": "v1",
"id": "androidpublisher:v2",
"name": "androidpublisher",
"canonicalName": "Android Publisher",
"version": "v2",
"revision": "20170504",
"revision": "20170913",
"title": "Google Play Developer API",
"description": "Lets Android application developers access their Google Play accounts.",
"ownerDomain": "google.com",
@@ -21,7 +21,7 @@
"basePath": "/androidpublisher/v2/applications/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "androidpublisher/v2/applications/",
"batchPath": "batch",
"batchPath": "batch/androidpublisher/v2",
"parameters": {
"alt": {
"type": "string",
@@ -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",
@@ -977,7 +985,7 @@
},
"cancelReason": {
"type": "integer",
"description": "The reason why a subscription was cancelled or is not auto-renewing. Possible values are: \n- User cancelled the subscription \n- Subscription was cancelled by the system, for example because of a billing problem",
"description": "The reason why a subscription was cancelled or is not auto-renewing. Possible values are: \n- User cancelled the subscription \n- Subscription was cancelled by the system, for example because of a billing problem \n- Subscription was replaced with a new subscription",
"format": "int32"
},
"countryCode": {
@@ -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"
},
+86 -202
View File
@@ -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
@@ -2014,6 +2022,7 @@ type SubscriptionPurchase struct {
// - User cancelled the subscription
// - Subscription was cancelled by the system, for example because of a
// billing problem
// - Subscription was replaced with a new subscription
CancelReason *int64 `json:"cancelReason,omitempty"`
// CountryCode: ISO 3166-1 alpha-2 billing country/region code of the
@@ -2032,10 +2041,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 +4339,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 +4365,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 +4380,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 +4389,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 +4429,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 +4475,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 +4562,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 +4587,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 +4602,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 +4611,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 +4651,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 +4699,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 +5762,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 +5787,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 +5802,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 +5811,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 +5851,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 +5899,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 +6521,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 +6552,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 +6567,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 +6576,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 +6616,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 +6664,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 +10779,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 +10804,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 +10921,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 +10943,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"
+184 -65
View File
@@ -71,13 +71,13 @@
"name": "adexchangebuyer2",
"version": "v2beta1",
"title": "Ad Exchange Buyer API II",
"description": "Accesses the latest features for managing Ad Exchange accounts and Real-Time Bidding configurations.",
"description": "Accesses the latest features for managing Ad Exchange accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals.",
"discoveryRestUrl": "https://adexchangebuyer.googleapis.com/$discovery/rest?version=v2beta1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/",
"documentationLink": "https://developers.google.com/ad-exchange/buyer-rest/reference/rest/",
"preferred": true
},
{
@@ -191,22 +191,6 @@
"documentationLink": "https://developers.google.com/admin-sdk/reports/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "adsense:v1.3",
"name": "adsense",
"version": "v1.3",
"title": "AdSense Management API",
"description": "Accesses AdSense publishers' inventory and generates performance reports.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/adsense/v1.3/rest",
"discoveryLink": "./apis/adsense/v1.3/rest",
"icons": {
"x16": "https://www.google.com/images/icons/product/adsense-16.png",
"x32": "https://www.google.com/images/icons/product/adsense-32.png"
},
"documentationLink": "https://developers.google.com/adsense/management/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "adsense:v1.4",
@@ -289,6 +273,21 @@
"documentationLink": "https://developers.google.com/analytics/devguides/reporting/core/v4/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "androiddeviceprovisioning:v1",
"name": "androiddeviceprovisioning",
"version": "v1",
"title": "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",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://developers.google.com/zero-touch/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "androidenterprise:v1",
@@ -305,6 +304,21 @@
"documentationLink": "https://developers.google.com/android/work/play/emm-api",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "androidmanagement:v1",
"name": "androidmanagement",
"version": "v1",
"title": "Android Management API",
"description": "The Android Management API provides remote enterprise management of Android devices and apps.",
"discoveryRestUrl": "https://androidmanagement.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/android/management",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "androidpublisher:v1",
@@ -481,7 +495,7 @@
"id": "bigquerydatatransfer:v1",
"name": "bigquerydatatransfer",
"version": "v1",
"title": "BigQuery Data Transfer Service API",
"title": "BigQuery Data Transfer API",
"description": "Transfers data from partner SaaS applications to Google BigQuery on a scheduled, managed basis.",
"discoveryRestUrl": "https://bigquerydatatransfer.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -682,6 +696,36 @@
"documentationLink": "https://cloud.google.com/functions",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "cloudiot:v1",
"name": "cloudiot",
"version": "v1",
"title": "Google Cloud IoT API",
"description": "Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform.",
"discoveryRestUrl": "https://cloudiot.googleapis.com/$discovery/rest?version=v1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/iot",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "cloudiot:v1beta1",
"name": "cloudiot",
"version": "v1beta1",
"title": "Google Cloud IoT API",
"description": "Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform.",
"discoveryRestUrl": "https://cloudiot.googleapis.com/$discovery/rest?version=v1beta1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/iot",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "cloudkms:v1",
@@ -758,6 +802,21 @@
"documentationLink": "https://cloud.google.com/resource-manager",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "cloudtasks:v2beta2",
"name": "cloudtasks",
"version": "v2beta2",
"title": "Cloud Tasks API",
"description": "Manages the execution of large numbers of distributed requests. Cloud Tasks is in Alpha.",
"discoveryRestUrl": "https://cloudtasks.googleapis.com/$discovery/rest?version=v2beta2",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/cloud-tasks/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "cloudtrace:v1",
@@ -930,6 +989,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",
@@ -993,21 +1067,6 @@
"documentationLink": "https://cloud.google.com/dataflow",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "dataproc:v1alpha1",
"name": "dataproc",
"version": "v1alpha1",
"title": "Google Cloud Dataproc API",
"description": "Manages Hadoop-based clusters and jobs on Google Cloud Platform.",
"discoveryRestUrl": "https://dataproc.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/dataproc/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "dataproc:v1",
@@ -1025,12 +1084,12 @@
},
{
"kind": "discovery#directoryItem",
"id": "dataproc:v1beta1",
"id": "dataproc:v1beta2",
"name": "dataproc",
"version": "v1beta1",
"version": "v1beta2",
"title": "Google Cloud Dataproc API",
"description": "Manages Hadoop-based clusters and jobs on Google Cloud Platform.",
"discoveryRestUrl": "https://dataproc.googleapis.com/$discovery/rest?version=v1beta1",
"discoveryRestUrl": "https://dataproc.googleapis.com/$discovery/rest?version=v1beta2",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -1053,6 +1112,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",
@@ -1293,6 +1367,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",
@@ -1742,9 +1831,24 @@
"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/apis-explorer/#p/oslogin/v1alpha/",
"documentationLink": "https://cloud.google.com/compute/docs/oslogin/rest/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "oslogin:v1beta",
"name": "oslogin",
"version": "v1beta",
"title": "Google Cloud OS Login API",
"description": "Manages OS login configuration for Directory API users.",
"discoveryRestUrl": "https://oslogin.googleapis.com/$discovery/rest?version=v1beta",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/compute/docs/oslogin/rest/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "pagespeedonline:v1",
@@ -1807,6 +1911,22 @@
"documentationLink": "https://developers.google.com/people/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "playcustomapp:v1",
"name": "playcustomapp",
"version": "v1",
"title": "Google Play Custom App Publishing API",
"description": "An API to publish custom Android apps.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/playcustomapp/v1/rest",
"discoveryLink": "./apis/playcustomapp/v1/rest",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://developers.google.com/android/work/play/custom-app-api",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "playmoviespartner:v1",
@@ -2160,7 +2280,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",
@@ -2175,7 +2295,7 @@
"name": "script",
"version": "v1",
"title": "Google Apps Script Execution API",
"description": "Executes Google Apps Script projects.",
"description": "An API for managing and executing 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",
@@ -2476,7 +2596,7 @@
"name": "streetviewpublish",
"version": "v1",
"title": "Street View Publish API",
"description": "The Street View Publish API allows your application to publish 360 photos to Google Maps, along with image metadata that specifies the position, orientation, and connectivity of each photo. With this API, any app can offer an interface for positioning, connecting, and uploading user-generated Street View images.",
"description": "Publishes 360 photos to Google Maps, along with position, orientation, and connectivity metadata. Apps can offer an interface for positioning, connecting, and uploading user-generated Street View images.",
"discoveryRestUrl": "https://streetviewpublish.googleapis.com/$discovery/rest?version=v1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
@@ -2582,19 +2702,18 @@
},
{
"kind": "discovery#directoryItem",
"id": "toolresults:v1beta3firstparty",
"name": "toolresults",
"version": "v1beta3firstparty",
"title": "Cloud Tool Results firstparty API",
"description": "Reads and publishes results from Firebase Test Lab.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/toolresults/v1beta3firstparty/rest",
"discoveryLink": "./apis/toolresults/v1beta3firstparty/rest",
"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://firebase.google.com/docs/test-lab/",
"preferred": false
"documentationLink": "https://developers.google.com/cloud-test-lab/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
@@ -2612,21 +2731,6 @@
"documentationLink": "https://firebase.google.com/docs/test-lab/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "tracing:v2",
"name": "tracing",
"version": "v2",
"title": "Google Tracing API",
"description": "Send and retrieve trace data from Google Stackdriver Trace.",
"discoveryRestUrl": "https://tracing.googleapis.com/$discovery/rest?version=v2",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/trace",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "translate:v2",
@@ -2658,6 +2762,21 @@
"documentationLink": "https://developers.google.com/url-shortener/v1/getting_started",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "vault:v1",
"name": "vault",
"version": "v1",
"title": "Google Vault API",
"description": "Archiving and eDiscovery for G Suite.",
"discoveryRestUrl": "https://vault.googleapis.com/$discovery/rest?version=v1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://developers.google.com/vault",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "videointelligence:v1beta1",
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+28 -8
View File
@@ -166,8 +166,8 @@ type AuthorizedCertificate struct {
// DomainMappingsCount: Aggregate count of the domain mappings with this
// certificate mapped. This count includes domain mappings on
// applications for which the user does not have VIEWER permissions.Only
// returned by GET requests when specifically requested by the view=FULL
// option.@OutputOnly
// returned by GET or LIST requests when specifically requested by the
// view=FULL_CERTIFICATE option.@OutputOnly
DomainMappingsCount int64 `json:"domainMappingsCount,omitempty"`
// DomainNames: Topmost applicable domains of this certificate. This
@@ -203,8 +203,8 @@ type AuthorizedCertificate struct {
// list of mapped domain mappings if the user does not have VIEWER
// permissions on all of the applications that have this certificate
// mapped. See domain_mappings_count for a complete count.Only returned
// by GET requests when specifically requested by the view=FULL
// option.@OutputOnly
// by GET or LIST requests when specifically requested by the
// view=FULL_CERTIFICATE option.@OutputOnly
VisibleDomainMappings []string `json:"visibleDomainMappings,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -1175,8 +1175,8 @@ type Status struct {
// google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There will
// be a common set of message types for APIs to use.
// Details: A list of messages that carry the error details. There is a
// common set of message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in
@@ -1678,6 +1678,17 @@ func (c *AppsAuthorizedCertificatesListCall) PageToken(pageToken string) *AppsAu
return c
}
// View sets the optional parameter "view": Controls the set of fields
// returned in the LIST response.
//
// Possible values:
// "BASIC_CERTIFICATE"
// "FULL_CERTIFICATE"
func (c *AppsAuthorizedCertificatesListCall) View(view string) *AppsAuthorizedCertificatesListCall {
c.urlParams_.Set("view", view)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
@@ -1797,6 +1808,15 @@ func (c *AppsAuthorizedCertificatesListCall) Do(opts ...googleapi.CallOption) (*
// "description": "Continuation token for fetching the next page of results.",
// "location": "query",
// "type": "string"
// },
// "view": {
// "description": "Controls the set of fields returned in the LIST response.",
// "enum": [
// "BASIC_CERTIFICATE",
// "FULL_CERTIFICATE"
// ],
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1alpha/apps/{appsId}/authorizedCertificates",
@@ -2833,7 +2853,7 @@ func (r *AppsDomainMappingsService) Patch(appsId string, domainMappingsId string
// NoManagedCertificate sets the optional parameter
// "noManagedCertificate": Whether a managed certificate should be
// provided by App Engine. If true, a certificate ID must be manaually
// provided by App Engine. If true, a certificate ID must be manually
// set in the DomainMapping resource to configure SSL for this domain.
// If false, a managed certificate will be provisioned and a certificate
// ID will be automatically populated. Only applicable if
@@ -2959,7 +2979,7 @@ func (c *AppsDomainMappingsPatchCall) Do(opts ...googleapi.CallOption) (*Operati
// "type": "string"
// },
// "noManagedCertificate": {
// "description": "Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manaually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated. Only applicable if ssl_settings.certificate_id is specified in the update mask.",
// "description": "Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated. Only applicable if ssl_settings.certificate_id is specified in the update mask.",
// "location": "query",
// "type": "boolean"
// },
File diff suppressed because it is too large Load Diff
+148 -17
View File
@@ -320,7 +320,7 @@ func (s *ApiEndpointHandler) MarshalJSON() ([]byte, error) {
}
// Application: An Application resource contains the top-level
// configuration of an App Engine application. Next tag: 19
// configuration of an App Engine application. Next tag: 20
type Application struct {
// AuthDomain: Google Apps authentication domain that controls which
// users can access this application.Defaults to open access for any
@@ -429,8 +429,8 @@ type AuthorizedCertificate struct {
// DomainMappingsCount: Aggregate count of the domain mappings with this
// certificate mapped. This count includes domain mappings on
// applications for which the user does not have VIEWER permissions.Only
// returned by GET requests when specifically requested by the view=FULL
// option.@OutputOnly
// returned by GET or LIST requests when specifically requested by the
// view=FULL_CERTIFICATE option.@OutputOnly
DomainMappingsCount int64 `json:"domainMappingsCount,omitempty"`
// DomainNames: Topmost applicable domains of this certificate. This
@@ -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"`
@@ -459,8 +466,8 @@ type AuthorizedCertificate struct {
// list of mapped domain mappings if the user does not have VIEWER
// permissions on all of the applications that have this certificate
// mapped. See domain_mappings_count for a complete count.Only returned
// by GET requests when specifically requested by the view=FULL
// option.@OutputOnly
// by GET or LIST requests when specifically requested by the
// view=FULL_CERTIFICATE option.@OutputOnly
VisibleDomainMappings []string `json:"visibleDomainMappings,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -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,
@@ -2898,8 +2987,8 @@ type Status struct {
// google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There will
// be a common set of message types for APIs to use.
// Details: A list of messages that carry the error details. There is a
// common set of message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in
@@ -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
@@ -4448,6 +4538,17 @@ func (c *AppsAuthorizedCertificatesListCall) PageToken(pageToken string) *AppsAu
return c
}
// View sets the optional parameter "view": Controls the set of fields
// returned in the LIST response.
//
// Possible values:
// "BASIC_CERTIFICATE"
// "FULL_CERTIFICATE"
func (c *AppsAuthorizedCertificatesListCall) View(view string) *AppsAuthorizedCertificatesListCall {
c.urlParams_.Set("view", view)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
@@ -4567,6 +4668,15 @@ func (c *AppsAuthorizedCertificatesListCall) Do(opts ...googleapi.CallOption) (*
// "description": "Continuation token for fetching the next page of results.",
// "location": "query",
// "type": "string"
// },
// "view": {
// "description": "Controls the set of fields returned in the LIST response.",
// "enum": [
// "BASIC_CERTIFICATE",
// "FULL_CERTIFICATE"
// ],
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1beta/apps/{appsId}/authorizedCertificates",
@@ -8717,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
@@ -8821,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",
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -2056,8 +2056,8 @@ type Status struct {
// google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There will
// be a common set of message types for APIs to use.
// Details: A list of messages that carry the error details. There is a
// common set of message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -2054,8 +2054,8 @@ type Status struct {
// google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There will
// be a common set of message types for APIs to use.
// Details: A list of messages that carry the error details. There is a
// common set of message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in
+3 -3
View File
@@ -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",
@@ -20,7 +20,7 @@
"basePath": "/appsactivity/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "appsactivity/v1/",
"batchPath": "batch",
"batchPath": "batch/appsactivity/v1",
"parameters": {
"alt": {
"type": "string",
+3 -3
View File
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/u4lihwP33J0GgUtvl1xqXUmPaak\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/ANNk7azl5zRYtDCCrlgSBbC8-4Y\"",
"discoveryVersion": "v1",
"id": "appstate:v1",
"name": "appstate",
"canonicalName": "App State",
"version": "v1",
"revision": "20170601",
"revision": "20170911",
"title": "Google App State API",
"description": "The Google App State API.",
"ownerDomain": "google.com",
@@ -21,7 +21,7 @@
"basePath": "/appstate/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "appstate/v1/",
"batchPath": "batch",
"batchPath": "batch/appstate/v1",
"parameters": {
"alt": {
"type": "string",
+148 -10
View File
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/PuNtnNg1WyrTVM4-fWu4Qm0QKgM\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/RJ9KKUbfMw7IvtOPKrwn45TxAuo\"",
"discoveryVersion": "v1",
"id": "bigquery:v2",
"name": "bigquery",
"version": "v2",
"revision": "20170622",
"revision": "20170910",
"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."
@@ -818,7 +897,7 @@
},
"schemaUpdateOptions": {
"type": "array",
"description": "[Experimental] Allows the schema of the desitination table to be updated as a side effect of the load job. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable.",
"description": "[Experimental] Allows the schema of the desitination table to be updated as a side effect of the load job if a schema is autodetected or supplied in the job configuration. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable.",
"items": {
"type": "string"
}
@@ -834,11 +913,15 @@
},
"sourceUris": {
"type": "array",
"description": "[Required] The fully-qualified URIs that point to your data in Google Cloud Storage. Each URI can contain one '*' wildcard character and it must come after the 'bucket' name.",
"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,9 +1006,13 @@
"$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 values of allowLargeResults and flattenResults are ignored; query will be run as if allowLargeResults is true and flattenResults is false."
"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."
},
"useQueryCache": {
"type": "boolean",
@@ -937,7 +1028,7 @@
},
"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_EMPTY. 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."
"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 and uses the schema from the query result. 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_EMPTY. 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."
}
}
},
@@ -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"
@@ -1147,6 +1242,11 @@
"description": "[Output-only] Total bytes processed for the job.",
"format": "int64"
},
"totalSlotMs": {
"type": "string",
"description": "[Output-only] Slot-milliseconds for the job.",
"format": "int64"
},
"undeclaredQueryParameters": {
"type": "array",
"description": "[Output-only, Experimental] Standard SQL only: list of undeclared query parameters detected during a dry run validation.",
@@ -1160,6 +1260,11 @@
"id": "JobStatistics3",
"type": "object",
"properties": {
"badRecords": {
"type": "string",
"description": "[Output-only] The number of bad records encountered. Note that if the job has failed because of more bad records encountered than the maximum allowed in the load job configuration, then this number can be less than the total number of bad records present in the input data.",
"format": "int64"
},
"inputFileBytes": {
"type": "string",
"description": "[Output-only] Number of bytes of source data in a load job.",
@@ -1424,7 +1529,7 @@
},
"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 values of allowLargeResults and flattenResults are ignored; query will be run as if allowLargeResults is true and flattenResults is false.",
"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.",
"default": "true"
},
"useQueryCache": {
@@ -1528,6 +1633,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."
@@ -1899,9 +2008,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."
}
}
},
@@ -2420,6 +2533,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",
+343 -95
View File
@@ -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"`
@@ -1350,15 +1452,16 @@ type JobConfigurationLoad struct {
SchemaInlineFormat string `json:"schemaInlineFormat,omitempty"`
// SchemaUpdateOptions: [Experimental] Allows the schema of the
// desitination table to be updated as a side effect of the load job.
// Schema update options are supported in two cases: when
// writeDisposition is WRITE_APPEND; when writeDisposition is
// WRITE_TRUNCATE and the destination table is a partition of a table,
// specified by partition decorators. For normal tables, WRITE_TRUNCATE
// will always overwrite the schema. One or more of the following values
// are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to
// the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field
// in the original schema to nullable.
// desitination table to be updated as a side effect of the load job if
// a schema is autodetected or supplied in the job configuration. Schema
// update options are supported in two cases: when writeDisposition is
// WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the
// destination table is a partition of a table, specified by partition
// decorators. For normal tables, WRITE_TRUNCATE will always overwrite
// the schema. One or more of the following values are specified:
// ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema.
// ALLOW_FIELD_RELAXATION: allow relaxing a required field in the
// original schema to nullable.
SchemaUpdateOptions []string `json:"schemaUpdateOptions,omitempty"`
// SkipLeadingRows: [Optional] The number of rows at the top of a CSV
@@ -1374,10 +1477,20 @@ type JobConfigurationLoad struct {
SourceFormat string `json:"sourceFormat,omitempty"`
// SourceUris: [Required] The fully-qualified URIs that point to your
// data in Google Cloud Storage. Each URI can contain one '*' wildcard
// character and it must come after the 'bucket' name.
// 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.
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
@@ -1436,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
@@ -1503,13 +1620,16 @@ 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:
// https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is
// set to false, the values of allowLargeResults and flattenResults are
// ignored; query will be run as if allowLargeResults is true and
// flattenResults is false.
// set to false, the value of flattenResults is ignored; query will be
// run as if flattenResults is false.
UseLegacySql bool `json:"useLegacySql,omitempty"`
// UseQueryCache: [Optional] Whether to look for the result in the query
@@ -1528,13 +1648,13 @@ type JobConfigurationQuery struct {
// 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
// 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_EMPTY. 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.
// table data and uses the schema from the query result. 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_EMPTY. 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.
WriteDisposition string `json:"writeDisposition,omitempty"`
// ForceSendFields is a list of field names (e.g. "AllowLargeResults")
@@ -1571,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"`
@@ -1830,6 +1954,9 @@ type JobStatistics2 struct {
// TotalBytesProcessed: [Output-only] Total bytes processed for the job.
TotalBytesProcessed int64 `json:"totalBytesProcessed,omitempty,string"`
// TotalSlotMs: [Output-only] Slot-milliseconds for the job.
TotalSlotMs int64 `json:"totalSlotMs,omitempty,string"`
// UndeclaredQueryParameters: [Output-only, Experimental] Standard SQL
// only: list of undeclared query parameters detected during a dry run
// validation.
@@ -1859,6 +1986,13 @@ func (s *JobStatistics2) MarshalJSON() ([]byte, error) {
}
type JobStatistics3 struct {
// BadRecords: [Output-only] The number of bad records encountered. Note
// that if the job has failed because of more bad records encountered
// than the maximum allowed in the load job configuration, then this
// number can be less than the total number of bad records present in
// the input data.
BadRecords int64 `json:"badRecords,omitempty,string"`
// InputFileBytes: [Output-only] Number of bytes of source data in a
// load job.
InputFileBytes int64 `json:"inputFileBytes,omitempty,string"`
@@ -1875,7 +2009,7 @@ type JobStatistics3 struct {
// change.
OutputRows int64 `json:"outputRows,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "InputFileBytes") to
// ForceSendFields is a list of field names (e.g. "BadRecords") 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
@@ -1883,13 +2017,12 @@ type JobStatistics3 struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "InputFileBytes") 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. "BadRecords") 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:"-"`
}
@@ -2269,9 +2402,8 @@ type QueryRequest struct {
// 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 values of allowLargeResults and flattenResults are
// ignored; query will be run as if allowLargeResults is true and
// flattenResults is false.
// set to false, the value of flattenResults is ignored; query will be
// run as if flattenResults is false.
//
// Default: true
UseLegacySql *bool `json:"useLegacySql,omitempty"`
@@ -2433,6 +2565,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"`
@@ -3028,8 +3164,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
@@ -4552,17 +4694,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
@@ -4583,12 +4721,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
}
@@ -4603,11 +4736,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
}
@@ -4616,7 +4745,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
}
@@ -4661,27 +4790,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
@@ -4717,20 +4835,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()
@@ -5193,6 +5301,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 {
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -23,7 +23,7 @@
"basePath": "/blogger/v2/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "blogger/v2/",
"batchPath": "batch",
"batchPath": "batch/blogger/v2",
"parameters": {
"alt": {
"type": "string",
+1 -1
View File
@@ -23,7 +23,7 @@
"basePath": "/blogger/v3/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "blogger/v3/",
"batchPath": "batch",
"batchPath": "batch/blogger/v3",
"parameters": {
"alt": {
"type": "string",
+1 -1
View File
@@ -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",
+8 -112
View File
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/euj94Rd_zZNye-Ex23VYZId4hug\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/uAzZjTyNjvCXQxJAVHPs_CfUo-M\"",
"discoveryVersion": "v1",
"id": "calendar:v3",
"name": "calendar",
"version": "v3",
"revision": "20170528",
"revision": "20170905",
"title": "Calendar API",
"description": "Manipulates events and other calendar data.",
"ownerDomain": "google.com",
@@ -20,7 +20,7 @@
"basePath": "/calendar/v3/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "calendar/v3/",
"batchPath": "batch",
"batchPath": "batch/calendar/v3",
"parameters": {
"alt": {
"type": "string",
@@ -455,42 +455,6 @@
}
}
},
"DeepLinkData": {
"id": "DeepLinkData",
"type": "object",
"properties": {
"links": {
"type": "array",
"items": {
"$ref": "Link"
}
},
"url": {
"type": "string"
}
}
},
"DisplayInfo": {
"id": "DisplayInfo",
"type": "object",
"properties": {
"appIconUrl": {
"type": "string"
},
"appShortTitle": {
"type": "string"
},
"appTitle": {
"type": "string"
},
"linkShortTitle": {
"type": "string"
},
"linkTitle": {
"type": "string"
}
}
},
"Error": {
"id": "Error",
"type": "object",
@@ -805,7 +769,7 @@
},
"transparency": {
"type": "string",
"description": "Whether the event blocks time on the calendar. Optional. Possible values are: \n- \"opaque\" - The event blocks time on the calendar. This is the default value. \n- \"transparent\" - The event does not block time on the calendar.",
"description": "Whether the event blocks time on the calendar. Optional. Possible values are: \n- \"opaque\" - Default value. The event does block time on the calendar. This is equivalent to setting Show me as to Busy in the Calendar UI. \n- \"transparent\" - The event does not block time on the calendar. This is equivalent to setting Show me as to Available in the Calendar UI.",
"default": "opaque"
},
"updated": {
@@ -931,20 +895,6 @@
}
}
},
"EventHabitInstance": {
"id": "EventHabitInstance",
"type": "object",
"properties": {
"data": {
"$ref": "HabitInstanceData",
"description": "Metadata specific to this instance."
},
"parentId": {
"type": "string",
"description": "Id of the habit this instance belongs to."
}
}
},
"EventReminder": {
"id": "EventReminder",
"type": "object",
@@ -1161,60 +1111,6 @@
}
}
},
"HabitInstanceData": {
"id": "HabitInstanceData",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"statusInferred": {
"type": "boolean"
},
"type": {
"type": "string"
}
}
},
"LaunchInfo": {
"id": "LaunchInfo",
"type": "object",
"properties": {
"appId": {
"type": "string"
},
"installUrl": {
"type": "string"
},
"intentAction": {
"type": "string"
},
"uri": {
"type": "string"
}
}
},
"Link": {
"id": "Link",
"type": "object",
"properties": {
"applinkingSource": {
"type": "string"
},
"displayInfo": {
"$ref": "DisplayInfo"
},
"launchInfo": {
"$ref": "LaunchInfo"
},
"platform": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"Setting": {
"id": "Setting",
"type": "object",
@@ -2295,13 +2191,13 @@
},
"timeMax": {
"type": "string",
"description": "Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.",
"description": "Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If timeMin is set, timeMax must be greater than timeMin.",
"format": "date-time",
"location": "query"
},
"timeMin": {
"type": "string",
"description": "Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.",
"description": "Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If timeMax is set, timeMin must be smaller than timeMax.",
"format": "date-time",
"location": "query"
},
@@ -2610,13 +2506,13 @@
},
"timeMax": {
"type": "string",
"description": "Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.",
"description": "Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If timeMin is set, timeMax must be greater than timeMin.",
"format": "date-time",
"location": "query"
},
"timeMin": {
"type": "string",
"description": "Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.",
"description": "Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If timeMax is set, timeMin must be smaller than timeMax.",
"format": "date-time",
"location": "query"
},
+13 -200
View File
@@ -740,68 +740,6 @@ func (s *Colors) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DeepLinkData struct {
Links []*Link `json:"links,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Links") 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. "Links") 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 *DeepLinkData) MarshalJSON() ([]byte, error) {
type noMethod DeepLinkData
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DisplayInfo struct {
AppIconUrl string `json:"appIconUrl,omitempty"`
AppShortTitle string `json:"appShortTitle,omitempty"`
AppTitle string `json:"appTitle,omitempty"`
LinkShortTitle string `json:"linkShortTitle,omitempty"`
LinkTitle string `json:"linkTitle,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppIconUrl") 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. "AppIconUrl") 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 *DisplayInfo) MarshalJSON() ([]byte, error) {
type noMethod DisplayInfo
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Error struct {
// Domain: Domain, or broad category, of the error.
Domain string `json:"domain,omitempty"`
@@ -1021,9 +959,11 @@ type Event struct {
// Transparency: Whether the event blocks time on the calendar.
// Optional. Possible values are:
// - "opaque" - The event blocks time on the calendar. This is the
// default value.
// - "transparent" - The event does not block time on the calendar.
// - "opaque" - Default value. The event does block time on the
// calendar. This is equivalent to setting Show me as to Busy in the
// Calendar UI.
// - "transparent" - The event does not block time on the calendar. This
// is equivalent to setting Show me as to Available in the Calendar UI.
Transparency string `json:"transparency,omitempty"`
// Updated: Last modification time of the event (as a RFC3339
@@ -1465,36 +1405,6 @@ func (s *EventDateTime) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type EventHabitInstance struct {
// Data: Metadata specific to this instance.
Data *HabitInstanceData `json:"data,omitempty"`
// ParentId: Id of the habit this instance belongs to.
ParentId string `json:"parentId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Data") 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. "Data") 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 *EventHabitInstance) MarshalJSON() ([]byte, error) {
type noMethod EventHabitInstance
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type EventReminder struct {
// Method: The method used by this reminder. Possible values are:
// - "email" - Reminders are sent via email.
@@ -1794,103 +1704,6 @@ func (s *FreeBusyResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type HabitInstanceData struct {
Status string `json:"status,omitempty"`
StatusInferred bool `json:"statusInferred,omitempty"`
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Status") 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. "Status") 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 *HabitInstanceData) MarshalJSON() ([]byte, error) {
type noMethod HabitInstanceData
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LaunchInfo struct {
AppId string `json:"appId,omitempty"`
InstallUrl string `json:"installUrl,omitempty"`
IntentAction string `json:"intentAction,omitempty"`
Uri string `json:"uri,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppId") 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. "AppId") 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 *LaunchInfo) MarshalJSON() ([]byte, error) {
type noMethod LaunchInfo
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Link struct {
ApplinkingSource string `json:"applinkingSource,omitempty"`
DisplayInfo *DisplayInfo `json:"displayInfo,omitempty"`
LaunchInfo *LaunchInfo `json:"launchInfo,omitempty"`
Platform string `json:"platform,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApplinkingSource") 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. "ApplinkingSource") 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 *Link) MarshalJSON() ([]byte, error) {
type noMethod Link
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Setting struct {
// Etag: ETag of the resource.
Etag string `json:"etag,omitempty"`
@@ -6278,7 +6091,7 @@ func (c *EventsListCall) SyncToken(syncToken string) *EventsListCall {
// not to filter by start time. Must be an RFC3339 timestamp with
// mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00,
// 2011-06-03T10:00:00Z. Milliseconds may be provided but will be
// ignored.
// ignored. If timeMin is set, timeMax must be greater than timeMin.
func (c *EventsListCall) TimeMax(timeMax string) *EventsListCall {
c.urlParams_.Set("timeMax", timeMax)
return c
@@ -6289,7 +6102,7 @@ func (c *EventsListCall) TimeMax(timeMax string) *EventsListCall {
// to filter by end time. Must be an RFC3339 timestamp with mandatory
// time zone offset, e.g., 2011-06-03T10:00:00-07:00,
// 2011-06-03T10:00:00Z. Milliseconds may be provided but will be
// ignored.
// ignored. If timeMax is set, timeMin must be smaller than timeMax.
func (c *EventsListCall) TimeMin(timeMin string) *EventsListCall {
c.urlParams_.Set("timeMin", timeMin)
return c
@@ -6500,13 +6313,13 @@ func (c *EventsListCall) Do(opts ...googleapi.CallOption) (*Events, error) {
// "type": "string"
// },
// "timeMax": {
// "description": "Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.",
// "description": "Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If timeMin is set, timeMax must be greater than timeMin.",
// "format": "date-time",
// "location": "query",
// "type": "string"
// },
// "timeMin": {
// "description": "Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.",
// "description": "Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If timeMax is set, timeMin must be smaller than timeMax.",
// "format": "date-time",
// "location": "query",
// "type": "string"
@@ -7429,7 +7242,7 @@ func (c *EventsWatchCall) SyncToken(syncToken string) *EventsWatchCall {
// not to filter by start time. Must be an RFC3339 timestamp with
// mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00,
// 2011-06-03T10:00:00Z. Milliseconds may be provided but will be
// ignored.
// ignored. If timeMin is set, timeMax must be greater than timeMin.
func (c *EventsWatchCall) TimeMax(timeMax string) *EventsWatchCall {
c.urlParams_.Set("timeMax", timeMax)
return c
@@ -7440,7 +7253,7 @@ func (c *EventsWatchCall) TimeMax(timeMax string) *EventsWatchCall {
// to filter by end time. Must be an RFC3339 timestamp with mandatory
// time zone offset, e.g., 2011-06-03T10:00:00-07:00,
// 2011-06-03T10:00:00Z. Milliseconds may be provided but will be
// ignored.
// ignored. If timeMax is set, timeMin must be smaller than timeMax.
func (c *EventsWatchCall) TimeMin(timeMin string) *EventsWatchCall {
c.urlParams_.Set("timeMin", timeMin)
return c
@@ -7643,13 +7456,13 @@ func (c *EventsWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) {
// "type": "string"
// },
// "timeMax": {
// "description": "Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.",
// "description": "Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If timeMin is set, timeMax must be greater than timeMin.",
// "format": "date-time",
// "location": "query",
// "type": "string"
// },
// "timeMin": {
// "description": "Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.",
// "description": "Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If timeMax is set, timeMin must be smaller than timeMax.",
// "format": "date-time",
// "location": "query",
// "type": "string"
+1 -1
View File
@@ -21,7 +21,7 @@
"basePath": "/civicinfo/v2/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "civicinfo/v2/",
"batchPath": "batch",
"batchPath": "batch/civicinfo/v2",
"parameters": {
"alt": {
"type": "string",
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+357 -8
View File
@@ -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,15 +571,40 @@
}
},
"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": "20170524",
"revision": "20170813",
"basePath": "",
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"canonicalName": "Cloudbilling",
"discoveryVersion": "v1",
"fullyEncodeReservedExpansion": true,
"baseUrl": "https://cloudbilling.googleapis.com/",
"name": "cloudbilling",
"parameters": {
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+113 -8
View File
@@ -141,6 +141,7 @@ type ProjectsTriggersService struct {
// - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource
// or
// resolved from the specified branch or tag.
// - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
type Build struct {
// BuildTriggerId: The ID of the BuildTrigger that triggered this build,
// if it was
@@ -205,6 +206,9 @@ type Build struct {
// @OutputOnly
Results *Results `json:"results,omitempty"`
// Secrets: Secrets to decrypt using Cloud KMS.
Secrets []*Secret `json:"secrets,omitempty"`
// Source: Describes where to find the source files to build.
Source *Source `json:"source,omitempty"`
@@ -431,6 +435,24 @@ type BuildStep struct {
// later build step.
Name string `json:"name,omitempty"`
// SecretEnv: A list of environment variables which are encrypted using
// a Cloud KMS
// crypto key. These values must be specified in the build's secrets.
SecretEnv []string `json:"secretEnv,omitempty"`
// Volumes: List of volumes to mount into the build step.
//
// Each volume will be created as an empty volume prior to execution of
// the
// build step. Upon completion of the build, volumes and their contents
// will
// be discarded.
//
// Using a named volume in only one step is not valid as it is
// indicative
// of a mis-configured build request.
Volumes []*Volume `json:"volumes,omitempty"`
// WaitFor: The ID(s) of the step(s) that this build step depends
// on.
// This build step will not start until all the build steps in
@@ -771,8 +793,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"`
@@ -919,6 +941,48 @@ func (s *Results) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Secret: Secret pairs a set of secret environment variables containing
// encrypted
// values with the Cloud KMS key to use to decrypt the value.
type Secret struct {
// KmsKeyName: Cloud KMS key name to use to decrypt these envs.
KmsKeyName string `json:"kmsKeyName,omitempty"`
// SecretEnv: Map of environment variable name to its encrypted
// value.
//
// Secret environment variables must be unique across all of a
// build's
// secrets, and must be used by at least one build step. Values can be
// at most
// 1 KB in size. There can be at most ten secret values across all of
// a
// build's secrets.
SecretEnv map[string]string `json:"secretEnv,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 *Secret) MarshalJSON() ([]byte, error) {
type noMethod Secret
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Source: Source describes the location of the source in a supported
// storage
// service.
@@ -927,9 +991,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
@@ -1094,9 +1157,9 @@ type Status struct {
// google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There will
// be a
// common set of message types for APIs to use.
// Details: A list of messages that carry the error details. There is a
// common set of
// message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in
@@ -1175,6 +1238,48 @@ func (s *StorageSource) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Volume: Volume describes a Docker container volume which is mounted
// into build steps
// in order to persist files across build step execution.
type Volume struct {
// Name: Name of the volume to mount.
//
// Volume names must be unique per build step and must be valid names
// for
// Docker volumes. Each named volume must be used by at least two build
// steps.
Name string `json:"name,omitempty"`
// Path: Path at which to mount the volume.
//
// Paths must be absolute and cannot conflict with other volume paths on
// the
// same build step or with certain reserved volume paths.
Path string `json:"path,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Volume) MarshalJSON() ([]byte, error) {
type noMethod Volume
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "cloudbuild.operations.cancel":
type OperationsCancelCall struct {
File diff suppressed because it is too large Load Diff
+91 -84
View File
@@ -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
@@ -816,7 +815,7 @@ type ListBreakpointsResponse struct {
// breakpoint.
// The fields: `stack_frames`, `evaluated_expressions` and
// `variable_table`
// are cleared on each breakpoint regardless of it's status.
// are cleared on each breakpoint regardless of its status.
Breakpoints []*Breakpoint `json:"breakpoints,omitempty"`
// NextWaitToken: A wait token that can be used in the next call to
@@ -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
@@ -1225,7 +1229,9 @@ func (s *StatusMessage) MarshalJSON() ([]byte, error) {
// breakpoint.
type UpdateActiveBreakpointRequest struct {
// Breakpoint: Updated breakpoint information.
// The field 'id' must be set.
// 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",
@@ -1610,8 +1616,8 @@ type ControllerDebuggeesBreakpointsListCall struct {
// List: Returns the list of all active breakpoints for the
// debuggee.
//
// The breakpoint specification (location, condition, and
// expression
// The breakpoint specification (`location`, `condition`, and
// `expressions`
// fields) is semantically immutable, although the field values
// may
// change. For example, an agent may update the location line number
@@ -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
@@ -1753,7 +1761,7 @@ func (c *ControllerDebuggeesBreakpointsListCall) Do(opts ...googleapi.CallOption
}
return ret, nil
// {
// "description": "Returns the list of all active breakpoints for the debuggee.\n\nThe breakpoint specification (location, condition, and expression\nfields) is semantically immutable, although the field values may\nchange. For example, an agent may update the location line number\nto reflect the actual line where the breakpoint was set, but this\ndoesn't change the breakpoint semantics.\n\nThis means that an agent does not need to check if a breakpoint has changed\nwhen it encounters the same breakpoint on a successive call.\nMoreover, an agent should remember the breakpoints that are completed\nuntil the controller removes them from the active list to avoid\nsetting those breakpoints again.",
// "description": "Returns the list of all active breakpoints for the debuggee.\n\nThe breakpoint specification (`location`, `condition`, and `expressions`\nfields) is semantically immutable, although the field values may\nchange. For example, an agent may update the location line number\nto reflect the actual line where the breakpoint was set, but this\ndoesn't change the breakpoint semantics.\n\nThis means that an agent does not need to check if a breakpoint has changed\nwhen it encounters the same breakpoint on a successive call.\nMoreover, an agent should remember the breakpoints that are completed\nuntil the controller removes them from the active list to avoid\nsetting those breakpoints again.",
// "flatPath": "v2/controller/debuggees/{debuggeeId}/breakpoints",
// "httpMethod": "GET",
// "id": "clouddebugger.controller.debuggees.breakpoints.list",
@@ -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,15 +1811,14 @@ 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
// value
// does not change the breakpoint specification. Updates to the
// `location`,
// `condition` and `expression` fields should not alter the
// `condition` and `expressions` fields should not alter the
// breakpoint
// semantics. These may only make changes such as canonicalizing a
// value
@@ -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 `expression` 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"
// },
File diff suppressed because it is too large Load Diff
@@ -146,9 +146,7 @@ type ErrorContext struct {
// For a logged exception this would be the source line where
// the
// exception is logged, usually close to the place where it was
// caught. This value is in contrast to
// `Exception.cause_location`,
// which describes the source line where the exception was thrown.
// caught.
ReportLocation *SourceLocation `json:"reportLocation,omitempty"`
// SourceReferences: Source code that was used to build the executable
+366 -107
View File
@@ -1,112 +1,14 @@
{
"rootUrl": "https://cloudfunctions.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "cloudfunctions",
"batchPath": "batch",
"id": "cloudfunctions:v1",
"documentationLink": "https://cloud.google.com/functions",
"revision": "20170704",
"title": "Google Cloud Functions API",
"ownerName": "Google",
"discoveryVersion": "v1",
"version_module": "True",
"resources": {},
"parameters": {
"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": {
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean",
"location": "query"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string"
},
"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"
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
}
},
"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",
"versionId": {
"format": "int64",
"description": "Version id of the function created or updated by an API call.\nThis field is only pupulated for Create and Update operations.",
"type": "string"
},
"request": {
@@ -118,6 +20,8 @@
"type": "object"
},
"type": {
"description": "Type of operation.",
"type": "string",
"enumDescriptions": [
"Unknown operation type.",
"Triggered by CreateFunction call",
@@ -129,23 +33,378 @@
"CREATE_FUNCTION",
"UPDATE_FUNCTION",
"DELETE_FUNCTION"
],
"description": "Type of operation.",
]
},
"target": {
"description": "Target of the operation - for example\nprojects/project-1/locations/region-1/functions/function-1",
"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": {
"details": {
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"type": "array"
},
"code": {
"format": "int32",
"description": "The status code, which should be an enum value of google.rpc.Code.",
"type": "integer"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
}
},
"id": "Status"
},
"ListLocationsResponse": {
"description": "The response message for Locations.ListLocations.",
"type": "object",
"properties": {
"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": {
"labels": {
"description": "Cross-service attributes for the location. For example\n\n {\"cloud.googleapis.com/region\": \"us-east1\"}",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"description": "Resource name for the location, which may vary between implementations.\nFor example: `\"projects/example-project/locations/us-east1\"`",
"type": "string"
},
"locationId": {
"description": "The canonical id for this location. For example: `\"us-east1\"`.",
"type": "string"
},
"metadata": {
"description": "Service-specific metadata. For example the available capacity at the given\nlocation.",
"type": "object",
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
}
}
},
"id": "Location"
},
"ListOperationsResponse": {
"description": "The response message for Operations.ListOperations.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
},
"operations": {
"description": "A list of operations that matches the specified filter in the request.",
"items": {
"$ref": "Operation"
},
"type": "array"
}
},
"id": "ListOperationsResponse"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
"type": "object",
"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": {
"description": "The error result of the operation in case of failure or cancellation.",
"$ref": "Status"
},
"metadata": {
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
"type": "object",
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
}
}
},
"id": "Operation"
}
},
"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"
},
"protocol": "rest",
"canonicalName": "Cloud Functions",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},
"rootUrl": "https://cloudfunctions.googleapis.com/",
"ownerDomain": "google.com",
"name": "cloudfunctions",
"batchPath": "batch",
"fullyEncodeReservedExpansion": true,
"title": "Google Cloud Functions API",
"ownerName": "Google",
"resources": {
"operations": {
"methods": {
"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.",
"parameterOrder": [
"name"
],
"httpMethod": "GET",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"name": {
"pattern": "^operations/[^/]+$",
"location": "path",
"description": "The name of the operation resource.",
"type": "string",
"required": true
}
},
"flatPath": "v1/operations/{operationsId}",
"id": "cloudfunctions.operations.get",
"path": "v1/{+name}"
},
"list": {
"httpMethod": "GET",
"parameterOrder": [],
"response": {
"$ref": "ListOperationsResponse"
},
"parameters": {
"pageSize": {
"format": "int32",
"description": "The standard list page size.",
"type": "integer",
"location": "query"
},
"filter": {
"location": "query",
"description": "The standard list filter.",
"type": "string"
},
"pageToken": {
"location": "query",
"description": "The standard list page token.",
"type": "string"
},
"name": {
"location": "query",
"description": "The name of the operation's parent resource.",
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1/operations",
"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."
}
}
},
"projects": {
"resources": {
"locations": {
"methods": {
"list": {
"description": "Lists information about the supported locations for this service.",
"response": {
"$ref": "ListLocationsResponse"
},
"parameterOrder": [
"name"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"pageSize": {
"format": "int32",
"description": "The standard list page size.",
"type": "integer",
"location": "query"
},
"filter": {
"location": "query",
"description": "The standard list filter.",
"type": "string"
},
"pageToken": {
"description": "The standard list page token.",
"type": "string",
"location": "query"
},
"name": {
"location": "path",
"description": "The resource that owns the locations collection, if applicable.",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+$"
}
},
"flatPath": "v1/projects/{projectsId}/locations",
"id": "cloudfunctions.projects.locations.list",
"path": "v1/{+name}/locations"
}
}
}
}
}
},
"parameters": {
"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"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"callback": {
"description": "JSONP",
"type": "string",
"location": "query"
},
"$.xgafv": {
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query"
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response.",
"default": "json"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"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": {
"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/",
"canonicalName": "Cloud Functions",
"servicePath": "",
"kind": "discovery#restDescription",
"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": "20170926"
}
+911
View File
@@ -45,11 +45,19 @@ const apiName = "cloudfunctions"
const apiVersion = "v1"
const basePath = "https://cloudfunctions.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Operations = NewOperationsService(s)
s.Projects = NewProjectsService(s)
return s, nil
}
@@ -57,6 +65,10 @@ type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Operations *OperationsService
Projects *ProjectsService
}
func (s *Service) userAgent() string {
@@ -66,6 +78,229 @@ func (s *Service) userAgent() string {
return googleapi.UserAgent + " " + s.UserAgent
}
func NewOperationsService(s *Service) *OperationsService {
rs := &OperationsService{s: s}
return rs
}
type OperationsService struct {
s *Service
}
func NewProjectsService(s *Service) *ProjectsService {
rs := &ProjectsService{s: s}
rs.Locations = NewProjectsLocationsService(s)
return rs
}
type ProjectsService struct {
s *Service
Locations *ProjectsLocationsService
}
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
rs := &ProjectsLocationsService{s: s}
return rs
}
type ProjectsLocationsService struct {
s *Service
}
// ListLocationsResponse: The response message for
// Locations.ListLocations.
type ListLocationsResponse struct {
// Locations: A list of locations that matches the specified filter in
// the request.
Locations []*Location `json:"locations,omitempty"`
// NextPageToken: The standard List next-page token.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Locations") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Locations") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListLocationsResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListOperationsResponse: The response message for
// Operations.ListOperations.
type ListOperationsResponse struct {
// NextPageToken: The standard List next-page token.
NextPageToken string `json:"nextPageToken,omitempty"`
// Operations: A list of operations that matches the specified filter in
// the request.
Operations []*Operation `json:"operations,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListOperationsResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Location: A resource that represents Google Cloud Platform location.
type Location struct {
// Labels: Cross-service attributes for the location. For example
//
// {"cloud.googleapis.com/region": "us-east1"}
Labels map[string]string `json:"labels,omitempty"`
// LocationId: The canonical id for this location. For example:
// "us-east1".
LocationId string `json:"locationId,omitempty"`
// Metadata: Service-specific metadata. For example the available
// capacity at the given
// location.
Metadata googleapi.RawMessage `json:"metadata,omitempty"`
// Name: Resource name for the location, which may vary between
// implementations.
// For example: "projects/example-project/locations/us-east1"
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Labels") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Labels") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Location) MarshalJSON() ([]byte, error) {
type noMethod Location
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Operation: This resource represents a long-running operation that is
// the result of a
// network API call.
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
// available.
Done bool `json:"done,omitempty"`
// Error: The error result of the operation in case of failure or
// cancellation.
Error *Status `json:"error,omitempty"`
// Metadata: Service-specific metadata associated with the operation.
// It typically
// contains progress information and common metadata such as create
// time.
// Some services might not provide such metadata. Any method that
// returns a
// long-running operation should document the metadata type, if any.
Metadata googleapi.RawMessage `json:"metadata,omitempty"`
// Name: The server-assigned name, which is only unique within the same
// service that
// originally returns it. If you use the default HTTP mapping,
// the
// `name` should have the format of `operations/some/unique/name`.
Name string `json:"name,omitempty"`
// Response: The normal response of the operation in case of success.
// If the original
// method returns no data on success, such as `Delete`, the response
// is
// `google.protobuf.Empty`. If the original method is
// standard
// `Get`/`Create`/`Update`, the response should be the resource. For
// other
// methods, the response should have the type `XxxResponse`, where
// `Xxx`
// is the original method name. For example, if the original method
// name
// is `TakeSnapshot()`, the inferred response type
// is
// `TakeSnapshotResponse`.
Response googleapi.RawMessage `json:"response,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Done") 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. "Done") 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 *Operation) MarshalJSON() ([]byte, error) {
type noMethod Operation
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// OperationMetadataV1Beta2: Metadata describing an Operation
type OperationMetadataV1Beta2 struct {
// Request: The original request that started the operation.
@@ -85,6 +320,11 @@ type OperationMetadataV1Beta2 struct {
// "DELETE_FUNCTION" - Triggered by DeleteFunction call.
Type string `json:"type,omitempty"`
// VersionId: Version id of the function created or updated by an API
// call.
// This field is only pupulated for Create and Update operations.
VersionId int64 `json:"versionId,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Request") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -107,3 +347,674 @@ func (s *OperationMetadataV1Beta2) MarshalJSON() ([]byte, error) {
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Status: The `Status` type defines a logical error model that is
// suitable for different
// programming environments, including REST APIs and RPC APIs. It is
// used by
// [gRPC](https://github.com/grpc). The error model is designed to
// be:
//
// - Simple to use and understand for most users
// - Flexible enough to meet unexpected needs
//
// # Overview
//
// The `Status` message contains three pieces of data: error code, error
// message,
// and error details. The error code should be an enum value
// of
// google.rpc.Code, but it may accept additional error codes if needed.
// The
// error message should be a developer-facing English message that
// helps
// developers *understand* and *resolve* the error. If a localized
// user-facing
// error message is needed, put the localized message in the error
// details or
// localize it in the client. The optional error details may contain
// arbitrary
// information about the error. There is a predefined set of error
// detail types
// in the package `google.rpc` that can be used for common error
// conditions.
//
// # Language mapping
//
// The `Status` message is the logical representation of the error
// model, but it
// is not necessarily the actual wire format. When the `Status` message
// is
// exposed in different client libraries and different wire protocols,
// it can be
// mapped differently. For example, it will likely be mapped to some
// exceptions
// in Java, but more likely mapped to some error codes in C.
//
// # Other uses
//
// The error model and the `Status` message can be used in a variety
// of
// environments, either with or without APIs, to provide a
// consistent developer experience across different
// environments.
//
// Example uses of this error model include:
//
// - Partial errors. If a service needs to return partial errors to the
// client,
// it may embed the `Status` in the normal response to indicate the
// partial
// errors.
//
// - Workflow errors. A typical workflow has multiple steps. Each step
// may
// have a `Status` message for error reporting.
//
// - Batch operations. If a client uses batch request and batch
// response, the
// `Status` message should be used directly inside batch response,
// one for
// each error sub-response.
//
// - Asynchronous operations. If an API call embeds asynchronous
// operation
// results in its response, the status of those operations should
// be
// represented directly using the `Status` message.
//
// - Logging. If some API errors are stored in logs, the message
// `Status` could
// be used directly after any stripping needed for security/privacy
// reasons.
type Status struct {
// Code: The status code, which should be an enum value of
// google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There is a
// common set of
// message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in
// English. Any
// user-facing error message should be localized and sent in
// the
// google.rpc.Status.details field, or localized by the client.
Message string `json:"message,omitempty"`
// ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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 *Status) MarshalJSON() ([]byte, error) {
type noMethod Status
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "cloudfunctions.operations.get":
type OperationsGetCall struct {
s *Service
name string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Gets the latest state of a long-running operation. Clients can
// use this
// method to poll the operation result at intervals as recommended by
// the API
// service.
func (r *OperationsService) Get(name string) *OperationsGetCall {
c := &OperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall {
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 *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall {
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 *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall {
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 *OperationsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "cloudfunctions.operations.get" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
// "flatPath": "v1/operations/{operationsId}",
// "httpMethod": "GET",
// "id": "cloudfunctions.operations.get",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The name of the operation resource.",
// "location": "path",
// "pattern": "^operations/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/{+name}",
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "cloudfunctions.operations.list":
type OperationsListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Lists operations that match the specified filter in the
// request. If the
// server doesn't support this method, it returns
// `UNIMPLEMENTED`.
//
// NOTE: the `name` binding allows API services to override the
// binding
// to use different resource name schemes, such as `users/*/operations`.
// To
// override the binding, API services can add a binding such
// as
// "/v1/{name=users/*}/operations" to their service configuration.
// For backwards compatibility, the default name includes the
// operations
// collection id, however overriding users must ensure the name
// binding
// is the parent resource, without the operations collection id.
func (r *OperationsService) List() *OperationsListCall {
c := &OperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// Filter sets the optional parameter "filter": The standard list
// filter.
func (c *OperationsListCall) Filter(filter string) *OperationsListCall {
c.urlParams_.Set("filter", filter)
return c
}
// Name sets the optional parameter "name": The name of the operation's
// parent resource.
func (c *OperationsListCall) Name(name string) *OperationsListCall {
c.urlParams_.Set("name", name)
return c
}
// PageSize sets the optional parameter "pageSize": The standard list
// page size.
func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": The standard list
// page token.
func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall {
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 *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall {
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 *OperationsListCall) Context(ctx context.Context) *OperationsListCall {
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 *OperationsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/operations")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "cloudfunctions.operations.list" call.
// Exactly one of *ListOperationsResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListOperationsResponse.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 *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
// "flatPath": "v1/operations",
// "httpMethod": "GET",
// "id": "cloudfunctions.operations.list",
// "parameterOrder": [],
// "parameters": {
// "filter": {
// "description": "The standard list filter.",
// "location": "query",
// "type": "string"
// },
// "name": {
// "description": "The name of the operation's parent resource.",
// "location": "query",
// "type": "string"
// },
// "pageSize": {
// "description": "The standard list page size.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "The standard list page token.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/operations",
// "response": {
// "$ref": "ListOperationsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "cloudfunctions.projects.locations.list":
type ProjectsLocationsListCall struct {
s *Service
name string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Lists information about the supported locations for this
// service.
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
return c
}
// Filter sets the optional parameter "filter": The standard list
// filter.
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
c.urlParams_.Set("filter", filter)
return c
}
// PageSize sets the optional parameter "pageSize": The standard list
// page size.
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": The standard list
// page token.
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ProjectsLocationsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "cloudfunctions.projects.locations.list" call.
// Exactly one of *ListLocationsResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListLocationsResponse.ServerResponse.Header or (if a response was
// returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListLocationsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Lists information about the supported locations for this service.",
// "flatPath": "v1/projects/{projectsId}/locations",
// "httpMethod": "GET",
// "id": "cloudfunctions.projects.locations.list",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "filter": {
// "description": "The standard list filter.",
// "location": "query",
// "type": "string"
// },
// "name": {
// "description": "The resource that owns the locations collection, if applicable.",
// "location": "path",
// "pattern": "^projects/[^/]+$",
// "required": true,
// "type": "string"
// },
// "pageSize": {
// "description": "The standard list page size.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "The standard list page token.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/{+name}/locations",
// "response": {
// "$ref": "ListLocationsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
File diff suppressed because it is too large Load Diff
+97 -6
View File
@@ -221,6 +221,9 @@ type CloudFunction struct {
// via URL.
HttpsTrigger *HTTPSTrigger `json:"httpsTrigger,omitempty"`
// Labels: Labels associated with this Cloud Function.
Labels map[string]string `json:"labels,omitempty"`
// LatestOperation: Output only. Name of the most recent operation
// modifying the function. If
// the function status is `DEPLOYING` or `DELETING`, then it points to
@@ -245,6 +248,29 @@ type CloudFunction struct {
// defined.
SourceRepository *SourceRepository `json:"sourceRepository,omitempty"`
// SourceRepositoryUrl: The URL pointing to the hosted repository where
// the function is defined.
// There are supported Cloud Source Repository URLs in the
// following
// formats:
//
// To refer to a specific
// commit:
// `https://source.developers.google.com/projects/*/repos/*/revis
// ions/*/paths/*`
// To refer to a moveable alias
// (branch):
// `https://source.developers.google.com/projects/*/repos/*/mov
// eable-aliases/*/paths/*`
// In particular, to refer to HEAD use `master` moveable alias.
// To refer to a specific fixed alias
// (tag):
// `https://source.developers.google.com/projects/*/repos/*/fixed-
// aliases/*/paths/*`
//
// You may omit `paths/*` if you want to use the main directory.
SourceRepositoryUrl string `json:"sourceRepositoryUrl,omitempty"`
// Status: Output only. Status of the function deployment.
//
// Possible values:
@@ -268,6 +294,12 @@ type CloudFunction struct {
// Function.
UpdateTime string `json:"updateTime,omitempty"`
// VersionId: Output only.
// The version identifier of the Cloud Function. Each deployment
// attempt
// results in a new version of a function being created.
VersionId int64 `json:"versionId,omitempty,string"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
@@ -313,9 +345,12 @@ type EventTrigger struct {
// `providers/cloud.storage/eventTypes/object.change`
//
// Handle a write to the Firebase Realtime Database
// `providers/firebase.database/eventTypes/data.write`
// `providers/google.firebase.database/eventTypes/ref.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
@@ -327,6 +362,15 @@ type EventTrigger struct {
// project (`projects/*`)
Resource string `json:"resource,omitempty"`
// Service: The hostname of the service that should be observed.
//
// If no string is provided, the default service implementing the API
// will
// be used. For example, `storage.googleapis.com` is the default for
// all
// event types in the 'google.storage` namespace.
Service string `json:"service,omitempty"`
// ForceSendFields is a list of field names (e.g. "EventType") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -350,6 +394,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 {
@@ -543,8 +619,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"`
@@ -631,6 +707,11 @@ type OperationMetadataV1Beta2 struct {
// "DELETE_FUNCTION" - Triggered by DeleteFunction call.
Type string `json:"type,omitempty"`
// VersionId: Version id of the function created or updated by an API
// call.
// This field is only pupulated for Create and Update operations.
VersionId int64 `json:"versionId,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Request") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -654,6 +735,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 {
@@ -805,9 +896,9 @@ type Status struct {
// google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There will
// be a
// common set of message types for APIs to use.
// Details: A list of messages that carry the error details. There is a
// common set of
// message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+11 -315
View File
@@ -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
@@ -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",
File diff suppressed because it is too large Load Diff
@@ -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"`
@@ -2218,9 +2218,9 @@ type Status struct {
// google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There will
// be a
// common set of message types for APIs to use.
// Details: A list of messages that carry the error details. There is a
// common set of
// message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in
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
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"`
@@ -993,9 +993,9 @@ type Status struct {
// google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There will
// be a
// common set of message types for APIs to use.
// Details: A list of messages that carry the error details. There is a
// common set of
// message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+145 -144
View File
@@ -1,14 +1,63 @@
{
"kind": "discovery#restDescription",
"servicePath": "",
"description": "Send and retrieve trace data from Stackdriver Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Stackdriver Trace for display, reporting, and analysis.\n",
"basePath": "",
"revision": "20170626",
"revision": "20170927",
"documentationLink": "https://cloud.google.com/trace",
"id": "cloudtrace:v1",
"discoveryVersion": "v1",
"version_module": "True",
"version_module": true,
"schemas": {
"TraceSpan": {
"id": "TraceSpan",
"description": "A span represents a single timed event within a trace. Spans can be nested\nand form a trace tree. Often, a trace contains a root span that describes the\nend-to-end latency of an operation and, optionally, one or more subspans for\nits suboperations. Spans do not need to be contiguous. There may be gaps\nbetween spans in a trace.",
"type": "object",
"properties": {
"spanId": {
"format": "uint64",
"description": "Identifier for the span. Must be a 64-bit integer other than 0 and\nunique within a trace.",
"type": "string"
},
"parentSpanId": {
"format": "uint64",
"description": "ID of the parent span, if any. Optional.",
"type": "string"
},
"endTime": {
"format": "google-datetime",
"description": "End time of the span in nanoseconds from the UNIX epoch.",
"type": "string"
},
"startTime": {
"format": "google-datetime",
"description": "Start time of the span in nanoseconds from the UNIX epoch.",
"type": "string"
},
"kind": {
"enum": [
"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",
"enumDescriptions": [
"Unspecified.",
"Indicates that the span covers server-side handling of an RPC or other\nremote network request.",
"Indicates that the span covers the client-side wrapper around an RPC or\nother remote request."
]
},
"labels": {
"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"
}
}
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"type": "object",
@@ -16,8 +65,6 @@
"id": "Empty"
},
"ListTracesResponse": {
"description": "The response message for the `ListTraces` method.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "If defined, indicates that there are more traces that match the request\nand that this value should be passed to the next request to continue\nretrieving additional traces.",
@@ -31,7 +78,9 @@
"type": "array"
}
},
"id": "ListTracesResponse"
"id": "ListTracesResponse",
"description": "The response message for the `ListTraces` method.",
"type": "object"
},
"Trace": {
"description": "A trace describes how long it takes for an application to perform an\noperation. It consists of a set of spans, each of which represent a single\ntimed event within the operation.",
@@ -45,12 +94,12 @@
"type": "array"
},
"projectId": {
"type": "string",
"description": "Project ID of the Cloud project where the trace data is stored."
"description": "Project ID of the Cloud project where the trace data is stored.",
"type": "string"
},
"traceId": {
"description": "Globally unique identifier for the trace. This identifier is a 128-bit\nnumeric value formatted as a 32-byte hex string.",
"type": "string"
"type": "string",
"description": "Globally unique identifier for the trace. This identifier is a 128-bit\nnumeric value formatted as a 32-byte hex string."
}
},
"id": "Trace"
@@ -68,77 +117,25 @@
}
},
"id": "Traces"
},
"TraceSpan": {
"type": "object",
"properties": {
"startTime": {
"format": "google-datetime",
"description": "Start time of the span in nanoseconds from the UNIX epoch.",
"type": "string"
},
"kind": {
"enumDescriptions": [
"Unspecified.",
"Indicates that the span covers server-side handling of an RPC or other\nremote network request.",
"Indicates that the span covers the client-side wrapper around an RPC or\nother remote request."
],
"enum": [
"SPAN_KIND_UNSPECIFIED",
"RPC_SERVER",
"RPC_CLIENT"
],
"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": {
"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": {
"type": "string",
"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."
},
"spanId": {
"format": "uint64",
"description": "Identifier for the span. Must be a 64-bit integer other than 0 and\nunique within a trace.",
"type": "string"
},
"parentSpanId": {
"format": "uint64",
"description": "ID of the parent span, if any. Optional.",
"type": "string"
},
"endTime": {
"format": "google-datetime",
"description": "End time of the span in nanoseconds from the UNIX epoch.",
"type": "string"
}
},
"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."
}
},
"protocol": "rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"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"
},
"https://www.googleapis.com/auth/trace.append": {
"description": "Write Trace data for a project or application"
}
}
}
@@ -147,16 +144,24 @@
"ownerDomain": "google.com",
"name": "cloudtrace",
"batchPath": "batch",
"fullyEncodeReservedExpansion": true,
"title": "Stackdriver Trace API",
"ownerName": "Google",
"resources": {
"projects": {
"methods": {
"patchTraces": {
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
"description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing trace data. If the\nID does not match, a new trace is created.",
"request": {
"$ref": "Traces"
},
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"projectId"
],
"httpMethod": "PATCH",
"parameters": {
"projectId": {
"location": "path",
@@ -165,30 +170,21 @@
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"flatPath": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.patchTraces",
"path": "v1/projects/{projectId}/traces",
"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.",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"projectId"
],
"httpMethod": "PATCH"
"path": "v1/projects/{projectId}/traces"
}
},
"resources": {
"traces": {
"methods": {
"get": {
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
"id": "cloudtrace.projects.traces.get",
"path": "v1/projects/{projectId}/traces/{traceId}",
"description": "Gets a single trace by its ID.",
"httpMethod": "GET",
"response": {
"$ref": "Trace"
},
@@ -196,13 +192,16 @@
"projectId",
"traceId"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"parameters": {
"projectId": {
"type": "string",
"required": true,
"location": "path",
"description": "ID of the Cloud project where the trace data is stored."
"description": "ID of the Cloud project where the trace data is stored.",
"type": "string",
"required": true
},
"traceId": {
"location": "path",
@@ -211,29 +210,20 @@
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
]
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
"path": "v1/projects/{projectId}/traces/{traceId}",
"id": "cloudtrace.projects.traces.get"
},
"list": {
"description": "Returns of a list of traces that match the specified filter conditions.",
"response": {
"$ref": "ListTracesResponse"
},
"parameterOrder": [
"projectId"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"parameters": {
"orderBy": {
"location": "query",
"description": "Field used to sort the returned traces. Optional.\nCan be one of the following:\n\n* `trace_id`\n* `name` (`name` field of root span in the trace)\n* `duration` (difference between `end_time` and `start_time` fields of\n the root span)\n* `start` (`start_time` field of the root span)\n\nDescending order can be specified by appending `desc` to the sort field\n(for example, `name desc`).\n\nOnly one sort field is permitted.",
"type": "string"
"type": "string",
"location": "query"
},
"projectId": {
"location": "path",
@@ -242,32 +232,32 @@
"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"
},
"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": {
"type": "string",
"endTime": {
"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": {
"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",
"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.",
"type": "string"
},
"pageSize": {
"type": "integer",
"location": "query",
"format": "int32",
"description": "Maximum number of traces to return. If not specified or \u003c= 0, the\nimplementation selects a reasonable value. The implementation may\nreturn fewer traces than the requested page size. Optional."
"description": "Maximum number of traces to return. If not specified or \u003c= 0, the\nimplementation selects a reasonable value. The implementation may\nreturn fewer traces than the requested page size. Optional.",
"type": "integer"
},
"view": {
"location": "query",
@@ -282,8 +272,16 @@
}
},
"flatPath": "v1/projects/{projectId}/traces",
"path": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.traces.list",
"path": "v1/projects/{projectId}/traces"
"description": "Returns of a list of traces that match the specified filter conditions.",
"httpMethod": "GET",
"response": {
"$ref": "ListTracesResponse"
},
"parameterOrder": [
"projectId"
]
}
}
}
@@ -291,26 +289,36 @@
}
},
"parameters": {
"quotaUser": {
"access_token": {
"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.",
"description": "OAuth access token.",
"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"
},
"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",
"location": "query"
"type": "boolean"
},
"bearer_token": {
"type": "string",
"location": "query",
"description": "OAuth bearer token."
"description": "OAuth bearer token.",
"type": "string"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
"type": "string"
},
"upload_protocol": {
"location": "query",
@@ -318,10 +326,10 @@
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean"
"type": "boolean",
"location": "query",
"description": "Returns response with indentations and line breaks."
},
"uploadType": {
"location": "query",
@@ -334,7 +342,6 @@
"type": "string"
},
"$.xgafv": {
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
@@ -344,12 +351,13 @@
"1",
"2"
],
"description": "V1 error format."
"description": "V1 error format.",
"type": "string"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
"type": "string",
"location": "query"
},
"alt": {
"enum": [
@@ -366,18 +374,11 @@
"location": "query",
"description": "Data format for response.",
"default": "json"
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
}
},
"version": "v1",
"baseUrl": "https://cloudtrace.googleapis.com/"
"baseUrl": "https://cloudtrace.googleapis.com/",
"servicePath": "",
"description": "Send and retrieve trace data from Stackdriver Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Stackdriver Trace for display, reporting, and analysis.\n",
"kind": "discovery#restDescription"
}
+264 -398
View File
@@ -1,133 +1,29 @@
{
"revision": "20170626",
"documentationLink": "https://cloud.google.com/trace",
"basePath": "",
"id": "cloudtrace:v2",
"documentationLink": "https://cloud.google.com/trace",
"revision": "20170927",
"discoveryVersion": "v1",
"version_module": "True",
"version_module": true,
"schemas": {
"Trace": {
"id": "Trace",
"description": "A trace describes how long it takes for an application to perform some\noperations. It consists of a set of spans, each representing\nan operation and including time information and operation details.",
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The resource name of the trace in the following format:\n\n projects/[PROJECT_ID]/traces/TRACE_ID is a unique identifier for a trace within a project.\nThe ID is assigned when the trace is created."
}
}
},
"TimeEvents": {
"description": "A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation\non the span, consisting of either user-supplied key:value pairs, or\ndetails of an RPC message sent/received on the network.",
"type": "object",
"properties": {
"droppedAnnotationsCount": {
"format": "int32",
"description": "The number of dropped annotations in all the included time events.\nIf the value is 0, then no annotations were dropped.",
"type": "integer"
},
"timeEvent": {
"description": "A collection of `TimeEvent`s.",
"items": {
"$ref": "TimeEvent"
},
"type": "array"
},
"droppedNetworkEventsCount": {
"format": "int32",
"description": "The number of dropped network events in all the included time events.\nIf the value is 0, then no network events were dropped.",
"type": "integer"
}
},
"id": "TimeEvents"
},
"Module": {
"description": "Binary module.",
"type": "object",
"properties": {
"module": {
"$ref": "TruncatableString",
"description": "For example: main binary, kernel modules, and dynamic libraries\nsuch as libc.so, sharedlib.so (up to 256 bytes)."
},
"buildId": {
"$ref": "TruncatableString",
"description": "A unique identifier for the module, usually a hash of its\ncontents (up to 128 bytes)."
}
},
"id": "Module"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object",
"properties": {
"code": {
"format": "int32",
"description": "The status code, which should be an enum value of google.rpc.Code.",
"type": "integer"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
},
"details": {
"description": "A list of messages that carry the error details. There will be a\ncommon set of message types for APIs to use.",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"type": "array"
}
},
"id": "Status"
},
"BatchWriteSpansRequest": {
"properties": {
"spans": {
"description": "A collection of spans.",
"items": {
"$ref": "Span"
},
"type": "array"
}
},
"id": "BatchWriteSpansRequest",
"description": "The request message for the `BatchWriteSpans` method.",
"type": "object"
"properties": {},
"id": "Empty"
},
"Span": {
"description": "A span represents a single operation within a trace. Spans can be\nnested to form a trace tree. Often, a trace contains a root span\nthat describes the end-to-end latency, and one or more subspans for\nits sub-operations. A trace can also contain multiple root spans,\nor none at all. Spans do not need to be contiguous&mdash;there may be\ngaps or overlaps between spans in a trace.",
"type": "object",
"properties": {
"childSpanCount": {
"format": "uint32",
"description": "An optional number of child spans that were generated while this span\nwas active. If set, allows implementation to detect missing child spans.",
"type": "integer"
},
"sameProcessAsParentSpan": {
"description": "A highly recommended but not required flag that identifies when a trace\ncrosses a process boundary. True when the parent_span belongs to the\nsame process as the current span.",
"type": "boolean"
},
"status": {
"$ref": "Status",
"description": "An optional final status for this span."
},
"name": {
"description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created.",
"type": "string"
},
"stackTrace": {
"$ref": "StackTrace",
"description": "Stack trace captured at the start of the span."
},
"parentSpanId": {
"description": "The [SPAN_ID] of this span's parent span. If this is a root span,\nthen this field must be empty.",
"type": "string"
},
"endTime": {
"type": "string",
"format": "google-datetime",
"description": "The end time of the span. On the client side, this is the time kept by\nthe local machine where the span execution ends. On the server side, this\nis the time when the server application handler stops running."
"description": "The end time of the span. On the client side, this is the time kept by\nthe local machine where the span execution ends. On the server side, this\nis the time when the server application handler stops running.",
"type": "string"
},
"startTime": {
"format": "google-datetime",
@@ -147,50 +43,41 @@
"description": "A maximum of 128 links are allowed per Span."
},
"attributes": {
"$ref": "Attributes",
"description": "A set of attributes on the span. There is a limit of 32 attributes per\nspan."
"description": "A set of attributes on the span. There is a limit of 32 attributes per\nspan.",
"$ref": "Attributes"
},
"spanId": {
"description": "The [SPAN_ID] portion of the span's resource name.",
"type": "string"
}
},
"id": "Span",
"description": "A span represents a single operation within a trace. Spans can be\nnested to form a trace tree. Often, a trace contains a root span\nthat describes the end-to-end latency, and one or more subspans for\nits sub-operations. A trace can also contain multiple root spans,\nor none at all. Spans do not need to be contiguous&mdash;there may be\ngaps or overlaps between spans in a trace."
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"type": "object",
"properties": {},
"id": "Empty"
},
"ListTracesResponse": {
"description": "The response message for the `ListTraces` method.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "If there might be more results than those appearing in this response, then\n`next_page_token` is included. To get the next set of results, call this\nmethod again using the value of `next_page_token` as `page_token`.",
},
"childSpanCount": {
"format": "uint32",
"description": "An optional number of child spans that were generated while this span\nwas active. If set, allows implementation to detect missing child spans.",
"type": "integer"
},
"sameProcessAsParentSpan": {
"description": "A highly recommended but not required flag that identifies when a trace\ncrosses a process boundary. True when the parent_span belongs to the\nsame process as the current span.",
"type": "boolean"
},
"status": {
"$ref": "Status",
"description": "An optional final status for this span."
},
"name": {
"description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created.",
"type": "string"
},
"traces": {
"items": {
"$ref": "Trace"
},
"type": "array",
"description": "List of trace records returned."
"stackTrace": {
"$ref": "StackTrace",
"description": "Stack trace captured at the start of the span."
}
},
"id": "ListTracesResponse"
"id": "Span"
},
"AttributeValue": {
"description": "The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.",
"type": "object",
"properties": {
"intValue": {
"format": "int64",
"description": "A 64-bit signed integer.",
"type": "string"
},
"boolValue": {
"description": "A Boolean value represented by `true` or `false`.",
"type": "boolean"
@@ -198,6 +85,11 @@
"stringValue": {
"$ref": "TruncatableString",
"description": "A string up to 256 bytes long."
},
"intValue": {
"format": "int64",
"description": "A 64-bit signed integer.",
"type": "string"
}
},
"id": "AttributeValue"
@@ -212,16 +104,17 @@
"type": "integer"
},
"attributeMap": {
"description": "The set of attributes. Each attribute's key can be up to 128 bytes\nlong. The value can be a string up to 256 bytes, an integer, or the\nBoolean values `true` and `false`. For example:\n\n \"/instance_id\": \"my-instance\"\n \"/http/user_agent\": \"\"\n \"/http/request_bytes\": 300\n \"abc.com/myattribute\": true",
"type": "object",
"additionalProperties": {
"$ref": "AttributeValue"
}
},
"description": "The set of attributes. Each attribute's key can be up to 128 bytes\nlong. The value can be a string up to 256 bytes, an integer, or the\nBoolean values `true` and `false`. For example:\n\n \"/instance_id\": \"my-instance\"\n \"/http/user_agent\": \"\"\n \"/http/request_bytes\": 300\n \"abc.com/myattribute\": true",
"type": "object"
}
},
"id": "Attributes"
},
"Links": {
"description": "A collection of links, which are references from this span to a span\nin the same or different trace.",
"type": "object",
"properties": {
"droppedLinksCount": {
@@ -237,8 +130,23 @@
"type": "array"
}
},
"id": "Links",
"description": "A collection of links, which are references from this span to a span\nin the same or different trace."
"id": "Links"
},
"StackTrace": {
"description": "A call stack appearing in a trace.",
"type": "object",
"properties": {
"stackTraceHashId": {
"format": "uint64",
"description": "The hash ID is used to conserve network bandwidth for duplicate\nstack traces within a single trace.\n\nOften multiple spans will have identical stack traces.\nThe first occurrence of a stack trace should contain both the\n`stackFrame` content and a value in `stackTraceHashId`.\n\nSubsequent spans within the same request can refer\nto that stack trace by only setting `stackTraceHashId`.",
"type": "string"
},
"stackFrames": {
"description": "Stack frames in this stack trace. A maximum of 128 frames are allowed.",
"$ref": "StackFrames"
}
},
"id": "StackTrace"
},
"TruncatableString": {
"description": "Represents a string that might be shortened to a specified length.",
@@ -256,43 +164,28 @@
},
"id": "TruncatableString"
},
"StackTrace": {
"properties": {
"stackTraceHashId": {
"format": "uint64",
"description": "The hash ID is used to conserve network bandwidth for duplicate\nstack traces within a single trace.\n\nOften multiple spans will have identical stack traces.\nThe first occurrence of a stack trace should contain both the\n`stackFrame` content and a value in `stackTraceHashId`.\n\nSubsequent spans within the same request can refer\nto that stack trace by only setting `stackTraceHashId`.",
"type": "string"
},
"stackFrames": {
"description": "Stack frames in this stack trace. A maximum of 128 frames are allowed.",
"$ref": "StackFrames"
}
},
"id": "StackTrace",
"description": "A call stack appearing in a trace.",
"type": "object"
},
"TimeEvent": {
"description": "A time-stamped annotation or network event in the Span.",
"type": "object",
"properties": {
"networkEvent": {
"$ref": "NetworkEvent",
"description": "An event describing an RPC message sent/received on the network."
},
"annotation": {
"$ref": "Annotation",
"description": "One or more key:value pairs."
"description": "Text annotation with a set of attributes."
},
"time": {
"format": "google-datetime",
"description": "The timestamp indicating the time the event occurred.",
"type": "string"
},
"networkEvent": {
"$ref": "NetworkEvent",
"description": "An event describing an RPC message sent/received on the network."
}
},
"id": "TimeEvent",
"description": "A time-stamped annotation or network event in the Span."
"id": "TimeEvent"
},
"NetworkEvent": {
"description": "An event describing an RPC message sent or received on the network.",
"type": "object",
"properties": {
"time": {
@@ -300,64 +193,46 @@
"description": "For sent messages, this is the time at which the first bit was sent.\nFor received messages, this is the time at which the last bit was\nreceived.",
"type": "string"
},
"uncompressedMessageSize": {
"format": "uint64",
"description": "The number of uncompressed bytes sent or received.",
"type": "string"
},
"type": {
"enumDescriptions": [
"Unknown event type.",
"Indicates a sent RPC message.",
"Indicates a received RPC message."
],
"enum": [
"TYPE_UNSPECIFIED",
"SENT",
"RECV"
],
"description": "Type of NetworkEvent. Indicates whether the RPC message was sent or\nreceived.",
"type": "string",
"enumDescriptions": [
"Unknown event type.",
"Indicates a sent RPC message.",
"Indicates a received RPC message."
]
"type": "string"
},
"messageId": {
"format": "uint64",
"description": "An identifier for the message, which must be unique in this span.",
"type": "string"
},
"messageSize": {
"compressedMessageSize": {
"format": "uint64",
"description": "The number of bytes sent or received.",
"description": "The number of compressed bytes sent or received.",
"type": "string"
}
},
"id": "NetworkEvent",
"description": "An event describing an RPC message sent or received on the network."
},
"ListSpansResponse": {
"id": "ListSpansResponse",
"description": "The response message for the `ListSpans` method.",
"type": "object",
"properties": {
"spans": {
"description": "The requested spans, if there are any in the specified trace.",
"items": {
"$ref": "Span"
},
"type": "array"
},
"nextPageToken": {
"description": "If defined, indicates that there might be more spans that match the\nrequest. Pass this as the value of `pageToken` in a subsequent request to\nretrieve additional spans.",
"type": "string"
}
}
"id": "NetworkEvent"
},
"StackFrame": {
"description": "Represents a single stack frame in a stack trace.",
"type": "object",
"properties": {
"functionName": {
"$ref": "TruncatableString",
"description": "The fully-qualified name that uniquely identifies the function or\nmethod that is active in this frame (up to 1024 bytes)."
},
"lineNumber": {
"type": "string",
"format": "int64",
"description": "The line number in `file_name` where the function call appears."
"description": "The line number in `file_name` where the function call appears.",
"type": "string"
},
"loadModule": {
"$ref": "Module",
@@ -379,32 +254,35 @@
"originalFunctionName": {
"$ref": "TruncatableString",
"description": "An un-mangled function name, if `function_name` is\n[mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can\nbe fully-qualified (up to 1024 bytes)."
},
"functionName": {
"$ref": "TruncatableString",
"description": "The fully-qualified name that uniquely identifies the function or\nmethod that is active in this frame (up to 1024 bytes)."
}
},
"id": "StackFrame"
},
"Link": {
"id": "Link",
"description": "A pointer from the current span to another span in the same trace or in a\ndifferent trace. For example, this can be used in batching operations,\nwhere a single batch handler processes multiple requests from different\ntraces or when the handler receives a request from a different project.",
"type": "object",
"properties": {
"type": {
"type": "string",
"enumDescriptions": [
"The relationship of the two spans is unknown.",
"The current span is a child of the linked span.",
"The current span is the parent of the linked span."
"The linked span is a child of the current span.",
"The linked span is a parent of the current span."
],
"enum": [
"TYPE_UNSPECIFIED",
"CHILD",
"PARENT"
"CHILD_LINKED_SPAN",
"PARENT_LINKED_SPAN"
],
"description": "The relationship of the current span relative to the linked span."
"description": "The relationship of the current span relative to the linked span.",
"type": "string"
},
"attributes": {
"$ref": "Attributes",
"description": "A set of attributes on the link. There is a limit of 32 attributes per\nlink."
"description": "A set of attributes on the link. There is a limit of 32 attributes per\nlink.",
"$ref": "Attributes"
},
"traceId": {
"description": "`TRACE_ID` identifies a trace within a project.",
@@ -414,15 +292,16 @@
"description": "`SPAN_ID` identifies a span within a trace.",
"type": "string"
}
}
},
"id": "Link"
},
"Annotation": {
"description": "Text annotation with a set of attributes.",
"type": "object",
"properties": {
"description": {
"$ref": "TruncatableString",
"description": "A user-supplied message describing the event. The maximum length for\nthe description is 256 bytes."
"description": "A user-supplied message describing the event. The maximum length for\nthe description is 256 bytes.",
"$ref": "TruncatableString"
},
"attributes": {
"description": "A set of attributes on the annotation. There is a limit of 4 attributes\nper Annotation.",
@@ -432,29 +311,109 @@
"id": "Annotation"
},
"StackFrames": {
"description": "A collection of stack frames, which can be truncated.",
"type": "object",
"properties": {
"droppedFramesCount": {
"format": "int32",
"description": "The number of stack frames that were dropped because there\nwere too many stack frames.\nIf this value is 0, then no stack frames were dropped.",
"type": "integer"
},
"frame": {
"description": "Stack frames in this call stack.",
"items": {
"$ref": "StackFrame"
},
"type": "array"
},
"droppedFramesCount": {
"format": "int32",
"description": "The number of stack frames that were dropped because there\nwere too many stack frames.\nIf this value is 0, then no stack frames were dropped.",
"type": "integer"
}
},
"id": "StackFrames",
"description": "A collection of stack frames, which can be truncated.",
"type": "object"
"id": "StackFrames"
},
"TimeEvents": {
"description": "A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation\non the span, consisting of either user-supplied key:value pairs, or\ndetails of an RPC message sent/received on the network.",
"type": "object",
"properties": {
"droppedNetworkEventsCount": {
"format": "int32",
"description": "The number of dropped network events in all the included time events.\nIf the value is 0, then no network events were dropped.",
"type": "integer"
},
"droppedAnnotationsCount": {
"format": "int32",
"description": "The number of dropped annotations in all the included time events.\nIf the value is 0, then no annotations were dropped.",
"type": "integer"
},
"timeEvent": {
"description": "A collection of `TimeEvent`s.",
"items": {
"$ref": "TimeEvent"
},
"type": "array"
}
},
"id": "TimeEvents"
},
"Module": {
"description": "Binary module.",
"type": "object",
"properties": {
"module": {
"$ref": "TruncatableString",
"description": "For example: main binary, kernel modules, and dynamic libraries\nsuch as libc.so, sharedlib.so (up to 256 bytes)."
},
"buildId": {
"description": "A unique identifier for the module, usually a hash of its\ncontents (up to 128 bytes).",
"$ref": "TruncatableString"
}
},
"id": "Module"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object",
"properties": {
"details": {
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"type": "array"
},
"code": {
"format": "int32",
"description": "The status code, which should be an enum value of google.rpc.Code.",
"type": "integer"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
}
},
"id": "Status"
},
"BatchWriteSpansRequest": {
"description": "The request message for the `BatchWriteSpans` method.",
"type": "object",
"properties": {
"spans": {
"description": "A collection of spans.",
"items": {
"$ref": "Span"
},
"type": "array"
}
},
"id": "BatchWriteSpansRequest"
}
},
"protocol": "rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"canonicalName": "Cloud Trace",
"auth": {
@@ -465,9 +424,6 @@
},
"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"
}
}
}
@@ -476,49 +432,19 @@
"ownerDomain": "google.com",
"name": "cloudtrace",
"batchPath": "batch",
"fullyEncodeReservedExpansion": true,
"title": "Stackdriver Trace API",
"ownerName": "Google",
"resources": {
"projects": {
"resources": {
"traces": {
"resources": {
"spans": {
"methods": {
"create": {
"request": {
"$ref": "Span"
},
"description": "Creates a new Span.",
"httpMethod": "PUT",
"parameterOrder": [
"name"
],
"response": {
"$ref": "Span"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"parameters": {
"name": {
"location": "path",
"description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created.",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+/traces/[^/]+/spans/[^/]+$"
}
},
"flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans/{spansId}",
"path": "v2/{+name}",
"id": "cloudtrace.projects.traces.spans.create"
}
}
}
},
"methods": {
"batchWrite": {
"description": "Sends new spans to Stackdriver Trace or updates existing traces. If the\nname of a trace that you send matches that of an existing trace, new spans\nare added to the existing trace. Attempt to update existing spans results\nundefined behavior. If the name does not match, a new trace is created\nwith given set of spans.",
"request": {
"$ref": "BatchWriteSpansRequest"
},
"response": {
"$ref": "Empty"
},
@@ -526,116 +452,57 @@
"name"
],
"httpMethod": "POST",
"parameters": {
"name": {
"location": "path",
"description": "Required. Name of the project where the spans belong. The format is\n`projects/PROJECT_ID`.",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+$"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"parameters": {
"name": {
"type": "string",
"required": true,
"pattern": "^projects/[^/]+$",
"location": "path",
"description": "Required. Name of the project where the spans belong. The format is\n`projects/PROJECT_ID`."
}
},
"flatPath": "v2/projects/{projectsId}/traces:batchWrite",
"id": "cloudtrace.projects.traces.batchWrite",
"path": "v2/{+name}/traces:batchWrite",
"request": {
"$ref": "BatchWriteSpansRequest"
},
"description": "Sends new spans to Stackdriver Trace or updates existing traces. If the\nname of a trace that you send matches that of an existing trace, new spans\nare added to the existing trace. Attempt to update existing spans results\nundefined behavior. If the name does not match, a new trace is created\nwith given set of spans."
},
"listSpans": {
"httpMethod": "GET",
"parameterOrder": [
"parent"
],
"response": {
"$ref": "ListSpansResponse"
},
"parameters": {
"pageToken": {
"description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
"type": "string",
"location": "query"
},
"parent": {
"pattern": "^projects/[^/]+/traces/[^/]+$",
"location": "path",
"description": "Required: The resource name of the trace containing the spans to list.\nThe format is `projects/PROJECT_ID/traces/TRACE_ID`.",
"type": "string",
"required": true
"path": "v2/{+name}/traces:batchWrite"
}
},
"resources": {
"spans": {
"methods": {
"create": {
"flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans/{spansId}",
"id": "cloudtrace.projects.traces.spans.create",
"path": "v2/{+name}",
"description": "Creates a new Span.",
"request": {
"$ref": "Span"
},
"response": {
"$ref": "Span"
},
"parameterOrder": [
"name"
],
"httpMethod": "PUT",
"parameters": {
"name": {
"description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created.",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+/traces/[^/]+/spans/[^/]+$",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
]
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"flatPath": "v2/projects/{projectsId}/traces/{tracesId}:listSpans",
"path": "v2/{+parent}:listSpans",
"id": "cloudtrace.projects.traces.listSpans",
"description": "Returns a list of spans within a trace."
},
"list": {
"description": "Returns of a list of traces that match the specified filter conditions.",
"httpMethod": "GET",
"parameterOrder": [
"parent"
],
"response": {
"$ref": "ListTracesResponse"
},
"parameters": {
"filter": {
"type": "string",
"location": "query",
"description": "Opional. Return only traces that match this\n[trace filter](/trace/docs/trace-filters). Example:\n\n \"label:/http/url root:/_ah/background my_label:17\""
},
"endTime": {
"format": "google-datetime",
"description": "Optional. Do not return traces whose start time is later than this time.",
"type": "string",
"location": "query"
},
"pageToken": {
"description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
"type": "string",
"location": "query"
},
"startTime": {
"location": "query",
"format": "google-datetime",
"description": "Optional. Do not return traces whose end time is earlier than this time.",
"type": "string"
},
"pageSize": {
"format": "int32",
"description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `next_page_token` in the\nresponse indicates that more results might be available, even if fewer than\nthe maximum number of results is returned by this request.",
"type": "integer",
"location": "query"
},
"parent": {
"description": "Required. The project where the trace data is stored. The format\nis `projects/PROJECT_ID`.",
"type": "string",
"required": true,
"pattern": "^projects/[^/]+$",
"location": "path"
},
"orderBy": {
"location": "query",
"description": "Optional. A single field used to sort the returned traces.\nOnly the following field names can be used:\n\n* `trace_id`: the trace's ID field\n* `name`: the root span's resource name\n* `duration`: the difference between the root span's start time and end time\n* `start`: the start time of the root span\n\nSorting is in ascending order unless `desc` is appended to the sort field name.\nExample: `\"name desc\"`).",
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"flatPath": "v2/projects/{projectsId}/traces",
"path": "v2/{+parent}/traces",
"id": "cloudtrace.projects.traces.list"
}
}
}
}
@@ -670,41 +537,35 @@
"type": "boolean",
"location": "query"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"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"
]
"type": "string"
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
@@ -712,11 +573,12 @@
],
"location": "query",
"description": "Data format for response.",
"default": "json"
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string"
},
"key": {
@@ -724,16 +586,20 @@
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
"type": "string",
"location": "query"
}
},
"version": "v2",
"baseUrl": "https://cloudtrace.googleapis.com/",
"kind": "discovery#restDescription",
"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",
"servicePath": "",
"basePath": ""
"servicePath": ""
}
+32 -578
View File
@@ -52,9 +52,6 @@ const (
// Write Trace data for a project or application
TraceAppendScope = "https://www.googleapis.com/auth/trace.append"
// Read Trace data for a project or application
TraceReadonlyScope = "https://www.googleapis.com/auth/trace.readonly"
)
func New(client *http.Client) (*Service, error) {
@@ -300,8 +297,10 @@ type Link struct {
//
// Possible values:
// "TYPE_UNSPECIFIED" - The relationship of the two spans is unknown.
// "CHILD" - The current span is a child of the linked span.
// "PARENT" - The current span is the parent of the linked span.
// "CHILD_LINKED_SPAN" - The linked span is a child of the current
// span.
// "PARENT_LINKED_SPAN" - The linked span is a parent of the current
// span.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attributes") to
@@ -363,84 +362,6 @@ func (s *Links) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListSpansResponse: The response message for the `ListSpans` method.
type ListSpansResponse struct {
// NextPageToken: If defined, indicates that there might be more spans
// that match the
// request. Pass this as the value of `pageToken` in a subsequent
// request to
// retrieve additional spans.
NextPageToken string `json:"nextPageToken,omitempty"`
// Spans: The requested spans, if there are any in the specified trace.
Spans []*Span `json:"spans,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListSpansResponse) MarshalJSON() ([]byte, error) {
type noMethod ListSpansResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListTracesResponse: The response message for the `ListTraces` method.
type ListTracesResponse struct {
// NextPageToken: If there might be more results than those appearing in
// this response, then
// `next_page_token` is included. To get the next set of results, call
// this
// method again using the value of `next_page_token` as `page_token`.
NextPageToken string `json:"nextPageToken,omitempty"`
// Traces: List of trace records returned.
Traces []*Trace `json:"traces,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListTracesResponse) MarshalJSON() ([]byte, error) {
type noMethod ListTracesResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Module: Binary module.
type Module struct {
// BuildId: A unique identifier for the module, usually a hash of
@@ -479,13 +400,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
@@ -503,20 +425,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:"-"`
}
@@ -572,7 +500,7 @@ type Span struct {
// Name: The resource name of the span in the following format:
//
// projects/[PROJECT_ID]traces/[TRACE_ID]/spans/SPAN_ID is a unique
// projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique
// identifier for a trace within a project.
// [SPAN_ID] is a unique identifier for a span within a trace,
// assigned when the span is created.
@@ -857,9 +785,9 @@ type Status struct {
// google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There will
// be a
// common set of message types for APIs to use.
// Details: A list of messages that carry the error details. There is a
// common set of
// message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in
@@ -894,7 +822,7 @@ func (s *Status) MarshalJSON() ([]byte, error) {
// TimeEvent: A time-stamped annotation or network event in the Span.
type TimeEvent struct {
// Annotation: One or more key:value pairs.
// Annotation: Text annotation with a set of attributes.
Annotation *Annotation `json:"annotation,omitempty"`
// NetworkEvent: An event describing an RPC message sent/received on the
@@ -971,41 +899,6 @@ func (s *TimeEvents) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Trace: A trace describes how long it takes for an application to
// perform some
// operations. It consists of a set of spans, each representing
// an operation and including time information and operation details.
type Trace struct {
// Name: The resource name of the trace in the following format:
//
// projects/[PROJECT_ID]/traces/TRACE_ID is a unique identifier for
// a trace within a project.
// The ID is assigned when the trace is created.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Trace) MarshalJSON() ([]byte, error) {
type noMethod Trace
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TruncatableString: Represents a string that might be shortened to a
// specified length.
type TruncatableString struct {
@@ -1194,445 +1087,6 @@ func (c *ProjectsTracesBatchWriteCall) Do(opts ...googleapi.CallOption) (*Empty,
}
// method id "cloudtrace.projects.traces.list":
type ProjectsTracesListCall struct {
s *Service
parent string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Returns of a list of traces that match the specified filter
// conditions.
func (r *ProjectsTracesService) List(parent string) *ProjectsTracesListCall {
c := &ProjectsTracesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
return c
}
// EndTime sets the optional parameter "endTime": Do not return traces
// whose start time is later than this time.
func (c *ProjectsTracesListCall) EndTime(endTime string) *ProjectsTracesListCall {
c.urlParams_.Set("endTime", endTime)
return c
}
// Filter sets the optional parameter "filter": Opional. Return only
// traces that match this
// [trace filter](/trace/docs/trace-filters). Example:
//
// "label:/http/url root:/_ah/background my_label:17"
func (c *ProjectsTracesListCall) Filter(filter string) *ProjectsTracesListCall {
c.urlParams_.Set("filter", filter)
return c
}
// OrderBy sets the optional parameter "orderBy": A single field used to
// sort the returned traces.
// Only the following field names can be used:
//
// * `trace_id`: the trace's ID field
// * `name`: the root span's resource name
// * `duration`: the difference between the root span's start time and
// end time
// * `start`: the start time of the root span
//
// Sorting is in ascending order unless `desc` is appended to the sort
// field name.
// Example: "name desc").
func (c *ProjectsTracesListCall) OrderBy(orderBy string) *ProjectsTracesListCall {
c.urlParams_.Set("orderBy", orderBy)
return c
}
// PageSize sets the optional parameter "pageSize": The maximum number
// of results to return from this request.
// Non-positive values are ignored. The presence of `next_page_token` in
// the
// response indicates that more results might be available, even if
// fewer than
// the maximum number of results is returned by this request.
func (c *ProjectsTracesListCall) PageSize(pageSize int64) *ProjectsTracesListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": If present, then
// retrieve the next batch of results from the
// preceding call to this method. `page_token` must be the value
// of
// `next_page_token` from the previous response. The values of other
// method
// parameters should be identical to those in the previous call.
func (c *ProjectsTracesListCall) PageToken(pageToken string) *ProjectsTracesListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// StartTime sets the optional parameter "startTime": Do not return
// traces whose end time is earlier than this time.
func (c *ProjectsTracesListCall) StartTime(startTime string) *ProjectsTracesListCall {
c.urlParams_.Set("startTime", startTime)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ProjectsTracesListCall) Fields(s ...googleapi.Field) *ProjectsTracesListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *ProjectsTracesListCall) IfNoneMatch(entityTag string) *ProjectsTracesListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *ProjectsTracesListCall) Context(ctx context.Context) *ProjectsTracesListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ProjectsTracesListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsTracesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/traces")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "cloudtrace.projects.traces.list" call.
// Exactly one of *ListTracesResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListTracesResponse.ServerResponse.Header or (if a response was
// returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *ProjectsTracesListCall) Do(opts ...googleapi.CallOption) (*ListTracesResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListTracesResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Returns of a list of traces that match the specified filter conditions.",
// "flatPath": "v2/projects/{projectsId}/traces",
// "httpMethod": "GET",
// "id": "cloudtrace.projects.traces.list",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "endTime": {
// "description": "Optional. Do not return traces whose start time is later than this time.",
// "format": "google-datetime",
// "location": "query",
// "type": "string"
// },
// "filter": {
// "description": "Opional. Return only traces that match this\n[trace filter](/trace/docs/trace-filters). Example:\n\n \"label:/http/url root:/_ah/background my_label:17\"",
// "location": "query",
// "type": "string"
// },
// "orderBy": {
// "description": "Optional. A single field used to sort the returned traces.\nOnly the following field names can be used:\n\n* `trace_id`: the trace's ID field\n* `name`: the root span's resource name\n* `duration`: the difference between the root span's start time and end time\n* `start`: the start time of the root span\n\nSorting is in ascending order unless `desc` is appended to the sort field name.\nExample: `\"name desc\"`).",
// "location": "query",
// "type": "string"
// },
// "pageSize": {
// "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `next_page_token` in the\nresponse indicates that more results might be available, even if fewer than\nthe maximum number of results is returned by this request.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
// "location": "query",
// "type": "string"
// },
// "parent": {
// "description": "Required. The project where the trace data is stored. The format\nis `projects/PROJECT_ID`.",
// "location": "path",
// "pattern": "^projects/[^/]+$",
// "required": true,
// "type": "string"
// },
// "startTime": {
// "description": "Optional. Do not return traces whose end time is earlier than this time.",
// "format": "google-datetime",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v2/{+parent}/traces",
// "response": {
// "$ref": "ListTracesResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/trace.readonly"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *ProjectsTracesListCall) Pages(ctx context.Context, f func(*ListTracesResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "cloudtrace.projects.traces.listSpans":
type ProjectsTracesListSpansCall struct {
s *Service
parent string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// ListSpans: Returns a list of spans within a trace.
func (r *ProjectsTracesService) ListSpans(parent string) *ProjectsTracesListSpansCall {
c := &ProjectsTracesListSpansCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
return c
}
// PageToken sets the optional parameter "pageToken": If present, then
// retrieve the next batch of results from the
// preceding call to this method. `page_token` must be the value
// of
// `next_page_token` from the previous response. The values of other
// method
// parameters should be identical to those in the previous call.
func (c *ProjectsTracesListSpansCall) PageToken(pageToken string) *ProjectsTracesListSpansCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ProjectsTracesListSpansCall) Fields(s ...googleapi.Field) *ProjectsTracesListSpansCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *ProjectsTracesListSpansCall) IfNoneMatch(entityTag string) *ProjectsTracesListSpansCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *ProjectsTracesListSpansCall) Context(ctx context.Context) *ProjectsTracesListSpansCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ProjectsTracesListSpansCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsTracesListSpansCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}:listSpans")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "cloudtrace.projects.traces.listSpans" call.
// Exactly one of *ListSpansResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListSpansResponse.ServerResponse.Header or (if a response was
// returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *ProjectsTracesListSpansCall) Do(opts ...googleapi.CallOption) (*ListSpansResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListSpansResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Returns a list of spans within a trace.",
// "flatPath": "v2/projects/{projectsId}/traces/{tracesId}:listSpans",
// "httpMethod": "GET",
// "id": "cloudtrace.projects.traces.listSpans",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "pageToken": {
// "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
// "location": "query",
// "type": "string"
// },
// "parent": {
// "description": "Required: The resource name of the trace containing the spans to list.\nThe format is `projects/PROJECT_ID/traces/TRACE_ID`.",
// "location": "path",
// "pattern": "^projects/[^/]+/traces/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2/{+parent}:listSpans",
// "response": {
// "$ref": "ListSpansResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/trace.readonly"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *ProjectsTracesListSpansCall) Pages(ctx context.Context, f func(*ListSpansResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "cloudtrace.projects.traces.spans.create":
type ProjectsTracesSpansCreateCall struct {
@@ -1747,7 +1201,7 @@ func (c *ProjectsTracesSpansCreateCall) Do(opts ...googleapi.CallOption) (*Span,
// ],
// "parameters": {
// "name": {
// "description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created.",
// "description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created.",
// "location": "path",
// "pattern": "^projects/[^/]+/traces/[^/]+/spans/[^/]+$",
// "required": true,
@@ -21,7 +21,7 @@
"basePath": "/clouduseraccounts/alpha/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "clouduseraccounts/alpha/projects/",
"batchPath": "batch",
"batchPath": "batch/clouduseraccounts/alpha",
"parameters": {
"alt": {
"type": "string",
@@ -21,7 +21,7 @@
"basePath": "/clouduseraccounts/beta/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "clouduseraccounts/beta/projects/",
"batchPath": "batch",
"batchPath": "batch/clouduseraccounts/beta",
"parameters": {
"alt": {
"type": "string",
@@ -21,7 +21,7 @@
"basePath": "/clouduseraccounts/vm_alpha/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "clouduseraccounts/vm_alpha/projects/",
"batchPath": "batch",
"batchPath": "batch/clouduseraccounts/vm_alpha",
"parameters": {
"alt": {
"type": "string",
@@ -21,7 +21,7 @@
"basePath": "/clouduseraccounts/vm_beta/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "clouduseraccounts/vm_beta/projects/",
"batchPath": "batch",
"batchPath": "batch/clouduseraccounts/vm_beta",
"parameters": {
"alt": {
"type": "string",
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff

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