Update dependencies

Among others, this updates minio-go, so that the new "eu-west-3" zone
for AWS is supported.
This commit is contained in:
Alexander Neumann committed 2018-01-23 19:40:42 +01:00
1 parent b63de7c798
commit 2b39f9f4b2
3435 files changed
+1317989 -315639

No files matched your search

+1
View File
@@ -44,6 +44,7 @@ Ivan Krasin <krasin@golang.org>
Jason Hall <jasonhall@google.com>
Johan Euphrosine <proppy@google.com>
Kostik Shtoyk <kostik@google.com>
Kunpei Sakai <namusyaka@gmail.com>
Matthew Whisenhunt <matt.whisenhunt@gmail.com>
Michael McGreevy <mcgreevy@golang.org>
Nick Craig-Wood <nickcw@gmail.com>
@@ -0,0 +1,250 @@
{
"ownerDomain": "google.com",
"name": "abusiveexperiencereport",
"batchPath": "batch",
"fullyEncodeReservedExpansion": true,
"title": "Google Abusive Experience Report API",
"ownerName": "Google",
"resources": {
"sites": {
"methods": {
"get": {
"httpMethod": "GET",
"parameterOrder": [
"name"
],
"response": {
"$ref": "SiteSummaryResponse"
},
"parameters": {
"name": {
"required": true,
"type": "string",
"pattern": "^sites/[^/]+$",
"location": "path",
"description": "The required site name. This is the site property whose abusive\nexperiences have been reviewed, and it must be URL-encoded. For example,\nsites/https%3A%2F%2Fwww.google.com. The server will return an error of\nBAD_REQUEST if this field is not filled in. Note that if the site property\nis not yet verified in Search Console, the reportUrl field\nreturned by the API will lead to the verification page, prompting the user\nto go through that process before they can gain access to the Abusive\nExperience Report."
}
},
"scopes": [
"https://www.googleapis.com/auth/xapi.zoo"
],
"flatPath": "v1/sites/{sitesId}",
"id": "abusiveexperiencereport.sites.get",
"path": "v1/{+name}",
"description": "Gets a summary of the abusive experience rating of a site."
}
}
},
"violatingSites": {
"methods": {
"list": {
"response": {
"$ref": "ViolatingSitesResponse"
},
"parameterOrder": [],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/xapi.zoo"
],
"parameters": {},
"flatPath": "v1/violatingSites",
"path": "v1/violatingSites",
"id": "abusiveexperiencereport.violatingSites.list",
"description": "Lists sites with Abusive Experience Report statuses of \"Failing\"."
}
}
}
},
"parameters": {
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true",
"location": "query"
},
"uploadType": {
"type": "string",
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string"
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response.",
"default": "json"
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"type": "boolean",
"default": "true"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
}
},
"version": "v1",
"baseUrl": "https://abusiveexperiencereport.googleapis.com/",
"kind": "discovery#restDescription",
"description": "View Abusive Experience Report data, and get a list of sites that have a significant number of abusive experiences.",
"servicePath": "",
"basePath": "",
"revision": "20171129",
"documentationLink": "https://developers.google.com/abusive-experience-report/",
"id": "abusiveexperiencereport:v1",
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"ViolatingSitesResponse": {
"properties": {
"violatingSites": {
"description": "A list of summaries of violating sites.",
"type": "array",
"items": {
"$ref": "SiteSummaryResponse"
}
}
},
"id": "ViolatingSitesResponse",
"description": "Response message for ListViolatingSites.",
"type": "object"
},
"SiteSummaryResponse": {
"type": "object",
"properties": {
"abusiveStatus": {
"enumDescriptions": [
"Not reviewed.",
"Passing.",
"Failing."
],
"enum": [
"UNKNOWN",
"PASSING",
"FAILING"
],
"description": "The status of the site reviewed for the abusive experiences.",
"type": "string"
},
"enforcementTime": {
"description": "The date on which enforcement begins.",
"format": "google-datetime",
"type": "string"
},
"filterStatus": {
"description": "The abusive experience enforcement status of the site.",
"type": "string",
"enumDescriptions": [
"N/A.",
"Ad filtering is on.",
"Ad filtering is off.",
"Ad filtering is paused.",
"Ad filtering is pending."
],
"enum": [
"UNKNOWN",
"ON",
"OFF",
"PAUSED",
"PENDING"
]
},
"underReview": {
"description": "Whether the site is currently under review.",
"type": "boolean"
},
"reportUrl": {
"description": "A link that leads to a full abusive experience report.",
"type": "string"
},
"reviewedSite": {
"type": "string",
"description": "The name of the site reviewed."
},
"lastChangeTime": {
"description": "The last time that the site changed status.",
"format": "google-datetime",
"type": "string"
}
},
"id": "SiteSummaryResponse",
"description": "Response message for GetSiteSummary."
}
},
"protocol": "rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"canonicalName": "Abusive Experience Report",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/xapi.zoo": {
"description": "Test scope for access to the Zoo service"
}
}
}
},
"rootUrl": "https://abusiveexperiencereport.googleapis.com/"
}
@@ -0,0 +1,457 @@
// Package abusiveexperiencereport provides access to the Google Abusive Experience Report API.
//
// See https://developers.google.com/abusive-experience-report/
//
// Usage example:
//
// import "google.golang.org/api/abusiveexperiencereport/v1"
// ...
// abusiveexperiencereportService, err := abusiveexperiencereport.New(oauthHttpClient)
package abusiveexperiencereport // import "google.golang.org/api/abusiveexperiencereport/v1"
import (
"bytes"
"encoding/json"
"errors"
"fmt"
context "golang.org/x/net/context"
ctxhttp "golang.org/x/net/context/ctxhttp"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
"io"
"net/http"
"net/url"
"strconv"
"strings"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = ctxhttp.Do
const apiId = "abusiveexperiencereport:v1"
const apiName = "abusiveexperiencereport"
const apiVersion = "v1"
const basePath = "https://abusiveexperiencereport.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// Test scope for access to the Zoo service
XapiZooScope = "https://www.googleapis.com/auth/xapi.zoo"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Sites = NewSitesService(s)
s.ViolatingSites = NewViolatingSitesService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Sites *SitesService
ViolatingSites *ViolatingSitesService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewSitesService(s *Service) *SitesService {
rs := &SitesService{s: s}
return rs
}
type SitesService struct {
s *Service
}
func NewViolatingSitesService(s *Service) *ViolatingSitesService {
rs := &ViolatingSitesService{s: s}
return rs
}
type ViolatingSitesService struct {
s *Service
}
// SiteSummaryResponse: Response message for GetSiteSummary.
type SiteSummaryResponse struct {
// AbusiveStatus: The status of the site reviewed for the abusive
// experiences.
//
// Possible values:
// "UNKNOWN" - Not reviewed.
// "PASSING" - Passing.
// "FAILING" - Failing.
AbusiveStatus string `json:"abusiveStatus,omitempty"`
// EnforcementTime: The date on which enforcement begins.
EnforcementTime string `json:"enforcementTime,omitempty"`
// FilterStatus: The abusive experience enforcement status of the site.
//
// Possible values:
// "UNKNOWN" - N/A.
// "ON" - Ad filtering is on.
// "OFF" - Ad filtering is off.
// "PAUSED" - Ad filtering is paused.
// "PENDING" - Ad filtering is pending.
FilterStatus string `json:"filterStatus,omitempty"`
// LastChangeTime: The last time that the site changed status.
LastChangeTime string `json:"lastChangeTime,omitempty"`
// ReportUrl: A link that leads to a full abusive experience report.
ReportUrl string `json:"reportUrl,omitempty"`
// ReviewedSite: The name of the site reviewed.
ReviewedSite string `json:"reviewedSite,omitempty"`
// UnderReview: Whether the site is currently under review.
UnderReview bool `json:"underReview,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AbusiveStatus") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// 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. "AbusiveStatus") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SiteSummaryResponse) MarshalJSON() ([]byte, error) {
type NoMethod SiteSummaryResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ViolatingSitesResponse: Response message for ListViolatingSites.
type ViolatingSitesResponse struct {
// ViolatingSites: A list of summaries of violating sites.
ViolatingSites []*SiteSummaryResponse `json:"violatingSites,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ViolatingSites") 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. "ViolatingSites") 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 *ViolatingSitesResponse) MarshalJSON() ([]byte, error) {
type NoMethod ViolatingSitesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "abusiveexperiencereport.sites.get":
type SitesGetCall struct {
s *Service
name string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Gets a summary of the abusive experience rating of a site.
func (r *SitesService) Get(name string) *SitesGetCall {
c := &SitesGetCall{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 *SitesGetCall) Fields(s ...googleapi.Field) *SitesGetCall {
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 *SitesGetCall) IfNoneMatch(entityTag string) *SitesGetCall {
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 *SitesGetCall) Context(ctx context.Context) *SitesGetCall {
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 *SitesGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *SitesGetCall) 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 "abusiveexperiencereport.sites.get" call.
// Exactly one of *SiteSummaryResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *SiteSummaryResponse.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 *SitesGetCall) Do(opts ...googleapi.CallOption) (*SiteSummaryResponse, 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 := &SiteSummaryResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets a summary of the abusive experience rating of a site.",
// "flatPath": "v1/sites/{sitesId}",
// "httpMethod": "GET",
// "id": "abusiveexperiencereport.sites.get",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The required site name. This is the site property whose abusive\nexperiences have been reviewed, and it must be URL-encoded. For example,\nsites/https%3A%2F%2Fwww.google.com. The server will return an error of\nBAD_REQUEST if this field is not filled in. Note that if the site property\nis not yet verified in Search Console, the reportUrl field\nreturned by the API will lead to the verification page, prompting the user\nto go through that process before they can gain access to the Abusive\nExperience Report.",
// "location": "path",
// "pattern": "^sites/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/{+name}",
// "response": {
// "$ref": "SiteSummaryResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/xapi.zoo"
// ]
// }
}
// method id "abusiveexperiencereport.violatingSites.list":
type ViolatingSitesListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Lists sites with Abusive Experience Report statuses of
// "Failing".
func (r *ViolatingSitesService) List() *ViolatingSitesListCall {
c := &ViolatingSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
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 *ViolatingSitesListCall) Fields(s ...googleapi.Field) *ViolatingSitesListCall {
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 *ViolatingSitesListCall) IfNoneMatch(entityTag string) *ViolatingSitesListCall {
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 *ViolatingSitesListCall) Context(ctx context.Context) *ViolatingSitesListCall {
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 *ViolatingSitesListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ViolatingSitesListCall) 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/violatingSites")
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 "abusiveexperiencereport.violatingSites.list" call.
// Exactly one of *ViolatingSitesResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ViolatingSitesResponse.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 *ViolatingSitesListCall) Do(opts ...googleapi.CallOption) (*ViolatingSitesResponse, 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 := &ViolatingSitesResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Lists sites with Abusive Experience Report statuses of \"Failing\".",
// "flatPath": "v1/violatingSites",
// "httpMethod": "GET",
// "id": "abusiveexperiencereport.violatingSites.list",
// "parameterOrder": [],
// "parameters": {},
// "path": "v1/violatingSites",
// "response": {
// "$ref": "ViolatingSitesResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/xapi.zoo"
// ]
// }
}
@@ -6,64 +6,54 @@
"ampUrls": {
"methods": {
"batchGet": {
"request": {
"$ref": "BatchGetAmpUrlsRequest"
},
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
"httpMethod": "POST",
"parameterOrder": [],
"response": {
"$ref": "BatchGetAmpUrlsResponse"
},
"parameterOrder": [],
"httpMethod": "POST",
"parameters": {},
"flatPath": "v1/ampUrls:batchGet",
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
"path": "v1/ampUrls:batchGet",
"id": "acceleratedmobilepageurl.ampUrls.batchGet"
"request": {
"$ref": "BatchGetAmpUrlsRequest"
},
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format)."
}
}
}
},
"parameters": {
"upload_protocol": {
"fields": {
"type": "string",
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true"
"description": "Selector specifying which fields to include in a partial response."
},
"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"
},
"callback": {
"type": "string",
"location": "query",
"description": "JSONP"
},
"$.xgafv": {
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
]
},
"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",
@@ -76,23 +66,22 @@
"json",
"media",
"proto"
],
"type": "string"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
]
},
"access_token": {
"type": "string",
"location": "query",
"description": "OAuth access token.",
"description": "OAuth access token."
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
"type": "string"
},
"pp": {
"location": "query",
@@ -100,75 +89,81 @@
"type": "boolean",
"default": "true"
},
"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"
},
"bearer_token": {
"upload_protocol": {
"location": "query",
"description": "OAuth bearer token.",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true"
}
},
"schemas": {
"BatchGetAmpUrlsResponse": {
"id": "BatchGetAmpUrlsResponse",
"description": "Batch AMP URL response.",
"type": "object",
"properties": {
"ampUrls": {
"description": "For each URL in BatchAmpUrlsRequest, the URL response. The response might\nnot be in the same order as URLs in the batch request.\nIf BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated\nonly once.",
"type": "array",
"items": {
"$ref": "AmpUrl"
},
"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"
}
},
"description": "The errors for requested URLs that have no AMP URL."
}
}
},
"id": "BatchGetAmpUrlsResponse",
"description": "Batch AMP URL response."
},
"AmpUrl": {
"id": "AmpUrl",
"description": "AMP URL response for a requested URL.",
"type": "object",
"properties": {
"cdnAmpUrl": {
"description": "The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to\nthe cached document in the Google AMP Cache.",
"type": "string"
"type": "string",
"description": "The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to\nthe cached document in the Google AMP Cache."
},
"originalUrl": {
"type": "string",
"description": "The original non-AMP URL."
},
"ampUrl": {
"type": "string",
"description": "The AMP URL pointing to the publisher's web server."
}
},
"id": "AmpUrl",
"description": "AMP URL response for a requested URL."
},
"AmpUrlError": {
"type": "object",
"properties": {
"originalUrl": {
"description": "The original non-AMP URL.",
"type": "string"
},
"ampUrl": {
"description": "The AMP URL pointing to the publisher's web server.",
"type": "string"
}
}
},
"AmpUrlError": {
"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"
"type": "string",
"description": "An optional descriptive error message."
},
"errorCode": {
"enumDescriptions": [
"Not specified error.",
"Indicates the requested URL is not found in the index, possibly because\nit's unable to be found, not able to be accessed by Googlebot, or some\nother error.",
"Indicates no AMP URL has been found that corresponds to the requested\nURL.",
"Indicates some kind of application error occurred at the server.\nClient advised to retry.",
"DEPRECATED: Indicates the requested URL is a valid AMP URL. This is a\nnon-error state, should not be relied upon as a sign of success or\nfailure. It will be removed in future versions of the API.",
"Indicates that an AMP URL has been found that corresponds to the request\nURL, but it is not valid AMP HTML."
],
"enum": [
"ERROR_CODE_UNSPECIFIED",
"INPUT_URL_NOT_FOUND",
@@ -178,23 +173,30 @@
"URL_IS_INVALID_AMP"
],
"description": "The error code of an API call.",
"type": "string"
},
"originalUrl": {
"description": "The original non-AMP URL.",
"type": "string"
"type": "string",
"enumDescriptions": [
"Not specified error.",
"Indicates the requested URL is not found in the index, possibly because\nit's unable to be found, not able to be accessed by Googlebot, or some\nother error.",
"Indicates no AMP URL has been found that corresponds to the requested\nURL.",
"Indicates some kind of application error occurred at the server.\nClient advised to retry.",
"DEPRECATED: Indicates the requested URL is a valid AMP URL. This is a\nnon-error state, should not be relied upon as a sign of success or\nfailure. It will be removed in future versions of the API.",
"Indicates that an AMP URL has been found that corresponds to the request\nURL, but it is not valid AMP HTML."
]
}
},
"id": "AmpUrlError"
"id": "AmpUrlError",
"description": "AMP URL Error resource for a requested URL that couldn't be found."
},
"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"
}
},
"description": "List of URLs to look up for the paired AMP URLs.\nThe URLs are case-sensitive. Up to 50 URLs per lookup\n(see [Usage Limits](/amp/cache/reference/limits))."
},
"lookupStrategy": {
"enum": [
@@ -209,9 +211,7 @@
]
}
},
"id": "BatchGetAmpUrlsRequest",
"description": "AMP URL request for a batch of URLs.",
"type": "object"
"id": "BatchGetAmpUrlsRequest"
}
},
"protocol": "rest",
@@ -231,6 +231,6 @@
"batchPath": "batch",
"id": "acceleratedmobilepageurl:v1",
"documentationLink": "https://developers.google.com/amp/cache/",
"revision": "20171025",
"revision": "20180110",
"title": "Accelerated Mobile Pages (AMP) URL API"
}
File diff suppressed because it is too large. Load diff
@@ -1647,17 +1647,19 @@ type FilterSet struct {
// CreativeId: The ID of the creative on which to filter; optional. This
// field may be set
// only for a filter set that accesses buyer-level troubleshooting data,
// i.e.
// one whose name matches the `bidders/*/accounts/*/filterSets/*`
// only for a filter set that accesses account-level troubleshooting
// data,
// i.e. one whose name matches the
// `bidders/*/accounts/*/filterSets/*`
// pattern.
CreativeId string `json:"creativeId,omitempty"`
// DealId: The ID of the deal on which to filter; optional. This field
// may be set
// only for a filter set that accesses buyer-level troubleshooting data,
// i.e.
// one whose name matches the `bidders/*/accounts/*/filterSets/*`
// only for a filter set that accesses account-level troubleshooting
// data,
// i.e. one whose name matches the
// `bidders/*/accounts/*/filterSets/*`
// pattern.
DealId int64 `json:"dealId,omitempty,string"`
@@ -1671,7 +1673,8 @@ type FilterSet struct {
// "APP" - The ad impression appears in an app.
Environment string `json:"environment,omitempty"`
// Format: The format on which to filter; optional.
// Format: DEPRECATED: use repeated formats field instead.
// The format on which to filter; optional.
//
// Possible values:
// "FORMAT_UNSPECIFIED" - A placeholder for an undefined format;
@@ -1681,6 +1684,20 @@ type FilterSet struct {
// "VIDEO" - The ad impression is video format.
Format string `json:"format,omitempty"`
// Formats: The list of formats on which to filter; may be empty. The
// filters
// represented by multiple formats are ORed together (i.e. if
// non-empty,
// results must match any one of the formats).
//
// Possible values:
// "FORMAT_UNSPECIFIED" - A placeholder for an undefined format;
// indicates that no format filter
// will be applied.
// "DISPLAY" - The ad impression is display format (i.e. an image).
// "VIDEO" - The ad impression is video format.
Formats []string `json:"formats,omitempty"`
// Name: A user-defined name of the filter set. Filter set names must be
// unique
// globally and match one of the patterns:
@@ -1689,7 +1706,7 @@ type FilterSet struct {
// troubleshooting
// data)
// - `bidders/*/accounts/*/filterSets/*` (for accessing
// buyer-level
// account-level
// troubleshooting data)
//
// This field is required in create operations.
@@ -5078,6 +5095,13 @@ func (r *AccountsCreativesService) Create(accountId string, creative *Creative)
return c
}
// AccountId1 sets the optional parameter "accountId1": The account the
// creative belongs to.
func (c *AccountsCreativesCreateCall) AccountId1(accountId1 string) *AccountsCreativesCreateCall {
c.urlParams_.Set("accountId1", accountId1)
return c
}
// DuplicateIdMode sets the optional parameter "duplicateIdMode":
// Indicates if multiple creatives can share an ID or not. Default
// is
@@ -5191,6 +5215,11 @@ func (c *AccountsCreativesCreateCall) Do(opts ...googleapi.CallOption) (*Creativ
// "required": true,
// "type": "string"
// },
// "accountId1": {
// "description": "The account the creative belongs to.",
// "location": "query",
// "type": "string"
// },
// "duplicateIdMode": {
// "description": "Indicates if multiple creatives can share an ID or not. Default is\nNO_DUPLICATES (one ID per creative).",
// "enum": [
@@ -5421,7 +5450,7 @@ func (c *AccountsCreativesListCall) PageToken(pageToken string) *AccountsCreativ
// attributes}
// <li>disapprovalReason: {a reason
// from
// DisapprovalReason
// DisapprovalReason}
// </ul>
// Example: 'accountId=12345 AND (dealsStatus:disapproved
// AND
@@ -5551,7 +5580,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\nDisapprovalReason\n\u003c/ul\u003e\nExample: 'accountId=12345 AND (dealsStatus:disapproved AND\ndisapprovalReason: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"
// }
@@ -5755,6 +5784,13 @@ func (r *AccountsCreativesService) Update(accountId string, creativeId string, c
return c
}
// AccountId1 sets the optional parameter "accountId1": The account the
// creative belongs to.
func (c *AccountsCreativesUpdateCall) AccountId1(accountId1 string) *AccountsCreativesUpdateCall {
c.urlParams_.Set("accountId1", accountId1)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
@@ -5857,6 +5893,11 @@ func (c *AccountsCreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creativ
// "required": true,
// "type": "string"
// },
// "accountId1": {
// "description": "The account the creative belongs to.",
// "location": "query",
// "type": "string"
// },
// "creativeId": {
// "description": "The buyer-defined creative ID of this creative.\nCan be used to filter the response of the\ncreatives.list\nmethod.",
// "location": "path",
+128 -128
View File
@@ -1,17 +1,4 @@
{
"canonicalName": "Ad Experience Report",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/xapi.zoo": {
"description": "Test scope for access to the Zoo service"
}
}
}
},
"rootUrl": "https://adexperiencereport.googleapis.com/",
"ownerDomain": "google.com",
"name": "adexperiencereport",
"batchPath": "batch",
"title": "Google Ad Experience Report API",
"ownerName": "Google",
@@ -19,6 +6,7 @@
"sites": {
"methods": {
"get": {
"description": "Gets a summary of the ad experience rating of a site.",
"response": {
"$ref": "SiteSummaryResponse"
},
@@ -26,30 +14,27 @@
"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.",
"required": true,
"type": "string"
"type": "string",
"pattern": "^sites/[^/]+$"
}
},
"scopes": [
"https://www.googleapis.com/auth/xapi.zoo"
],
"flatPath": "v1/sites/{sitesId}",
"path": "v1/{+name}",
"id": "adexperiencereport.sites.get",
"description": "Gets a summary of the ad experience rating of a site."
"id": "adexperiencereport.sites.get"
}
}
},
"violatingSites": {
"methods": {
"list": {
"path": "v1/violatingSites",
"id": "adexperiencereport.violatingSites.list",
"description": "Lists sites with Ad Experience Report statuses of \"Failing\" or \"Warning\".",
"response": {
"$ref": "ViolatingSitesResponse"
@@ -60,12 +45,45 @@
"scopes": [
"https://www.googleapis.com/auth/xapi.zoo"
],
"flatPath": "v1/violatingSites"
"flatPath": "v1/violatingSites",
"path": "v1/violatingSites",
"id": "adexperiencereport.violatingSites.list"
}
}
}
},
"parameters": {
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"type": "boolean",
"default": "true"
},
"bearer_token": {
"description": "OAuth bearer token.",
"type": "string",
"location": "query"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
@@ -78,31 +96,31 @@
"location": "query"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
"type": "string",
"location": "query"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"callback": {
"description": "JSONP",
"type": "string",
"location": "query"
},
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"alt": {
@@ -120,37 +138,6 @@
"location": "query",
"description": "Data format for response.",
"default": "json"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"type": "boolean",
"default": "true"
},
"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",
@@ -159,9 +146,9 @@
"description": "View Ad Experience Report data, and get a list of sites that have a significant number of annoying ads.",
"servicePath": "",
"basePath": "",
"revision": "20171129",
"documentationLink": "https://developers.google.com/ad-experience-report/",
"id": "adexperiencereport:v1",
"documentationLink": "https://developers.google.com/ad-experience-report/",
"revision": "20171129",
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
@@ -180,73 +167,28 @@
"id": "ViolatingSitesResponse"
},
"SiteSummaryResponse": {
"description": "Response message for GetSiteSummary.",
"type": "object",
"properties": {
"desktopSummary": {
"description": "Summary for the desktop review of the site.",
"$ref": "PlatformSummary"
},
"mobileSummary": {
"$ref": "PlatformSummary",
"description": "Summary for the mobile review of the site."
"description": "Summary for the mobile review of the site.",
"$ref": "PlatformSummary"
},
"reviewedSite": {
"description": "The name of the site reviewed.",
"type": "string"
},
"desktopSummary": {
"$ref": "PlatformSummary",
"description": "Summary for the desktop review of the site."
}
},
"id": "SiteSummaryResponse",
"description": "Response message for GetSiteSummary.",
"type": "object"
"id": "SiteSummaryResponse"
},
"PlatformSummary": {
"description": "Summary of the ad experience rating of a site for a specific platform.",
"type": "object",
"properties": {
"filterStatus": {
"enum": [
"UNKNOWN",
"ON",
"OFF",
"PAUSED",
"PENDING"
],
"description": "The ad filtering status of the site.",
"type": "string",
"enumDescriptions": [
"N/A.",
"Ad filtering is on.",
"Ad filtering is off.",
"Ad filtering is paused.",
"Ad filtering is pending."
]
},
"underReview": {
"description": "Whether the site is currently under review.",
"type": "boolean"
},
"reportUrl": {
"description": "A link that leads to a full ad experience report.",
"type": "string"
},
"lastChangeTime": {
"description": "The last time that the site changed status.",
"format": "google-datetime",
"type": "string"
},
"betterAdsStatus": {
"enum": [
"UNKNOWN",
"PASSING",
"WARNING",
"FAILING"
],
"description": "The status of the site reviewed for the Better Ads Standards.",
"type": "string",
"enumDescriptions": [
"Not reviewed.",
"Passing.",
"Warning.",
"Failing."
]
},
"enforcementTime": {
"description": "The date on which ad filtering begins.",
"format": "google-datetime",
@@ -268,16 +210,74 @@
],
"type": "string"
}
},
"filterStatus": {
"description": "The ad filtering status of the site.",
"type": "string",
"enumDescriptions": [
"N/A.",
"Ad filtering is on.",
"Ad filtering is off.",
"Ad filtering is paused.",
"Ad filtering is pending."
],
"enum": [
"UNKNOWN",
"ON",
"OFF",
"PAUSED",
"PENDING"
]
},
"underReview": {
"description": "Whether the site is currently under review.",
"type": "boolean"
},
"reportUrl": {
"description": "A link that leads to a full ad experience report.",
"type": "string"
},
"lastChangeTime": {
"description": "The last time that the site changed status.",
"format": "google-datetime",
"type": "string"
},
"betterAdsStatus": {
"description": "The status of the site reviewed for the Better Ads Standards.",
"type": "string",
"enumDescriptions": [
"Not reviewed.",
"Passing.",
"Warning.",
"Failing."
],
"enum": [
"UNKNOWN",
"PASSING",
"WARNING",
"FAILING"
]
}
},
"id": "PlatformSummary",
"description": "Summary of the ad experience rating of a site for a specific platform.",
"type": "object"
"id": "PlatformSummary"
}
},
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"protocol": "rest"
"protocol": "rest",
"canonicalName": "Ad Experience Report",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/xapi.zoo": {
"description": "Test scope for access to the Zoo service"
}
}
}
},
"rootUrl": "https://adexperiencereport.googleapis.com/",
"ownerDomain": "google.com",
"name": "adexperiencereport"
}
+646 -7
View File
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/wCcRyDpa6JwxkLwmzDkr55huG84\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/FEIM1JSTcD4HhoBpMoEeP9vkMCQ\"",
"discoveryVersion": "v1",
"id": "admin:directory_v1",
"name": "admin",
"canonicalName": "directory",
"version": "directory_v1",
"revision": "20171113",
"revision": "20171212",
"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",
@@ -312,31 +312,138 @@
}
}
},
"Building": {
"id": "Building",
"type": "object",
"description": "JSON template for Building object in Directory API.",
"properties": {
"buildingId": {
"type": "string",
"description": "Unique identifier for the building. The maximum length is 100 characters."
},
"buildingName": {
"type": "string",
"description": "The building name as seen by users in Calendar. Must be unique for the customer. For example, \"NYC-CHEL\". The maximum length is 100 characters."
},
"coordinates": {
"$ref": "BuildingCoordinates",
"description": "The geographic coordinates of the center of the building, expressed as latitude and longitude in decimal degrees."
},
"description": {
"type": "string",
"description": "A brief description of the building. For example, \"Chelsea Market\"."
},
"etags": {
"type": "string",
"description": "ETag of the resource."
},
"floorNames": {
"type": "array",
"description": "The display names for all floors in this building. The floors are expected to be sorted in ascending order, from lowest floor to highest floor. For example, [\"B2\", \"B1\", \"L\", \"1\", \"2\", \"2M\", \"3\", \"PH\"] Must contain at least one entry.",
"items": {
"type": "string"
}
},
"kind": {
"type": "string",
"description": "Kind of resource this is.",
"default": "admin#directory#resources#buildings#Building"
}
}
},
"BuildingCoordinates": {
"id": "BuildingCoordinates",
"type": "object",
"description": "JSON template for coordinates of a building in Directory API.",
"properties": {
"latitude": {
"type": "number",
"description": "Latitude in decimal degrees.",
"format": "double"
},
"longitude": {
"type": "number",
"description": "Longitude in decimal degrees.",
"format": "double"
}
}
},
"Buildings": {
"id": "Buildings",
"type": "object",
"description": "JSON template for Building List Response object in Directory API.",
"properties": {
"buildings": {
"type": "array",
"description": "The Buildings in this page of results.",
"items": {
"$ref": "Building"
}
},
"etag": {
"type": "string",
"description": "ETag of the resource."
},
"kind": {
"type": "string",
"description": "Kind of resource this is.",
"default": "admin#directory#resources#buildings#buildingsList"
},
"nextPageToken": {
"type": "string",
"description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results."
}
}
},
"CalendarResource": {
"id": "CalendarResource",
"type": "object",
"description": "JSON template for Calendar Resource object in Directory API.",
"properties": {
"buildingId": {
"type": "string",
"description": "Unique ID for the building a resource is located in."
},
"capacity": {
"type": "integer",
"description": "Capacity of a resource, number of seats in a room.",
"format": "int32"
},
"etags": {
"type": "string",
"description": "ETag of the resource."
},
"featureInstances": {
"type": "any"
},
"floorName": {
"type": "string",
"description": "Name of the floor a resource is located on."
},
"floorSection": {
"type": "string",
"description": "Name of the section within a floor a resource is located in."
},
"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)"
"description": "The read-only 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.",
"default": "admin#directory#resources#calendars#CalendarResource"
},
"resourceCategory": {
"type": "string",
"description": "The category of the calendar resource. Either CONFERENCE_ROOM or OTHER. Legacy data is set to CATEGORY_UNKNOWN."
},
"resourceDescription": {
"type": "string",
"description": "The brief description of the calendar resource."
"description": "Description of the resource, visible only to admins."
},
"resourceEmail": {
"type": "string",
"description": "The read-only email ID for the calendar resource. Generated as part of creating a new calendar resource."
"description": "The read-only email for the calendar resource. Generated as part of creating a new calendar resource."
},
"resourceId": {
"type": "string",
@@ -344,11 +451,15 @@
},
"resourceName": {
"type": "string",
"description": "The name of the calendar resource. For example, Training Room 1A"
"description": "The name of the calendar resource. For example, \"Training Room 1A\"."
},
"resourceType": {
"type": "string",
"description": "The type of the calendar resource. Used for grouping resources in the calendar user interface."
"description": "The type of the calendar resource, intended for non-room resources."
},
"userVisibleDescription": {
"type": "string",
"description": "Description of the resource, visible to users and admins."
}
}
},
@@ -472,6 +583,32 @@
"type": "string",
"description": "Chromebook boot mode (Read-only)"
},
"deviceFiles": {
"type": "array",
"description": "List of device files to download (Read-only)",
"items": {
"type": "object",
"properties": {
"createTime": {
"type": "string",
"description": "Date and time the file was created",
"format": "date-time"
},
"downloadUrl": {
"type": "string",
"description": "File downlod URL"
},
"name": {
"type": "string",
"description": "File name"
},
"type": {
"type": "string",
"description": "File type"
}
}
}
},
"deviceId": {
"type": "string",
"description": "Unique identifier of Chrome OS Device (Read-only)"
@@ -565,6 +702,29 @@
"description": "Final date the device will be supported (Read-only)",
"format": "date-time"
},
"tpmVersionInfo": {
"type": "object",
"properties": {
"family": {
"type": "string"
},
"firmwareVersion": {
"type": "string"
},
"manufacturer": {
"type": "string"
},
"specLevel": {
"type": "string"
},
"tpmModel": {
"type": "string"
},
"vendorSpecific": {
"type": "string"
}
}
},
"willAutoRenew": {
"type": "boolean",
"description": "Will Chromebook auto renew after support end date (Read-only)"
@@ -853,6 +1013,84 @@
}
}
},
"Feature": {
"id": "Feature",
"type": "object",
"description": "JSON template for Feature object in Directory API.",
"properties": {
"etags": {
"type": "string",
"description": "ETag of the resource."
},
"kind": {
"type": "string",
"description": "Kind of resource this is.",
"default": "admin#directory#resources#features#Feature"
},
"name": {
"type": "string",
"description": "The name of the feature.",
"annotations": {
"required": [
"directory.resources.features.insert"
]
}
}
}
},
"FeatureInstance": {
"id": "FeatureInstance",
"type": "object",
"description": "JSON template for a \"feature instance\".",
"properties": {
"feature": {
"$ref": "Feature"
}
}
},
"FeatureRename": {
"id": "FeatureRename",
"type": "object",
"description": "JSON request template for renaming a feature.",
"properties": {
"newName": {
"type": "string",
"description": "New name of the feature.",
"annotations": {
"required": [
"directory.resources.features.rename"
]
}
}
}
},
"Features": {
"id": "Features",
"type": "object",
"description": "JSON template for Feature List Response object in Directory API.",
"properties": {
"etag": {
"type": "string",
"description": "ETag of the resource."
},
"features": {
"type": "array",
"description": "The Features in this page of results.",
"items": {
"$ref": "Feature"
}
},
"kind": {
"type": "string",
"description": "Kind of resource this is.",
"default": "admin#directory#resources#features#featuresList"
},
"nextPageToken": {
"type": "string",
"description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results."
}
}
},
"Group": {
"id": "Group",
"type": "object",
@@ -4515,6 +4753,184 @@
},
"resources": {
"resources": {
"buildings": {
"methods": {
"delete": {
"id": "directory.resources.buildings.delete",
"path": "customer/{customer}/resources/buildings/{buildingId}",
"httpMethod": "DELETE",
"description": "Deletes a building.",
"parameters": {
"buildingId": {
"type": "string",
"description": "The ID of the building to delete.",
"required": true,
"location": "path"
},
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer",
"buildingId"
],
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
]
},
"get": {
"id": "directory.resources.buildings.get",
"path": "customer/{customer}/resources/buildings/{buildingId}",
"httpMethod": "GET",
"description": "Retrieves a building.",
"parameters": {
"buildingId": {
"type": "string",
"description": "The unique ID of the building to retrieve.",
"required": true,
"location": "path"
},
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer",
"buildingId"
],
"response": {
"$ref": "Building"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar",
"https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"
]
},
"insert": {
"id": "directory.resources.buildings.insert",
"path": "customer/{customer}/resources/buildings",
"httpMethod": "POST",
"description": "Inserts a building.",
"parameters": {
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer"
],
"request": {
"$ref": "Building"
},
"response": {
"$ref": "Building"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
]
},
"list": {
"id": "directory.resources.buildings.list",
"path": "customer/{customer}/resources/buildings",
"httpMethod": "GET",
"description": "Retrieves a list of buildings for an account.",
"parameters": {
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer"
],
"response": {
"$ref": "Buildings"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar",
"https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"
]
},
"patch": {
"id": "directory.resources.buildings.patch",
"path": "customer/{customer}/resources/buildings/{buildingId}",
"httpMethod": "PATCH",
"description": "Updates a building. This method supports patch semantics.",
"parameters": {
"buildingId": {
"type": "string",
"description": "The ID of the building to update.",
"required": true,
"location": "path"
},
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer",
"buildingId"
],
"request": {
"$ref": "Building"
},
"response": {
"$ref": "Building"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
]
},
"update": {
"id": "directory.resources.buildings.update",
"path": "customer/{customer}/resources/buildings/{buildingId}",
"httpMethod": "PUT",
"description": "Updates a building.",
"parameters": {
"buildingId": {
"type": "string",
"description": "The ID of the building to update.",
"required": true,
"location": "path"
},
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer",
"buildingId"
],
"request": {
"$ref": "Building"
},
"response": {
"$ref": "Building"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
]
}
}
},
"calendars": {
"methods": {
"delete": {
@@ -4621,10 +5037,20 @@
"maximum": "500",
"location": "query"
},
"orderBy": {
"type": "string",
"description": "Field(s) to sort results by in either ascending or descending order. Supported fields include resourceId, resourceName, capacity, buildingId, and floorName. If no order is specified, defaults to ascending. Should be of the form \"field [asc|desc], field [asc|desc], ...\". For example buildingId, capacity desc would return results sorted first by buildingId in ascending order then by capacity in descending order.",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "Token to specify the next page in the list.",
"location": "query"
},
"query": {
"type": "string",
"description": "String query used to filter results. Should be of the form \"field operator value\" where field can be any of supported fields and operators can be any of supported operations. Operators include '=' for exact match and ':' for prefix match where applicable. For prefix match, the value should always be followed by a *.",
"location": "query"
}
},
"parameterOrder": [
@@ -4705,6 +5131,219 @@
]
}
}
},
"features": {
"methods": {
"delete": {
"id": "directory.resources.features.delete",
"path": "customer/{customer}/resources/features/{featureKey}",
"httpMethod": "DELETE",
"description": "Deletes a feature.",
"parameters": {
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
},
"featureKey": {
"type": "string",
"description": "The unique ID of the feature to delete.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer",
"featureKey"
],
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
]
},
"get": {
"id": "directory.resources.features.get",
"path": "customer/{customer}/resources/features/{featureKey}",
"httpMethod": "GET",
"description": "Retrieves a feature.",
"parameters": {
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
},
"featureKey": {
"type": "string",
"description": "The unique ID of the feature to retrieve.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer",
"featureKey"
],
"response": {
"$ref": "Feature"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar",
"https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"
]
},
"insert": {
"id": "directory.resources.features.insert",
"path": "customer/{customer}/resources/features",
"httpMethod": "POST",
"description": "Inserts a feature.",
"parameters": {
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer"
],
"request": {
"$ref": "Feature"
},
"response": {
"$ref": "Feature"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
]
},
"list": {
"id": "directory.resources.features.list",
"path": "customer/{customer}/resources/features",
"httpMethod": "GET",
"description": "Retrieves a list of features for an account.",
"parameters": {
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
},
"pageToken": {
"type": "string",
"description": "Token to specify the next page in the list.",
"location": "query"
}
},
"parameterOrder": [
"customer"
],
"response": {
"$ref": "Features"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar",
"https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"
]
},
"patch": {
"id": "directory.resources.features.patch",
"path": "customer/{customer}/resources/features/{featureKey}",
"httpMethod": "PATCH",
"description": "Updates a feature. This method supports patch semantics.",
"parameters": {
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
},
"featureKey": {
"type": "string",
"description": "The unique ID of the feature to update.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer",
"featureKey"
],
"request": {
"$ref": "Feature"
},
"response": {
"$ref": "Feature"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
]
},
"rename": {
"id": "directory.resources.features.rename",
"path": "customer/{customer}/resources/features/{oldName}/rename",
"httpMethod": "POST",
"description": "Renames a feature.",
"parameters": {
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
},
"oldName": {
"type": "string",
"description": "The unique ID of the feature to rename.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer",
"oldName"
],
"request": {
"$ref": "FeatureRename"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
]
},
"update": {
"id": "directory.resources.features.update",
"path": "customer/{customer}/resources/features/{featureKey}",
"httpMethod": "PUT",
"description": "Updates a feature.",
"parameters": {
"customer": {
"type": "string",
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
"required": true,
"location": "path"
},
"featureKey": {
"type": "string",
"description": "The unique ID of the feature to update.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customer",
"featureKey"
],
"request": {
"$ref": "Feature"
},
"response": {
"$ref": "Feature"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
]
}
}
}
}
},
File diff suppressed because it is too large. Load diff
+83 -5
View File
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/YvMEbSpUd5h8xmSpskCE_HPECco\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/bw0JROoLapnynZnUYWv2Bypz6Uk\"",
"discoveryVersion": "v1",
"id": "admin:reports_v1",
"name": "admin",
"canonicalName": "reports",
"version": "reports_v1",
"revision": "20170622",
"revision": "20180110",
"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",
@@ -309,6 +309,11 @@
"description": "Obfuscated customer id for the record.",
"readOnly": true
},
"entityId": {
"type": "string",
"description": "Object key. Only relevant if entity.type = \"OBJECT\" Note: external-facing name of report is \"Entities\" rather than \"Objects\".",
"readOnly": true
},
"profileId": {
"type": "string",
"description": "Obfuscated user id for the record.",
@@ -316,12 +321,12 @@
},
"type": {
"type": "string",
"description": "The type of item, can be a customer or user.",
"description": "The type of item, can be customer, user, or entity (aka. object).",
"readOnly": true
},
"userEmail": {
"type": "string",
"description": "user's email.",
"description": "user's email. Only relevant if entity.type = \"USER\"",
"readOnly": true
}
}
@@ -659,7 +664,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)|(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)):[^,]+)",
"pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+)",
"location": "query"
}
},
@@ -675,6 +680,79 @@
}
}
},
"entityUsageReports": {
"methods": {
"get": {
"id": "reports.entityUsageReports.get",
"path": "usage/{entityType}/{entityKey}/dates/{date}",
"httpMethod": "GET",
"description": "Retrieves a report which is a collection of properties / statistics for a set of objects.",
"parameters": {
"customerId": {
"type": "string",
"description": "Represents the customer for which the data is to be fetched.",
"pattern": "C.+",
"location": "query"
},
"date": {
"type": "string",
"description": "Represents the date in yyyy-mm-dd format for which the data is to be fetched.",
"required": true,
"pattern": "(\\d){4}-(\\d){2}-(\\d){2}",
"location": "path"
},
"entityKey": {
"type": "string",
"description": "Represents the key of object for which the data should be filtered.",
"required": true,
"location": "path"
},
"entityType": {
"type": "string",
"description": "Type of object. Should be one of - gplus_communities.",
"required": true,
"pattern": "(gplus_communities)",
"location": "path"
},
"filters": {
"type": "string",
"description": "Represents the set of filters including parameter operator value.",
"pattern": "(((gplus)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+,)*(((gplus)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+)",
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "Maximum number of results to return. Maximum allowed is 1000",
"format": "uint32",
"maximum": "1000",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "Token to specify next page.",
"location": "query"
},
"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": "(((gplus)):[^,]+,)*(((gplus)):[^,]+)",
"location": "query"
}
},
"parameterOrder": [
"entityType",
"entityKey",
"date"
],
"response": {
"$ref": "UsageReports"
},
"scopes": [
"https://www.googleapis.com/auth/admin.reports.usage.readonly"
]
}
}
},
"userUsageReport": {
"methods": {
"get": {
+267 -3
View File
@@ -62,6 +62,7 @@ func New(client *http.Client) (*Service, error) {
s.Activities = NewActivitiesService(s)
s.Channels = NewChannelsService(s)
s.CustomerUsageReports = NewCustomerUsageReportsService(s)
s.EntityUsageReports = NewEntityUsageReportsService(s)
s.UserUsageReport = NewUserUsageReportService(s)
return s, nil
}
@@ -77,6 +78,8 @@ type Service struct {
CustomerUsageReports *CustomerUsageReportsService
EntityUsageReports *EntityUsageReportsService
UserUsageReport *UserUsageReportService
}
@@ -114,6 +117,15 @@ type CustomerUsageReportsService struct {
s *Service
}
func NewEntityUsageReportsService(s *Service) *EntityUsageReportsService {
rs := &EntityUsageReportsService{s: s}
return rs
}
type EntityUsageReportsService struct {
s *Service
}
func NewUserUsageReportService(s *Service) *UserUsageReportService {
rs := &UserUsageReportService{s: s}
return rs
@@ -472,13 +484,18 @@ type UsageReportEntity struct {
// CustomerId: Obfuscated customer id for the record.
CustomerId string `json:"customerId,omitempty"`
// EntityId: Object key. Only relevant if entity.type = "OBJECT" Note:
// external-facing name of report is "Entities" rather than "Objects".
EntityId string `json:"entityId,omitempty"`
// ProfileId: Obfuscated user id for the record.
ProfileId string `json:"profileId,omitempty"`
// Type: The type of item, can be a customer or user.
// Type: The type of item, can be customer, user, or entity (aka.
// object).
Type string `json:"type,omitempty"`
// UserEmail: user's email.
// UserEmail: user's email. Only relevant if entity.type = "USER"
UserEmail string `json:"userEmail,omitempty"`
// ForceSendFields is a list of field names (e.g. "CustomerId") to
@@ -1435,7 +1452,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)|(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)):[^,]+)",
// "pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+)",
// "type": "string"
// }
// },
@@ -1471,6 +1488,253 @@ func (c *CustomerUsageReportsGetCall) Pages(ctx context.Context, f func(*UsageRe
}
}
// method id "reports.entityUsageReports.get":
type EntityUsageReportsGetCall struct {
s *Service
entityType string
entityKey string
date string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Retrieves a report which is a collection of properties /
// statistics for a set of objects.
func (r *EntityUsageReportsService) Get(entityType string, entityKey string, date string) *EntityUsageReportsGetCall {
c := &EntityUsageReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.entityType = entityType
c.entityKey = entityKey
c.date = date
return c
}
// CustomerId sets the optional parameter "customerId": Represents the
// customer for which the data is to be fetched.
func (c *EntityUsageReportsGetCall) CustomerId(customerId string) *EntityUsageReportsGetCall {
c.urlParams_.Set("customerId", customerId)
return c
}
// Filters sets the optional parameter "filters": Represents the set of
// filters including parameter operator value.
func (c *EntityUsageReportsGetCall) Filters(filters string) *EntityUsageReportsGetCall {
c.urlParams_.Set("filters", filters)
return c
}
// MaxResults sets the optional parameter "maxResults": Maximum number
// of results to return. Maximum allowed is 1000
func (c *EntityUsageReportsGetCall) MaxResults(maxResults int64) *EntityUsageReportsGetCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken": Token to specify
// next page.
func (c *EntityUsageReportsGetCall) PageToken(pageToken string) *EntityUsageReportsGetCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Parameters sets the optional parameter "parameters": Represents the
// application name, parameter name pairs to fetch in csv as
// app_name1:param_name1, app_name2:param_name2.
func (c *EntityUsageReportsGetCall) Parameters(parameters string) *EntityUsageReportsGetCall {
c.urlParams_.Set("parameters", parameters)
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 *EntityUsageReportsGetCall) Fields(s ...googleapi.Field) *EntityUsageReportsGetCall {
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 *EntityUsageReportsGetCall) IfNoneMatch(entityTag string) *EntityUsageReportsGetCall {
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 *EntityUsageReportsGetCall) Context(ctx context.Context) *EntityUsageReportsGetCall {
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 *EntityUsageReportsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *EntityUsageReportsGetCall) 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, "usage/{entityType}/{entityKey}/dates/{date}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"entityType": c.entityType,
"entityKey": c.entityKey,
"date": c.date,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "reports.entityUsageReports.get" call.
// Exactly one of *UsageReports or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *UsageReports.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 *EntityUsageReportsGetCall) Do(opts ...googleapi.CallOption) (*UsageReports, 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 := &UsageReports{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Retrieves a report which is a collection of properties / statistics for a set of objects.",
// "httpMethod": "GET",
// "id": "reports.entityUsageReports.get",
// "parameterOrder": [
// "entityType",
// "entityKey",
// "date"
// ],
// "parameters": {
// "customerId": {
// "description": "Represents the customer for which the data is to be fetched.",
// "location": "query",
// "pattern": "C.+",
// "type": "string"
// },
// "date": {
// "description": "Represents the date in yyyy-mm-dd format for which the data is to be fetched.",
// "location": "path",
// "pattern": "(\\d){4}-(\\d){2}-(\\d){2}",
// "required": true,
// "type": "string"
// },
// "entityKey": {
// "description": "Represents the key of object for which the data should be filtered.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "entityType": {
// "description": "Type of object. Should be one of - gplus_communities.",
// "location": "path",
// "pattern": "(gplus_communities)",
// "required": true,
// "type": "string"
// },
// "filters": {
// "description": "Represents the set of filters including parameter operator value.",
// "location": "query",
// "pattern": "(((gplus)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+,)*(((gplus)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+)",
// "type": "string"
// },
// "maxResults": {
// "description": "Maximum number of results to return. Maximum allowed is 1000",
// "format": "uint32",
// "location": "query",
// "maximum": "1000",
// "type": "integer"
// },
// "pageToken": {
// "description": "Token to specify next page.",
// "location": "query",
// "type": "string"
// },
// "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": "(((gplus)):[^,]+,)*(((gplus)):[^,]+)",
// "type": "string"
// }
// },
// "path": "usage/{entityType}/{entityKey}/dates/{date}",
// "response": {
// "$ref": "UsageReports"
// },
// "scopes": [
// "https://www.googleapis.com/auth/admin.reports.usage.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 *EntityUsageReportsGetCall) Pages(ctx context.Context, f func(*UsageReports) 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 "reports.userUsageReport.get":
type UserUsageReportGetCall struct {
+139 -2
View File
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/DSG2TEF18bxTdYooKf_C2-FmmME\"",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/o3DGRejYlQONYxz9qTIt_cgX6AA\"",
"discoveryVersion": "v1",
"id": "analytics:v3",
"name": "analytics",
"version": "v3",
"revision": "20170807",
"revision": "20171211",
"title": "Google Analytics API",
"description": "Views and manages your Google Analytics data.",
"ownerDomain": "google.com",
@@ -291,6 +291,128 @@
}
}
},
"AccountTreeRequest": {
"id": "AccountTreeRequest",
"type": "object",
"description": "JSON template for an Analytics account tree requests. The account tree request is used in the provisioning api to create an account, property, and view (profile). It contains the basic information required to make these fields.",
"properties": {
"accountName": {
"type": "string",
"annotations": {
"required": [
"analytics.provisioning.createAccountTree"
]
}
},
"accountSettings": {
"type": "object",
"properties": {
"admobReporting": {
"type": "boolean"
},
"sharingWithGoogleAnySales": {
"type": "boolean"
},
"sharingWithGoogleProducts": {
"type": "boolean"
},
"sharingWithGoogleSales": {
"type": "boolean"
},
"sharingWithGoogleSupport": {
"type": "boolean"
},
"sharingWithOthers": {
"type": "boolean"
}
}
},
"kind": {
"type": "string",
"description": "Resource type for account ticket.",
"default": "analytics#accountTreeRequest"
},
"profileName": {
"type": "string",
"annotations": {
"required": [
"analytics.provisioning.createAccountTree"
]
}
},
"timezone": {
"type": "string",
"annotations": {
"required": [
"analytics.provisioning.createAccountTree"
]
}
},
"webpropertyName": {
"type": "string",
"annotations": {
"required": [
"analytics.provisioning.createAccountTree"
]
}
},
"websiteUrl": {
"type": "string",
"annotations": {
"required": [
"analytics.provisioning.createAccountTree"
]
}
}
}
},
"AccountTreeResponse": {
"id": "AccountTreeResponse",
"type": "object",
"description": "JSON template for an Analytics account tree response. The account tree response is used in the provisioning api to return the result of creating an account, property, and view (profile).",
"properties": {
"account": {
"$ref": "Account",
"description": "The account created."
},
"accountSettings": {
"type": "object",
"properties": {
"admobReporting": {
"type": "boolean"
},
"sharingWithGoogleAnySales": {
"type": "boolean"
},
"sharingWithGoogleProducts": {
"type": "boolean"
},
"sharingWithGoogleSales": {
"type": "boolean"
},
"sharingWithGoogleSupport": {
"type": "boolean"
},
"sharingWithOthers": {
"type": "boolean"
}
}
},
"kind": {
"type": "string",
"description": "Resource type for account ticket.",
"default": "analytics#accountTreeResponse"
},
"profile": {
"$ref": "Profile",
"description": "View (Profile) for the account."
},
"webproperty": {
"$ref": "Webproperty",
"description": "Web property for the account."
}
}
},
"Accounts": {
"id": "Accounts",
"type": "object",
@@ -7226,6 +7348,21 @@
"scopes": [
"https://www.googleapis.com/auth/analytics.provision"
]
},
"createAccountTree": {
"id": "analytics.provisioning.createAccountTree",
"path": "provisioning/createAccount",
"httpMethod": "POST",
"description": "Provision account.",
"request": {
"$ref": "AccountTreeRequest"
},
"response": {
"$ref": "AccountTreeResponse"
},
"scopes": [
"https://www.googleapis.com/auth/analytics.provision"
]
}
}
}
+280
View File
@@ -718,6 +718,169 @@ func (s *AccountTicket) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountTreeRequest: JSON template for an Analytics account tree
// requests. The account tree request is used in the provisioning api to
// create an account, property, and view (profile). It contains the
// basic information required to make these fields.
type AccountTreeRequest struct {
AccountName string `json:"accountName,omitempty"`
AccountSettings *AccountTreeRequestAccountSettings `json:"accountSettings,omitempty"`
// Kind: Resource type for account ticket.
Kind string `json:"kind,omitempty"`
ProfileName string `json:"profileName,omitempty"`
Timezone string `json:"timezone,omitempty"`
WebpropertyName string `json:"webpropertyName,omitempty"`
WebsiteUrl string `json:"websiteUrl,omitempty"`
// ForceSendFields is a list of field names (e.g. "AccountName") 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. "AccountName") 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 *AccountTreeRequest) MarshalJSON() ([]byte, error) {
type NoMethod AccountTreeRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountTreeRequestAccountSettings struct {
AdmobReporting bool `json:"admobReporting,omitempty"`
SharingWithGoogleAnySales bool `json:"sharingWithGoogleAnySales,omitempty"`
SharingWithGoogleProducts bool `json:"sharingWithGoogleProducts,omitempty"`
SharingWithGoogleSales bool `json:"sharingWithGoogleSales,omitempty"`
SharingWithGoogleSupport bool `json:"sharingWithGoogleSupport,omitempty"`
SharingWithOthers bool `json:"sharingWithOthers,omitempty"`
// ForceSendFields is a list of field names (e.g. "AdmobReporting") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AdmobReporting") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AccountTreeRequestAccountSettings) MarshalJSON() ([]byte, error) {
type NoMethod AccountTreeRequestAccountSettings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountTreeResponse: JSON template for an Analytics account tree
// response. The account tree response is used in the provisioning api
// to return the result of creating an account, property, and view
// (profile).
type AccountTreeResponse struct {
// Account: The account created.
Account *Account `json:"account,omitempty"`
AccountSettings *AccountTreeResponseAccountSettings `json:"accountSettings,omitempty"`
// Kind: Resource type for account ticket.
Kind string `json:"kind,omitempty"`
// Profile: View (Profile) for the account.
Profile *Profile `json:"profile,omitempty"`
// Webproperty: Web property for the account.
Webproperty *Webproperty `json:"webproperty,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Account") 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. "Account") 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 *AccountTreeResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountTreeResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountTreeResponseAccountSettings struct {
AdmobReporting bool `json:"admobReporting,omitempty"`
SharingWithGoogleAnySales bool `json:"sharingWithGoogleAnySales,omitempty"`
SharingWithGoogleProducts bool `json:"sharingWithGoogleProducts,omitempty"`
SharingWithGoogleSales bool `json:"sharingWithGoogleSales,omitempty"`
SharingWithGoogleSupport bool `json:"sharingWithGoogleSupport,omitempty"`
SharingWithOthers bool `json:"sharingWithOthers,omitempty"`
// ForceSendFields is a list of field names (e.g. "AdmobReporting") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AdmobReporting") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AccountTreeResponseAccountSettings) MarshalJSON() ([]byte, error) {
type NoMethod AccountTreeResponseAccountSettings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Accounts: An account collection provides a list of Analytics accounts
// to which a user has access. The account collection is the entry point
// to all management information. Each resource in the collection
@@ -19054,3 +19217,120 @@ func (c *ProvisioningCreateAccountTicketCall) Do(opts ...googleapi.CallOption) (
// }
}
// method id "analytics.provisioning.createAccountTree":
type ProvisioningCreateAccountTreeCall struct {
s *Service
accounttreerequest *AccountTreeRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// CreateAccountTree: Provision account.
func (r *ProvisioningService) CreateAccountTree(accounttreerequest *AccountTreeRequest) *ProvisioningCreateAccountTreeCall {
c := &ProvisioningCreateAccountTreeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accounttreerequest = accounttreerequest
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 *ProvisioningCreateAccountTreeCall) Fields(s ...googleapi.Field) *ProvisioningCreateAccountTreeCall {
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 *ProvisioningCreateAccountTreeCall) Context(ctx context.Context) *ProvisioningCreateAccountTreeCall {
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 *ProvisioningCreateAccountTreeCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProvisioningCreateAccountTreeCall) 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.accounttreerequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "provisioning/createAccount")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "analytics.provisioning.createAccountTree" call.
// Exactly one of *AccountTreeResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *AccountTreeResponse.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 *ProvisioningCreateAccountTreeCall) Do(opts ...googleapi.CallOption) (*AccountTreeResponse, 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 := &AccountTreeResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Provision account.",
// "httpMethod": "POST",
// "id": "analytics.provisioning.createAccountTree",
// "path": "provisioning/createAccount",
// "request": {
// "$ref": "AccountTreeRequest"
// },
// "response": {
// "$ref": "AccountTreeResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/analytics.provision"
// ]
// }
}
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/jaYfrc5Po9fYu5zMoC7jTk55tSA\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/fAl5BHlYqwU8XIUMb6QGOitbCcM\"",
"discoveryVersion": "v1",
"id": "androidenterprise:v1",
"name": "androidenterprise",
"canonicalName": "Android Enterprise",
"version": "v1",
"revision": "20171123",
"revision": "20180111",
"title": "Google Play EMM API",
"description": "Manages the deployment of apps to Android for Work users.",
"ownerDomain": "google.com",
@@ -859,6 +859,10 @@
"type": "string",
"description": "The Android ID of the device. This field will always be present."
},
"dpcPackageName": {
"type": "string",
"description": "Policy app on the device."
},
"managementType": {
"type": "string",
"description": "Identifies the extent to which the device is controlled by an Android EMM in various deployment configurations.\n\nPossible values include: \n- \"managedDevice\", a device where the DPC is set as device owner, \n- \"managedProfile\", a device where the DPC is set as profile owner."
@@ -1041,6 +1045,13 @@
"type": "string",
"description": "The name of the author of the product (for example, the app developer)."
},
"availableCountries": {
"type": "array",
"description": "The countries which this app is available in.",
"items": {
"type": "string"
}
},
"availableTracks": {
"type": "array",
"description": "The tracks that are visible to the enterprise.",
@@ -1048,6 +1059,18 @@
"type": "string"
}
},
"category": {
"type": "string",
"description": "The app category (e.g. RACING, SOCIAL, etc.)"
},
"contentRating": {
"type": "string",
"description": "The content rating for this app."
},
"description": {
"type": "string",
"description": "The localized promotional description, if available."
},
"detailsUrl": {
"type": "string",
"description": "A link to the (consumer) Google Play details page for the product."
@@ -1065,6 +1088,23 @@
"description": "Identifies what kind of resource this is. Value: the fixed string \"androidenterprise#product\".",
"default": "androidenterprise#product"
},
"lastUpdatedTimestampMillis": {
"type": "string",
"description": "The approximate time (within 7 days) the app was last published, expressed in milliseconds since epoch.",
"format": "int64"
},
"minAndroidSdkVersion": {
"type": "integer",
"description": "The minimum Android SDK necessary to run the app.",
"format": "int32"
},
"permissions": {
"type": "array",
"description": "A list of permissions required by the app.",
"items": {
"$ref": "ProductPermission"
}
},
"productId": {
"type": "string",
"description": "A string of the form app:\u003cpackage name\u003e. For example, app:com.google.android.gm represents the Gmail app."
@@ -1073,10 +1113,21 @@
"type": "string",
"description": "Whether this product is free, free with in-app purchases, or paid. If the pricing is unknown, this means the product is not generally available anymore (even though it might still be available to people who own it)."
},
"recentChanges": {
"type": "string",
"description": "A description of the recent changes made to the app."
},
"requiresContainerApp": {
"type": "boolean",
"description": "Deprecated."
},
"screenshotUrls": {
"type": "array",
"description": "A list of screenshot links representing the app.",
"items": {
"type": "string"
}
},
"signingCertificate": {
"$ref": "ProductSigningCertificate",
"description": "The certificate used to sign this product."
@@ -1825,6 +1825,9 @@ type NewDeviceEvent struct {
// present.
DeviceId string `json:"deviceId,omitempty"`
// DpcPackageName: Policy app on the device.
DpcPackageName string `json:"dpcPackageName,omitempty"`
// ManagementType: Identifies the extent to which the device is
// controlled by an Android EMM in various deployment
// configurations.
@@ -2148,9 +2151,21 @@ type Product struct {
// app developer).
AuthorName string `json:"authorName,omitempty"`
// AvailableCountries: The countries which this app is available in.
AvailableCountries []string `json:"availableCountries,omitempty"`
// AvailableTracks: The tracks that are visible to the enterprise.
AvailableTracks []string `json:"availableTracks,omitempty"`
// Category: The app category (e.g. RACING, SOCIAL, etc.)
Category string `json:"category,omitempty"`
// ContentRating: The content rating for this app.
ContentRating string `json:"contentRating,omitempty"`
// Description: The localized promotional description, if available.
Description string `json:"description,omitempty"`
// DetailsUrl: A link to the (consumer) Google Play details page for the
// product.
DetailsUrl string `json:"detailsUrl,omitempty"`
@@ -2172,6 +2187,17 @@ type Product struct {
// string "androidenterprise#product".
Kind string `json:"kind,omitempty"`
// LastUpdatedTimestampMillis: The approximate time (within 7 days) the
// app was last published, expressed in milliseconds since epoch.
LastUpdatedTimestampMillis int64 `json:"lastUpdatedTimestampMillis,omitempty,string"`
// MinAndroidSdkVersion: The minimum Android SDK necessary to run the
// app.
MinAndroidSdkVersion int64 `json:"minAndroidSdkVersion,omitempty"`
// Permissions: A list of permissions required by the app.
Permissions []*ProductPermission `json:"permissions,omitempty"`
// ProductId: A string of the form app:<package name>. For example,
// app:com.google.android.gm represents the Gmail app.
ProductId string `json:"productId,omitempty"`
@@ -2182,9 +2208,15 @@ type Product struct {
// available to people who own it).
ProductPricing string `json:"productPricing,omitempty"`
// RecentChanges: A description of the recent changes made to the app.
RecentChanges string `json:"recentChanges,omitempty"`
// RequiresContainerApp: Deprecated.
RequiresContainerApp bool `json:"requiresContainerApp,omitempty"`
// ScreenshotUrls: A list of screenshot links representing the app.
ScreenshotUrls []string `json:"screenshotUrls,omitempty"`
// SigningCertificate: The certificate used to sign this product.
SigningCertificate *ProductSigningCertificate `json:"signingCertificate,omitempty"`
+99 -29
View File
@@ -777,6 +777,10 @@
"type": "string",
"format": "google-datetime"
},
"deviceSettings": {
"description": "Device settings information. This information is only available when deviceSettingsEnabled is true in the device's policy.",
"$ref": "DeviceSettings"
},
"name": {
"description": "The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}",
"type": "string"
@@ -1318,7 +1322,7 @@
"type": "object",
"properties": {
"outgoingCallsDisabled": {
"description": "Whether outgoing calls are disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether outgoing calls are disabled.",
"type": "boolean"
},
"screenCaptureDisabled": {
@@ -1326,11 +1330,11 @@
"type": "boolean"
},
"bluetoothDisabled": {
"description": "Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user.",
"type": "boolean"
},
"installAppsDisabled": {
"description": "Whether user installation of apps is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether user installation of apps is disabled.",
"type": "boolean"
},
"factoryResetDisabled": {
@@ -1365,11 +1369,11 @@
}
},
"networkResetDisabled": {
"description": "Whether resetting network settings is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether resetting network settings is disabled.",
"type": "boolean"
},
"shortSupportMessage": {
"description": "A message displayed to the user in the settings screen wherever functionality has been disabled by the admin. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "A message displayed to the user in the settings screen wherever functionality has been disabled by the admin.",
"$ref": "UserFacingMessage"
},
"wifiConfigDisabled": {
@@ -1381,7 +1385,7 @@
"type": "boolean"
},
"keyguardDisabledFeatures": {
"description": "Disabled keyguard customizations, such as widgets. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Disabled keyguard customizations, such as widgets.",
"enumDescriptions": [
"This value is ignored.",
"Disable the camera on secure keyguard screens (e.g. PIN).",
@@ -1433,11 +1437,11 @@
"type": "boolean"
},
"setUserIconDisabled": {
"description": "Whether changing the user icon is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether changing the user icon is disabled.",
"type": "boolean"
},
"recommendedGlobalProxy": {
"description": "The network-independent global HTTP proxy. Typically proxies should be configured per-network in open_network_configuration. However for unusual configurations like general internal filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "The network-independent global HTTP proxy. Typically proxies should be configured per-network in open_network_configuration. However for unusual configurations like general internal filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it.",
"$ref": "ProxyInfo"
},
"applications": {
@@ -1448,11 +1452,11 @@
}
},
"outgoingBeamDisabled": {
"description": "Whether using NFC to beam out data from apps is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether using NFC to beam out data from apps is disabled.",
"type": "boolean"
},
"credentialsConfigDisabled": {
"description": "Whether configuring user credentials is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether configuring user credentials is disabled.",
"type": "boolean"
},
"autoTimeRequired": {
@@ -1460,11 +1464,11 @@
"type": "boolean"
},
"smsDisabled": {
"description": "Whether sending or receiving SMS messages is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether sending or receiving SMS messages is disabled.",
"type": "boolean"
},
"permittedInputMethods": {
"description": "If present, only input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "If present, only input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted.",
"$ref": "PackageNameList"
},
"adjustVolumeDisabled": {
@@ -1472,14 +1476,14 @@
"type": "boolean"
},
"accountTypesWithManagementDisabled": {
"description": "Account types that cannot be managed by the user. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Account types that cannot be managed by the user.",
"type": "array",
"items": {
"type": "string"
}
},
"vpnConfigDisabled": {
"description": "Whether configuring VPN is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether configuring VPN is disabled.",
"type": "boolean"
},
"frpAdminEmails": {
@@ -1490,11 +1494,11 @@
}
},
"alwaysOnVpnPackage": {
"description": "Configuration for an always-on VPN connection. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting.",
"$ref": "AlwaysOnVpnPackage"
},
"tetheringConfigDisabled": {
"description": "Whether configuring tethering and portable hotspots is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether configuring tethering and portable hotspots is disabled.",
"type": "boolean"
},
"name": {
@@ -1502,7 +1506,7 @@
"type": "string"
},
"uninstallAppsDisabled": {
"description": "Whether user uninstallation of applications is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether user uninstallation of applications is disabled.",
"type": "boolean"
},
"funDisabled": {
@@ -1530,19 +1534,23 @@
"type": "boolean"
},
"mountPhysicalMediaDisabled": {
"description": "Whether the user mounting physical external media is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether the user mounting physical external media is disabled.",
"type": "boolean"
},
"ensureVerifyAppsEnabled": {
"description": "Whether application verification is forced to be enabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether application verification is forced to be enabled.",
"type": "boolean"
},
"kioskCustomLauncherEnabled": {
"description": "Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. The apps appear on a single page in alphabetical order. It is recommended to also use status_bar_disabled to block access to device settings.",
"type": "boolean"
},
"mobileNetworksConfigDisabled": {
"description": "Whether configuring mobile networks is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether configuring mobile networks is disabled.",
"type": "boolean"
},
"dataRoamingDisabled": {
"description": "Whether roaming data services are disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether roaming data services are disabled.",
"type": "boolean"
},
"statusBarDisabled": {
@@ -1550,7 +1558,7 @@
"type": "boolean"
},
"longSupportMessage": {
"description": "A message displayed to the user in the device administators settings screen. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "A message displayed to the user in the device administators settings screen.",
"$ref": "UserFacingMessage"
},
"cameraDisabled": {
@@ -1562,7 +1570,7 @@
"$ref": "PasswordRequirements"
},
"setWallpaperDisabled": {
"description": "Whether changing the wallpaper is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether changing the wallpaper is disabled.",
"type": "boolean"
},
"version": {
@@ -1586,19 +1594,19 @@
"type": "boolean"
},
"bluetoothContactSharingDisabled": {
"description": "Whether bluetooth contact sharing is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether bluetooth contact sharing is disabled.",
"type": "boolean"
},
"bluetoothConfigDisabled": {
"description": "Whether configuring bluetooth is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether configuring bluetooth is disabled.",
"type": "boolean"
},
"cellBroadcastsConfigDisabled": {
"description": "Whether configuring cell broadcast is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether configuring cell broadcast is disabled.",
"type": "boolean"
},
"usbFileTransferDisabled": {
"description": "Whether transferring files over USB is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether transferring files over USB is disabled.",
"type": "boolean"
},
"removeUserDisabled": {
@@ -1610,7 +1618,7 @@
"type": "boolean"
},
"createWindowsDisabled": {
"description": "Whether creating windows besides app windows is disabled. \u003ci\u003eRequires the beta version of Android Cloud Policy.\u003c/i\u003e",
"description": "Whether creating windows besides app windows is disabled.",
"type": "boolean"
},
"persistentPreferredActivities": {
@@ -1736,6 +1744,10 @@
"description": "Whether hardware status reporting is enabled.",
"type": "boolean"
},
"deviceSettingsEnabled": {
"description": "Whether device settings reporting is enabled.",
"type": "boolean"
},
"softwareInfoEnabled": {
"description": "Whether software info reporting is enabled.",
"type": "boolean"
@@ -1873,6 +1885,10 @@
"description": "Android build Id string meant for displaying to the user, e.g. shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys.",
"type": "string"
},
"androidDevicePolicyVersionName": {
"description": "The Android Device Policy app version as displayed to the user.",
"type": "string"
},
"androidBuildTime": {
"description": "Build time.",
"type": "string",
@@ -1889,6 +1905,11 @@
"deviceKernelVersion": {
"description": "Kernel version, e.g. 2.6.32.9-g103d848.",
"type": "string"
},
"androidDevicePolicyVersionCode": {
"description": "The Android Device Policy app version code.",
"type": "integer",
"format": "int32"
}
},
"id": "SoftwareInfo"
@@ -2354,6 +2375,55 @@
},
"id": "ApiLevelCondition"
},
"DeviceSettings": {
"description": "Information about security related device settings on device.",
"type": "object",
"properties": {
"developmentSettingsEnabled": {
"description": "If the developer mode is enabled Settings.Global.DEVELOPMENT_SETTINGS_ENABLED.",
"type": "boolean"
},
"adbEnabled": {
"description": "If the ADB is enabled Settings.Global.ADB_ENABLED.",
"type": "boolean"
},
"isDeviceSecure": {
"description": "Device secured with PIN/password.",
"type": "boolean"
},
"isEncrypted": {
"description": "Whether the storage encryption is enabled DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE or DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE_PER_USER in N+ devices.",
"type": "boolean"
},
"unknownSourcesEnabled": {
"description": "If installing apps from unknown sources is enabled. Settings.Secure.INSTALL_NON_MARKET_APPS.",
"type": "boolean"
},
"encryptionStatus": {
"description": "Encryption status from DevicePolicyManager.",
"enum": [
"ENCRYPTION_STATUS_UNSPECIFIED",
"UNSUPPORTED",
"INACTIVE",
"ACTIVATING",
"ACTIVE",
"ACTIVE_DEFAULT_KEY",
"ACTIVE_PER_USER"
],
"enumDescriptions": [
"Unspecified. No device should have this type.",
"Encryption is not supported by the device.",
"Encryption is supported by the device, but not currently active.",
"Encryption is not currently active, but is currently being activated.",
"Encryption is active",
"Encryption is active, but an encryption key is not set by the user",
"Encrpyiton is active, and the encryption key is tied to the user profile."
],
"type": "string"
}
},
"id": "DeviceSettings"
},
"SystemUpdate": {
"description": "Configuration for managing system updates",
"type": "object",
@@ -2448,7 +2518,7 @@
"id": "HardwareStatus"
}
},
"revision": "20171127",
"revision": "20180108",
"basePath": "",
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
+111 -44
View File
@@ -531,6 +531,10 @@ type Device struct {
// devices will be in this state until they have applied policy.
AppliedState string `json:"appliedState,omitempty"`
// DeviceSettings: Device settings information. This information is only
// available when deviceSettingsEnabled is true in the device's policy.
DeviceSettings *DeviceSettings `json:"deviceSettings,omitempty"`
// DisabledReason: If the device state is DISABLED, an optional message
// that is displayed on the device indicating the reason the device is
// disabled. This field may be modified by an update request.
@@ -668,6 +672,68 @@ func (s *Device) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DeviceSettings: Information about security related device settings on
// device.
type DeviceSettings struct {
// AdbEnabled: If the ADB is enabled Settings.Global.ADB_ENABLED.
AdbEnabled bool `json:"adbEnabled,omitempty"`
// DevelopmentSettingsEnabled: If the developer mode is enabled
// Settings.Global.DEVELOPMENT_SETTINGS_ENABLED.
DevelopmentSettingsEnabled bool `json:"developmentSettingsEnabled,omitempty"`
// EncryptionStatus: Encryption status from DevicePolicyManager.
//
// Possible values:
// "ENCRYPTION_STATUS_UNSPECIFIED" - Unspecified. No device should
// have this type.
// "UNSUPPORTED" - Encryption is not supported by the device.
// "INACTIVE" - Encryption is supported by the device, but not
// currently active.
// "ACTIVATING" - Encryption is not currently active, but is currently
// being activated.
// "ACTIVE" - Encryption is active
// "ACTIVE_DEFAULT_KEY" - Encryption is active, but an encryption key
// is not set by the user
// "ACTIVE_PER_USER" - Encrpyiton is active, and the encryption key is
// tied to the user profile.
EncryptionStatus string `json:"encryptionStatus,omitempty"`
// IsDeviceSecure: Device secured with PIN/password.
IsDeviceSecure bool `json:"isDeviceSecure,omitempty"`
// IsEncrypted: Whether the storage encryption is enabled
// DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE or
// DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE_PER_USER in N+ devices.
IsEncrypted bool `json:"isEncrypted,omitempty"`
// UnknownSourcesEnabled: If installing apps from unknown sources is
// enabled. Settings.Secure.INSTALL_NON_MARKET_APPS.
UnknownSourcesEnabled bool `json:"unknownSourcesEnabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "AdbEnabled") 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. "AdbEnabled") 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 *DeviceSettings) MarshalJSON() ([]byte, error) {
type NoMethod DeviceSettings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Display: Device display information.
type Display struct {
// Density: Display density expressed as dots-per-inch.
@@ -1833,8 +1899,7 @@ func (s *PersistentPreferredActivity) MarshalJSON() ([]byte, error) {
// Policy: A policy, which governs behavior for a device.
type Policy struct {
// AccountTypesWithManagementDisabled: Account types that cannot be
// managed by the user. <i>Requires the beta version of Android Cloud
// Policy.</i>
// managed by the user.
AccountTypesWithManagementDisabled []string `json:"accountTypesWithManagementDisabled,omitempty"`
// AddUserDisabled: Whether adding new users and profiles is disabled.
@@ -1845,7 +1910,7 @@ type Policy struct {
AdjustVolumeDisabled bool `json:"adjustVolumeDisabled,omitempty"`
// AlwaysOnVpnPackage: Configuration for an always-on VPN connection.
// <i>Requires the beta version of Android Cloud Policy.</i>
// Use with vpn_config_disabled to prevent modification of this setting.
AlwaysOnVpnPackage *AlwaysOnVpnPackage `json:"alwaysOnVpnPackage,omitempty"`
// Applications: Policy applied to apps.
@@ -1862,24 +1927,22 @@ type Policy struct {
BlockApplicationsEnabled bool `json:"blockApplicationsEnabled,omitempty"`
// BluetoothConfigDisabled: Whether configuring bluetooth is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
BluetoothConfigDisabled bool `json:"bluetoothConfigDisabled,omitempty"`
// BluetoothContactSharingDisabled: Whether bluetooth contact sharing is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
// disabled.
BluetoothContactSharingDisabled bool `json:"bluetoothContactSharingDisabled,omitempty"`
// BluetoothDisabled: Whether bluetooth is disabled. Prefer this setting
// over bluetooth_config_disabled because bluetooth_config_disabled can
// be bypassed by the user. <i>Requires the beta version of Android
// Cloud Policy.</i>
// be bypassed by the user.
BluetoothDisabled bool `json:"bluetoothDisabled,omitempty"`
// CameraDisabled: Whether all cameras on the device are disabled.
CameraDisabled bool `json:"cameraDisabled,omitempty"`
// CellBroadcastsConfigDisabled: Whether configuring cell broadcast is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
// disabled.
CellBroadcastsConfigDisabled bool `json:"cellBroadcastsConfigDisabled,omitempty"`
// ComplianceRules: Rules declaring which mitigating actions to take
@@ -1889,16 +1952,14 @@ type Policy struct {
ComplianceRules []*ComplianceRule `json:"complianceRules,omitempty"`
// CreateWindowsDisabled: Whether creating windows besides app windows
// is disabled. <i>Requires the beta version of Android Cloud
// Policy.</i>
// is disabled.
CreateWindowsDisabled bool `json:"createWindowsDisabled,omitempty"`
// CredentialsConfigDisabled: Whether configuring user credentials is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
// disabled.
CredentialsConfigDisabled bool `json:"credentialsConfigDisabled,omitempty"`
// DataRoamingDisabled: Whether roaming data services are disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
DataRoamingDisabled bool `json:"dataRoamingDisabled,omitempty"`
// DebuggingFeaturesAllowed: Whether the user is allowed to enable
@@ -1918,8 +1979,7 @@ type Policy struct {
DefaultPermissionPolicy string `json:"defaultPermissionPolicy,omitempty"`
// EnsureVerifyAppsEnabled: Whether application verification is forced
// to be enabled. <i>Requires the beta version of Android Cloud
// Policy.</i>
// to be enabled.
EnsureVerifyAppsEnabled bool `json:"ensureVerifyAppsEnabled,omitempty"`
// FactoryResetDisabled: Whether factory resetting from settings is
@@ -1938,7 +1998,6 @@ type Policy struct {
FunDisabled bool `json:"funDisabled,omitempty"`
// InstallAppsDisabled: Whether user installation of apps is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
InstallAppsDisabled bool `json:"installAppsDisabled,omitempty"`
// InstallUnknownSourcesAllowed: Whether the user is allowed to enable
@@ -1950,7 +2009,7 @@ type Policy struct {
KeyguardDisabled bool `json:"keyguardDisabled,omitempty"`
// KeyguardDisabledFeatures: Disabled keyguard customizations, such as
// widgets. <i>Requires the beta version of Android Cloud Policy.</i>
// widgets.
//
// Possible values:
// "KEYGUARD_DISABLED_FEATURE_UNSPECIFIED" - This value is ignored.
@@ -1970,9 +2029,16 @@ type Policy struct {
// customizations.
KeyguardDisabledFeatures []string `json:"keyguardDisabledFeatures,omitempty"`
// KioskCustomLauncherEnabled: Whether the kiosk custom launcher is
// enabled. This replaces the home screen with a launcher that locks
// down the device to the apps installed via the applications setting.
// The apps appear on a single page in alphabetical order. It is
// recommended to also use status_bar_disabled to block access to device
// settings.
KioskCustomLauncherEnabled bool `json:"kioskCustomLauncherEnabled,omitempty"`
// LongSupportMessage: A message displayed to the user in the device
// administators settings screen. <i>Requires the beta version of
// Android Cloud Policy.</i>
// administators settings screen.
LongSupportMessage *UserFacingMessage `json:"longSupportMessage,omitempty"`
// MaximumTimeToLock: Maximum time in milliseconds for user activity
@@ -1981,7 +2047,7 @@ type Policy struct {
MaximumTimeToLock int64 `json:"maximumTimeToLock,omitempty,string"`
// MobileNetworksConfigDisabled: Whether configuring mobile networks is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
// disabled.
MobileNetworksConfigDisabled bool `json:"mobileNetworksConfigDisabled,omitempty"`
// ModifyAccountsDisabled: Whether adding or removing accounts is
@@ -1989,8 +2055,7 @@ type Policy struct {
ModifyAccountsDisabled bool `json:"modifyAccountsDisabled,omitempty"`
// MountPhysicalMediaDisabled: Whether the user mounting physical
// external media is disabled. <i>Requires the beta version of Android
// Cloud Policy.</i>
// external media is disabled.
MountPhysicalMediaDisabled bool `json:"mountPhysicalMediaDisabled,omitempty"`
// Name: The name of the policy in the form
@@ -2009,7 +2074,6 @@ type Policy struct {
NetworkEscapeHatchEnabled bool `json:"networkEscapeHatchEnabled,omitempty"`
// NetworkResetDisabled: Whether resetting network settings is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
NetworkResetDisabled bool `json:"networkResetDisabled,omitempty"`
// OpenNetworkConfiguration: Network configuration for the device. See
@@ -2017,11 +2081,10 @@ type Policy struct {
OpenNetworkConfiguration googleapi.RawMessage `json:"openNetworkConfiguration,omitempty"`
// OutgoingBeamDisabled: Whether using NFC to beam out data from apps is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
// disabled.
OutgoingBeamDisabled bool `json:"outgoingBeamDisabled,omitempty"`
// OutgoingCallsDisabled: Whether outgoing calls are disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
OutgoingCallsDisabled bool `json:"outgoingCallsDisabled,omitempty"`
// PasswordRequirements: Password requirements.
@@ -2030,7 +2093,6 @@ type Policy struct {
// PermittedInputMethods: If present, only input methods provided by
// packages in this list are permitted. If this field is present, but
// the list is empty, then only system input methods are permitted.
// <i>Requires the beta version of Android Cloud Policy.</i>
PermittedInputMethods *PackageNameList `json:"permittedInputMethods,omitempty"`
// PersistentPreferredActivities: Default intent handler activities.
@@ -2041,8 +2103,7 @@ type Policy struct {
// open_network_configuration. However for unusual configurations like
// general internal filtering a global HTTP proxy may be useful. If the
// proxy is not accessible, network access may break. The global proxy
// is only a recommendation and some apps may ignore it. <i>Requires the
// beta version of Android Cloud Policy.</i>
// is only a recommendation and some apps may ignore it.
RecommendedGlobalProxy *ProxyInfo `json:"recommendedGlobalProxy,omitempty"`
// RemoveUserDisabled: Whether removing other users is disabled.
@@ -2056,20 +2117,16 @@ type Policy struct {
ScreenCaptureDisabled bool `json:"screenCaptureDisabled,omitempty"`
// SetUserIconDisabled: Whether changing the user icon is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
SetUserIconDisabled bool `json:"setUserIconDisabled,omitempty"`
// SetWallpaperDisabled: Whether changing the wallpaper is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
SetWallpaperDisabled bool `json:"setWallpaperDisabled,omitempty"`
// ShortSupportMessage: A message displayed to the user in the settings
// screen wherever functionality has been disabled by the admin.
// <i>Requires the beta version of Android Cloud Policy.</i>
ShortSupportMessage *UserFacingMessage `json:"shortSupportMessage,omitempty"`
// SmsDisabled: Whether sending or receiving SMS messages is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
SmsDisabled bool `json:"smsDisabled,omitempty"`
// StatusBarDisabled: Whether the status bar is disabled. This disables
@@ -2098,12 +2155,11 @@ type Policy struct {
SystemUpdate *SystemUpdate `json:"systemUpdate,omitempty"`
// TetheringConfigDisabled: Whether configuring tethering and portable
// hotspots is disabled. <i>Requires the beta version of Android Cloud
// Policy.</i>
// hotspots is disabled.
TetheringConfigDisabled bool `json:"tetheringConfigDisabled,omitempty"`
// UninstallAppsDisabled: Whether user uninstallation of applications is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
// disabled.
UninstallAppsDisabled bool `json:"uninstallAppsDisabled,omitempty"`
// UnmuteMicrophoneDisabled: Whether the microphone is muted and
@@ -2111,15 +2167,14 @@ type Policy struct {
UnmuteMicrophoneDisabled bool `json:"unmuteMicrophoneDisabled,omitempty"`
// UsbFileTransferDisabled: Whether transferring files over USB is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
// disabled.
UsbFileTransferDisabled bool `json:"usbFileTransferDisabled,omitempty"`
// Version: The version of the policy. This is a read-only field. The
// version is incremented each time the policy is updated.
Version int64 `json:"version,omitempty,string"`
// VpnConfigDisabled: Whether configuring VPN is disabled. <i>Requires
// the beta version of Android Cloud Policy.</i>
// VpnConfigDisabled: Whether configuring VPN is disabled.
VpnConfigDisabled bool `json:"vpnConfigDisabled,omitempty"`
// WifiConfigDisabled: Whether configuring WiFi access points is
@@ -2306,6 +2361,14 @@ type SoftwareInfo struct {
// AndroidBuildTime: Build time.
AndroidBuildTime string `json:"androidBuildTime,omitempty"`
// AndroidDevicePolicyVersionCode: The Android Device Policy app version
// code.
AndroidDevicePolicyVersionCode int64 `json:"androidDevicePolicyVersionCode,omitempty"`
// AndroidDevicePolicyVersionName: The Android Device Policy app version
// as displayed to the user.
AndroidDevicePolicyVersionName string `json:"androidDevicePolicyVersionName,omitempty"`
// AndroidVersion: The user visible Android version string, e.g. 6.0.1.
AndroidVersion string `json:"androidVersion,omitempty"`
@@ -2421,6 +2484,9 @@ func (s *Status) MarshalJSON() ([]byte, error) {
// StatusReportingSettings: Settings controlling the behavior of status
// reports.
type StatusReportingSettings struct {
// DeviceSettingsEnabled: Whether device settings reporting is enabled.
DeviceSettingsEnabled bool `json:"deviceSettingsEnabled,omitempty"`
// DisplayInfoEnabled: Whether displays reporting is enabled.
DisplayInfoEnabled bool `json:"displayInfoEnabled,omitempty"`
@@ -2440,15 +2506,16 @@ type StatusReportingSettings struct {
// SoftwareInfoEnabled: Whether software info reporting is enabled.
SoftwareInfoEnabled bool `json:"softwareInfoEnabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayInfoEnabled")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "DeviceSettingsEnabled") 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. "DisplayInfoEnabled") to
// NullFields is a list of field names (e.g. "DeviceSettingsEnabled") 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
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/EKUDjWuy8xhU5dHne-WullXJgWw\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/jjPNPRw3vV3kPmpQDcyXQEJTSyY\"",
"discoveryVersion": "v1",
"id": "androidpublisher:v1.1",
"name": "androidpublisher",
"canonicalName": "Android Publisher",
"version": "v1.1",
"revision": "20170913",
"revision": "20171207",
"title": "Google Play Developer API",
"description": "Lets Android application developers access their Google Play accounts.",
"ownerDomain": "google.com",
@@ -109,6 +109,11 @@
"type": "string",
"description": "The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).",
"format": "int64"
},
"purchaseType": {
"type": "integer",
"description": "The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: \n- Test (i.e. purchased from a license testing account)",
"format": "int32"
}
}
},
@@ -127,6 +127,12 @@ type InappPurchase struct {
// since the epoch (Jan 1, 1970).
PurchaseTime int64 `json:"purchaseTime,omitempty,string"`
// PurchaseType: The type of purchase of the inapp product. This field
// is only set if this purchase was not made using the standard in-app
// billing flow. Possible values are:
// - Test (i.e. purchased from a license testing account)
PurchaseType int64 `json:"purchaseType,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
+31 -79
View File
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/6dRjzWCszNTQjv1EQoJBlq-Xgrs\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/eg3_eCWxB9N1rGAK3E85za1viGs\"",
"discoveryVersion": "v1",
"id": "androidpublisher:v2",
"name": "androidpublisher",
"canonicalName": "Android Publisher",
"version": "v2",
"revision": "20171030",
"revision": "20180114",
"title": "Google Play Developer API",
"description": "Lets Android application developers access their Google Play accounts.",
"ownerDomain": "google.com",
@@ -747,6 +747,11 @@
"type": "string",
"description": "The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).",
"format": "int64"
},
"purchaseType": {
"type": "integer",
"description": "The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: \n- Test (i.e. purchased from a license testing account)",
"format": "int32"
}
}
},
@@ -885,7 +890,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 \n- Subscription was replaced with a new subscription",
"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 \n- Subscription was cancelled by the developer",
"format": "int32"
},
"countryCode": {
@@ -906,6 +911,10 @@
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
"default": "androidpublisher#subscriptionPurchase"
},
"linkedPurchaseToken": {
"type": "string",
"description": "The purchase token of the originating purchase if this subscription is one of the following: \n- Re-signup of a canceled but non-lapsed subscription \n- Upgrade/downgrade from a previous subscription For example, suppose a user originally signs up and you receive purchase token X, then the user cancels and goes through the resignup flow (before their subscription lapses) and you receive purchase token Y, and finally the user upgrades their subscription and you receive purchase token Z. If you call this API with purchase token Z, this field will be set to Y. If you call this API with purchase token Y, this field will be set to X. If you call this API with purchase token X, this field will not be set."
},
"orderId": {
"type": "string",
"description": "The order id of the latest recurring order associated with the purchase of the subscription."
@@ -924,6 +933,11 @@
"type": "string",
"description": "ISO 4217 currency code for the subscription price. For example, if the price is specified in British pounds sterling, price_currency_code is \"GBP\"."
},
"purchaseType": {
"type": "integer",
"description": "The type of purchase of the subscription. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: \n- Test (i.e. purchased from a license testing account)",
"format": "int32"
},
"startTimeMillis": {
"type": "string",
"description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
@@ -1006,7 +1020,8 @@
"type": "object",
"properties": {
"track": {
"type": "string"
"type": "string",
"description": "Identifier for this track. One of \"alpha\", \"beta\", \"production\" or \"rollout\"."
},
"userFraction": {
"type": "number",
@@ -2587,19 +2602,9 @@
},
"track": {
"type": "string",
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"required": true,
"enum": [
"alpha",
"beta",
"production",
"rollout"
],
"enumDescriptions": [
"",
"",
"",
""
],
"pattern": "(alpha|beta|production|rollout)",
"location": "path"
}
},
@@ -2634,19 +2639,9 @@
},
"track": {
"type": "string",
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"required": true,
"enum": [
"alpha",
"beta",
"production",
"rollout"
],
"enumDescriptions": [
"",
"",
"",
""
],
"pattern": "(alpha|beta|production|rollout)",
"location": "path"
}
},
@@ -2684,19 +2679,9 @@
},
"track": {
"type": "string",
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"required": true,
"enum": [
"alpha",
"beta",
"production",
"rollout"
],
"enumDescriptions": [
"",
"",
"",
""
],
"pattern": "(alpha|beta|production|rollout)",
"location": "path"
}
},
@@ -2739,20 +2724,9 @@
},
"track": {
"type": "string",
"description": "The track type to read or modify.",
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"required": true,
"enum": [
"alpha",
"beta",
"production",
"rollout"
],
"enumDescriptions": [
"",
"",
"",
""
],
"pattern": "(alpha|beta|production|rollout)",
"location": "path"
}
},
@@ -2818,20 +2792,9 @@
},
"track": {
"type": "string",
"description": "The track type to read or modify.",
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"required": true,
"enum": [
"alpha",
"beta",
"production",
"rollout"
],
"enumDescriptions": [
"",
"",
"",
""
],
"pattern": "(alpha|beta|production|rollout)",
"location": "path"
}
},
@@ -2870,20 +2833,9 @@
},
"track": {
"type": "string",
"description": "The track type to read or modify.",
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
"required": true,
"enum": [
"alpha",
"beta",
"production",
"rollout"
],
"enumDescriptions": [
"",
"",
"",
""
],
"pattern": "(alpha|beta|production|rollout)",
"location": "path"
}
},
+41 -75
View File
@@ -1488,6 +1488,12 @@ type ProductPurchase struct {
// milliseconds since the epoch (Jan 1, 1970).
PurchaseTimeMillis int64 `json:"purchaseTimeMillis,omitempty,string"`
// PurchaseType: The type of purchase of the inapp product. This field
// is only set if this purchase was not made using the standard in-app
// billing flow. Possible values are:
// - Test (i.e. purchased from a license testing account)
PurchaseType int64 `json:"purchaseType,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
@@ -1797,6 +1803,7 @@ type SubscriptionPurchase struct {
// - Subscription was cancelled by the system, for example because of a
// billing problem
// - Subscription was replaced with a new subscription
// - Subscription was cancelled by the developer
CancelReason *int64 `json:"cancelReason,omitempty"`
// CountryCode: ISO 3166-1 alpha-2 billing country/region code of the
@@ -1815,6 +1822,20 @@ type SubscriptionPurchase struct {
// androidpublisher service.
Kind string `json:"kind,omitempty"`
// LinkedPurchaseToken: The purchase token of the originating purchase
// if this subscription is one of the following:
// - Re-signup of a canceled but non-lapsed subscription
// - Upgrade/downgrade from a previous subscription For example,
// suppose a user originally signs up and you receive purchase token X,
// then the user cancels and goes through the resignup flow (before
// their subscription lapses) and you receive purchase token Y, and
// finally the user upgrades their subscription and you receive purchase
// token Z. If you call this API with purchase token Z, this field will
// be set to Y. If you call this API with purchase token Y, this field
// will be set to X. If you call this API with purchase token X, this
// field will not be set.
LinkedPurchaseToken string `json:"linkedPurchaseToken,omitempty"`
// OrderId: The order id of the latest recurring order associated with
// the purchase of the subscription.
OrderId string `json:"orderId,omitempty"`
@@ -1837,6 +1858,12 @@ type SubscriptionPurchase struct {
// price_currency_code is "GBP".
PriceCurrencyCode string `json:"priceCurrencyCode,omitempty"`
// PurchaseType: The type of purchase of the subscription. This field is
// only set if this purchase was not made using the standard in-app
// billing flow. Possible values are:
// - Test (i.e. purchased from a license testing account)
PurchaseType int64 `json:"purchaseType,omitempty"`
// StartTimeMillis: Time at which the subscription was granted, in
// milliseconds since the Epoch.
StartTimeMillis int64 `json:"startTimeMillis,omitempty,string"`
@@ -2023,6 +2050,8 @@ func (s *TokenPagination) MarshalJSON() ([]byte, error) {
}
type Track struct {
// Track: Identifier for this track. One of "alpha", "beta",
// "production" or "rollout".
Track string `json:"track,omitempty"`
UserFraction float64 `json:"userFraction,omitempty"`
@@ -7522,19 +7551,9 @@ func (c *EditsTestersGetCall) Do(opts ...googleapi.CallOption) (*Testers, error)
// "type": "string"
// },
// "track": {
// "enum": [
// "alpha",
// "beta",
// "production",
// "rollout"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// ""
// ],
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "required": true,
// "type": "string"
// }
@@ -7682,19 +7701,9 @@ func (c *EditsTestersPatchCall) Do(opts ...googleapi.CallOption) (*Testers, erro
// "type": "string"
// },
// "track": {
// "enum": [
// "alpha",
// "beta",
// "production",
// "rollout"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// ""
// ],
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "required": true,
// "type": "string"
// }
@@ -7845,19 +7854,9 @@ func (c *EditsTestersUpdateCall) Do(opts ...googleapi.CallOption) (*Testers, err
// "type": "string"
// },
// "track": {
// "enum": [
// "alpha",
// "beta",
// "production",
// "rollout"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// ""
// ],
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "required": true,
// "type": "string"
// }
@@ -8017,20 +8016,9 @@ func (c *EditsTracksGetCall) Do(opts ...googleapi.CallOption) (*Track, error) {
// "type": "string"
// },
// "track": {
// "description": "The track type to read or modify.",
// "enum": [
// "alpha",
// "beta",
// "production",
// "rollout"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// ""
// ],
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "required": true,
// "type": "string"
// }
@@ -8329,20 +8317,9 @@ func (c *EditsTracksPatchCall) Do(opts ...googleapi.CallOption) (*Track, error)
// "type": "string"
// },
// "track": {
// "description": "The track type to read or modify.",
// "enum": [
// "alpha",
// "beta",
// "production",
// "rollout"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// ""
// ],
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "required": true,
// "type": "string"
// }
@@ -8496,20 +8473,9 @@ func (c *EditsTracksUpdateCall) Do(opts ...googleapi.CallOption) (*Track, error)
// "type": "string"
// },
// "track": {
// "description": "The track type to read or modify.",
// "enum": [
// "alpha",
// "beta",
// "production",
// "rollout"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// ""
// ],
// "description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\" or \"rollout\".",
// "location": "path",
// "pattern": "(alpha|beta|production|rollout)",
// "required": true,
// "type": "string"
// }
+83 -39
View File
@@ -2,6 +2,21 @@
"kind": "discovery#directoryList",
"discoveryVersion": "v1",
"items": [
{
"kind": "discovery#directoryItem",
"id": "abusiveexperiencereport:v1",
"name": "abusiveexperiencereport",
"version": "v1",
"title": "Google Abusive Experience Report API",
"description": "View Abusive Experience Report data, and get a list of sites that have a significant number of abusive experiences.",
"discoveryRestUrl": "https://abusiveexperiencereport.googleapis.com/$discovery/rest?version=v1",
"icons": {
"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/abusive-experience-report/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "acceleratedmobilepageurl:v1",
@@ -786,6 +801,36 @@
"documentationLink": "https://cloud.google.com/resource-manager",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "cloudshell:v1alpha1",
"name": "cloudshell",
"version": "v1alpha1",
"title": "Cloud Shell API",
"description": "",
"discoveryRestUrl": "https://cloudshell.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/shell/docs/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "cloudshell:v1",
"name": "cloudshell",
"version": "v1",
"title": "Cloud Shell API",
"description": "",
"discoveryRestUrl": "https://cloudshell.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/shell/docs/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "cloudtasks:v2beta2",
@@ -943,27 +988,12 @@
"documentationLink": "https://developers.google.com/compute/docs/reference/latest/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "consumersurveys:v2",
"name": "consumersurveys",
"version": "v2",
"title": "Consumer Surveys API",
"description": "Creates and conducts surveys, lists the surveys that an authenticated user owns, and retrieves survey results and information about specified surveys.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/consumersurveys/v2/rest",
"discoveryLink": "./apis/consumersurveys/v2/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"
},
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "container:v1",
"name": "container",
"version": "v1",
"title": "Google Container Engine API",
"title": "Google Kubernetes Engine API",
"description": "The Google Kubernetes Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
"discoveryRestUrl": "https://container.googleapis.com/$discovery/rest?version=v1",
"icons": {
@@ -978,7 +1008,7 @@
"id": "container:v1beta1",
"name": "container",
"version": "v1beta1",
"title": "Google Container Engine API",
"title": "Google Kubernetes Engine API",
"description": "The Google Kubernetes Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
"discoveryRestUrl": "https://container.googleapis.com/$discovery/rest?version=v1beta1",
"icons": {
@@ -1174,22 +1204,6 @@
"documentationLink": "https://cloud.google.com/deployment-manager/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "dfareporting:v2.7",
"name": "dfareporting",
"version": "v2.7",
"title": "DCM/DFA Reporting And Trafficking API",
"description": "Manages your DoubleClick Campaign Manager ad campaigns and reports.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/dfareporting/v2.7/rest",
"discoveryLink": "./apis/dfareporting/v2.7/rest",
"icons": {
"x16": "https://www.google.com/images/icons/product/doubleclick-16.gif",
"x32": "https://www.google.com/images/icons/product/doubleclick-32.gif"
},
"documentationLink": "https://developers.google.com/doubleclick-advertisers/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "dfareporting:v2.8",
@@ -1237,6 +1251,21 @@
"documentationLink": "https://cloud.google.com/dialogflow-enterprise/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "digitalassetlinks:v1",
"name": "digitalassetlinks",
"version": "v1",
"title": "Digital Asset Links API",
"description": "API for discovering relationships between online assets such as web sites or mobile apps.",
"discoveryRestUrl": "https://digitalassetlinks.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/digital-asset-links/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "discovery:v1",
@@ -1266,6 +1295,21 @@
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/dlp/docs/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "dlp:v2beta2",
"name": "dlp",
"version": "v2beta2",
"title": "DLP API",
"description": "The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.",
"discoveryRestUrl": "https://dlp.googleapis.com/$discovery/rest?version=v2beta2",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/dlp/docs/",
"preferred": true
},
{
@@ -2279,8 +2323,8 @@
"id": "runtimeconfig:v1",
"name": "runtimeconfig",
"version": "v1",
"title": "Google Cloud RuntimeConfig API",
"description": "Provides capabilities for dynamic configuration and coordination for applications running on Google Cloud Platform.",
"title": "Google Cloud Runtime Configuration API",
"description": "The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions.",
"discoveryRestUrl": "https://runtimeconfig.googleapis.com/$discovery/rest?version=v1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
@@ -2294,8 +2338,8 @@
"id": "runtimeconfig:v1beta1",
"name": "runtimeconfig",
"version": "v1beta1",
"title": "Google Cloud RuntimeConfig API",
"description": "Provides capabilities for dynamic configuration and coordination for applications running on Google Cloud Platform.",
"title": "Google Cloud Runtime Configuration API",
"description": "The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions.",
"discoveryRestUrl": "https://runtimeconfig.googleapis.com/$discovery/rest?version=v1beta1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
@@ -2324,14 +2368,14 @@
"id": "script:v1",
"name": "script",
"version": "v1",
"title": "Google Apps Script Execution API",
"title": "Google Apps Script API",
"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",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://developers.google.com/apps-script/execution/rest/v1/scripts/run",
"documentationLink": "https://developers.google.com/apps-script/api/",
"preferred": true
},
{
File diff suppressed because it is too large. Load diff
+119 -47
View File
@@ -532,8 +532,8 @@ func (s *AuthorizedDomain) MarshalJSON() ([]byte, error) {
type AutomaticScaling struct {
// CoolDownPeriod: Amount of time that the Autoscaler
// (https://cloud.google.com/compute/docs/autoscaler/) should wait
// between changes to the number of virtual machines. Only applicable
// for VM runtimes.
// between changes to the number of virtual machines. Only applicable in
// the App Engine flexible environment.
CoolDownPeriod string `json:"coolDownPeriod,omitempty"`
// CpuUtilization: Target scaling by CPU usage.
@@ -826,6 +826,68 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
return nil
}
// CreateVersionMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1alpha.CreateVersionRequest.
type CreateVersionMetadataV1Alpha struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1Alpha
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1Beta: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1beta.CreateVersionRequest.
type CreateVersionMetadataV1Beta struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1Beta
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DebugInstanceRequest: Request message for Instances.DebugInstance.
type DebugInstanceRequest struct {
// SshKey: Public SSH key to add to the instance.
@@ -900,8 +962,8 @@ func (s *Deployment) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DiskUtilization: Target scaling by disk usage. Only applicable for VM
// runtimes.
// DiskUtilization: Target scaling by disk usage. Only applicable in the
// App Engine flexible environment.
type DiskUtilization struct {
// TargetReadBytesPerSecond: Target bytes read per second.
TargetReadBytesPerSecond int64 `json:"targetReadBytesPerSecond,omitempty"`
@@ -1963,16 +2025,16 @@ func (s *ManualScaling) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Network: Extra network settings. Only applicable for App Engine
// flexible environment versions
// Network: Extra network settings. Only applicable in the App Engine
// flexible environment.
type Network struct {
// ForwardedPorts: List of ports, or port pairs, to forward from the
// virtual machine to the application container. Only applicable for App
// Engine flexible environment versions.
// virtual machine to the application container. Only applicable in the
// App Engine flexible environment.
ForwardedPorts []string `json:"forwardedPorts,omitempty"`
// InstanceTag: Tag to apply to the VM instance during creation. Only
// applicable for for App Engine flexible environment versions.
// InstanceTag: Tag to apply to the VM instance during creation. for
// Only applicable in the App Engine flexible environment.
InstanceTag string `json:"instanceTag,omitempty"`
// Name: Google Compute Engine network where the virtual machines are
@@ -2022,7 +2084,7 @@ func (s *Network) MarshalJSON() ([]byte, error) {
}
// NetworkUtilization: Target scaling by network usage. Only applicable
// for VM runtimes.
// in the App Engine flexible environment.
type NetworkUtilization struct {
// TargetReceivedBytesPerSecond: Target bytes received per second.
TargetReceivedBytesPerSecond int64 `json:"targetReceivedBytesPerSecond,omitempty"`
@@ -2223,6 +2285,8 @@ func (s *OperationMetadataV1) MarshalJSON() ([]byte, error) {
// OperationMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1Alpha struct {
CreateVersionMetadata *CreateVersionMetadataV1Alpha `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -2248,20 +2312,22 @@ type OperationMetadataV1Alpha struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -2274,6 +2340,8 @@ func (s *OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) {
// OperationMetadataV1Beta: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1Beta struct {
CreateVersionMetadata *CreateVersionMetadataV1Beta `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -2299,20 +2367,22 @@ type OperationMetadataV1Beta struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -2424,7 +2494,7 @@ type RepairApplicationRequest struct {
}
// RequestUtilization: Target scaling by request utilization. Only
// applicable for VM runtimes.
// applicable in the App Engine flexible environment.
type RequestUtilization struct {
// TargetConcurrentRequests: Target number of concurrent requests.
TargetConcurrentRequests int64 `json:"targetConcurrentRequests,omitempty"`
@@ -2665,13 +2735,11 @@ func (s *SslSettings) MarshalJSON() ([]byte, error) {
// environment.
type StandardSchedulerSettings struct {
// MaxInstances: Maximum number of instances for an app version. Set to
// a non-positive value (0 by convention) to disable max_instances
// configuration.
// zero to disable max_instances configuration.
MaxInstances int64 `json:"maxInstances,omitempty"`
// MinInstances: Minimum number of instances for an app version. Set to
// a non-positive value (0 by convention) to disable min_instances
// configuration.
// zero to disable min_instances configuration.
MinInstances int64 `json:"minInstances,omitempty"`
// TargetCpuUtilization: Target CPU utilization ratio to maintain when
@@ -3098,7 +3166,7 @@ type Version struct {
Deployment *Deployment `json:"deployment,omitempty"`
// DiskUsageBytes: Total size in bytes of all the files that are
// included in this version and curerntly hosted on the App Engine
// included in this version and currently hosted on the App Engine
// disk.@OutputOnly
DiskUsageBytes int64 `json:"diskUsageBytes,omitempty,string"`
@@ -3127,8 +3195,8 @@ type Version struct {
// HealthCheck: Configures health checking for VM instances. Unhealthy
// instances are stopped and replaced with new instances. Only
// applicable for VM runtimes.Only returned in GET requests if view=FULL
// is set.
// applicable in the App Engine flexible environment.Only returned in
// GET requests if view=FULL is set.
HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
// Id: Relative name of the version within the service. Example: v1.
@@ -3184,8 +3252,8 @@ type Version struct {
// apps/myapp/services/default/versions/v1.@OutputOnly
Name string `json:"name,omitempty"`
// Network: Extra network settings. Only applicable for App Engine
// flexible environment versions.
// Network: Extra network settings. Only applicable in the App Engine
// flexible environment.
Network *Network `json:"network,omitempty"`
// NobuildFilesRegex: Files that match this pattern will not be built
@@ -3236,6 +3304,10 @@ type Version struct {
// machine.
Vm bool `json:"vm,omitempty"`
// Zones: The choice of gce zones to use for this App Engine Flexible
// version.
Zones []string `json:"zones,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
@@ -3263,8 +3335,8 @@ func (s *Version) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Volume: Volumes mounted within the app container. Only applicable for
// VM runtimes.
// Volume: Volumes mounted within the app container. Only applicable in
// the App Engine flexible environment.
type Volume struct {
// Name: Unique name for the volume.
Name string `json:"name,omitempty"`
File diff suppressed because it is too large. Load diff
+94 -24
View File
@@ -311,6 +311,68 @@ func (s *CertificateRawData) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1alpha.CreateVersionRequest.
type CreateVersionMetadataV1Alpha struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1Alpha
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1Beta: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1beta.CreateVersionRequest.
type CreateVersionMetadataV1Beta struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1Beta
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DomainMapping: A domain serving an App Engine application.
type DomainMapping struct {
// Id: Relative name of the domain serving the application. Example:
@@ -874,6 +936,8 @@ func (s *OperationMetadataV1) MarshalJSON() ([]byte, error) {
// OperationMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1Alpha struct {
CreateVersionMetadata *CreateVersionMetadataV1Alpha `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -899,20 +963,22 @@ type OperationMetadataV1Alpha struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -925,6 +991,8 @@ func (s *OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) {
// OperationMetadataV1Beta: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1Beta struct {
CreateVersionMetadata *CreateVersionMetadataV1Beta `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -950,20 +1018,22 @@ type OperationMetadataV1Beta struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
File diff suppressed because it is too large. Load diff
+170 -48
View File
@@ -539,8 +539,8 @@ func (s *AuthorizedDomain) MarshalJSON() ([]byte, error) {
type AutomaticScaling struct {
// CoolDownPeriod: Amount of time that the Autoscaler
// (https://cloud.google.com/compute/docs/autoscaler/) should wait
// between changes to the number of virtual machines. Only applicable
// for VM runtimes.
// between changes to the number of virtual machines. Only applicable in
// the App Engine flexible environment.
CoolDownPeriod string `json:"coolDownPeriod,omitempty"`
// CpuUtilization: Target scaling by CPU usage.
@@ -780,6 +780,46 @@ func (s *CertificateRawData) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CloudBuildOptions: Options for the build operations performed as a
// part of the version deployment. Only applicable for App Engine
// flexible environment when creating a version using source code
// directly.
type CloudBuildOptions struct {
// AppYamlPath: Path to the yaml file used in deployment, used to
// determine runtime configuration details.Required for flexible
// environment builds.See
// https://cloud.google.com/appengine/docs/standard/python/config/appref
// for more details.
AppYamlPath string `json:"appYamlPath,omitempty"`
// CloudBuildTimeout: The Cloud Build timeout used as part of any
// dependent builds performed by version creation. Defaults to 10
// minutes.
CloudBuildTimeout string `json:"cloudBuildTimeout,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppYamlPath") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AppYamlPath") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CloudBuildOptions) MarshalJSON() ([]byte, error) {
type NoMethod CloudBuildOptions
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ContainerInfo: Docker image that is used to create a container and
// start a VM instance for the version that you deploy. Only applicable
// for instances running in the App Engine flexible environment.
@@ -862,6 +902,68 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
return nil
}
// CreateVersionMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1alpha.CreateVersionRequest.
type CreateVersionMetadataV1Alpha struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1Alpha
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1Beta: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1beta.CreateVersionRequest.
type CreateVersionMetadataV1Beta struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1Beta
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DebugInstanceRequest: Request message for Instances.DebugInstance.
type DebugInstanceRequest struct {
// SshKey: Public SSH key to add to the instance.
@@ -900,9 +1002,19 @@ func (s *DebugInstanceRequest) MarshalJSON() ([]byte, error) {
// Deployment: Code and application artifacts used to deploy a version
// to App Engine.
type Deployment struct {
// Build: Google Cloud Container Builder build information.
// Build: Google Cloud Container Builder build information. Only
// applicable for instances running in the App Engine flexible
// environment.
Build *BuildInfo `json:"build,omitempty"`
// CloudBuildOptions: Options for any Google Cloud Container Builder
// builds created as a part of this deployment.Note that this is
// orthogonal to the build parameter, where the deployment depends on an
// already existing cloud build. These options will only be used if a
// new build is created, such as when deploying to the App Engine
// flexible environment using files or zip.
CloudBuildOptions *CloudBuildOptions `json:"cloudBuildOptions,omitempty"`
// Container: The Docker image for the container that runs the version.
// Only applicable for instances running in the App Engine flexible
// environment.
@@ -939,8 +1051,8 @@ func (s *Deployment) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DiskUtilization: Target scaling by disk usage. Only applicable for VM
// runtimes.
// DiskUtilization: Target scaling by disk usage. Only applicable in the
// App Engine flexible environment.
type DiskUtilization struct {
// TargetReadBytesPerSecond: Target bytes read per second.
TargetReadBytesPerSecond int64 `json:"targetReadBytesPerSecond,omitempty"`
@@ -2073,16 +2185,16 @@ func (s *ManualScaling) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Network: Extra network settings. Only applicable for App Engine
// flexible environment versions
// Network: Extra network settings. Only applicable in the App Engine
// flexible environment.
type Network struct {
// ForwardedPorts: List of ports, or port pairs, to forward from the
// virtual machine to the application container. Only applicable for App
// Engine flexible environment versions.
// virtual machine to the application container. Only applicable in the
// App Engine flexible environment.
ForwardedPorts []string `json:"forwardedPorts,omitempty"`
// InstanceTag: Tag to apply to the VM instance during creation. Only
// applicable for for App Engine flexible environment versions.
// InstanceTag: Tag to apply to the VM instance during creation. for
// Only applicable in the App Engine flexible environment.
InstanceTag string `json:"instanceTag,omitempty"`
// Name: Google Compute Engine network where the virtual machines are
@@ -2132,7 +2244,7 @@ func (s *Network) MarshalJSON() ([]byte, error) {
}
// NetworkUtilization: Target scaling by network usage. Only applicable
// for VM runtimes.
// in the App Engine flexible environment.
type NetworkUtilization struct {
// TargetReceivedBytesPerSecond: Target bytes received per second.
TargetReceivedBytesPerSecond int64 `json:"targetReceivedBytesPerSecond,omitempty"`
@@ -2333,6 +2445,8 @@ func (s *OperationMetadataV1) MarshalJSON() ([]byte, error) {
// OperationMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1Alpha struct {
CreateVersionMetadata *CreateVersionMetadataV1Alpha `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -2358,20 +2472,22 @@ type OperationMetadataV1Alpha struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -2384,6 +2500,8 @@ func (s *OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) {
// OperationMetadataV1Beta: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1Beta struct {
CreateVersionMetadata *CreateVersionMetadataV1Beta `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -2409,20 +2527,22 @@ type OperationMetadataV1Beta struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -2534,7 +2654,7 @@ type RepairApplicationRequest struct {
}
// RequestUtilization: Target scaling by request utilization. Only
// applicable for VM runtimes.
// applicable in the App Engine flexible environment.
type RequestUtilization struct {
// TargetConcurrentRequests: Target number of concurrent requests.
TargetConcurrentRequests int64 `json:"targetConcurrentRequests,omitempty"`
@@ -2803,13 +2923,11 @@ func (s *SslSettings) MarshalJSON() ([]byte, error) {
// environment.
type StandardSchedulerSettings struct {
// MaxInstances: Maximum number of instances for an app version. Set to
// a non-positive value (0 by convention) to disable max_instances
// configuration.
// zero to disable max_instances configuration.
MaxInstances int64 `json:"maxInstances,omitempty"`
// MinInstances: Minimum number of instances for an app version. Set to
// a non-positive value (0 by convention) to disable min_instances
// configuration.
// zero to disable min_instances configuration.
MinInstances int64 `json:"minInstances,omitempty"`
// TargetCpuUtilization: Target CPU utilization ratio to maintain when
@@ -3237,7 +3355,7 @@ type Version struct {
Deployment *Deployment `json:"deployment,omitempty"`
// DiskUsageBytes: Total size in bytes of all the files that are
// included in this version and curerntly hosted on the App Engine
// included in this version and currently hosted on the App Engine
// disk.@OutputOnly
DiskUsageBytes int64 `json:"diskUsageBytes,omitempty,string"`
@@ -3266,8 +3384,8 @@ type Version struct {
// HealthCheck: Configures health checking for VM instances. Unhealthy
// instances are stopped and replaced with new instances. Only
// applicable for VM runtimes.Only returned in GET requests if view=FULL
// is set.
// applicable in the App Engine flexible environment.Only returned in
// GET requests if view=FULL is set.
HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
// Id: Relative name of the version within the service. Example: v1.
@@ -3323,8 +3441,8 @@ type Version struct {
// apps/myapp/services/default/versions/v1.@OutputOnly
Name string `json:"name,omitempty"`
// Network: Extra network settings. Only applicable for App Engine
// flexible environment versions.
// Network: Extra network settings. Only applicable in the App Engine
// flexible environment.
Network *Network `json:"network,omitempty"`
// NobuildFilesRegex: Files that match this pattern will not be built
@@ -3375,6 +3493,10 @@ type Version struct {
// machine.
Vm bool `json:"vm,omitempty"`
// Zones: The choice of gce zones to use for this App Engine Flexible
// version.
Zones []string `json:"zones,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
@@ -3402,8 +3524,8 @@ func (s *Version) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Volume: Volumes mounted within the app container. Only applicable for
// VM runtimes.
// Volume: Volumes mounted within the app container. Only applicable in
// the App Engine flexible environment.
type Volume struct {
// Name: Unique name for the volume.
Name string `json:"name,omitempty"`
File diff suppressed because it is too large. Load diff
+94 -24
View File
@@ -527,6 +527,68 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
return nil
}
// CreateVersionMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1alpha.CreateVersionRequest.
type CreateVersionMetadataV1Alpha struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1Alpha
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1Beta: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1beta.CreateVersionRequest.
type CreateVersionMetadataV1Beta struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1Beta
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DebugInstanceRequest: Request message for Instances.DebugInstance.
type DebugInstanceRequest struct {
// SshKey: Public SSH key to add to the instance.
@@ -1597,6 +1659,8 @@ func (s *OperationMetadataV1) MarshalJSON() ([]byte, error) {
// OperationMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1Alpha struct {
CreateVersionMetadata *CreateVersionMetadataV1Alpha `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -1622,20 +1686,22 @@ type OperationMetadataV1Alpha struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -1648,6 +1714,8 @@ func (s *OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) {
// OperationMetadataV1Beta: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1Beta struct {
CreateVersionMetadata *CreateVersionMetadataV1Beta `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -1673,20 +1741,22 @@ type OperationMetadataV1Beta struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
File diff suppressed because it is too large. Load diff
+94 -24
View File
@@ -527,6 +527,68 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
return nil
}
// CreateVersionMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1alpha.CreateVersionRequest.
type CreateVersionMetadataV1Alpha struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1Alpha
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVersionMetadataV1Beta: Metadata for the given
// google.longrunning.Operation during a
// google.appengine.v1beta.CreateVersionRequest.
type CreateVersionMetadataV1Beta struct {
// CloudBuildId: The Cloud Build ID if one was created as part of the
// version create. @OutputOnly
CloudBuildId string `json:"cloudBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) {
type NoMethod CreateVersionMetadataV1Beta
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DebugInstanceRequest: Request message for Instances.DebugInstance.
type DebugInstanceRequest struct {
// SshKey: Public SSH key to add to the instance.
@@ -1567,6 +1629,8 @@ func (s *OperationMetadataV1) MarshalJSON() ([]byte, error) {
// OperationMetadataV1Alpha: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1Alpha struct {
CreateVersionMetadata *CreateVersionMetadataV1Alpha `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -1592,20 +1656,22 @@ type OperationMetadataV1Alpha struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@@ -1618,6 +1684,8 @@ func (s *OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) {
// OperationMetadataV1Beta: Metadata for the given
// google.longrunning.Operation.
type OperationMetadataV1Beta struct {
CreateVersionMetadata *CreateVersionMetadataV1Beta `json:"createVersionMetadata,omitempty"`
// EndTime: Time that this operation completed.@OutputOnly
EndTime string `json:"endTime,omitempty"`
@@ -1643,20 +1711,22 @@ type OperationMetadataV1Beta struct {
// @OutputOnly
Warning []string `json:"warning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CreateVersionMetadata") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
+65 -7
View File
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/QzxyIc9KtbV_mZ3-sB7-1guK-GQ\"",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/c0qLh4qGPc7aXt4DhEPUAWdS164\"",
"discoveryVersion": "v1",
"id": "bigquery:v2",
"name": "bigquery",
"version": "v2",
"revision": "20171027",
"revision": "20180112",
"title": "BigQuery API",
"description": "A data platform for customers to create, manage, share and query data.",
"ownerDomain": "google.com",
@@ -413,6 +413,11 @@
"id": "ExplainQueryStage",
"type": "object",
"properties": {
"completedParallelInputs": {
"type": "string",
"description": "Number of parallel input segments completed.",
"format": "int64"
},
"computeMsAvg": {
"type": "string",
"description": "Milliseconds the average shard spent on CPU-bound tasks.",
@@ -442,6 +447,11 @@
"type": "string",
"description": "Human-readable name for stage."
},
"parallelInputs": {
"type": "string",
"description": "Number of parallel input segments to be processed.",
"format": "int64"
},
"readMsAvg": {
"type": "string",
"description": "Milliseconds the average shard spent reading input.",
@@ -768,7 +778,7 @@
},
"labels": {
"type": "object",
"description": "[Experimental] The labels associated with this job. You can use these to organize and group your jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.",
"description": "The labels associated with this job. You can use these to organize and group your jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.",
"additionalProperties": {
"type": "string"
}
@@ -1213,6 +1223,11 @@
"$ref": "TableReference",
"description": "[Output-only, Experimental] The DDL target table. Present only for CREATE/DROP TABLE/VIEW queries."
},
"estimatedBytesProcessed": {
"type": "string",
"description": "[Output-only] The original estimate of bytes processed for the job.",
"format": "int64"
},
"numDmlAffectedRows": {
"type": "string",
"description": "[Output-only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.",
@@ -1238,7 +1253,14 @@
},
"statementType": {
"type": "string",
"description": "[Output-only, Experimental] The type of query statement, if valid."
"description": "[Output-only, Experimental] The type of query statement, if valid. Possible values (new values might be added in the future): \"SELECT\": SELECT query. \"INSERT\": INSERT query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language \"UPDATE\": UPDATE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language \"DELETE\": DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language \"CREATE_TABLE\": CREATE [OR REPLACE] TABLE without AS SELECT. \"CREATE_TABLE_AS_SELECT\": CREATE [OR REPLACE] TABLE ... AS SELECT ... \"DROP_TABLE\": DROP TABLE query. \"CREATE_VIEW\": CREATE [OR REPLACE] VIEW ... AS SELECT ... \"DROP_VIEW\": DROP VIEW query."
},
"timeline": {
"type": "array",
"description": "[Output-only] Describes a timeline of job execution.",
"items": {
"$ref": "QueryTimelineSample"
}
},
"totalBytesBilled": {
"type": "string",
@@ -1607,6 +1629,42 @@
}
}
},
"QueryTimelineSample": {
"id": "QueryTimelineSample",
"type": "object",
"properties": {
"activeInputs": {
"type": "integer",
"description": "Total number of active workers. This does not correspond directly to slot usage. This is the largest value observed since the last sample.",
"format": "int32"
},
"completedInputs": {
"type": "integer",
"description": "Total parallel units of work completed by this query.",
"format": "int32"
},
"completedInputsForActiveStages": {
"type": "integer",
"description": "Total parallel units of work completed by the currently active stages.",
"format": "int32"
},
"elapsedMs": {
"type": "string",
"description": "Milliseconds elapsed since the start of query execution.",
"format": "int64"
},
"pendingInputs": {
"type": "string",
"description": "Total parallel units of work remaining for the active stages.",
"format": "int64"
},
"totalSlotMs": {
"type": "string",
"description": "Cumulative slot-ms consumed by the query.",
"format": "int64"
}
}
},
"Streamingbuffer": {
"id": "Streamingbuffer",
"type": "object",
@@ -1651,7 +1709,7 @@
},
"expirationTime": {
"type": "string",
"description": "[Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.",
"description": "[Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables.",
"format": "int64"
},
"externalDataConfiguration": {
@@ -1673,7 +1731,7 @@
},
"labels": {
"type": "object",
"description": "[Experimental] The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.",
"description": "The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.",
"additionalProperties": {
"type": "string"
}
@@ -1921,7 +1979,7 @@
},
"labels": {
"type": "object",
"description": "[Experimental] The labels associated with this table. You can use these to organize and group your tables.",
"description": "The labels associated with this table. You can use these to organize and group your tables.",
"additionalProperties": {
"type": "string"
}
+94 -28
View File
@@ -728,6 +728,9 @@ func (s *ErrorProto) MarshalJSON() ([]byte, error) {
}
type ExplainQueryStage struct {
// CompletedParallelInputs: Number of parallel input segments completed.
CompletedParallelInputs int64 `json:"completedParallelInputs,omitempty,string"`
// ComputeMsAvg: Milliseconds the average shard spent on CPU-bound
// tasks.
ComputeMsAvg int64 `json:"computeMsAvg,omitempty,string"`
@@ -750,6 +753,9 @@ type ExplainQueryStage struct {
// Name: Human-readable name for stage.
Name string `json:"name,omitempty"`
// ParallelInputs: Number of parallel input segments to be processed.
ParallelInputs int64 `json:"parallelInputs,omitempty,string"`
// ReadMsAvg: Milliseconds the average shard spent reading input.
ReadMsAvg int64 `json:"readMsAvg,omitempty,string"`
@@ -814,20 +820,22 @@ type ExplainQueryStage struct {
// writing output.
WriteRatioMax float64 `json:"writeRatioMax,omitempty"`
// 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
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "CompletedParallelInputs") 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. "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 is a list of field names (e.g. "CompletedParallelInputs")
// 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:"-"`
}
@@ -1248,11 +1256,11 @@ type JobConfiguration struct {
// Extract: [Pick one] Configures an extract job.
Extract *JobConfigurationExtract `json:"extract,omitempty"`
// Labels: [Experimental] The labels associated with this job. You can
// use these to organize and group your jobs. Label keys and values can
// be no longer than 63 characters, can only contain lowercase letters,
// numeric characters, underscores and dashes. International characters
// are allowed. Label values are optional. Label keys must start with a
// Labels: The labels associated with this job. You can use these to
// organize and group your jobs. Label keys and values can be no longer
// than 63 characters, can only contain lowercase letters, numeric
// characters, underscores and dashes. International characters are
// allowed. Label values are optional. Label keys must start with a
// letter and each label in the list must have a different key.
Labels map[string]string `json:"labels,omitempty"`
@@ -1940,6 +1948,10 @@ type JobStatistics2 struct {
// Present only for CREATE/DROP TABLE/VIEW queries.
DdlTargetTable *TableReference `json:"ddlTargetTable,omitempty"`
// EstimatedBytesProcessed: [Output-only] The original estimate of bytes
// processed for the job.
EstimatedBytesProcessed int64 `json:"estimatedBytesProcessed,omitempty,string"`
// NumDmlAffectedRows: [Output-only] The number of rows affected by a
// DML statement. Present only for DML statements INSERT, UPDATE or
// DELETE.
@@ -1958,9 +1970,15 @@ type JobStatistics2 struct {
Schema *TableSchema `json:"schema,omitempty"`
// StatementType: [Output-only, Experimental] The type of query
// statement, if valid.
// statement, if valid. Possible values (new values might be added in
// the future): "SELECT": SELECT query. "INSERT": INSERT query; see
// https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "UPDATE": UPDATE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... "DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... "DROP_VIEW": DROP VIEW
// query.
StatementType string `json:"statementType,omitempty"`
// Timeline: [Output-only] Describes a timeline of job execution.
Timeline []*QueryTimelineSample `json:"timeline,omitempty"`
// TotalBytesBilled: [Output-only] Total bytes billed for the job.
TotalBytesBilled int64 `json:"totalBytesBilled,omitempty,string"`
@@ -2532,6 +2550,53 @@ func (s *QueryResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type QueryTimelineSample struct {
// ActiveInputs: Total number of active workers. This does not
// correspond directly to slot usage. This is the largest value observed
// since the last sample.
ActiveInputs int64 `json:"activeInputs,omitempty"`
// CompletedInputs: Total parallel units of work completed by this
// query.
CompletedInputs int64 `json:"completedInputs,omitempty"`
// CompletedInputsForActiveStages: Total parallel units of work
// completed by the currently active stages.
CompletedInputsForActiveStages int64 `json:"completedInputsForActiveStages,omitempty"`
// ElapsedMs: Milliseconds elapsed since the start of query execution.
ElapsedMs int64 `json:"elapsedMs,omitempty,string"`
// PendingInputs: Total parallel units of work remaining for the active
// stages.
PendingInputs int64 `json:"pendingInputs,omitempty,string"`
// TotalSlotMs: Cumulative slot-ms consumed by the query.
TotalSlotMs int64 `json:"totalSlotMs,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "ActiveInputs") to
// 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. "ActiveInputs") 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 *QueryTimelineSample) MarshalJSON() ([]byte, error) {
type NoMethod QueryTimelineSample
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Streamingbuffer struct {
// EstimatedBytes: [Output-only] A lower-bound estimate of the number of
// bytes currently in the streaming buffer.
@@ -2588,7 +2653,9 @@ type Table struct {
// ExpirationTime: [Optional] The time when this table expires, in
// milliseconds since the epoch. If not present, the table will persist
// indefinitely. Expired tables will be deleted and their storage
// reclaimed.
// reclaimed. The defaultTableExpirationMs property of the encapsulating
// dataset can be used to set a default expirationTime on newly created
// tables.
ExpirationTime int64 `json:"expirationTime,omitempty,string"`
// ExternalDataConfiguration: [Optional] Describes the data format,
@@ -2606,13 +2673,12 @@ type Table struct {
// Kind: [Output-only] The type of the resource.
Kind string `json:"kind,omitempty"`
// Labels: [Experimental] The labels associated with this table. You can
// use these to organize and group your tables. Label keys and values
// can be no longer than 63 characters, can only contain lowercase
// letters, numeric characters, underscores and dashes. International
// characters are allowed. Label values are optional. Label keys must
// start with a letter and each label in the list must have a different
// key.
// Labels: The labels associated with this table. You can use these to
// organize and group your tables. Label keys and values can be no
// longer than 63 characters, can only contain lowercase letters,
// numeric characters, underscores and dashes. International characters
// are allowed. Label values are optional. Label keys must start with a
// letter and each label in the list must have a different key.
Labels map[string]string `json:"labels,omitempty"`
// LastModifiedTime: [Output-only] The time when this table was last
@@ -3023,8 +3089,8 @@ type TableListTables struct {
// Kind: The resource type.
Kind string `json:"kind,omitempty"`
// Labels: [Experimental] The labels associated with this table. You can
// use these to organize and group your tables.
// Labels: The labels associated with this table. You can use these to
// organize and group your tables.
Labels map[string]string `json:"labels,omitempty"`
// TableReference: A reference uniquely identifying the table.
File diff suppressed because it is too large. Load diff
@@ -317,8 +317,8 @@ type DataSource struct {
// for the data source.
ManualRunsDisabled bool `json:"manualRunsDisabled,omitempty"`
// MinimumScheduleInterval: The minimum interval between two consecutive
// scheduled runs.
// MinimumScheduleInterval: The minimum interval for scheduler to
// schedule runs.
MinimumScheduleInterval string `json:"minimumScheduleInterval,omitempty"`
// Name: Data source resource name.
@@ -1134,12 +1134,12 @@ func (s *TransferMessage) MarshalJSON() ([]byte, error) {
}
// TransferRun: Represents a data transfer run.
// Next id: 24
// Next id: 27
type TransferRun struct {
// DataSourceId: Output only. Data source id.
DataSourceId string `json:"dataSourceId,omitempty"`
// DestinationDatasetId: The BigQuery target dataset id.
// DestinationDatasetId: Output only. The BigQuery target dataset id.
DestinationDatasetId string `json:"destinationDatasetId,omitempty"`
// EndTime: Output only. Time when transfer run ended.
@@ -1157,7 +1157,7 @@ type TransferRun struct {
// The name is ignored when creating a transfer run.
Name string `json:"name,omitempty"`
// Params: Data transfer specific parameters.
// Params: Output only. Data transfer specific parameters.
Params googleapi.RawMessage `json:"params,omitempty"`
// RunTime: For batch transfer runs, specifies the date and time
+129 -2
View File
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/q1aPzEOdugLS9_Y8FK61EmJhEHg\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/grKqkiLaDaBaqW7ezJtDaKmrU78\"",
"discoveryVersion": "v1",
"id": "books:v1",
"name": "books",
"version": "v1",
"revision": "20170313",
"revision": "20171127",
"title": "Books API",
"description": "Searches for books and manages your Google Books library.",
"ownerDomain": "google.com",
@@ -890,6 +890,42 @@
}
}
},
"FamilyInfo": {
"id": "FamilyInfo",
"type": "object",
"properties": {
"kind": {
"type": "string",
"description": "Resource type.",
"default": "books#familyInfo"
},
"membership": {
"type": "object",
"description": "Family membership info of the user that made the request.",
"properties": {
"acquirePermission": {
"type": "string",
"description": "Restrictions on user buying and acquiring content."
},
"ageGroup": {
"type": "string",
"description": "The age group of the user."
},
"allowedMaturityRating": {
"type": "string",
"description": "The maximum allowed maturity rating for the user."
},
"isInFamily": {
"type": "boolean"
},
"role": {
"type": "string",
"description": "The role of the user in the family."
}
}
}
}
},
"Geolayerdata": {
"id": "Geolayerdata",
"type": "object",
@@ -1444,6 +1480,14 @@
"notification": {
"type": "object",
"properties": {
"matchMyInterests": {
"type": "object",
"properties": {
"opted_state": {
"type": "string"
}
}
},
"moreFromAuthors": {
"type": "object",
"properties": {
@@ -1460,6 +1504,14 @@
}
}
},
"priceDrop": {
"type": "object",
"properties": {
"opted_state": {
"type": "string"
}
}
},
"rewardExpirations": {
"type": "object",
"properties": {
@@ -2507,6 +2559,81 @@
}
}
},
"familysharing": {
"methods": {
"getFamilyInfo": {
"id": "books.familysharing.getFamilyInfo",
"path": "familysharing/getFamilyInfo",
"httpMethod": "GET",
"description": "Gets information regarding the family that the user is part of.",
"parameters": {
"source": {
"type": "string",
"description": "String to identify the originator of this request.",
"location": "query"
}
},
"response": {
"$ref": "FamilyInfo"
},
"scopes": [
"https://www.googleapis.com/auth/books"
]
},
"share": {
"id": "books.familysharing.share",
"path": "familysharing/share",
"httpMethod": "POST",
"description": "Initiates sharing of the content with the user's family. Empty response indicates success.",
"parameters": {
"docId": {
"type": "string",
"description": "The docid to share.",
"location": "query"
},
"source": {
"type": "string",
"description": "String to identify the originator of this request.",
"location": "query"
},
"volumeId": {
"type": "string",
"description": "The volume to share.",
"location": "query"
}
},
"scopes": [
"https://www.googleapis.com/auth/books"
]
},
"unshare": {
"id": "books.familysharing.unshare",
"path": "familysharing/unshare",
"httpMethod": "POST",
"description": "Initiates revoking content that has already been shared with the user's family. Empty response indicates success.",
"parameters": {
"docId": {
"type": "string",
"description": "The docid to unshare.",
"location": "query"
},
"source": {
"type": "string",
"description": "String to identify the originator of this request.",
"location": "query"
},
"volumeId": {
"type": "string",
"description": "The volume to unshare.",
"location": "query"
}
},
"scopes": [
"https://www.googleapis.com/auth/books"
]
}
}
},
"layers": {
"methods": {
"get": {
+515 -2
View File
@@ -59,6 +59,7 @@ func New(client *http.Client) (*Service, error) {
s.Bookshelves = NewBookshelvesService(s)
s.Cloudloading = NewCloudloadingService(s)
s.Dictionary = NewDictionaryService(s)
s.Familysharing = NewFamilysharingService(s)
s.Layers = NewLayersService(s)
s.Myconfig = NewMyconfigService(s)
s.Mylibrary = NewMylibraryService(s)
@@ -82,6 +83,8 @@ type Service struct {
Dictionary *DictionaryService
Familysharing *FamilysharingService
Layers *LayersService
Myconfig *MyconfigService
@@ -147,6 +150,15 @@ type DictionaryService struct {
s *Service
}
func NewFamilysharingService(s *Service) *FamilysharingService {
rs := &FamilysharingService{s: s}
return rs
}
type FamilysharingService struct {
s *Service
}
func NewLayersService(s *Service) *LayersService {
rs := &LayersService{s: s}
rs.AnnotationData = NewLayersAnnotationDataService(s)
@@ -1843,6 +1855,82 @@ func (s *DownloadAccesses) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type FamilyInfo struct {
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
// Membership: Family membership info of the user that made the request.
Membership *FamilyInfoMembership `json:"membership,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 *FamilyInfo) MarshalJSON() ([]byte, error) {
type NoMethod FamilyInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// FamilyInfoMembership: Family membership info of the user that made
// the request.
type FamilyInfoMembership struct {
// AcquirePermission: Restrictions on user buying and acquiring content.
AcquirePermission string `json:"acquirePermission,omitempty"`
// AgeGroup: The age group of the user.
AgeGroup string `json:"ageGroup,omitempty"`
// AllowedMaturityRating: The maximum allowed maturity rating for the
// user.
AllowedMaturityRating string `json:"allowedMaturityRating,omitempty"`
IsInFamily bool `json:"isInFamily,omitempty"`
// Role: The role of the user in the family.
Role string `json:"role,omitempty"`
// ForceSendFields is a list of field names (e.g. "AcquirePermission")
// 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. "AcquirePermission") 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 *FamilyInfoMembership) MarshalJSON() ([]byte, error) {
type NoMethod FamilyInfoMembership
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Geolayerdata struct {
Common *GeolayerdataCommon `json:"common,omitempty"`
@@ -2850,13 +2938,17 @@ func (s *UsersettingsNotesExport) MarshalJSON() ([]byte, error) {
}
type UsersettingsNotification struct {
MatchMyInterests *UsersettingsNotificationMatchMyInterests `json:"matchMyInterests,omitempty"`
MoreFromAuthors *UsersettingsNotificationMoreFromAuthors `json:"moreFromAuthors,omitempty"`
MoreFromSeries *UsersettingsNotificationMoreFromSeries `json:"moreFromSeries,omitempty"`
PriceDrop *UsersettingsNotificationPriceDrop `json:"priceDrop,omitempty"`
RewardExpirations *UsersettingsNotificationRewardExpirations `json:"rewardExpirations,omitempty"`
// ForceSendFields is a list of field names (e.g. "MoreFromAuthors") to
// ForceSendFields is a list of field names (e.g. "MatchMyInterests") 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
@@ -2864,7 +2956,7 @@ type UsersettingsNotification struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MoreFromAuthors") to
// NullFields is a list of field names (e.g. "MatchMyInterests") 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
@@ -2880,6 +2972,32 @@ func (s *UsersettingsNotification) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UsersettingsNotificationMatchMyInterests struct {
OptedState string `json:"opted_state,omitempty"`
// ForceSendFields is a list of field names (e.g. "OptedState") 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. "OptedState") 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 *UsersettingsNotificationMatchMyInterests) MarshalJSON() ([]byte, error) {
type NoMethod UsersettingsNotificationMatchMyInterests
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UsersettingsNotificationMoreFromAuthors struct {
OptedState string `json:"opted_state,omitempty"`
@@ -2932,6 +3050,32 @@ func (s *UsersettingsNotificationMoreFromSeries) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UsersettingsNotificationPriceDrop struct {
OptedState string `json:"opted_state,omitempty"`
// ForceSendFields is a list of field names (e.g. "OptedState") 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. "OptedState") 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 *UsersettingsNotificationPriceDrop) MarshalJSON() ([]byte, error) {
type NoMethod UsersettingsNotificationPriceDrop
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UsersettingsNotificationRewardExpirations struct {
OptedState string `json:"opted_state,omitempty"`
@@ -5495,6 +5639,375 @@ func (c *DictionaryListOfflineMetadataCall) Do(opts ...googleapi.CallOption) (*M
}
// method id "books.familysharing.getFamilyInfo":
type FamilysharingGetFamilyInfoCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// GetFamilyInfo: Gets information regarding the family that the user is
// part of.
func (r *FamilysharingService) GetFamilyInfo() *FamilysharingGetFamilyInfoCall {
c := &FamilysharingGetFamilyInfoCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// Source sets the optional parameter "source": String to identify the
// originator of this request.
func (c *FamilysharingGetFamilyInfoCall) Source(source string) *FamilysharingGetFamilyInfoCall {
c.urlParams_.Set("source", source)
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 *FamilysharingGetFamilyInfoCall) Fields(s ...googleapi.Field) *FamilysharingGetFamilyInfoCall {
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 *FamilysharingGetFamilyInfoCall) IfNoneMatch(entityTag string) *FamilysharingGetFamilyInfoCall {
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 *FamilysharingGetFamilyInfoCall) Context(ctx context.Context) *FamilysharingGetFamilyInfoCall {
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 *FamilysharingGetFamilyInfoCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *FamilysharingGetFamilyInfoCall) 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, "familysharing/getFamilyInfo")
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 "books.familysharing.getFamilyInfo" call.
// Exactly one of *FamilyInfo or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *FamilyInfo.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 *FamilysharingGetFamilyInfoCall) Do(opts ...googleapi.CallOption) (*FamilyInfo, 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 := &FamilyInfo{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets information regarding the family that the user is part of.",
// "httpMethod": "GET",
// "id": "books.familysharing.getFamilyInfo",
// "parameters": {
// "source": {
// "description": "String to identify the originator of this request.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "familysharing/getFamilyInfo",
// "response": {
// "$ref": "FamilyInfo"
// },
// "scopes": [
// "https://www.googleapis.com/auth/books"
// ]
// }
}
// method id "books.familysharing.share":
type FamilysharingShareCall struct {
s *Service
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Share: Initiates sharing of the content with the user's family. Empty
// response indicates success.
func (r *FamilysharingService) Share() *FamilysharingShareCall {
c := &FamilysharingShareCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// DocId sets the optional parameter "docId": The docid to share.
func (c *FamilysharingShareCall) DocId(docId string) *FamilysharingShareCall {
c.urlParams_.Set("docId", docId)
return c
}
// Source sets the optional parameter "source": String to identify the
// originator of this request.
func (c *FamilysharingShareCall) Source(source string) *FamilysharingShareCall {
c.urlParams_.Set("source", source)
return c
}
// VolumeId sets the optional parameter "volumeId": The volume to share.
func (c *FamilysharingShareCall) VolumeId(volumeId string) *FamilysharingShareCall {
c.urlParams_.Set("volumeId", volumeId)
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 *FamilysharingShareCall) Fields(s ...googleapi.Field) *FamilysharingShareCall {
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 *FamilysharingShareCall) Context(ctx context.Context) *FamilysharingShareCall {
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 *FamilysharingShareCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *FamilysharingShareCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "familysharing/share")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "books.familysharing.share" call.
func (c *FamilysharingShareCall) 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": "Initiates sharing of the content with the user's family. Empty response indicates success.",
// "httpMethod": "POST",
// "id": "books.familysharing.share",
// "parameters": {
// "docId": {
// "description": "The docid to share.",
// "location": "query",
// "type": "string"
// },
// "source": {
// "description": "String to identify the originator of this request.",
// "location": "query",
// "type": "string"
// },
// "volumeId": {
// "description": "The volume to share.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "familysharing/share",
// "scopes": [
// "https://www.googleapis.com/auth/books"
// ]
// }
}
// method id "books.familysharing.unshare":
type FamilysharingUnshareCall struct {
s *Service
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Unshare: Initiates revoking content that has already been shared with
// the user's family. Empty response indicates success.
func (r *FamilysharingService) Unshare() *FamilysharingUnshareCall {
c := &FamilysharingUnshareCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// DocId sets the optional parameter "docId": The docid to unshare.
func (c *FamilysharingUnshareCall) DocId(docId string) *FamilysharingUnshareCall {
c.urlParams_.Set("docId", docId)
return c
}
// Source sets the optional parameter "source": String to identify the
// originator of this request.
func (c *FamilysharingUnshareCall) Source(source string) *FamilysharingUnshareCall {
c.urlParams_.Set("source", source)
return c
}
// VolumeId sets the optional parameter "volumeId": The volume to
// unshare.
func (c *FamilysharingUnshareCall) VolumeId(volumeId string) *FamilysharingUnshareCall {
c.urlParams_.Set("volumeId", volumeId)
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 *FamilysharingUnshareCall) Fields(s ...googleapi.Field) *FamilysharingUnshareCall {
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 *FamilysharingUnshareCall) Context(ctx context.Context) *FamilysharingUnshareCall {
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 *FamilysharingUnshareCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *FamilysharingUnshareCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "familysharing/unshare")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "books.familysharing.unshare" call.
func (c *FamilysharingUnshareCall) 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": "Initiates revoking content that has already been shared with the user's family. Empty response indicates success.",
// "httpMethod": "POST",
// "id": "books.familysharing.unshare",
// "parameters": {
// "docId": {
// "description": "The docid to unshare.",
// "location": "query",
// "type": "string"
// },
// "source": {
// "description": "String to identify the originator of this request.",
// "location": "query",
// "type": "string"
// },
// "volumeId": {
// "description": "The volume to unshare.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "familysharing/unshare",
// "scopes": [
// "https://www.googleapis.com/auth/books"
// ]
// }
}
// method id "books.layers.get":
type LayersGetCall struct {
+186 -2
View File
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/IR4BQMr8Q3ird-zy2LyAA9diRwI\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/BXRSlYDfsDJfIj56UYVQoal0GSY\"",
"discoveryVersion": "v1",
"id": "calendar:v3",
"name": "calendar",
"version": "v3",
"revision": "20171010",
"revision": "20180107",
"title": "Calendar API",
"description": "Manipulates events and other calendar data.",
"ownerDomain": "google.com",
@@ -165,6 +165,10 @@
"id": "Calendar",
"type": "object",
"properties": {
"conferenceProperties": {
"$ref": "ConferenceProperties",
"description": "Conferencing properties for this calendar, for example what types of conferences are allowed."
},
"description": {
"type": "string",
"description": "Description of the calendar. Optional."
@@ -247,6 +251,10 @@
"type": "string",
"description": "The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional."
},
"conferenceProperties": {
"$ref": "ConferenceProperties",
"description": "Conferencing properties for this calendar, for example what types of conferences are allowed."
},
"defaultReminders": {
"type": "array",
"description": "The default reminders that the authenticated user has for this calendar.",
@@ -455,6 +463,146 @@
}
}
},
"ConferenceData": {
"id": "ConferenceData",
"type": "object",
"properties": {
"conferenceId": {
"type": "string",
"description": "The ID of the conference.\nCan be used by developers to keep track of conferences, should not be displayed to users.\nValues for solution types: \n- \"eventHangout\": unset.\n- \"eventNamedHangout\": the name of the Hangout.\n- \"hangoutsMeet\": the 10-letter meeting code, for example \"aaa-bbbb-ccc\". Optional."
},
"conferenceSolution": {
"$ref": "ConferenceSolution",
"description": "The conference solution, such as Hangouts or Hangouts Meet.\nUnset for a conference with a failed create request.\nEither conferenceSolution and at least one entryPoint, or createRequest is required."
},
"createRequest": {
"$ref": "CreateConferenceRequest",
"description": "A request to generate a new conference and attach it to the event. The data is generated asynchronously. To see whether the data is present check the status field.\nEither conferenceSolution and at least one entryPoint, or createRequest is required."
},
"entryPoints": {
"type": "array",
"description": "Information about individual conference entry points, such as URLs or phone numbers.\nAll of them must belong to the same conference.\nEither conferenceSolution and at least one entryPoint, or createRequest is required.",
"items": {
"$ref": "EntryPoint"
}
},
"notes": {
"type": "string",
"description": "Additional notes (such as instructions from the domain administrator, legal notices) to display to the user. Can contain HTML. The maximum length is 2048 characters. Optional."
},
"signature": {
"type": "string",
"description": "The signature of the conference data.\nGenereated on server side. Must be preserved while copying the conference data between events, otherwise the conference data will not be copied.\nUnset for a conference with a failed create request.\nOptional for a conference with a pending create request."
}
}
},
"ConferenceProperties": {
"id": "ConferenceProperties",
"type": "object",
"properties": {
"allowedConferenceSolutionTypes": {
"type": "array",
"description": "The types of conference solutions that are supported for this calendar.\nThe possible values are: \n- \"eventHangout\" \n- \"eventNamedHangout\" \n- \"hangoutsMeet\" Optional.",
"items": {
"type": "string"
}
}
}
},
"ConferenceRequestStatus": {
"id": "ConferenceRequestStatus",
"type": "object",
"properties": {
"statusCode": {
"type": "string",
"description": "The current status of the conference create request. Read-only.\nThe possible values are: \n- \"pending\": the conference create request is still being processed.\n- \"success\": the conference create request succeeded, the entry points are populated.\n- \"failure\": the conference create request failed, there are no entry points."
}
}
},
"ConferenceSolution": {
"id": "ConferenceSolution",
"type": "object",
"properties": {
"iconUri": {
"type": "string",
"description": "The user-visible icon for this solution."
},
"key": {
"$ref": "ConferenceSolutionKey",
"description": "The key which can uniquely identify the conference solution for this event."
},
"name": {
"type": "string",
"description": "The user-visible name of this solution. Not localized."
}
}
},
"ConferenceSolutionKey": {
"id": "ConferenceSolutionKey",
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The conference solution type.\nIf a client encounters an unfamiliar or empty type, it should still be able to display the entry points. However, it should disallow modifications.\nThe possible values are: \n- \"eventHangout\" for Hangouts for consumers (http://hangouts.google.com)\n- \"eventNamedHangout\" for classic Hangouts for G Suite users (http://hangouts.google.com)\n- \"hangoutsMeet\" for Hangouts Meet (http://meet.google.com)"
}
}
},
"CreateConferenceRequest": {
"id": "CreateConferenceRequest",
"type": "object",
"properties": {
"conferenceSolutionKey": {
"$ref": "ConferenceSolutionKey",
"description": "The conference solution, such as Hangouts or Hangouts Meet."
},
"requestId": {
"type": "string",
"description": "The client-generated unique ID for this request.\nClients should regenerate this ID for every new request. If an ID provided is the same as for the previous request, the request is ignored."
},
"status": {
"$ref": "ConferenceRequestStatus",
"description": "The status of the conference create request."
}
}
},
"EntryPoint": {
"id": "EntryPoint",
"type": "object",
"properties": {
"accessCode": {
"type": "string",
"description": "The access code to access the conference. The maximum length is 128 characters.\nWhen creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.\nOptional."
},
"entryPointType": {
"type": "string",
"description": "The type of the conference entry point.\nPossible values are: \n- \"video\" - joining a conference over HTTP. A conference can have zero or one video entry point.\n- \"phone\" - joining a conference by dialing a phone number. A conference can have zero or more phone entry points.\n- \"sip\" - joining a conference over SIP. A conference can have zero or one sip entry point.\n- \"more\" - further conference joining instructions, for example additional phone numbers. A conference can have zero or one more entry point. A conference with only a more entry point is not a valid conference."
},
"label": {
"type": "string",
"description": "The label for the URI. Visible to end users. Not localized. The maximum length is 512 characters.\nExamples: \n- for video: meet.google.com/aaa-bbbb-ccc\n- for phone: +1 123 268 2601\n- for sip: 12345678@altostrat.com\n- for more: should not be filled \nOptional."
},
"meetingCode": {
"type": "string",
"description": "The meeting code to access the conference. The maximum length is 128 characters.\nWhen creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.\nOptional."
},
"passcode": {
"type": "string",
"description": "The passcode to access the conference. The maximum length is 128 characters.\nWhen creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed."
},
"password": {
"type": "string",
"description": "The password to access the conference. The maximum length is 128 characters.\nWhen creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.\nOptional."
},
"pin": {
"type": "string",
"description": "The PIN to access the conference. The maximum length is 128 characters.\nWhen creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.\nOptional."
},
"uri": {
"type": "string",
"description": "The URI of the entry point. The maximum length is 1300 characters.\nFormat: \n- for video, http: or https: schema is required.\n- for phone, tel: schema is required. The URI should include the entire dial sequence (e.g., tel:+12345678900,,,123456789;1234).\n- for sip, sip: schema is required, e.g., sip:12345678@myprovider.com.\n- for more, http: or https: schema is required."
}
}
},
"Error": {
"id": "Error",
"type": "object",
@@ -501,6 +649,10 @@
"type": "string",
"description": "The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional."
},
"conferenceData": {
"$ref": "ConferenceData",
"description": "The conference-related information, such as details of a Hangouts Meet conference. To create new conference details use the createRequest field. To persist your changes, remember to set the conferenceDataVersion request parameter to 1 for all event modification requests."
},
"created": {
"type": "string",
"description": "Creation time of the event (as a RFC3339 timestamp). Read-only.",
@@ -1967,6 +2119,14 @@
"required": true,
"location": "path"
},
"conferenceDataVersion": {
"type": "integer",
"description": "Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.",
"format": "int32",
"minimum": "0",
"maximum": "1",
"location": "query"
},
"supportsAttachments": {
"type": "boolean",
"description": "Whether API client performing operation supports event attachments. Optional. The default is False.",
@@ -1998,6 +2158,14 @@
"required": true,
"location": "path"
},
"conferenceDataVersion": {
"type": "integer",
"description": "Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.",
"format": "int32",
"minimum": "0",
"maximum": "1",
"location": "query"
},
"maxAttendees": {
"type": "integer",
"description": "The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.",
@@ -2299,6 +2467,14 @@
"required": true,
"location": "path"
},
"conferenceDataVersion": {
"type": "integer",
"description": "Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.",
"format": "int32",
"minimum": "0",
"maximum": "1",
"location": "query"
},
"eventId": {
"type": "string",
"description": "Event identifier.",
@@ -2389,6 +2565,14 @@
"required": true,
"location": "path"
},
"conferenceDataVersion": {
"type": "integer",
"description": "Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.",
"format": "int32",
"minimum": "0",
"maximum": "1",
"location": "query"
},
"eventId": {
"type": "string",
"description": "Event identifier.",
+458 -12
View File
@@ -313,6 +313,10 @@ func (s *AclRuleScope) MarshalJSON() ([]byte, error) {
}
type Calendar struct {
// ConferenceProperties: Conferencing properties for this calendar, for
// example what types of conferences are allowed.
ConferenceProperties *ConferenceProperties `json:"conferenceProperties,omitempty"`
// Description: Description of the calendar. Optional.
Description string `json:"description,omitempty"`
@@ -341,20 +345,22 @@ type Calendar struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "ConferenceProperties") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Description") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "ConferenceProperties") 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:"-"`
}
@@ -442,6 +448,10 @@ type CalendarListEntry struct {
// properties. Optional.
ColorId string `json:"colorId,omitempty"`
// ConferenceProperties: Conferencing properties for this calendar, for
// example what types of conferences are allowed.
ConferenceProperties *ConferenceProperties `json:"conferenceProperties,omitempty"`
// DefaultReminders: The default reminders that the authenticated user
// has for this calendar.
DefaultReminders []*EventReminder `json:"defaultReminders,omitempty"`
@@ -740,6 +750,355 @@ func (s *Colors) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConferenceData struct {
// ConferenceId: The ID of the conference.
// Can be used by developers to keep track of conferences, should not be
// displayed to users.
// Values for solution types:
// - "eventHangout": unset.
// - "eventNamedHangout": the name of the Hangout.
// - "hangoutsMeet": the 10-letter meeting code, for example
// "aaa-bbbb-ccc". Optional.
ConferenceId string `json:"conferenceId,omitempty"`
// ConferenceSolution: The conference solution, such as Hangouts or
// Hangouts Meet.
// Unset for a conference with a failed create request.
// Either conferenceSolution and at least one entryPoint, or
// createRequest is required.
ConferenceSolution *ConferenceSolution `json:"conferenceSolution,omitempty"`
// CreateRequest: A request to generate a new conference and attach it
// to the event. The data is generated asynchronously. To see whether
// the data is present check the status field.
// Either conferenceSolution and at least one entryPoint, or
// createRequest is required.
CreateRequest *CreateConferenceRequest `json:"createRequest,omitempty"`
// EntryPoints: Information about individual conference entry points,
// such as URLs or phone numbers.
// All of them must belong to the same conference.
// Either conferenceSolution and at least one entryPoint, or
// createRequest is required.
EntryPoints []*EntryPoint `json:"entryPoints,omitempty"`
// Notes: Additional notes (such as instructions from the domain
// administrator, legal notices) to display to the user. Can contain
// HTML. The maximum length is 2048 characters. Optional.
Notes string `json:"notes,omitempty"`
// Signature: The signature of the conference data.
// Genereated on server side. Must be preserved while copying the
// conference data between events, otherwise the conference data will
// not be copied.
// Unset for a conference with a failed create request.
// Optional for a conference with a pending create request.
Signature string `json:"signature,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConferenceId") 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. "ConferenceId") 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 *ConferenceData) MarshalJSON() ([]byte, error) {
type NoMethod ConferenceData
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConferenceProperties struct {
// AllowedConferenceSolutionTypes: The types of conference solutions
// that are supported for this calendar.
// The possible values are:
// - "eventHangout"
// - "eventNamedHangout"
// - "hangoutsMeet" Optional.
AllowedConferenceSolutionTypes []string `json:"allowedConferenceSolutionTypes,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AllowedConferenceSolutionTypes") 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.
// "AllowedConferenceSolutionTypes") 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 *ConferenceProperties) MarshalJSON() ([]byte, error) {
type NoMethod ConferenceProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConferenceRequestStatus struct {
// StatusCode: The current status of the conference create request.
// Read-only.
// The possible values are:
// - "pending": the conference create request is still being
// processed.
// - "success": the conference create request succeeded, the entry
// points are populated.
// - "failure": the conference create request failed, there are no entry
// points.
StatusCode string `json:"statusCode,omitempty"`
// ForceSendFields is a list of field names (e.g. "StatusCode") 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. "StatusCode") 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 *ConferenceRequestStatus) MarshalJSON() ([]byte, error) {
type NoMethod ConferenceRequestStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConferenceSolution struct {
// IconUri: The user-visible icon for this solution.
IconUri string `json:"iconUri,omitempty"`
// Key: The key which can uniquely identify the conference solution for
// this event.
Key *ConferenceSolutionKey `json:"key,omitempty"`
// Name: The user-visible name of this solution. Not localized.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "IconUri") 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. "IconUri") 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 *ConferenceSolution) MarshalJSON() ([]byte, error) {
type NoMethod ConferenceSolution
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConferenceSolutionKey struct {
// Type: The conference solution type.
// If a client encounters an unfamiliar or empty type, it should still
// be able to display the entry points. However, it should disallow
// modifications.
// The possible values are:
// - "eventHangout" for Hangouts for consumers
// (http://hangouts.google.com)
// - "eventNamedHangout" for classic Hangouts for G Suite users
// (http://hangouts.google.com)
// - "hangoutsMeet" for Hangouts Meet (http://meet.google.com)
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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 *ConferenceSolutionKey) MarshalJSON() ([]byte, error) {
type NoMethod ConferenceSolutionKey
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CreateConferenceRequest struct {
// ConferenceSolutionKey: The conference solution, such as Hangouts or
// Hangouts Meet.
ConferenceSolutionKey *ConferenceSolutionKey `json:"conferenceSolutionKey,omitempty"`
// RequestId: The client-generated unique ID for this request.
// Clients should regenerate this ID for every new request. If an ID
// provided is the same as for the previous request, the request is
// ignored.
RequestId string `json:"requestId,omitempty"`
// Status: The status of the conference create request.
Status *ConferenceRequestStatus `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ConferenceSolutionKey") 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. "ConferenceSolutionKey") 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 *CreateConferenceRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateConferenceRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type EntryPoint struct {
// AccessCode: The access code to access the conference. The maximum
// length is 128 characters.
// When creating new conference data, populate only the subset of
// {meetingCode, accessCode, passcode, password, pin} fields that match
// the terminology that the conference provider uses. Only the populated
// fields should be displayed.
// Optional.
AccessCode string `json:"accessCode,omitempty"`
// EntryPointType: The type of the conference entry point.
// Possible values are:
// - "video" - joining a conference over HTTP. A conference can have
// zero or one video entry point.
// - "phone" - joining a conference by dialing a phone number. A
// conference can have zero or more phone entry points.
// - "sip" - joining a conference over SIP. A conference can have zero
// or one sip entry point.
// - "more" - further conference joining instructions, for example
// additional phone numbers. A conference can have zero or one more
// entry point. A conference with only a more entry point is not a valid
// conference.
EntryPointType string `json:"entryPointType,omitempty"`
// Label: The label for the URI. Visible to end users. Not localized.
// The maximum length is 512 characters.
// Examples:
// - for video: meet.google.com/aaa-bbbb-ccc
// - for phone: +1 123 268 2601
// - for sip: 12345678@altostrat.com
// - for more: should not be filled
// Optional.
Label string `json:"label,omitempty"`
// MeetingCode: The meeting code to access the conference. The maximum
// length is 128 characters.
// When creating new conference data, populate only the subset of
// {meetingCode, accessCode, passcode, password, pin} fields that match
// the terminology that the conference provider uses. Only the populated
// fields should be displayed.
// Optional.
MeetingCode string `json:"meetingCode,omitempty"`
// Passcode: The passcode to access the conference. The maximum length
// is 128 characters.
// When creating new conference data, populate only the subset of
// {meetingCode, accessCode, passcode, password, pin} fields that match
// the terminology that the conference provider uses. Only the populated
// fields should be displayed.
Passcode string `json:"passcode,omitempty"`
// Password: The password to access the conference. The maximum length
// is 128 characters.
// When creating new conference data, populate only the subset of
// {meetingCode, accessCode, passcode, password, pin} fields that match
// the terminology that the conference provider uses. Only the populated
// fields should be displayed.
// Optional.
Password string `json:"password,omitempty"`
// Pin: The PIN to access the conference. The maximum length is 128
// characters.
// When creating new conference data, populate only the subset of
// {meetingCode, accessCode, passcode, password, pin} fields that match
// the terminology that the conference provider uses. Only the populated
// fields should be displayed.
// Optional.
Pin string `json:"pin,omitempty"`
// Uri: The URI of the entry point. The maximum length is 1300
// characters.
// Format:
// - for video, http: or https: schema is required.
// - for phone, tel: schema is required. The URI should include the
// entire dial sequence (e.g., tel:+12345678900,,,123456789;1234).
// - for sip, sip: schema is required, e.g.,
// sip:12345678@myprovider.com.
// - for more, http: or https: schema is required.
Uri string `json:"uri,omitempty"`
// ForceSendFields is a list of field names (e.g. "AccessCode") 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. "AccessCode") 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 *EntryPoint) MarshalJSON() ([]byte, error) {
type NoMethod EntryPoint
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"`
@@ -810,6 +1169,13 @@ type Event struct {
// endpoint). Optional.
ColorId string `json:"colorId,omitempty"`
// ConferenceData: The conference-related information, such as details
// of a Hangouts Meet conference. To create new conference details use
// the createRequest field. To persist your changes, remember to set the
// conferenceDataVersion request parameter to 1 for all event
// modification requests.
ConferenceData *ConferenceData `json:"conferenceData,omitempty"`
// Created: Creation time of the event (as a RFC3339 timestamp).
// Read-only.
Created string `json:"created,omitempty"`
@@ -5364,6 +5730,18 @@ func (r *EventsService) Import(calendarId string, event *Event) *EventsImportCal
return c
}
// ConferenceDataVersion sets the optional parameter
// "conferenceDataVersion": Version number of conference data supported
// by the API client. Version 0 assumes no conference data support and
// ignores conference data in the event's body. Version 1 enables
// support for copying of ConferenceData as well as for creating new
// conferences using the createRequest field of conferenceData. The
// default is 0.
func (c *EventsImportCall) ConferenceDataVersion(conferenceDataVersion int64) *EventsImportCall {
c.urlParams_.Set("conferenceDataVersion", fmt.Sprint(conferenceDataVersion))
return c
}
// SupportsAttachments sets the optional parameter
// "supportsAttachments": Whether API client performing operation
// supports event attachments. The default is False.
@@ -5471,6 +5849,14 @@ func (c *EventsImportCall) Do(opts ...googleapi.CallOption) (*Event, error) {
// "required": true,
// "type": "string"
// },
// "conferenceDataVersion": {
// "description": "Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.",
// "format": "int32",
// "location": "query",
// "maximum": "1",
// "minimum": "0",
// "type": "integer"
// },
// "supportsAttachments": {
// "description": "Whether API client performing operation supports event attachments. Optional. The default is False.",
// "location": "query",
@@ -5510,6 +5896,18 @@ func (r *EventsService) Insert(calendarId string, event *Event) *EventsInsertCal
return c
}
// ConferenceDataVersion sets the optional parameter
// "conferenceDataVersion": Version number of conference data supported
// by the API client. Version 0 assumes no conference data support and
// ignores conference data in the event's body. Version 1 enables
// support for copying of ConferenceData as well as for creating new
// conferences using the createRequest field of conferenceData. The
// default is 0.
func (c *EventsInsertCall) ConferenceDataVersion(conferenceDataVersion int64) *EventsInsertCall {
c.urlParams_.Set("conferenceDataVersion", fmt.Sprint(conferenceDataVersion))
return c
}
// MaxAttendees sets the optional parameter "maxAttendees": The maximum
// number of attendees to include in the response. If there are more
// than the specified number of attendees, only the participant is
@@ -5634,6 +6032,14 @@ func (c *EventsInsertCall) Do(opts ...googleapi.CallOption) (*Event, error) {
// "required": true,
// "type": "string"
// },
// "conferenceDataVersion": {
// "description": "Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.",
// "format": "int32",
// "location": "query",
// "maximum": "1",
// "minimum": "0",
// "type": "integer"
// },
// "maxAttendees": {
// "description": "The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.",
// "format": "int32",
@@ -6599,6 +7005,18 @@ func (c *EventsPatchCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsPat
return c
}
// ConferenceDataVersion sets the optional parameter
// "conferenceDataVersion": Version number of conference data supported
// by the API client. Version 0 assumes no conference data support and
// ignores conference data in the event's body. Version 1 enables
// support for copying of ConferenceData as well as for creating new
// conferences using the createRequest field of conferenceData. The
// default is 0.
func (c *EventsPatchCall) ConferenceDataVersion(conferenceDataVersion int64) *EventsPatchCall {
c.urlParams_.Set("conferenceDataVersion", fmt.Sprint(conferenceDataVersion))
return c
}
// MaxAttendees sets the optional parameter "maxAttendees": The maximum
// number of attendees to include in the response. If there are more
// than the specified number of attendees, only the participant is
@@ -6730,6 +7148,14 @@ func (c *EventsPatchCall) Do(opts ...googleapi.CallOption) (*Event, error) {
// "required": true,
// "type": "string"
// },
// "conferenceDataVersion": {
// "description": "Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.",
// "format": "int32",
// "location": "query",
// "maximum": "1",
// "minimum": "0",
// "type": "integer"
// },
// "eventId": {
// "description": "Event identifier.",
// "location": "path",
@@ -6945,6 +7371,18 @@ func (c *EventsUpdateCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsUp
return c
}
// ConferenceDataVersion sets the optional parameter
// "conferenceDataVersion": Version number of conference data supported
// by the API client. Version 0 assumes no conference data support and
// ignores conference data in the event's body. Version 1 enables
// support for copying of ConferenceData as well as for creating new
// conferences using the createRequest field of conferenceData. The
// default is 0.
func (c *EventsUpdateCall) ConferenceDataVersion(conferenceDataVersion int64) *EventsUpdateCall {
c.urlParams_.Set("conferenceDataVersion", fmt.Sprint(conferenceDataVersion))
return c
}
// MaxAttendees sets the optional parameter "maxAttendees": The maximum
// number of attendees to include in the response. If there are more
// than the specified number of attendees, only the participant is
@@ -7076,6 +7514,14 @@ func (c *EventsUpdateCall) Do(opts ...googleapi.CallOption) (*Event, error) {
// "required": true,
// "type": "string"
// },
// "conferenceDataVersion": {
// "description": "Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.",
// "format": "int32",
// "location": "query",
// "maximum": "1",
// "minimum": "0",
// "type": "integer"
// },
// "eventId": {
// "description": "Event identifier.",
// "location": "path",
File diff suppressed because it is too large. Load diff
+468
View File
@@ -147,6 +147,7 @@ func NewCoursesService(s *Service) *CoursesService {
rs.CourseWork = NewCoursesCourseWorkService(s)
rs.Students = NewCoursesStudentsService(s)
rs.Teachers = NewCoursesTeachersService(s)
rs.Topics = NewCoursesTopicsService(s)
return rs
}
@@ -162,6 +163,8 @@ type CoursesService struct {
Students *CoursesStudentsService
Teachers *CoursesTeachersService
Topics *CoursesTopicsService
}
func NewCoursesAliasesService(s *Service) *CoursesAliasesService {
@@ -221,6 +224,15 @@ type CoursesTeachersService struct {
s *Service
}
func NewCoursesTopicsService(s *Service) *CoursesTopicsService {
rs := &CoursesTopicsService{s: s}
return rs
}
type CoursesTopicsService struct {
s *Service
}
func NewInvitationsService(s *Service) *InvitationsService {
rs := &InvitationsService{s: s}
return rs
@@ -2097,6 +2109,43 @@ func (s *ListTeachersResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListTopicResponse: Response when listing topics.
type ListTopicResponse struct {
// NextPageToken: Token identifying the next page of results to return.
// If empty, no further
// results are available.
NextPageToken string `json:"nextPageToken,omitempty"`
// Topic: Topic items that match the request.
Topic []*Topic `json:"topic,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListTopicResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListTopicResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Material: Material attached to course work.
//
// When creating attachments, setting the `form` field is not supported.
@@ -2945,6 +2994,60 @@ func (s *TimeOfDay) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Topic: Topic created by a teacher for the course
type Topic struct {
// CourseId: Identifier of the course.
//
// Read-only.
CourseId string `json:"courseId,omitempty"`
// Name: The name of the topic, generated by the user.
// Leading and trailing whitespaces, if any, will be trimmed. Also,
// multiple
// consecutive whitespaces will be collapsed into one inside the
// name.
// Topic names are case sensitive, and must be no longer than 100
// characters.
Name string `json:"name,omitempty"`
// TopicId: Unique identifier for the topic.
//
// Read-only.
TopicId string `json:"topicId,omitempty"`
// UpdateTime: The time the topic was last updated by the
// system.
//
// Read-only.
UpdateTime string `json:"updateTime,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CourseId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CourseId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Topic) MarshalJSON() ([]byte, error) {
type NoMethod Topic
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TurnInStudentSubmissionRequest: Request to turn in a student
// submission.
type TurnInStudentSubmissionRequest struct {
@@ -9407,6 +9510,371 @@ func (c *CoursesTeachersListCall) Pages(ctx context.Context, f func(*ListTeacher
}
}
// method id "classroom.courses.topics.get":
type CoursesTopicsGetCall struct {
s *Service
courseId string
id string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Returns a topic.
//
// This method returns the following error codes:
//
// * `PERMISSION_DENIED` if the requesting user is not permitted to
// access the
// requested course or topic, or for access errors.
// * `INVALID_ARGUMENT` if the request is malformed.
// * `NOT_FOUND` if the requested course or topic does not exist.
func (r *CoursesTopicsService) Get(courseId string, id string) *CoursesTopicsGetCall {
c := &CoursesTopicsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.courseId = courseId
c.id = id
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *CoursesTopicsGetCall) Fields(s ...googleapi.Field) *CoursesTopicsGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *CoursesTopicsGetCall) IfNoneMatch(entityTag string) *CoursesTopicsGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *CoursesTopicsGetCall) Context(ctx context.Context) *CoursesTopicsGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *CoursesTopicsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *CoursesTopicsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/courses/{courseId}/topics/{id}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"courseId": c.courseId,
"id": c.id,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "classroom.courses.topics.get" call.
// Exactly one of *Topic or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Topic.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *CoursesTopicsGetCall) Do(opts ...googleapi.CallOption) (*Topic, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Topic{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Returns a topic.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or topic, or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course or topic does not exist.",
// "flatPath": "v1/courses/{courseId}/topics/{id}",
// "httpMethod": "GET",
// "id": "classroom.courses.topics.get",
// "parameterOrder": [
// "courseId",
// "id"
// ],
// "parameters": {
// "courseId": {
// "description": "Identifier of the course.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "id": {
// "description": "Identifier of the topic.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/courses/{courseId}/topics/{id}",
// "response": {
// "$ref": "Topic"
// },
// "scopes": [
// "https://www.googleapis.com/auth/classroom.coursework.me",
// "https://www.googleapis.com/auth/classroom.coursework.me.readonly",
// "https://www.googleapis.com/auth/classroom.coursework.students",
// "https://www.googleapis.com/auth/classroom.coursework.students.readonly"
// ]
// }
}
// method id "classroom.courses.topics.list":
type CoursesTopicsListCall struct {
s *Service
courseId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Returns the list of topics that the requester is permitted to
// view.
//
// This method returns the following error codes:
//
// * `PERMISSION_DENIED` if the requesting user is not permitted to
// access
// the requested course or for access errors.
// * `INVALID_ARGUMENT` if the request is malformed.
// * `NOT_FOUND` if the requested course does not exist.
func (r *CoursesTopicsService) List(courseId string) *CoursesTopicsListCall {
c := &CoursesTopicsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.courseId = courseId
return c
}
// PageSize sets the optional parameter "pageSize": Maximum number of
// items to return. Zero or unspecified indicates that the
// server may assign a maximum.
//
// The server may return fewer than the specified number of results.
func (c *CoursesTopicsListCall) PageSize(pageSize int64) *CoursesTopicsListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken":
// nextPageToken
// value returned from a previous
// list call,
// indicating that the subsequent page of results should be
// returned.
//
// The list request
// must be otherwise identical to the one that resulted in this token.
func (c *CoursesTopicsListCall) PageToken(pageToken string) *CoursesTopicsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *CoursesTopicsListCall) Fields(s ...googleapi.Field) *CoursesTopicsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *CoursesTopicsListCall) IfNoneMatch(entityTag string) *CoursesTopicsListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *CoursesTopicsListCall) Context(ctx context.Context) *CoursesTopicsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *CoursesTopicsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *CoursesTopicsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/courses/{courseId}/topics")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"courseId": c.courseId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "classroom.courses.topics.list" call.
// Exactly one of *ListTopicResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListTopicResponse.ServerResponse.Header or (if a response was
// returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *CoursesTopicsListCall) Do(opts ...googleapi.CallOption) (*ListTopicResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListTopicResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Returns the list of topics that the requester is permitted to view.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access\nthe requested course or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course does not exist.",
// "flatPath": "v1/courses/{courseId}/topics",
// "httpMethod": "GET",
// "id": "classroom.courses.topics.list",
// "parameterOrder": [
// "courseId"
// ],
// "parameters": {
// "courseId": {
// "description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "pageSize": {
// "description": "Maximum number of items to return. Zero or unspecified indicates that the\nserver may assign a maximum.\n\nThe server may return fewer than the specified number of results.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "nextPageToken\nvalue returned from a previous\nlist call,\nindicating that the subsequent page of results should be returned.\n\nThe list request\nmust be otherwise identical to the one that resulted in this token.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/courses/{courseId}/topics",
// "response": {
// "$ref": "ListTopicResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/classroom.coursework.me",
// "https://www.googleapis.com/auth/classroom.coursework.me.readonly",
// "https://www.googleapis.com/auth/classroom.coursework.students",
// "https://www.googleapis.com/auth/classroom.coursework.students.readonly"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *CoursesTopicsListCall) Pages(ctx context.Context, f func(*ListTopicResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "classroom.invitations.accept":
type InvitationsAcceptCall struct {
File diff suppressed because it is too large. Load diff
+40 -21
View File
@@ -589,14 +589,27 @@ type PricingInfo struct {
// doesn't require aggregation.
AggregationInfo *AggregationInfo `json:"aggregationInfo,omitempty"`
// CurrencyConversionRate: Conversion rate for currency conversion, from
// USD to the currency specified
// in the request. If the currency is not specified this defaults to
// 1.0.
// CurrencyConversionRate: Conversion rate used for currency conversion,
// from USD to the currency
// specified in the request. This includes any surcharge collected for
// billing
// in non USD currency. If a currency is not specified in the request
// this
// defaults to 1.0.
// Example: USD * currency_conversion_rate = JPY
CurrencyConversionRate float64 `json:"currencyConversionRate,omitempty"`
// EffectiveTime: The timestamp from which this pricing was effective.
// EffectiveTime: The timestamp from which this pricing was effective
// within the requested
// time range. This is guaranteed to be greater than or equal to
// the
// start_time field in the request and less than the end_time field in
// the
// request. If a time range was not specified in the request this field
// will
// be equivalent to a time within the last 12 hours, indicating the
// latest
// pricing info.
EffectiveTime string `json:"effectiveTime,omitempty"`
// PricingExpression: Expresses the pricing formula. See
@@ -1191,9 +1204,11 @@ type BillingAccountsProjectsListCall struct {
// List: Lists the projects associated with a billing account. The
// current
// authenticated user must be an [owner of the
// billing
// account](https://support.google.com/cloud/answer/4430947).
// authenticated user must have the "billing.resourceAssociations.list"
// IAM
// permission, which is often given to billing
// account
// [viewers](https://support.google.com/cloud/answer/4430947).
func (r *BillingAccountsProjectsService) List(name string) *BillingAccountsProjectsListCall {
c := &BillingAccountsProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
@@ -1313,7 +1328,7 @@ func (c *BillingAccountsProjectsListCall) Do(opts ...googleapi.CallOption) (*Lis
}
return ret, nil
// {
// "description": "Lists the projects associated with a billing account. The current\nauthenticated user must be an [owner of the billing\naccount](https://support.google.com/cloud/answer/4430947).",
// "description": "Lists the projects associated with a billing account. The current\nauthenticated user must have the \"billing.resourceAssociations.list\" IAM\npermission, which is often given to billing account\n[viewers](https://support.google.com/cloud/answer/4430947).",
// "flatPath": "v1/billingAccounts/{billingAccountsId}/projects",
// "httpMethod": "GET",
// "id": "cloudbilling.billingAccounts.projects.list",
@@ -1909,11 +1924,13 @@ func (c *ServicesSkusListCall) CurrencyCode(currencyCode string) *ServicesSkusLi
// time of the time range for which the pricing
// versions will be returned. Timestamps in the future are not
// allowed.
// Maximum allowable time range is 1 month (31 days). Time range as a
// whole
// is optional. If not specified, the latest pricing will be returned
// (up to
// 12 hours old at most).
// The time range has to be within a single calendar month
// in
// America/Los_Angeles timezone. Time range as a whole is optional. If
// not
// specified, the latest pricing will be returned (up to 12 hours old
// at
// most).
func (c *ServicesSkusListCall) EndTime(endTime string) *ServicesSkusListCall {
c.urlParams_.Set("endTime", endTime)
return c
@@ -1940,11 +1957,13 @@ func (c *ServicesSkusListCall) PageToken(pageToken string) *ServicesSkusListCall
// start time of the time range for which the pricing
// versions will be returned. Timestamps in the future are not
// allowed.
// Maximum allowable time range is 1 month (31 days). Time range as a
// whole
// is optional. If not specified, the latest pricing will be returned
// (up to
// 12 hours old at most).
// The time range has to be within a single calendar month
// in
// America/Los_Angeles timezone. Time range as a whole is optional. If
// not
// specified, the latest pricing will be returned (up to 12 hours old
// at
// most).
func (c *ServicesSkusListCall) StartTime(startTime string) *ServicesSkusListCall {
c.urlParams_.Set("startTime", startTime)
return c
@@ -2058,7 +2077,7 @@ func (c *ServicesSkusListCall) Do(opts ...googleapi.CallOption) (*ListSkusRespon
// "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).",
// "description": "Optional exclusive end time of the time range for which the pricing\nversions will be returned. Timestamps in the future are not allowed.\nThe time range has to be within a single calendar month in\nAmerica/Los_Angeles timezone. Time range as a whole is optional. If not\nspecified, the latest pricing will be returned (up to 12 hours old at\nmost).",
// "format": "google-datetime",
// "location": "query",
// "type": "string"
@@ -2082,7 +2101,7 @@ func (c *ServicesSkusListCall) Do(opts ...googleapi.CallOption) (*ListSkusRespon
// "type": "string"
// },
// "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).",
// "description": "Optional inclusive start time of the time range for which the pricing\nversions will be returned. Timestamps in the future are not allowed.\nThe time range has to be within a single calendar month in\nAmerica/Los_Angeles timezone. Time range as a whole is optional. If not\nspecified, the latest pricing will be returned (up to 12 hours old at\nmost).",
// "format": "google-datetime",
// "location": "query",
// "type": "string"
File diff suppressed because it is too large. Load diff
+51 -1
View File
@@ -259,6 +259,18 @@ type Build struct {
// Default time is ten minutes.
Timeout string `json:"timeout,omitempty"`
// Timing: Stores timing information for phases of the build. Valid keys
// are:
//
// * BUILD: time to execute all build steps
// * PUSH: time to push all specified images.
// * FETCHSOURCE: time to fetch source.
//
// If the build does not specify source, or does not specify
// images,
// these keys will not be included.
Timing map[string]TimeSpan `json:"timing,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
@@ -345,7 +357,7 @@ type BuildOptions struct {
// written when the build is completed.
LogStreamingOption string `json:"logStreamingOption,omitempty"`
// MachineType: GCE VM size to run the build on.
// MachineType: Compute Engine machine type on which to run the build.
//
// Possible values:
// "UNSPECIFIED" - Standard machine type.
@@ -473,6 +485,9 @@ type BuildStep struct {
// crypto key. These values must be specified in the build's secrets.
SecretEnv []string `json:"secretEnv,omitempty"`
// Timing: Stores timing information for executing this build step.
Timing *TimeSpan `json:"timing,omitempty"`
// Volumes: List of volumes to mount into the build step.
//
// Each volume will be created as an empty volume prior to execution of
@@ -598,6 +613,10 @@ type BuiltImage struct {
// presented to `docker push`.
Name string `json:"name,omitempty"`
// PushTiming: Stores timing information for pushing the specified
// image.
PushTiming *TimeSpan `json:"pushTiming,omitempty"`
// ForceSendFields is a list of field names (e.g. "Digest") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -1279,6 +1298,37 @@ func (s *StorageSource) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TimeSpan: Stores start and end times for a build execution phase.
type TimeSpan struct {
// EndTime: End of time span.
EndTime string `json:"endTime,omitempty"`
// StartTime: Start of time span.
StartTime string `json:"startTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TimeSpan) MarshalJSON() ([]byte, error) {
type NoMethod TimeSpan
raw := NoMethod(*s)
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.
File diff suppressed because it is too large. Load diff
+1 -3
View File
@@ -50,7 +50,7 @@ const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
// Manage cloud debugger
// Use Stackdriver Debugger
CloudDebuggerScope = "https://www.googleapis.com/auth/cloud_debugger"
)
@@ -483,8 +483,6 @@ type Debuggee struct {
// ExtSourceContexts: References to the locations and revisions of the
// source code used in the
// deployed application.
//
// NOTE: this field is experimental and can be ignored.
ExtSourceContexts []*ExtendedSourceContext `json:"extSourceContexts,omitempty"`
// Id: Unique identifier for the debuggee generated by the controller
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+28 -20
View File
@@ -317,27 +317,22 @@ func (s *CloudFunction) MarshalJSON() ([]byte, error) {
type EventTrigger struct {
// EventType: Required. The type of event to observe. For
// example:
// `google.storage.object.finalized`
// `providers/cloud.storage/eventTypes/object.change`
// and
// `google.firebase.analytics.event.log`.
// `providers/cloud.pubsub/eventTypes/topic.publish`.
//
// Event type consists of three parts:
// 1. namespace: The domain name of the organization in reverse-domain
// notation (e.g. `acme.net` appears as `net.acme`) and any
// orginization
// specific subdivisions. If the organization's top-level domain is
// `com`,
// the top-level domain is ommited (e.g. `google.com` appears as
// `google`). For example, `google.storage` and
// `google.firebase.analytics`.
// 2. resource type: The type of resource on which event ocurs. For
// example, the Google Cloud Storage API includes the type
// Event types match pattern `providers/*/eventTypes/*.*`.
// The pattern contains:
//
// 1. namespace: For example, `cloud.storage` and
// `google.firebase.analytics`.
// 2. resource type: The type of resource on which event occurs. For
// example, the Google Cloud Storage API includes the type
// `object`.
// 3. action: The action that generates the event. For example, actions
// 3. action: The action that generates the event. For example, action
// for
// a Google Cloud Storage Object include 'finalize' and
// 'delete'.
// These parts are lower case and joined by '.'.
// a Google Cloud Storage Object is 'change'.
// These parts are lower case.
EventType string `json:"eventType,omitempty"`
// FailurePolicy: Specifies policy for failed executions.
@@ -2203,11 +2198,24 @@ type ProjectsLocationsFunctionsGenerateUploadUrlCall struct {
// source code.
// For more information about the signed URL usage
// see:
// https://cloud.google.com/storage/docs/access-control/signed-urls
// https://cloud.google.com/storage/docs/access-control/signed-urls.
//
// Once the function source code upload is complete, the used signed
// URL should be provided in CreateFunction or UpdateFunction request
// as a reference to the function source code.
//
// When uploading source code to the generated signed URL, please
// follow
// these restrictions:
//
// * Source file type should be a zip file.
// * Source file size should not exceed 100MB limit.
//
// When making a HTTP PUT request, these two headers need to be
// specified:
//
// * `content-type: application/zip`
// * `x-google-content-length-range: 0,104857600`
func (r *ProjectsLocationsFunctionsService) GenerateUploadUrl(parent string, generateuploadurlrequest *GenerateUploadUrlRequest) *ProjectsLocationsFunctionsGenerateUploadUrlCall {
c := &ProjectsLocationsFunctionsGenerateUploadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -2301,7 +2309,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Do(opts ...googleapi.C
}
return ret, nil
// {
// "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.",
// "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls.\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-google-content-length-range: 0,104857600`",
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrl",
// "httpMethod": "POST",
// "id": "cloudfunctions.projects.locations.functions.generateUploadUrl",
@@ -2310,7 +2318,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Do(opts ...googleapi.C
// ],
// "parameters": {
// "parent": {
// "description": "The project and location in which the Google Cloud Storage signed URL\nshould be generated, specified in the format `projects/*/locations/*",
// "description": "The project and location in which the Google Cloud Storage signed URL\nshould be generated, specified in the format `projects/*/locations/*`.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+$",
// "required": true,
File diff suppressed because it is too large. Load diff
+22 -7
View File
@@ -344,13 +344,15 @@ type EventTrigger struct {
// `providers/*/eventTypes/*` e.g. Directly handle a Message published
// to
// Google Cloud Pub/Sub
// `providers/cloud.pubsub/eventTypes/topic.publish`
// `providers/cloud.pubsub/eventTypes/topic.publish`.
//
// Handle an object changing in Google Cloud Storage
// `providers/cloud.storage/eventTypes/object.change`
// Handle an object changing in Google Cloud
// Storage:
// `providers/cloud.storage/eventTypes/object.change`
//
// Handle a write to the Firebase Realtime Database
// `providers/google.firebase.database/eventTypes/ref.write`
// Handle a write to the Firebase Realtime
// Database:
// `providers/google.firebase.database/eventTypes/ref.write`
EventType string `json:"eventType,omitempty"`
// FailurePolicy: Specifies policy for failed executions.
@@ -2211,6 +2213,19 @@ type ProjectsLocationsFunctionsGenerateUploadUrlCall struct {
// Once the function source code upload is complete, the used signed
// URL should be provided in CreateFunction or UpdateFunction request
// as a reference to the function source code.
//
// When uploading source code to the generated signed URL, please
// follow
// these restrictions:
//
// * Source file type should be a zip file.
// * Source file size should not exceed 100MB limit.
//
// When making a HTTP PUT request, these two headers need to be
// specified:
//
// * `content-type: application/zip`
// * `x-google-content-length-range: 0,104857600`
func (r *ProjectsLocationsFunctionsService) GenerateUploadUrl(parent string, generateuploadurlrequest *GenerateUploadUrlRequest) *ProjectsLocationsFunctionsGenerateUploadUrlCall {
c := &ProjectsLocationsFunctionsGenerateUploadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -2304,7 +2319,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Do(opts ...googleapi.C
}
return ret, nil
// {
// "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.",
// "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-google-content-length-range: 0,104857600`",
// "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrl",
// "httpMethod": "POST",
// "id": "cloudfunctions.projects.locations.functions.generateUploadUrl",
@@ -2313,7 +2328,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Do(opts ...googleapi.C
// ],
// "parameters": {
// "parent": {
// "description": "The project and location in which the Google Cloud Storage signed URL\nshould be generated, specified in the format `projects/*/locations/*",
// "description": "The project and location in which the Google Cloud Storage signed URL\nshould be generated, specified in the format `projects/*/locations/*`.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+$",
// "required": true,
+1052 -1052
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -1195,7 +1195,7 @@ func (s *MqttConfig) MarshalJSON() ([]byte, error) {
// }
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam).
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
// AuditConfigs: Specifies cloud audit logging configuration for this
// policy.
@@ -1227,7 +1227,7 @@ type Policy struct {
IamOwned bool `json:"iamOwned,omitempty"`
// Version: Version of the `Policy`. The default version is 0.
// Version: Deprecated.
Version int64 `json:"version,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
File diff suppressed because it is too large. Load diff
+2 -555
View File
@@ -752,138 +752,6 @@ func (s *Expr) MarshalJSON() ([]byte, error) {
type GetIamPolicyRequest struct {
}
// HttpDeviceConfig: The device configuration obtained from Cloud IoT
// Core.
type HttpDeviceConfig struct {
// BinaryData: Data in binary format.
BinaryData string `json:"binaryData,omitempty"`
// Version: The version of the configuration in Cloud IoT Core.
Version int64 `json:"version,omitempty,string"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BinaryData") 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. "BinaryData") 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 *HttpDeviceConfig) MarshalJSON() ([]byte, error) {
type NoMethod HttpDeviceConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// HttpDeviceState: The device state reported to Cloud IoT Core.
type HttpDeviceState struct {
// BinaryData: Data in binary format.
BinaryData string `json:"binaryData,omitempty"`
// ForceSendFields is a list of field names (e.g. "BinaryData") 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. "BinaryData") 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 *HttpDeviceState) MarshalJSON() ([]byte, error) {
type NoMethod HttpDeviceState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// HttpPublishEventRequest: Request for `PublishEvent`.
type HttpPublishEventRequest struct {
// BinaryData: Payload data in binary format.
BinaryData string `json:"binaryData,omitempty"`
// SubFolder: Optional subfolder for the telemetry event. This can be
// used to classify
// types of events, and is included in the Pub/Sub message attributes.
SubFolder string `json:"subFolder,omitempty"`
// ForceSendFields is a list of field names (e.g. "BinaryData") 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. "BinaryData") 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 *HttpPublishEventRequest) MarshalJSON() ([]byte, error) {
type NoMethod HttpPublishEventRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// HttpPublishEventResponse: Response for `PublishEvent`.
type HttpPublishEventResponse struct {
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
}
// HttpSetDeviceStateRequest: Request for `SetDeviceState`.
type HttpSetDeviceStateRequest struct {
// State: The device state.
State *HttpDeviceState `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g. "State") 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. "State") 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 *HttpSetDeviceStateRequest) MarshalJSON() ([]byte, error) {
type NoMethod HttpSetDeviceStateRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListDeviceConfigVersionsResponse: Response for
// `ListDeviceConfigVersions`.
type ListDeviceConfigVersionsResponse struct {
@@ -1140,7 +1008,7 @@ func (s *NotificationConfig) MarshalJSON() ([]byte, error) {
// }
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam).
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
// AuditConfigs: Specifies cloud audit logging configuration for this
// policy.
@@ -1172,7 +1040,7 @@ type Policy struct {
IamOwned bool `json:"iamOwned,omitempty"`
// Version: Version of the `Policy`. The default version is 0.
// Version: Deprecated.
Version int64 `json:"version,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -3057,163 +2925,6 @@ func (c *ProjectsLocationsRegistriesDevicesGetCall) Do(opts ...googleapi.CallOpt
}
// method id "cloudiot.projects.locations.registries.devices.getConfig":
type ProjectsLocationsRegistriesDevicesGetConfigCall struct {
s *Service
name string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// GetConfig: Gets the configuration of a device.
func (r *ProjectsLocationsRegistriesDevicesService) GetConfig(name string) *ProjectsLocationsRegistriesDevicesGetConfigCall {
c := &ProjectsLocationsRegistriesDevicesGetConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
return c
}
// LocalVersion sets the optional parameter "localVersion": If zero,
// returns the current device configuration from Cloud IoT Core.
// If nonzero, specifies the local version of the configuration on the
// device.
// The server returns config data only if a higher (newer) version
// is
// available from Cloud IoT Core.
// If this value is higher than the latest version available in Cloud
// IoT
// Core, returns an `OUT_OF_RANGE` error.
func (c *ProjectsLocationsRegistriesDevicesGetConfigCall) LocalVersion(localVersion int64) *ProjectsLocationsRegistriesDevicesGetConfigCall {
c.urlParams_.Set("localVersion", fmt.Sprint(localVersion))
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 *ProjectsLocationsRegistriesDevicesGetConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesGetConfigCall {
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 *ProjectsLocationsRegistriesDevicesGetConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsRegistriesDevicesGetConfigCall {
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 *ProjectsLocationsRegistriesDevicesGetConfigCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesGetConfigCall {
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 *ProjectsLocationsRegistriesDevicesGetConfigCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsRegistriesDevicesGetConfigCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/config")
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 "cloudiot.projects.locations.registries.devices.getConfig" call.
// Exactly one of *HttpDeviceConfig or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *HttpDeviceConfig.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 *ProjectsLocationsRegistriesDevicesGetConfigCall) Do(opts ...googleapi.CallOption) (*HttpDeviceConfig, 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 := &HttpDeviceConfig{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets the configuration of a device.",
// "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices/{devicesId}/config",
// "httpMethod": "GET",
// "id": "cloudiot.projects.locations.registries.devices.getConfig",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "localVersion": {
// "description": "If zero, returns the current device configuration from Cloud IoT Core.\nIf nonzero, specifies the local version of the configuration on the device.\nThe server returns config data only if a higher (newer) version is\navailable from Cloud IoT Core.\nIf this value is higher than the latest version available in Cloud IoT\nCore, returns an `OUT_OF_RANGE` error.",
// "format": "int64",
// "location": "query",
// "type": "string"
// },
// "name": {
// "description": "The name of the device. For example,\n`projects/p0/locations/us-central1/registries/registry0/devices/device0`.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/devices/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1beta1/{+name}/config",
// "response": {
// "$ref": "HttpDeviceConfig"
// }
// }
}
// method id "cloudiot.projects.locations.registries.devices.list":
type ProjectsLocationsRegistriesDevicesListCall struct {
@@ -3751,270 +3462,6 @@ func (c *ProjectsLocationsRegistriesDevicesPatchCall) Do(opts ...googleapi.CallO
}
// method id "cloudiot.projects.locations.registries.devices.publishEvent":
type ProjectsLocationsRegistriesDevicesPublishEventCall struct {
s *Service
name string
httppublisheventrequest *HttpPublishEventRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// PublishEvent: Publishes a telemetry event for a device.
func (r *ProjectsLocationsRegistriesDevicesService) PublishEvent(name string, httppublisheventrequest *HttpPublishEventRequest) *ProjectsLocationsRegistriesDevicesPublishEventCall {
c := &ProjectsLocationsRegistriesDevicesPublishEventCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
c.httppublisheventrequest = httppublisheventrequest
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 *ProjectsLocationsRegistriesDevicesPublishEventCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesPublishEventCall {
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 *ProjectsLocationsRegistriesDevicesPublishEventCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesPublishEventCall {
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 *ProjectsLocationsRegistriesDevicesPublishEventCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsRegistriesDevicesPublishEventCall) 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.httppublisheventrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:publishEvent")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "cloudiot.projects.locations.registries.devices.publishEvent" call.
// Exactly one of *HttpPublishEventResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *HttpPublishEventResponse.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 *ProjectsLocationsRegistriesDevicesPublishEventCall) Do(opts ...googleapi.CallOption) (*HttpPublishEventResponse, 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 := &HttpPublishEventResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Publishes a telemetry event for a device.",
// "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices/{devicesId}:publishEvent",
// "httpMethod": "POST",
// "id": "cloudiot.projects.locations.registries.devices.publishEvent",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The name of the device. For example,\n`projects/p0/locations/us-central1/registries/registry0/devices/device0`.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/devices/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1beta1/{+name}:publishEvent",
// "request": {
// "$ref": "HttpPublishEventRequest"
// },
// "response": {
// "$ref": "HttpPublishEventResponse"
// }
// }
}
// method id "cloudiot.projects.locations.registries.devices.setState":
type ProjectsLocationsRegistriesDevicesSetStateCall struct {
s *Service
name string
httpsetdevicestaterequest *HttpSetDeviceStateRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetState: Sets the state of a device.
func (r *ProjectsLocationsRegistriesDevicesService) SetState(name string, httpsetdevicestaterequest *HttpSetDeviceStateRequest) *ProjectsLocationsRegistriesDevicesSetStateCall {
c := &ProjectsLocationsRegistriesDevicesSetStateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
c.httpsetdevicestaterequest = httpsetdevicestaterequest
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 *ProjectsLocationsRegistriesDevicesSetStateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesSetStateCall {
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 *ProjectsLocationsRegistriesDevicesSetStateCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesSetStateCall {
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 *ProjectsLocationsRegistriesDevicesSetStateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsRegistriesDevicesSetStateCall) 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.httpsetdevicestaterequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setState")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "cloudiot.projects.locations.registries.devices.setState" call.
// Exactly one of *Empty or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Empty.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *ProjectsLocationsRegistriesDevicesSetStateCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Empty{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Sets the state of a device.",
// "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices/{devicesId}:setState",
// "httpMethod": "POST",
// "id": "cloudiot.projects.locations.registries.devices.setState",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The name of the device. For example,\n`projects/p0/locations/us-central1/registries/registry0/devices/device0`.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/devices/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1beta1/{+name}:setState",
// "request": {
// "$ref": "HttpSetDeviceStateRequest"
// },
// "response": {
// "$ref": "Empty"
// }
// }
}
// method id "cloudiot.projects.locations.registries.devices.configVersions.list":
type ProjectsLocationsRegistriesDevicesConfigVersionsListCall struct {
File diff suppressed because it is too large. Load diff
+4 -71
View File
@@ -195,8 +195,6 @@ type AuditConfig struct {
// Next ID: 4
AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
ExemptedMembers []string `json:"exemptedMembers,omitempty"`
// Service: Specifies a service that will be enabled for audit
// logging.
// For example, `storage.googleapis.com`,
@@ -291,15 +289,6 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
// Binding: Associates `members` with a `role`.
type Binding struct {
// Condition: The condition that is associated with this binding.
// NOTE: an unsatisfied condition will not allow user access via
// current
// binding. Different bindings, including their conditions, are
// examined
// independently.
// This field is GOOGLE_INTERNAL.
Condition *Expr `json:"condition,omitempty"`
// Members: Specifies the identities requesting access for a Cloud
// Platform resource.
// `members` can have the following values:
@@ -341,7 +330,7 @@ type Binding struct {
// Required
Role string `json:"role,omitempty"`
// ForceSendFields is a list of field names (e.g. "Condition") to
// ForceSendFields is a list of field names (e.g. "Members") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -349,7 +338,7 @@ type Binding struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Condition") to include in
// NullFields is a list of field names (e.g. "Members") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
@@ -687,60 +676,6 @@ func (s *EncryptResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Expr: Represents an expression text. Example:
//
// title: "User account presence"
// description: "Determines whether the request has a user account"
// expression: "size(request.user) > 0"
type Expr struct {
// Description: An optional description of the expression. This is a
// longer text which
// describes the expression, e.g. when hovered over it in a UI.
Description string `json:"description,omitempty"`
// Expression: Textual representation of an expression in
// Common Expression Language syntax.
//
// The application context of the containing message determines
// which
// well-known feature set of CEL is supported.
Expression string `json:"expression,omitempty"`
// Location: An optional string indicating the location of the
// expression for error
// reporting, e.g. a file name and a position in the file.
Location string `json:"location,omitempty"`
// Title: An optional title for the expression, i.e. a short string
// describing
// its purpose. This can be used e.g. in UIs which allow to enter
// the
// expression.
Title string `json:"title,omitempty"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Description") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Expr) MarshalJSON() ([]byte, error) {
type NoMethod Expr
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// KeyRing: A KeyRing is a toplevel logical grouping of CryptoKeys.
type KeyRing struct {
// CreateTime: Output only. The time at which this KeyRing was created.
@@ -1027,7 +962,7 @@ func (s *Location) MarshalJSON() ([]byte, error) {
// }
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam).
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
// AuditConfigs: Specifies cloud audit logging configuration for this
// policy.
@@ -1057,9 +992,7 @@ type Policy struct {
// policy is overwritten blindly.
Etag string `json:"etag,omitempty"`
IamOwned bool `json:"iamOwned,omitempty"`
// Version: Version of the `Policy`. The default version is 0.
// Version: Deprecated.
Version int64 `json:"version,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
File diff suppressed because it is too large. Load diff
@@ -1673,7 +1673,7 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
// }
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam).
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
// AuditConfigs: Specifies cloud audit logging configuration for this
// policy.
@@ -1703,7 +1703,7 @@ type Policy struct {
// policy is overwritten blindly.
Etag string `json:"etag,omitempty"`
// Version: Version of the `Policy`. The default version is 0.
// Version: Deprecated.
Version int64 `json:"version,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -1797,10 +1797,10 @@ type Project struct {
// Parent: An optional reference to a parent Resource.
//
// The only supported parent type is "organization". Once set, the
// parent
// cannot be modified. The `parent` can be set on creation or using
// Supported parent types include "organization" and "folder". Once set,
// the
// parent cannot be cleared. The `parent` can be set on creation or
// using the
// `UpdateProject` method; the end user must have
// the
// `resourcemanager.projects.create` permission on the
@@ -6273,7 +6273,11 @@ type ProjectsGetIamPolicyCall struct {
//
// Authorization requires the Google IAM
// permission
// `resourcemanager.projects.getIamPolicy` on the project
// `resourcemanager.projects.getIamPolicy` on the project.
//
// For additional information about resource structure and
// identification,
// see [Resource Names](/apis/design/resource_names).
func (r *ProjectsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsGetIamPolicyCall {
c := &ProjectsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resource = resource
@@ -6367,7 +6371,7 @@ func (c *ProjectsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, er
}
return ret, nil
// {
// "description": "Returns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.getIamPolicy` on the project",
// "description": "Returns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.getIamPolicy` on the project.\n\nFor additional information about resource structure and identification,\nsee [Resource Names](/apis/design/resource_names).",
// "flatPath": "v1/projects/{resource}:getIamPolicy",
// "httpMethod": "POST",
// "id": "cloudresourcemanager.projects.getIamPolicy",
@@ -6555,7 +6559,14 @@ type ProjectsListCall struct {
// the
// specified filter. This method returns Projects in an unspecified
// order.
// New Projects do not necessarily appear at the end of the list.
// This method is eventually consistent with project mutations; this
// means
// that a newly created project may not appear in the results or
// recent
// updates to an existing project may not be reflected in the results.
// To
// retrieve the latest state of a project, use the
// GetProject method.
func (r *ProjectsService) List() *ProjectsListCall {
c := &ProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
@@ -6716,7 +6727,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ListProjectsRespon
}
return ret, nil
// {
// "description": "Lists Projects that are visible to the user and satisfy the\nspecified filter. This method returns Projects in an unspecified order.\nNew Projects do not necessarily appear at the end of the list.",
// "description": "Lists Projects that are visible to the user and satisfy the\nspecified filter. This method returns Projects in an unspecified order.\nThis method is eventually consistent with project mutations; this means\nthat a newly created project may not appear in the results or recent\nupdates to an existing project may not be reflected in the results. To\nretrieve the latest state of a project, use the\nGetProject method.",
// "flatPath": "v1/projects",
// "httpMethod": "GET",
// "id": "cloudresourcemanager.projects.list",
@@ -7102,7 +7113,7 @@ type ProjectsSetIamPolicyCall struct {
}
// SetIamPolicy: Sets the IAM access control policy for the specified
// Project. Replaces
// Project. Overwrites
// any existing policy.
//
// The following constraints apply when using `setIamPolicy()`:
@@ -7148,8 +7159,9 @@ type ProjectsSetIamPolicyCall struct {
// is
// rectified.
//
// + Calling this method requires enabling the App Engine Admin
// API.
// + This method will replace the existing policy, and cannot be used
// to
// append additional IAM settings.
//
// Note: Removing service accounts from policies or changing their
// roles
@@ -7255,7 +7267,7 @@ func (c *ProjectsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, er
}
return ret, nil
// {
// "description": "Sets the IAM access control policy for the specified Project. Replaces\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`;\nthey must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ Calling this method requires enabling the App Engine Admin API.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.setIamPolicy` on the project",
// "description": "Sets the IAM access control policy for the specified Project. Overwrites\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`;\nthey must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ This method will replace the existing policy, and cannot be used to\nappend additional IAM settings.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.setIamPolicy` on the project",
// "flatPath": "v1/projects/{resource}:setIamPolicy",
// "httpMethod": "POST",
// "id": "cloudresourcemanager.projects.setIamPolicy",
File diff suppressed because it is too large. Load diff
@@ -763,7 +763,7 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
// }
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam).
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
// AuditConfigs: Specifies cloud audit logging configuration for this
// policy.
@@ -793,7 +793,7 @@ type Policy struct {
// policy is overwritten blindly.
Etag string `json:"etag,omitempty"`
// Version: Version of the `Policy`. The default version is 0.
// Version: Deprecated.
Version int64 `json:"version,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -886,10 +886,10 @@ type Project struct {
// Parent: An optional reference to a parent Resource.
//
// The only supported parent type is "organization". Once set, the
// parent
// cannot be modified. The `parent` can be set on creation or using
// Supported parent types include "organization" and "folder". Once set,
// the
// parent cannot be cleared. The `parent` can be set on creation or
// using the
// `UpdateProject` method; the end user must have
// the
// `resourcemanager.projects.create` permission on the
@@ -2647,7 +2647,12 @@ type ProjectsGetIamPolicyCall struct {
// GetIamPolicy: Returns the IAM access control policy for the specified
// Project.
// Permission is denied if the policy or the resource does not exist.
// Permission is denied if the policy or the resource does not
// exist.
//
// For additional information about resource structure and
// identification,
// see [Resource Names](/apis/design/resource_names).
func (r *ProjectsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsGetIamPolicyCall {
c := &ProjectsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resource = resource
@@ -2741,7 +2746,7 @@ func (c *ProjectsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, er
}
return ret, nil
// {
// "description": "Returns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.",
// "description": "Returns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.\n\nFor additional information about resource structure and identification,\nsee [Resource Names](/apis/design/resource_names).",
// "flatPath": "v1beta1/projects/{resource}:getIamPolicy",
// "httpMethod": "POST",
// "id": "cloudresourcemanager.projects.getIamPolicy",
@@ -2785,7 +2790,13 @@ type ProjectsListCall struct {
// the
// specified filter. This method returns Projects in an unspecified
// order.
// New Projects do not necessarily appear at the end of the list.
// This method is eventually consistent with project mutations; this
// means
// that a newly created project may not appear in the results or
// recent
// updates to an existing project may not be reflected in the results.
// To
// retrieve the latest state of a project, use the GetProjectmethod.
func (r *ProjectsService) List() *ProjectsListCall {
c := &ProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
@@ -2946,7 +2957,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ListProjectsRespon
}
return ret, nil
// {
// "description": "Lists Projects that are visible to the user and satisfy the\nspecified filter. This method returns Projects in an unspecified order.\nNew Projects do not necessarily appear at the end of the list.",
// "description": "Lists Projects that are visible to the user and satisfy the\nspecified filter. This method returns Projects in an unspecified order.\nThis method is eventually consistent with project mutations; this means\nthat a newly created project may not appear in the results or recent\nupdates to an existing project may not be reflected in the results. To\nretrieve the latest state of a project, use the GetProjectmethod.",
// "flatPath": "v1beta1/projects",
// "httpMethod": "GET",
// "id": "cloudresourcemanager.projects.list",
@@ -3014,7 +3025,7 @@ type ProjectsSetIamPolicyCall struct {
}
// SetIamPolicy: Sets the IAM access control policy for the specified
// Project. Replaces
// Project. Overwrites
// any existing policy.
//
// The following constraints apply when using `setIamPolicy()`:
@@ -3060,8 +3071,9 @@ type ProjectsSetIamPolicyCall struct {
// is
// rectified.
//
// + Calling this method requires enabling the App Engine Admin
// API.
// + This method will replace the existing policy, and cannot be used
// to
// append additional IAM settings.
//
// Note: Removing service accounts from policies or changing their
// roles
@@ -3163,7 +3175,7 @@ func (c *ProjectsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, er
}
return ret, nil
// {
// "description": "Sets the IAM access control policy for the specified Project. Replaces\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`; they must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ Calling this method requires enabling the App Engine Admin API.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.",
// "description": "Sets the IAM access control policy for the specified Project. Overwrites\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`; they must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ This method will replace the existing policy, and cannot be used to\nappend additional IAM settings.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.",
// "flatPath": "v1beta1/projects/{resource}:setIamPolicy",
// "httpMethod": "POST",
// "id": "cloudresourcemanager.projects.setIamPolicy",
File diff suppressed because it is too large. Load diff
@@ -333,7 +333,8 @@ type Folder struct {
// LifecycleState: Output only. The lifecycle state of the
// folder.
// Updates to the lifecycle_state must be performed via
// [DeleteFolder] and [UndeleteFolder].
// DeleteFolder and
// UndeleteFolder.
//
// Possible values:
// "LIFECYCLE_STATE_UNSPECIFIED" - Unspecified state.
@@ -347,7 +348,8 @@ type Folder struct {
Name string `json:"name,omitempty"`
// Parent: The Folder’s parent's resource name.
// Updates to the folder's parent must be performed via [MoveFolders].
// Updates to the folder's parent must be performed via
// MoveFolder.
Parent string `json:"parent,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -663,7 +665,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
// }
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam).
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
// AuditConfigs: Specifies cloud audit logging configuration for this
// policy.
@@ -693,7 +695,7 @@ type Policy struct {
// policy is overwritten blindly.
Etag string `json:"etag,omitempty"`
// Version: Version of the `Policy`. The default version is 0.
// Version: Deprecated.
Version int64 `json:"version,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -789,19 +791,17 @@ type SearchFoldersRequest struct {
// `OR`
// can be used along with the suffix wildcard symbol `*`.
//
// Some example queries
// are:
// |Query|Description|
// |------|-----------|
// |displayName=Test*|Folde
// rs whose display name starts with
// Some example queries are:
//
// |Query | Description|
// |----- | -----------|
// |displayName=Test*|Folders whose display name starts with
// "Test".|
// |lifecycleState=ACTIVE|Folders whose lifecycleState is
// ACTIVE.|
// |parent=folders/123|Folders whose parent is
// "folders/123".|
// |parent=folders/123 AND lifecycleState=ACTIVE|Active folders
// whose
// |parent=folders/123 AND lifecycleState=ACTIVE|Active folders whose
// parent is "folders/123".|
Query string `json:"query,omitempty"`
@@ -1123,6 +1123,7 @@ type FoldersCreateCall struct {
// In order to succeed, the addition of this new Folder must not
// violate
// the Folder naming, height or fanout constraints.
//
// + The Folder's display_name must be distinct from all other Folder's
// that
// share its parent.
@@ -1246,7 +1247,7 @@ func (c *FoldersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
}
return ret, nil
// {
// "description": "Creates a Folder in the resource hierarchy.\nReturns an Operation which can be used to track the progress of the\nfolder creation workflow.\nUpon success the Operation.response field will be populated with the\ncreated Folder.\n\nIn order to succeed, the addition of this new Folder must not violate\nthe Folder naming, height or fanout constraints.\n+ The Folder's display_name must be distinct from all other Folder's that\nshare its parent.\n+ The addition of the Folder must not cause the active Folder hierarchy\nto exceed a height of 4. Note, the full active + deleted Folder hierarchy\nis allowed to reach a height of 8; this provides additional headroom when\nmoving folders that contain deleted folders.\n+ The addition of the Folder must not cause the total number of Folders\nunder its parent to exceed 100.\n\nIf the operation fails due to a folder constraint violation,\na PreconditionFailure explaining the violation will be returned.\nIf the failure occurs synchronously then the PreconditionFailure\nwill be returned via the Status.details field and if it occurs\nasynchronously then the PreconditionFailure will be returned\nvia the the Operation.error field.\n\nThe caller must have `resourcemanager.folders.create` permission on the\nidentified parent.",
// "description": "Creates a Folder in the resource hierarchy.\nReturns an Operation which can be used to track the progress of the\nfolder creation workflow.\nUpon success the Operation.response field will be populated with the\ncreated Folder.\n\nIn order to succeed, the addition of this new Folder must not violate\nthe Folder naming, height or fanout constraints.\n\n+ The Folder's display_name must be distinct from all other Folder's that\nshare its parent.\n+ The addition of the Folder must not cause the active Folder hierarchy\nto exceed a height of 4. Note, the full active + deleted Folder hierarchy\nis allowed to reach a height of 8; this provides additional headroom when\nmoving folders that contain deleted folders.\n+ The addition of the Folder must not cause the total number of Folders\nunder its parent to exceed 100.\n\nIf the operation fails due to a folder constraint violation,\na PreconditionFailure explaining the violation will be returned.\nIf the failure occurs synchronously then the PreconditionFailure\nwill be returned via the Status.details field and if it occurs\nasynchronously then the PreconditionFailure will be returned\nvia the the Operation.error field.\n\nThe caller must have `resourcemanager.folders.create` permission on the\nidentified parent.",
// "flatPath": "v2beta1/folders",
// "httpMethod": "POST",
// "id": "cloudresourcemanager.folders.create",
@@ -1284,13 +1285,13 @@ type FoldersDeleteCall struct {
// Delete: Requests deletion of a Folder. The Folder is moved into
// the
// [DELETE_REQUESTED] state immediately, and is deleted approximately 30
// days
// later. This method may only be called on an empty Folder in the
// [ACTIVE]
// state, where a Folder is empty if it doesn't contain any Folders
// or
// Projects in the [ACTIVE] state.
// DELETE_REQUESTED state
// immediately, and is deleted approximately 30 days later. This method
// may
// only be called on an empty Folder in the
// ACTIVE state, where a Folder is empty if
// it doesn't contain any Folders or Projects in the
// ACTIVE state.
// The caller must have `resourcemanager.folders.delete` permission on
// the
// identified folder.
@@ -1381,7 +1382,7 @@ func (c *FoldersDeleteCall) Do(opts ...googleapi.CallOption) (*Folder, error) {
}
return ret, nil
// {
// "description": "Requests deletion of a Folder. The Folder is moved into the\n[DELETE_REQUESTED] state immediately, and is deleted approximately 30 days\nlater. This method may only be called on an empty Folder in the [ACTIVE]\nstate, where a Folder is empty if it doesn't contain any Folders or\nProjects in the [ACTIVE] state.\nThe caller must have `resourcemanager.folders.delete` permission on the\nidentified folder.",
// "description": "Requests deletion of a Folder. The Folder is moved into the\nDELETE_REQUESTED state\nimmediately, and is deleted approximately 30 days later. This method may\nonly be called on an empty Folder in the\nACTIVE state, where a Folder is empty if\nit doesn't contain any Folders or Projects in the\nACTIVE state.\nThe caller must have `resourcemanager.folders.delete` permission on the\nidentified folder.",
// "flatPath": "v2beta1/folders/{foldersId}",
// "httpMethod": "DELETE",
// "id": "cloudresourcemanager.folders.delete",
@@ -1755,8 +1756,9 @@ func (c *FoldersListCall) Parent(parent string) *FoldersListCall {
}
// ShowDeleted sets the optional parameter "showDeleted": Controls
// whether Folders in the [DELETE_REQUESTED} state should
// be returned.
// whether Folders in the
// DELETE_REQUESTED
// state should be returned. Defaults to false. This field is optional.
func (c *FoldersListCall) ShowDeleted(showDeleted bool) *FoldersListCall {
c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted))
return c
@@ -1876,7 +1878,7 @@ func (c *FoldersListCall) Do(opts ...googleapi.CallOption) (*ListFoldersResponse
// "type": "string"
// },
// "showDeleted": {
// "description": "Controls whether Folders in the [DELETE_REQUESTED} state should\nbe returned.",
// "description": "Controls whether Folders in the\nDELETE_REQUESTED\nstate should be returned. Defaults to false. This field is optional.",
// "location": "query",
// "type": "boolean"
// }
@@ -1946,8 +1948,8 @@ type FoldersMoveCall struct {
// FolderOperation message as an aid to stateless clients.
// Folder moves will be rejected if they violate either the naming,
// height
// or fanout constraints described in the [CreateFolder]
// documentation.
// or fanout constraints described in the
// CreateFolder documentation.
// The caller must have `resourcemanager.folders.move` permission on
// the
// folder's current and proposed new parent.
@@ -2044,7 +2046,7 @@ func (c *FoldersMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
}
return ret, nil
// {
// "description": "Moves a Folder under a new resource parent.\nReturns an Operation which can be used to track the progress of the\nfolder move workflow.\nUpon success the Operation.response field will be populated with the\nmoved Folder.\nUpon failure, a FolderOperationError categorizing the failure cause will\nbe returned - if the failure occurs synchronously then the\nFolderOperationError will be returned via the Status.details field\nand if it occurs asynchronously then the FolderOperation will be returned\nvia the the Operation.error field.\nIn addition, the Operation.metadata field will be populated with a\nFolderOperation message as an aid to stateless clients.\nFolder moves will be rejected if they violate either the naming, height\nor fanout constraints described in the [CreateFolder] documentation.\nThe caller must have `resourcemanager.folders.move` permission on the\nfolder's current and proposed new parent.",
// "description": "Moves a Folder under a new resource parent.\nReturns an Operation which can be used to track the progress of the\nfolder move workflow.\nUpon success the Operation.response field will be populated with the\nmoved Folder.\nUpon failure, a FolderOperationError categorizing the failure cause will\nbe returned - if the failure occurs synchronously then the\nFolderOperationError will be returned via the Status.details field\nand if it occurs asynchronously then the FolderOperation will be returned\nvia the the Operation.error field.\nIn addition, the Operation.metadata field will be populated with a\nFolderOperation message as an aid to stateless clients.\nFolder moves will be rejected if they violate either the naming, height\nor fanout constraints described in the\nCreateFolder documentation.\nThe caller must have `resourcemanager.folders.move` permission on the\nfolder's current and proposed new parent.",
// "flatPath": "v2beta1/folders/{foldersId}:move",
// "httpMethod": "POST",
// "id": "cloudresourcemanager.folders.move",
@@ -2088,10 +2090,11 @@ type FoldersPatchCall struct {
// Patch: Updates a Folder, changing its display_name.
// Changes to the folder display_name will be rejected if they violate
// either
// the display_name formatting rules or naming constraints described
// in
// the [CreateFolder] documentation.
// + The Folder's display name must start and end with a letter or
// the display_name formatting rules or naming constraints described in
// the
// CreateFolder documentation.
//
// The Folder's display name must start and end with a letter or
// digit,
// may contain letters, digits, spaces, hyphens and underscores and can
// be
@@ -2207,7 +2210,7 @@ func (c *FoldersPatchCall) Do(opts ...googleapi.CallOption) (*Folder, error) {
}
return ret, nil
// {
// "description": "Updates a Folder, changing its display_name.\nChanges to the folder display_name will be rejected if they violate either\nthe display_name formatting rules or naming constraints described in\nthe [CreateFolder] documentation.\n+ The Folder's display name must start and end with a letter or digit,\nmay contain letters, digits, spaces, hyphens and underscores and can be\nno longer than 30 characters. This is captured by the regular expression:\n[\\p{L}\\p{N}]({\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?.\nThe caller must have `resourcemanager.folders.update` permission on the\nidentified folder.\n\nIf the update fails due to the unique name constraint then a\nPreconditionFailure explaining this violation will be returned\nin the Status.details field.",
// "description": "Updates a Folder, changing its display_name.\nChanges to the folder display_name will be rejected if they violate either\nthe display_name formatting rules or naming constraints described in the\nCreateFolder documentation.\n\nThe Folder's display name must start and end with a letter or digit,\nmay contain letters, digits, spaces, hyphens and underscores and can be\nno longer than 30 characters. This is captured by the regular expression:\n[\\p{L}\\p{N}]({\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?.\nThe caller must have `resourcemanager.folders.update` permission on the\nidentified folder.\n\nIf the update fails due to the unique name constraint then a\nPreconditionFailure explaining this violation will be returned\nin the Status.details field.",
// "flatPath": "v2beta1/folders/{foldersId}",
// "httpMethod": "PATCH",
// "id": "cloudresourcemanager.folders.patch",
@@ -2687,14 +2690,15 @@ type FoldersUndeleteCall struct {
// Undelete: Cancels the deletion request for a Folder. This method may
// only be
// called on a Folder in the [DELETE_REQUESTED] state.
// In order to succeed, the Folder's parent must be in the [ACTIVE]
// state.
// called on a Folder in the
// DELETE_REQUESTED state.
// In order to succeed, the Folder's parent must be in the
// ACTIVE state.
// In addition, reintroducing the folder into the tree must not
// violate
// folder naming, height and fanout constraints described in
// the
// [CreateFolder] documentation.
// CreateFolder documentation.
// The caller must have `resourcemanager.folders.undelete` permission on
// the
// identified folder.
@@ -2791,7 +2795,7 @@ func (c *FoldersUndeleteCall) Do(opts ...googleapi.CallOption) (*Folder, error)
}
return ret, nil
// {
// "description": "Cancels the deletion request for a Folder. This method may only be\ncalled on a Folder in the [DELETE_REQUESTED] state.\nIn order to succeed, the Folder's parent must be in the [ACTIVE] state.\nIn addition, reintroducing the folder into the tree must not violate\nfolder naming, height and fanout constraints described in the\n[CreateFolder] documentation.\nThe caller must have `resourcemanager.folders.undelete` permission on the\nidentified folder.",
// "description": "Cancels the deletion request for a Folder. This method may only be\ncalled on a Folder in the\nDELETE_REQUESTED state.\nIn order to succeed, the Folder's parent must be in the\nACTIVE state.\nIn addition, reintroducing the folder into the tree must not violate\nfolder naming, height and fanout constraints described in the\nCreateFolder documentation.\nThe caller must have `resourcemanager.folders.undelete` permission on the\nidentified folder.",
// "flatPath": "v2beta1/folders/{foldersId}:undelete",
// "httpMethod": "POST",
// "id": "cloudresourcemanager.folders.undelete",
+467
View File
@@ -0,0 +1,467 @@
{
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"CancelOperationRequest": {
"type": "object",
"properties": {},
"id": "CancelOperationRequest",
"description": "The request message for Operations.CancelOperation."
},
"StartEnvironmentMetadata": {
"description": "Message included in the metadata field of operations returned from\nStartEnvironment.",
"type": "object",
"properties": {
"state": {
"enumDescriptions": [
"The environment's start state is unknown.",
"The environment is in the process of being started, but no additional\ndetails are available.",
"Startup is waiting for the user's disk to be unarchived. This can happen\nwhen the user returns to Cloud Shell after not having used it for a\nwhile, and suggests that startup will take longer than normal.",
"Startup is complete and the user should be able to establish an SSH\nconnection to their environment."
],
"enum": [
"STATE_UNSPECIFIED",
"STARTING",
"UNARCHIVING_DISK",
"FINISHED"
],
"description": "Current state of the environment being started.",
"type": "string"
}
},
"id": "StartEnvironmentMetadata"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
"type": "object",
"properties": {
"response": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
"type": "object"
},
"name": {
"description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.",
"type": "string"
},
"error": {
"$ref": "Status",
"description": "The error result of the operation in case of failure or cancellation."
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
"type": "object"
},
"done": {
"description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable.",
"type": "boolean"
}
},
"id": "Operation"
},
"ListOperationsResponse": {
"description": "The response message for Operations.ListOperations.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
},
"operations": {
"description": "A list of operations that matches the specified filter in the request.",
"type": "array",
"items": {
"$ref": "Operation"
}
}
},
"id": "ListOperationsResponse"
},
"Environment": {
"properties": {
"publicKeys": {
"description": "Output only. Public keys associated with the environment. Clients can\nconnect to this environment via SSH only if they possess a private key\ncorresponding to at least one of these public keys. Keys can be added to or\nremoved from the environment using the CreatePublicKey and DeletePublicKey\nmethods.",
"type": "array",
"items": {
"$ref": "PublicKey"
}
},
"dockerImage": {
"type": "string",
"description": "Required. Full path to the Docker image used to run this environment, e.g.\n\"gcr.io/dev-con/cloud-devshell:latest\"."
},
"state": {
"description": "Output only. Current execution state of this environment.",
"type": "string",
"enumDescriptions": [
"The environment's states is unknown.",
"The environment is not running and can't be connected to. Starting the\nenvironment will transition it to the STARTING state.",
"The environment is being started but is not yet ready to accept\nconnections.",
"The environment is running and ready to accept connections. It will\nautomatically transition back to DISABLED after a period of inactivity or\nif another environment is started."
],
"enum": [
"STATE_UNSPECIFIED",
"DISABLED",
"STARTING",
"RUNNING"
]
},
"name": {
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the\nemail address of the user to whom this environment belongs, and\n`{environment_id}` is the identifier of this environment. For example,\n`users/someone@example.com/environments/default`.",
"type": "string"
},
"sshHost": {
"description": "Output only. Host to which clients can connect to initiate SSH sessions\nwith the environment.",
"type": "string"
},
"sshPort": {
"description": "Output only. Port to which clients can connect to initiate SSH sessions\nwith the environment.",
"format": "int32",
"type": "integer"
},
"id": {
"description": "Output only. The environment's identifier, which is always \"default\".",
"type": "string"
},
"sshUsername": {
"description": "Output only. Username that clients should use when initiating SSH sessions\nwith the environment.",
"type": "string"
}
},
"id": "Environment",
"description": "A Cloud Shell environment, which is defined as the combination of a Docker\nimage specifying what is installed on the environment and a home directory\ncontaining the user's data that will remain across sessions. Each user has a\nsingle environment with the ID \"default\".",
"type": "object"
},
"StartEnvironmentResponse": {
"description": "Message included in the response field of operations returned from\nStartEnvironment once the\noperation is complete.",
"type": "object",
"properties": {
"environment": {
"description": "Environment that was started.",
"$ref": "Environment"
}
},
"id": "StartEnvironmentResponse"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object",
"properties": {
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32",
"type": "integer"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
},
"details": {
"type": "array",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use."
}
},
"id": "Status"
},
"PublicKey": {
"description": "A public SSH key, corresponding to a private SSH key held by the client.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.\n`{owner_email}` is the email address of the user to whom the key belongs.\n`{environment_id}` is the identifier of the environment to which the key\ngrants access. `{key_id}` is the unique identifier of the key. For example,\n`users/someone@example.com/environments/default/publicKeys/myKey`."
},
"key": {
"description": "Required. Content of this key.",
"format": "byte",
"type": "string"
},
"format": {
"enum": [
"FORMAT_UNSPECIFIED",
"SSH_DSS",
"SSH_RSA",
"ECDSA_SHA2_NISTP256",
"ECDSA_SHA2_NISTP384",
"ECDSA_SHA2_NISTP521"
],
"description": "Required. Format of this key's content.",
"type": "string",
"enumDescriptions": [
"Unknown format. Do not use.",
"`ssh-dss` key format (see RFC4253).",
"`ssh-rsa` key format (see RFC4253).",
"`ecdsa-sha2-nistp256` key format (see RFC5656).",
"`ecdsa-sha2-nistp384` key format (see RFC5656).",
"`ecdsa-sha2-nistp521` key format (see RFC5656)."
]
}
},
"id": "PublicKey"
},
"Empty": {
"id": "Empty",
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"type": "object",
"properties": {}
}
},
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"protocol": "rest",
"canonicalName": "Cloud Shell",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},
"rootUrl": "https://cloudshell.googleapis.com/",
"ownerDomain": "google.com",
"name": "cloudshell",
"batchPath": "batch",
"fullyEncodeReservedExpansion": true,
"title": "Cloud Shell API",
"ownerName": "Google",
"resources": {
"operations": {
"methods": {
"cancel": {
"id": "cloudshell.operations.cancel",
"path": "v1/{+name}:cancel",
"request": {
"$ref": "CancelOperationRequest"
},
"description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.",
"httpMethod": "POST",
"parameterOrder": [
"name"
],
"response": {
"$ref": "Empty"
},
"parameters": {
"name": {
"description": "The name of the operation resource to be cancelled.",
"required": true,
"type": "string",
"pattern": "^operations/.+$",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1/operations/{operationsId}:cancel"
},
"delete": {
"path": "v1/{+name}",
"id": "cloudshell.operations.delete",
"description": "Deletes a long-running operation. This method indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"name"
],
"httpMethod": "DELETE",
"parameters": {
"name": {
"pattern": "^operations/.+$",
"location": "path",
"description": "The name of the operation resource to be deleted.",
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1/operations/{operationsId}"
},
"list": {
"description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
"response": {
"$ref": "ListOperationsResponse"
},
"parameterOrder": [
"name"
],
"httpMethod": "GET",
"parameters": {
"filter": {
"location": "query",
"description": "The standard list filter.",
"type": "string"
},
"name": {
"location": "path",
"description": "The name of the operation's parent resource.",
"required": true,
"type": "string",
"pattern": "^operations$"
},
"pageToken": {
"location": "query",
"description": "The standard list page token.",
"type": "string"
},
"pageSize": {
"location": "query",
"description": "The standard list page size.",
"format": "int32",
"type": "integer"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1/operations",
"path": "v1/{+name}",
"id": "cloudshell.operations.list"
},
"get": {
"description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
"response": {
"$ref": "Operation"
},
"parameterOrder": [
"name"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"name": {
"pattern": "^operations/.+$",
"location": "path",
"description": "The name of the operation resource.",
"required": true,
"type": "string"
}
},
"flatPath": "v1/operations/{operationsId}",
"path": "v1/{+name}",
"id": "cloudshell.operations.get"
}
}
}
},
"parameters": {
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"access_token": {
"type": "string",
"location": "query",
"description": "OAuth access token."
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"type": "boolean",
"default": "true"
},
"bearer_token": {
"type": "string",
"location": "query",
"description": "OAuth bearer token."
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"callback": {
"type": "string",
"location": "query",
"description": "JSONP"
},
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string"
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response.",
"default": "json"
}
},
"version": "v1",
"baseUrl": "https://cloudshell.googleapis.com/",
"servicePath": "",
"kind": "discovery#restDescription",
"description": "Allows users to start, configure, and connect to interactive shell sessions running in the cloud.\n",
"basePath": "",
"id": "cloudshell:v1",
"documentationLink": "https://cloud.google.com/shell/docs/",
"revision": "20180118"
}
File diff suppressed because it is too large. Load diff
+491
View File
@@ -0,0 +1,491 @@
{
"rootUrl": "https://cloudshell.googleapis.com/",
"ownerDomain": "google.com",
"name": "cloudshell",
"batchPath": "batch",
"fullyEncodeReservedExpansion": true,
"title": "Cloud Shell API",
"ownerName": "Google",
"resources": {
"users": {
"resources": {
"environments": {
"methods": {
"start": {
"response": {
"$ref": "Operation"
},
"parameterOrder": [
"name"
],
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"name": {
"description": "Name of the resource that should be started, for example\n`users/me/environments/default` or\n`users/someone@example.com/environments/default`.",
"required": true,
"type": "string",
"pattern": "^users/[^/]+/environments/[^/]+$",
"location": "path"
}
},
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}:start",
"path": "v1alpha1/{+name}:start",
"id": "cloudshell.users.environments.start",
"description": "Starts an existing environment, allowing clients to connect to it. The\nreturned operation will contain an instance of StartEnvironmentMetadata in\nits metadata field. Users can wait for the environment to start by polling\nthis operation via GetOperation. Once the environment has finished starting\nand is ready to accept connections, the operation will contain a\nStartEnvironmentResponse in its response field.",
"request": {
"$ref": "StartEnvironmentRequest"
}
},
"get": {
"httpMethod": "GET",
"parameterOrder": [
"name"
],
"response": {
"$ref": "Environment"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"name": {
"location": "path",
"description": "Name of the requested resource, for example `users/me/environments/default`\nor `users/someone@example.com/environments/default`.",
"required": true,
"type": "string",
"pattern": "^users/[^/]+/environments/[^/]+$"
}
},
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}",
"id": "cloudshell.users.environments.get",
"path": "v1alpha1/{+name}",
"description": "Gets an environment. Returns NOT_FOUND if the environment does not exist."
},
"patch": {
"request": {
"$ref": "Environment"
},
"description": "Updates an existing environment.",
"httpMethod": "PATCH",
"parameterOrder": [
"name"
],
"response": {
"$ref": "Environment"
},
"parameters": {
"updateMask": {
"location": "query",
"description": "Mask specifying which fields in the environment should be updated.",
"format": "google-fieldmask",
"type": "string"
},
"name": {
"pattern": "^users/[^/]+/environments/[^/]+$",
"location": "path",
"description": "Name of the resource to be updated, for example\n`users/me/environments/default` or\n`users/someone@example.com/environments/default`.",
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}",
"id": "cloudshell.users.environments.patch",
"path": "v1alpha1/{+name}"
}
},
"resources": {
"publicKeys": {
"methods": {
"create": {
"id": "cloudshell.users.environments.publicKeys.create",
"path": "v1alpha1/{+parent}/publicKeys",
"description": "Adds a public SSH key to an environment, allowing clients with the\ncorresponding private key to connect to that environment via SSH. If a key\nwith the same format and content already exists, this will return the\nexisting key.",
"request": {
"$ref": "CreatePublicKeyRequest"
},
"httpMethod": "POST",
"parameterOrder": [
"parent"
],
"response": {
"$ref": "PublicKey"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"parent": {
"pattern": "^users/[^/]+/environments/[^/]+$",
"location": "path",
"description": "Parent resource name, e.g. `users/me/environments/default`.",
"required": true,
"type": "string"
}
},
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}/publicKeys"
},
"delete": {
"flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}/publicKeys/{publicKeysId}",
"id": "cloudshell.users.environments.publicKeys.delete",
"path": "v1alpha1/{+name}",
"description": "Removes a public SSH key from an environment. Clients will no longer be\nable to connect to the environment using the corresponding private key.",
"httpMethod": "DELETE",
"parameterOrder": [
"name"
],
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"name": {
"description": "Name of the resource to be deleted, e.g.\n`users/me/environments/default/publicKeys/my-key`.",
"required": true,
"type": "string",
"pattern": "^users/[^/]+/environments/[^/]+/publicKeys/[^/]+$",
"location": "path"
}
}
}
}
}
}
}
}
}
},
"parameters": {
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
},
"pp": {
"description": "Pretty-print response.",
"type": "boolean",
"default": "true",
"location": "query"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"$.xgafv": {
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
]
},
"callback": {
"description": "JSONP",
"type": "string",
"location": "query"
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response.",
"default": "json"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
}
},
"version": "v1alpha1",
"baseUrl": "https://cloudshell.googleapis.com/",
"kind": "discovery#restDescription",
"description": "Allows users to start, configure, and connect to interactive shell sessions running in the cloud.\n",
"servicePath": "",
"basePath": "",
"revision": "20180118",
"documentationLink": "https://cloud.google.com/shell/docs/",
"id": "cloudshell:v1alpha1",
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"StartEnvironmentMetadata": {
"id": "StartEnvironmentMetadata",
"description": "Message included in the metadata field of operations returned from\nStartEnvironment.",
"type": "object",
"properties": {
"state": {
"enumDescriptions": [
"The environment's start state is unknown.",
"The environment is in the process of being started, but no additional\ndetails are available.",
"Startup is waiting for the user's disk to be unarchived. This can happen\nwhen the user returns to Cloud Shell after not having used it for a\nwhile, and suggests that startup will take longer than normal.",
"Startup is complete and the user should be able to establish an SSH\nconnection to their environment."
],
"enum": [
"STATE_UNSPECIFIED",
"STARTING",
"UNARCHIVING_DISK",
"FINISHED"
],
"description": "Current state of the environment being started.",
"type": "string"
}
}
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
"type": "object",
"properties": {
"name": {
"description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.",
"type": "string"
},
"error": {
"$ref": "Status",
"description": "The error result of the operation in case of failure or cancellation."
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
"type": "object"
},
"done": {
"description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable.",
"type": "boolean"
},
"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"
}
},
"id": "Operation"
},
"Environment": {
"id": "Environment",
"description": "A Cloud Shell environment, which is defined as the combination of a Docker\nimage specifying what is installed on the environment and a home directory\ncontaining the user's data that will remain across sessions. Each user has a\nsingle environment with the ID \"default\".",
"type": "object",
"properties": {
"publicKeys": {
"description": "Output only. Public keys associated with the environment. Clients can\nconnect to this environment via SSH only if they possess a private key\ncorresponding to at least one of these public keys. Keys can be added to or\nremoved from the environment using the CreatePublicKey and DeletePublicKey\nmethods.",
"type": "array",
"items": {
"$ref": "PublicKey"
}
},
"dockerImage": {
"description": "Required. Full path to the Docker image used to run this environment, e.g.\n\"gcr.io/dev-con/cloud-devshell:latest\".",
"type": "string"
},
"state": {
"enumDescriptions": [
"The environment's states is unknown.",
"The environment is not running and can't be connected to. Starting the\nenvironment will transition it to the STARTING state.",
"The environment is being started but is not yet ready to accept\nconnections.",
"The environment is running and ready to accept connections. It will\nautomatically transition back to DISABLED after a period of inactivity or\nif another environment is started."
],
"enum": [
"STATE_UNSPECIFIED",
"DISABLED",
"STARTING",
"RUNNING"
],
"description": "Output only. Current execution state of this environment.",
"type": "string"
},
"name": {
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the\nemail address of the user to whom this environment belongs, and\n`{environment_id}` is the identifier of this environment. For example,\n`users/someone@example.com/environments/default`.",
"type": "string"
},
"sshHost": {
"description": "Output only. Host to which clients can connect to initiate SSH sessions\nwith the environment.",
"type": "string"
},
"sshPort": {
"description": "Output only. Port to which clients can connect to initiate SSH sessions\nwith the environment.",
"format": "int32",
"type": "integer"
},
"id": {
"description": "Output only. The environment's identifier, which is always \"default\".",
"type": "string"
},
"sshUsername": {
"description": "Output only. Username that clients should use when initiating SSH sessions\nwith the environment.",
"type": "string"
}
}
},
"CreatePublicKeyRequest": {
"description": "Request message for CreatePublicKey.",
"type": "object",
"properties": {
"key": {
"$ref": "PublicKey",
"description": "Key that should be added to the environment."
}
},
"id": "CreatePublicKeyRequest"
},
"Status": {
"id": "Status",
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object",
"properties": {
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32",
"type": "integer"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
},
"details": {
"type": "array",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use."
}
}
},
"StartEnvironmentResponse": {
"id": "StartEnvironmentResponse",
"description": "Message included in the response field of operations returned from\nStartEnvironment once the\noperation is complete.",
"type": "object",
"properties": {
"environment": {
"description": "Environment that was started.",
"$ref": "Environment"
}
}
},
"StartEnvironmentRequest": {
"description": "Request message for StartEnvironment.",
"type": "object",
"properties": {},
"id": "StartEnvironmentRequest"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"type": "object",
"properties": {},
"id": "Empty"
},
"PublicKey": {
"description": "A public SSH key, corresponding to a private SSH key held by the client.",
"type": "object",
"properties": {
"name": {
"description": "Output only. Full name of this resource, in the format\n`users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.\n`{owner_email}` is the email address of the user to whom the key belongs.\n`{environment_id}` is the identifier of the environment to which the key\ngrants access. `{key_id}` is the unique identifier of the key. For example,\n`users/someone@example.com/environments/default/publicKeys/myKey`.",
"type": "string"
},
"key": {
"description": "Required. Content of this key.",
"format": "byte",
"type": "string"
},
"format": {
"description": "Required. Format of this key's content.",
"type": "string",
"enumDescriptions": [
"Unknown format. Do not use.",
"`ssh-dss` key format (see RFC4253).",
"`ssh-rsa` key format (see RFC4253).",
"`ecdsa-sha2-nistp256` key format (see RFC5656).",
"`ecdsa-sha2-nistp384` key format (see RFC5656).",
"`ecdsa-sha2-nistp521` key format (see RFC5656)."
],
"enum": [
"FORMAT_UNSPECIFIED",
"SSH_DSS",
"SSH_RSA",
"ECDSA_SHA2_NISTP256",
"ECDSA_SHA2_NISTP384",
"ECDSA_SHA2_NISTP521"
]
}
},
"id": "PublicKey"
}
},
"protocol": "rest",
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"canonicalName": "Cloud Shell",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
}
}
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
+130 -130
View File
@@ -1,13 +1,54 @@
{
"basePath": "",
"id": "cloudtrace:v1",
"documentationLink": "https://cloud.google.com/trace",
"revision": "20171124",
"id": "cloudtrace:v1",
"revision": "20180109",
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"TraceSpan": {
"Traces": {
"properties": {
"traces": {
"description": "List of traces.",
"type": "array",
"items": {
"$ref": "Trace"
}
}
},
"id": "Traces",
"description": "List of new or updated traces.",
"type": "object"
},
"TraceSpan": {
"description": "A span represents a single timed event within a trace. Spans can be nested\nand form a trace tree. Often, a trace contains a root span that describes the\nend-to-end latency of an operation and, optionally, one or more subspans for\nits suboperations. Spans do not need to be contiguous. There may be gaps\nbetween spans in a trace.",
"type": "object",
"properties": {
"kind": {
"description": "Distinguishes between spans generated in a particular context. For example,\ntwo spans with the same name may be distinguished using `RPC_CLIENT`\nand `RPC_SERVER` to identify queueing latency associated with the span.",
"type": "string",
"enumDescriptions": [
"Unspecified.",
"Indicates that the span covers server-side handling of an RPC or other\nremote network request.",
"Indicates that the span covers the client-side wrapper around an RPC or\nother remote request."
],
"enum": [
"SPAN_KIND_UNSPECIFIED",
"RPC_SERVER",
"RPC_CLIENT"
]
},
"labels": {
"description": "Collection of labels associated with the span. Label keys must be less than\n128 bytes. Label values must be less than 16 kilobytes (10MB for\n`/stacktrace` values).\n\nSome predefined label keys exist, or you may create your own. When creating\nyour own, we recommend the following formats:\n\n* `/category/product/key` for agents of well-known products (e.g.\n `/db/mongodb/read_size`).\n* `short_host/path/key` for domain-specific keys (e.g.\n `foo.com/myproduct/bar`)\n\nPredefined labels include:\n\n* `/agent`\n* `/component`\n* `/error/message`\n* `/error/name`\n* `/http/client_city`\n* `/http/client_country`\n* `/http/client_protocol`\n* `/http/client_region`\n* `/http/host`\n* `/http/method`\n* `/http/redirected_url`\n* `/http/request/size`\n* `/http/response/size`\n* `/http/status_code`\n* `/http/url`\n* `/http/user_agent`\n* `/pid`\n* `/stacktrace`\n* `/tid`",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"description": "Name of the span. Must be less than 128 bytes. The span name is sanitized\nand displayed in the Stackdriver Trace tool in the\n{% dynamic print site_values.console_name %}.\nThe name may be a method name or some other per-call site name.\nFor the same executable and the same call point, a best practice is\nto use a consistent name, which makes it easier to correlate\ncross-trace spans.",
"type": "string"
},
"spanId": {
"description": "Identifier for the span. Must be a 64-bit integer other than 0 and\nunique within a trace.",
"format": "uint64",
@@ -27,38 +68,13 @@
"description": "Start time of the span in nanoseconds from the UNIX epoch.",
"format": "google-datetime",
"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"
}
},
"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"
"id": "TraceSpan"
},
"ListTracesResponse": {
"description": "The response message for the `ListTraces` method.",
"type": "object",
"properties": {
"traces": {
"description": "List of trace records returned.",
@@ -72,17 +88,17 @@
"type": "string"
}
},
"id": "ListTracesResponse",
"description": "The response message for the `ListTraces` method.",
"type": "object"
"id": "ListTracesResponse"
},
"Empty": {
"properties": {},
"id": "Empty",
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"type": "object"
"type": "object",
"properties": {},
"id": "Empty"
},
"Trace": {
"description": "A trace describes how long it takes for an application to perform an\noperation. It consists of a set of spans, each of which represent a single\ntimed event within the operation.",
"type": "object",
"properties": {
"projectId": {
"description": "Project ID of the Cloud project where the trace data is stored.",
@@ -100,23 +116,7 @@
"type": "string"
}
},
"id": "Trace",
"description": "A trace describes how long it takes for an application to perform an\noperation. It consists of a set of spans, each of which represent a single\ntimed event within the operation.",
"type": "object"
},
"Traces": {
"properties": {
"traces": {
"description": "List of traces.",
"type": "array",
"items": {
"$ref": "Trace"
}
}
},
"id": "Traces",
"description": "List of new or updated traces.",
"type": "object"
"id": "Trace"
}
},
"protocol": "rest",
@@ -151,6 +151,10 @@
"projects": {
"methods": {
"patchTraces": {
"description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing trace data. If the\nID does not match, a new trace is created.",
"request": {
"$ref": "Traces"
},
"response": {
"$ref": "Empty"
},
@@ -172,30 +176,55 @@
},
"flatPath": "v1/projects/{projectId}/traces",
"path": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.patchTraces",
"description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing trace data. If the\nID does not match, a new trace is created.",
"request": {
"$ref": "Traces"
}
"id": "cloudtrace.projects.patchTraces"
}
},
"resources": {
"traces": {
"methods": {
"list": {
"httpMethod": "GET",
"parameterOrder": [
"projectId"
],
"path": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.traces.list",
"description": "Returns of a list of traces that match the specified filter conditions.",
"response": {
"$ref": "ListTracesResponse"
},
"parameterOrder": [
"projectId"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"parameters": {
"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.",
"orderBy": {
"description": "Field used to sort the returned traces. Optional.\nCan be one of the following:\n\n* `trace_id`\n* `name` (`name` field of root span in the trace)\n* `duration` (difference between `end_time` and `start_time` fields of\n the root span)\n* `start` (`start_time` field of the root span)\n\nDescending order can be specified by appending `desc` to the sort field\n(for example, `name desc`).\n\nOnly one sort field is permitted.",
"type": "string",
"location": "query"
},
"projectId": {
"location": "path",
"description": "ID of the Cloud project where the trace data is stored.",
"required": true,
"type": "string"
},
"filter": {
"description": "An optional filter against labels for the request.\n\nBy default, searches use prefix matching. To specify exact match, prepend\na plus symbol (`+`) to the search term.\nMultiple terms are ANDed. Syntax:\n\n* `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root\n span starts with `NAME_PREFIX`.\n* `+root:NAME` or `+NAME`: Return traces where any root span's name is\n exactly `NAME`.\n* `span:NAME_PREFIX`: Return traces where any span starts with\n `NAME_PREFIX`.\n* `+span:NAME`: Return traces where any span's name is exactly\n `NAME`.\n* `latency:DURATION`: Return traces whose overall latency is\n greater or equal to than `DURATION`. Accepted units are nanoseconds\n (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For\n example, `latency:24ms` returns traces whose overall latency\n is greater than or equal to 24 milliseconds.\n* `label:LABEL_KEY`: Return all traces containing the specified\n label key (exact match, case-sensitive) regardless of the key:value\n pair's value (including empty values).\n* `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified\n label key (exact match, case-sensitive) whose value starts with\n `VALUE_PREFIX`. Both a key and a value must be specified.\n* `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair\n exactly matching the specified text. Both a key and a value must be\n specified.\n* `method:VALUE`: Equivalent to `/http/method:VALUE`.\n* `url:VALUE`: Equivalent to `/http/url:VALUE`.",
"type": "string",
"location": "query"
},
"endTime": {
"location": "query",
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.",
"format": "google-datetime",
"type": "string"
},
"pageToken": {
"location": "query",
"description": "Token identifying the page of results to return. If provided, use the\nvalue of the `next_page_token` field from a previous request. Optional.",
"type": "string"
},
"startTime": {
"description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.",
"format": "google-datetime",
@@ -203,10 +232,10 @@
"location": "query"
},
"pageSize": {
"location": "query",
"description": "Maximum number of traces to return. If not specified or \u003c= 0, the\nimplementation selects a reasonable value. The implementation may\nreturn fewer traces than the requested page size. Optional.",
"format": "int32",
"type": "integer"
"type": "integer",
"location": "query"
},
"view": {
"location": "query",
@@ -218,40 +247,14 @@
],
"description": "Type of data returned for traces in the list. Optional. Default is\n`MINIMAL`.",
"type": "string"
},
"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"
},
"projectId": {
"location": "path",
"description": "ID of the Cloud project where the trace data is stored.",
"required": true,
"type": "string"
},
"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": {
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.",
"format": "google-datetime",
"type": "string",
"location": "query"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"flatPath": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.traces.list",
"path": "v1/projects/{projectId}/traces",
"description": "Returns of a list of traces that match the specified filter conditions."
"flatPath": "v1/projects/{projectId}/traces"
},
"get": {
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
"path": "v1/projects/{projectId}/traces/{traceId}",
"id": "cloudtrace.projects.traces.get",
"description": "Gets a single trace by its ID.",
"response": {
"$ref": "Trace"
@@ -267,10 +270,10 @@
],
"parameters": {
"traceId": {
"location": "path",
"description": "ID of the trace to return.",
"required": true,
"type": "string",
"location": "path"
"type": "string"
},
"projectId": {
"description": "ID of the Cloud project where the trace data is stored.",
@@ -278,10 +281,7 @@
"type": "string",
"location": "path"
}
},
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
"path": "v1/projects/{projectId}/traces/{traceId}",
"id": "cloudtrace.projects.traces.get"
}
}
}
}
@@ -289,27 +289,6 @@
}
},
"parameters": {
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
},
"pp": {
"description": "Pretty-print response.",
"type": "boolean",
"default": "true",
"location": "query"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
@@ -331,13 +310,13 @@
"type": "boolean",
"default": "true"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
},
@@ -374,11 +353,32 @@
"location": "query",
"description": "Data format for response.",
"default": "json"
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
"pp": {
"description": "Pretty-print response.",
"type": "boolean",
"default": "true",
"location": "query"
}
},
"version": "v1",
"baseUrl": "https://cloudtrace.googleapis.com/",
"kind": "discovery#restDescription",
"servicePath": "",
"description": "Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API.\n",
"servicePath": ""
"kind": "discovery#restDescription"
}
File diff suppressed because it is too large. Load diff
+16 -16
View File
@@ -1085,9 +1085,9 @@ func (c *ProjectsTracesBatchWriteCall) Do(opts ...googleapi.CallOption) (*Empty,
}
// method id "cloudtrace.projects.traces.spans.create":
// method id "cloudtrace.projects.traces.spans.createSpan":
type ProjectsTracesSpansCreateCall struct {
type ProjectsTracesSpansCreateSpanCall struct {
s *Service
nameid string
span *Span
@@ -1096,9 +1096,9 @@ type ProjectsTracesSpansCreateCall struct {
header_ http.Header
}
// Create: Creates a new span.
func (r *ProjectsTracesSpansService) Create(nameid string, span *Span) *ProjectsTracesSpansCreateCall {
c := &ProjectsTracesSpansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
// CreateSpan: Creates a new span.
func (r *ProjectsTracesSpansService) CreateSpan(nameid string, span *Span) *ProjectsTracesSpansCreateSpanCall {
c := &ProjectsTracesSpansCreateSpanCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.nameid = nameid
c.span = span
return c
@@ -1107,7 +1107,7 @@ func (r *ProjectsTracesSpansService) Create(nameid string, span *Span) *Projects
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ProjectsTracesSpansCreateCall) Fields(s ...googleapi.Field) *ProjectsTracesSpansCreateCall {
func (c *ProjectsTracesSpansCreateSpanCall) Fields(s ...googleapi.Field) *ProjectsTracesSpansCreateSpanCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -1115,21 +1115,21 @@ func (c *ProjectsTracesSpansCreateCall) Fields(s ...googleapi.Field) *ProjectsTr
// 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 *ProjectsTracesSpansCreateCall) Context(ctx context.Context) *ProjectsTracesSpansCreateCall {
func (c *ProjectsTracesSpansCreateSpanCall) Context(ctx context.Context) *ProjectsTracesSpansCreateSpanCall {
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 *ProjectsTracesSpansCreateCall) Header() http.Header {
func (c *ProjectsTracesSpansCreateSpanCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsTracesSpansCreateCall) doRequest(alt string) (*http.Response, error) {
func (c *ProjectsTracesSpansCreateSpanCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
@@ -1142,7 +1142,7 @@ func (c *ProjectsTracesSpansCreateCall) doRequest(alt string) (*http.Response, e
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/spans")
urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -1152,14 +1152,14 @@ func (c *ProjectsTracesSpansCreateCall) doRequest(alt string) (*http.Response, e
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "cloudtrace.projects.traces.spans.create" call.
// Do executes the "cloudtrace.projects.traces.spans.createSpan" call.
// Exactly one of *Span or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Span.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 *ProjectsTracesSpansCreateCall) Do(opts ...googleapi.CallOption) (*Span, error) {
func (c *ProjectsTracesSpansCreateSpanCall) Do(opts ...googleapi.CallOption) (*Span, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -1191,9 +1191,9 @@ func (c *ProjectsTracesSpansCreateCall) Do(opts ...googleapi.CallOption) (*Span,
return ret, nil
// {
// "description": "Creates a new span.",
// "flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans",
// "flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans/{spansId}",
// "httpMethod": "POST",
// "id": "cloudtrace.projects.traces.spans.create",
// "id": "cloudtrace.projects.traces.spans.createSpan",
// "parameterOrder": [
// "name"
// ],
@@ -1201,12 +1201,12 @@ func (c *ProjectsTracesSpansCreateCall) Do(opts ...googleapi.CallOption) (*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;\nit is a 32-character hexadecimal encoding of a 16-byte array.\n\n[SPAN_ID] is a unique identifier for a span within a trace; it\nis a 16-character hexadecimal encoding of an 8-byte array.",
// "location": "path",
// "pattern": "^projects/[^/]+/traces/[^/]+$",
// "pattern": "^projects/[^/]+/traces/[^/]+/spans/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2/{+name}/spans",
// "path": "v2/{+name}",
// "request": {
// "$ref": "Span"
// },
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
+57 -41
View File
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/HqQuvNGps38O7DKua7SJgoho9d8\"",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/yYKGGymxCOlXess_DWUNkE4vOp4\"",
"discoveryVersion": "v1",
"id": "compute:v1",
"name": "compute",
"version": "v1",
"revision": "20171107",
"revision": "20171228",
"title": "Compute Engine API",
"description": "Creates and runs virtual machines on Google Cloud Platform.",
"ownerDomain": "google.com",
@@ -103,14 +103,14 @@
},
"acceleratorType": {
"type": "string",
"description": "Full or partial URL of the accelerator type resource to expose to this instance."
"description": "Full or partial URL of the accelerator type resource to attach to this instance. If you are creating an instance template, specify only the accelerator name."
}
}
},
"AcceleratorType": {
"id": "AcceleratorType",
"type": "object",
"description": "An Accelerator Type resource.",
"description": "An Accelerator Type resource. (== resource_for beta.acceleratorTypes ==) (== resource_for v1.acceleratorTypes ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -506,7 +506,7 @@
"Address": {
"id": "Address",
"type": "object",
"description": "A reserved address resource.",
"description": "A reserved address resource. (== resource_for beta.addresses ==) (== resource_for v1.addresses ==) (== resource_for beta.globalAddresses ==) (== resource_for v1.globalAddresses ==)",
"properties": {
"address": {
"type": "string",
@@ -590,7 +590,7 @@
},
"subnetwork": {
"type": "string",
"description": "For external addresses, this field should not be used.\n\nThe URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range."
"description": "The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes."
},
"users": {
"type": "array",
@@ -1036,6 +1036,13 @@
"type": "string",
"description": "Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example:\n\nhttps://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard \n\nOther values include pd-ssd and local-ssd. If you define this field, you can provide either the full or partial URL. For example, the following are valid values: \n- https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType \n- projects/project/zones/zone/diskTypes/diskType \n- zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is the name of the disk type, not URL."
},
"labels": {
"type": "object",
"description": "Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.",
"additionalProperties": {
"type": "string"
}
},
"sourceImage": {
"type": "string",
"description": "The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD.\n\nTo create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-8 to use the latest Debian 8 image:\n\nprojects/debian-cloud/global/images/family/debian-8 \n\nAlternatively, use a specific version of a public operating system image:\n\nprojects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD \n\nTo create a disk with a custom image that you created, specify the image name in the following format:\n\nglobal/images/my-custom-image \n\nYou can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name:\n\nglobal/images/family/my-image-family \n\nIf the source image is deleted later, this field will not be set."
@@ -1049,7 +1056,7 @@
"Autoscaler": {
"id": "Autoscaler",
"type": "object",
"description": "Represents an Autoscaler resource. Autoscalers allow you to automatically scale virtual machine instances in managed instance groups according to an autoscaling policy that you define. For more information, read Autoscaling Groups of Instances.",
"description": "Represents an Autoscaler resource. Autoscalers allow you to automatically scale virtual machine instances in managed instance groups according to an autoscaling policy that you define. For more information, read Autoscaling Groups of Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==)",
"properties": {
"autoscalingPolicy": {
"$ref": "AutoscalingPolicy",
@@ -1797,7 +1804,7 @@
"BackendService": {
"id": "BackendService",
"type": "object",
"description": "A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.",
"description": "A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity. (== resource_for v1.backendService ==) (== resource_for beta.backendService ==)",
"properties": {
"affinityCookieTtlSec": {
"type": "integer",
@@ -2350,7 +2357,7 @@
"Commitment": {
"id": "Commitment",
"type": "object",
"description": "Represents a Commitment resource. Creating a Commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts.\n\nCommitted use discounts are subject to Google Cloud Platform's Service Specific Terms. By purchasing a committed use discount, you agree to these terms. Committed use discounts will not renew, so you must purchase a new commitment to continue receiving discounts.",
"description": "Represents a Commitment resource. Creating a Commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts.\n\nCommitted use discounts are subject to Google Cloud Platform's Service Specific Terms. By purchasing a committed use discount, you agree to these terms. Committed use discounts will not renew, so you must purchase a new commitment to continue receiving discounts. (== resource_for beta.commitments ==) (== resource_for v1.commitments ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -2833,7 +2840,7 @@
"Disk": {
"id": "Disk",
"type": "object",
"description": "A Disk resource.",
"description": "A Disk resource. (== resource_for beta.disks ==) (== resource_for v1.disks ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -3205,7 +3212,7 @@
"DiskType": {
"id": "DiskType",
"type": "object",
"description": "A DiskType resource.",
"description": "A DiskType resource. (== resource_for beta.diskTypes ==) (== resource_for v1.diskTypes ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -3934,7 +3941,7 @@
"ForwardingRule": {
"id": "ForwardingRule",
"type": "object",
"description": "A ForwardingRule resource. A ForwardingRule resource specifies which pool of target virtual machines to forward a packet to if it matches the given [IPAddress, IPProtocol, ports] tuple.",
"description": "A ForwardingRule resource. A ForwardingRule resource specifies which pool of target virtual machines to forward a packet to if it matches the given [IPAddress, IPProtocol, ports] tuple. (== resource_for beta.forwardingRules ==) (== resource_for v1.forwardingRules ==) (== resource_for beta.globalForwardingRules ==) (== resource_for v1.globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==) (== resource_for v1.regionForwardingRules ==)",
"properties": {
"IPAddress": {
"type": "string",
@@ -4391,13 +4398,15 @@
"properties": {
"type": {
"type": "string",
"description": "The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is supported. For newer Windows images, the server might also populate this property with the value WINDOWS to indicate that this is a Windows image.",
"description": "The ID of a supported feature. Read Enabling guest operating system features to see a list of available options.",
"enum": [
"FEATURE_TYPE_UNSPECIFIED",
"MULTI_IP_SUBNET",
"VIRTIO_SCSI_MULTIQUEUE",
"WINDOWS"
],
"enumDescriptions": [
"",
"",
"",
""
@@ -5095,7 +5104,7 @@
"Image": {
"id": "Image",
"type": "object",
"description": "An Image resource.",
"description": "An Image resource. (== resource_for beta.images ==) (== resource_for v1.images ==)",
"properties": {
"archiveSizeBytes": {
"type": "string",
@@ -5125,7 +5134,7 @@
},
"guestOsFeatures": {
"type": "array",
"description": "A list of features to enable on the guest OS. Applicable for bootable images only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE, which allows each virtual CPU to have its own queue. For Windows images, you can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.1621 or higher. Linux images with kernel versions 3.17 and higher will support VIRTIO_SCSI_MULTIQUEUE.\n\nFor newer Windows images, the server might also populate this property with the value WINDOWS to indicate that this is a Windows image.",
"description": "A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.",
"items": {
"$ref": "GuestOsFeature"
}
@@ -5373,7 +5382,7 @@
"Instance": {
"id": "Instance",
"type": "object",
"description": "An Instance resource.",
"description": "An Instance resource. (== resource_for beta.instances ==) (== resource_for v1.instances ==)",
"properties": {
"canIpForward": {
"type": "boolean",
@@ -5637,6 +5646,7 @@
"InstanceGroup": {
"id": "InstanceGroup",
"type": "object",
"description": "InstanceGroups (== resource_for beta.instanceGroups ==) (== resource_for v1.instanceGroups ==) (== resource_for beta.regionInstanceGroups ==) (== resource_for v1.regionInstanceGroups ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -5932,7 +5942,7 @@
"InstanceGroupManager": {
"id": "InstanceGroupManager",
"type": "object",
"description": "An Instance Group Manager resource.",
"description": "An Instance Group Manager resource. (== resource_for beta.instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (== resource_for beta.regionInstanceGroupManagers ==) (== resource_for v1.regionInstanceGroupManagers ==)",
"properties": {
"baseInstanceName": {
"type": "string",
@@ -6954,7 +6964,7 @@
"InstanceTemplate": {
"id": "InstanceTemplate",
"type": "object",
"description": "An Instance Template resource.",
"description": "An Instance Template resource. (== resource_for beta.instanceTemplates ==) (== resource_for v1.instanceTemplates ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -7324,7 +7334,7 @@
"Interconnect": {
"id": "Interconnect",
"type": "object",
"description": "Represents an Interconnects resource. The Interconnects resource is a dedicated connection between Google's network and your on-premises network. For more information, see the Dedicated overview page.",
"description": "Represents an Interconnects resource. The Interconnects resource is a dedicated connection between Google's network and your on-premises network. For more information, see the Dedicated overview page. (== resource_for v1.interconnects ==) (== resource_for beta.interconnects ==)",
"properties": {
"adminEnabled": {
"type": "boolean",
@@ -7456,7 +7466,7 @@
"InterconnectAttachment": {
"id": "InterconnectAttachment",
"type": "object",
"description": "Represents an InterconnectAttachment (VLAN attachment) resource. For more information, see Creating VLAN Attachments.",
"description": "Represents an InterconnectAttachment (VLAN attachment) resource. For more information, see Creating VLAN Attachments. (== resource_for beta.interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==)",
"properties": {
"cloudRouterIpAddress": {
"type": "string",
@@ -8333,7 +8343,7 @@
"MachineType": {
"id": "MachineType",
"type": "object",
"description": "A Machine Type resource.",
"description": "A Machine Type resource. (== resource_for v1.machineTypes ==) (== resource_for beta.machineTypes ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -8899,7 +8909,7 @@
"Network": {
"id": "Network",
"type": "object",
"description": "Represents a Network resource. Read Networks and Firewalls for more information.",
"description": "Represents a Network resource. Read Networks and Firewalls for more information. (== resource_for v1.networks ==) (== resource_for beta.networks ==)",
"properties": {
"IPv4Range": {
"type": "string",
@@ -9185,7 +9195,12 @@
},
"name": {
"type": "string",
"description": "Name of the peering, which should conform to RFC1035."
"description": "Name of the peering, which should conform to RFC1035.",
"annotations": {
"required": [
"compute.networks.addPeering"
]
}
},
"peerNetwork": {
"type": "string",
@@ -9206,7 +9221,7 @@
"Operation": {
"id": "Operation",
"type": "object",
"description": "An Operation resource, used to manage asynchronous API requests.",
"description": "An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)",
"properties": {
"clientOperationId": {
"type": "string",
@@ -9785,7 +9800,7 @@
"Project": {
"id": "Project",
"type": "object",
"description": "A Project resource. Projects can only be created in the Google Cloud Platform Console. Unless marked otherwise, values can only be modified in the console.",
"description": "A Project resource. For an overview of projects, see Cloud Platform Resource Hierarchy. (== resource_for v1.projects ==) (== resource_for beta.projects ==)",
"properties": {
"commonInstanceMetadata": {
"$ref": "Metadata",
@@ -10025,7 +10040,7 @@
"Region": {
"id": "Region",
"type": "object",
"description": "Region resource.",
"description": "Region resource. (== resource_for beta.regions ==) (== resource_for v1.regions ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -10804,7 +10819,7 @@
"Route": {
"id": "Route",
"type": "object",
"description": "Represents a Route resource. A route specifies how certain packets should be handled by the network. Routes are associated with instances by tags and the set of routes for a particular instance is called its routing table.\n\nFor each packet leaving an instance, the system searches that instance's routing table for a single best matching route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching routes. The packet is then forwarded as specified by the nextHop field of the winning route - either to another instance destination, an instance gateway, or a Google Compute Engine-operated gateway.\n\nPackets that do not match any route in the sending instance's routing table are dropped.",
"description": "Represents a Route resource. A route specifies how certain packets should be handled by the network. Routes are associated with instances by tags and the set of routes for a particular instance is called its routing table.\n\nFor each packet leaving an instance, the system searches that instance's routing table for a single best matching route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching routes. The packet is then forwarded as specified by the nextHop field of the winning route - either to another instance destination, an instance gateway, or a Google Compute Engine-operated gateway.\n\nPackets that do not match any route in the sending instance's routing table are dropped. (== resource_for beta.routes ==) (== resource_for v1.routes ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -11783,7 +11798,7 @@
"Snapshot": {
"id": "Snapshot",
"type": "object",
"description": "A persistent disk snapshot resource.",
"description": "A persistent disk snapshot resource. (== resource_for beta.snapshots ==) (== resource_for v1.snapshots ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -12004,7 +12019,7 @@
"SslCertificate": {
"id": "SslCertificate",
"type": "object",
"description": "An SslCertificate resource. This resource provides a mechanism to upload an SSL key and certificate to the load balancer to serve secure connections from the user.",
"description": "An SslCertificate resource. This resource provides a mechanism to upload an SSL key and certificate to the load balancer to serve secure connections from the user. (== resource_for beta.sslCertificates ==) (== resource_for v1.sslCertificates ==)",
"properties": {
"certificate": {
"type": "string",
@@ -12158,7 +12173,7 @@
"Subnetwork": {
"id": "Subnetwork",
"type": "object",
"description": "A Subnetwork resource.",
"description": "A Subnetwork resource. (== resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -12625,7 +12640,7 @@
"TargetHttpProxy": {
"id": "TargetHttpProxy",
"type": "object",
"description": "A TargetHttpProxy resource. This resource defines an HTTP proxy.",
"description": "A TargetHttpProxy resource. This resource defines an HTTP proxy. (== resource_for beta.targetHttpProxies ==) (== resource_for v1.targetHttpProxies ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -12788,7 +12803,7 @@
"TargetHttpsProxy": {
"id": "TargetHttpsProxy",
"type": "object",
"description": "A TargetHttpsProxy resource. This resource defines an HTTPS proxy.",
"description": "A TargetHttpsProxy resource. This resource defines an HTTPS proxy. (== resource_for beta.targetHttpsProxies ==) (== resource_for v1.targetHttpsProxies ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -12945,7 +12960,7 @@
"TargetInstance": {
"id": "TargetInstance",
"type": "object",
"description": "A TargetInstance resource. This resource defines an endpoint instance that terminates traffic of certain protocols.",
"description": "A TargetInstance resource. This resource defines an endpoint instance that terminates traffic of certain protocols. (== resource_for beta.targetInstances ==) (== resource_for v1.targetInstances ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -13315,7 +13330,7 @@
"TargetPool": {
"id": "TargetPool",
"type": "object",
"description": "A TargetPool resource. This resource defines a pool of instances, an associated HttpHealthCheck resource, and the fallback target pool.",
"description": "A TargetPool resource. This resource defines a pool of instances, an associated HttpHealthCheck resource, and the fallback target pool. (== resource_for beta.targetPools ==) (== resource_for v1.targetPools ==)",
"properties": {
"backupPool": {
"type": "string",
@@ -13831,7 +13846,7 @@
"TargetSslProxy": {
"id": "TargetSslProxy",
"type": "object",
"description": "A TargetSslProxy resource. This resource defines an SSL proxy.",
"description": "A TargetSslProxy resource. This resource defines an SSL proxy. (== resource_for beta.targetSslProxies ==) (== resource_for v1.targetSslProxies ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -14028,7 +14043,7 @@
"TargetTcpProxy": {
"id": "TargetTcpProxy",
"type": "object",
"description": "A TargetTcpProxy resource. This resource defines a TCP proxy.",
"description": "A TargetTcpProxy resource. This resource defines a TCP proxy. (== resource_for beta.targetTcpProxies ==) (== resource_for v1.targetTcpProxies ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -14190,7 +14205,7 @@
"TargetVpnGateway": {
"id": "TargetVpnGateway",
"type": "object",
"description": "Represents a Target VPN gateway resource.",
"description": "Represents a Target VPN gateway resource. (== resource_for beta.targetVpnGateways ==) (== resource_for v1.targetVpnGateways ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -14877,6 +14892,7 @@
"VpnTunnel": {
"id": "VpnTunnel",
"type": "object",
"description": "VPN tunnel resource. (== resource_for beta.vpnTunnels ==) (== resource_for v1.vpnTunnels ==)",
"properties": {
"creationTimestamp": {
"type": "string",
@@ -15451,7 +15467,7 @@
"Zone": {
"id": "Zone",
"type": "object",
"description": "A Zone resource.",
"description": "A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones ==)",
"properties": {
"availableCpuPlatforms": {
"type": "array",
@@ -17379,7 +17395,7 @@
"id": "compute.disks.resize",
"path": "{project}/zones/{zone}/disks/{disk}/resize",
"httpMethod": "POST",
"description": "Resizes the specified persistent disk.",
"description": "Resizes the specified persistent disk. You can only increase the size of the disk.",
"parameters": {
"disk": {
"type": "string",
@@ -20548,7 +20564,7 @@
"id": "compute.instanceTemplates.delete",
"path": "{project}/global/instanceTemplates/{instanceTemplate}",
"httpMethod": "DELETE",
"description": "Deletes the specified instance template. If you delete an instance template that is being referenced from another instance group, the instance group will not be able to create or recreate virtual machine instances. Deleting an instance template is permanent and cannot be undone.",
"description": "Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It's not possible to delete templates which are in use by an instance group.",
"parameters": {
"instanceTemplate": {
"type": "string",
@@ -22822,7 +22838,7 @@
"id": "compute.networks.patch",
"path": "{project}/global/networks/{network}",
"httpMethod": "PATCH",
"description": "Patches the specified network with the data included in the request.",
"description": "Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode.",
"parameters": {
"network": {
"type": "string",
+111 -64
View File
@@ -695,7 +695,8 @@ type AcceleratorConfig struct {
AcceleratorCount int64 `json:"acceleratorCount,omitempty"`
// AcceleratorType: Full or partial URL of the accelerator type resource
// to expose to this instance.
// to attach to this instance. If you are creating an instance template,
// specify only the accelerator name.
AcceleratorType string `json:"acceleratorType,omitempty"`
// ForceSendFields is a list of field names (e.g. "AcceleratorCount") to
@@ -722,7 +723,8 @@ func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AcceleratorType: An Accelerator Type resource.
// AcceleratorType: An Accelerator Type resource. (== resource_for
// beta.acceleratorTypes ==) (== resource_for v1.acceleratorTypes ==)
type AcceleratorType struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -1283,7 +1285,9 @@ func (s *AccessConfig) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Address: A reserved address resource.
// Address: A reserved address resource. (== resource_for beta.addresses
// ==) (== resource_for v1.addresses ==) (== resource_for
// beta.globalAddresses ==) (== resource_for v1.globalAddresses ==)
type Address struct {
// Address: The static IP address represented by this resource.
Address string `json:"address,omitempty"`
@@ -1350,11 +1354,10 @@ type Address struct {
// "RESERVED"
Status string `json:"status,omitempty"`
// Subnetwork: For external addresses, this field should not be
// used.
//
// The URL of the subnetwork in which to reserve the address. If an IP
// address is specified, it must be within the subnetwork's IP range.
// Subnetwork: The URL of the subnetwork in which to reserve the
// address. If an IP address is specified, it must be within the
// subnetwork's IP range. This field can only be used with INTERNAL type
// with GCE_ENDPOINT/DNS_RESOLVER purposes.
Subnetwork string `json:"subnetwork,omitempty"`
// Users: [Output Only] The URLs of the resources that are using this
@@ -2035,6 +2038,11 @@ type AttachedDiskInitializeParams struct {
// is the name of the disk type, not URL.
DiskType string `json:"diskType,omitempty"`
// Labels: Labels to apply to this disk. These can be later modified by
// the disks.setLabels method. This field is only applicable for
// persistent disks.
Labels map[string]string `json:"labels,omitempty"`
// SourceImage: The source image to create this disk. When creating a
// new instance, one of initializeParams.sourceImage or disks.source is
// required except for local SSD.
@@ -2101,7 +2109,10 @@ func (s *AttachedDiskInitializeParams) MarshalJSON() ([]byte, error) {
// Autoscaler: Represents an Autoscaler resource. Autoscalers allow you
// to automatically scale virtual machine instances in managed instance
// groups according to an autoscaling policy that you define. For more
// information, read Autoscaling Groups of Instances.
// information, read Autoscaling Groups of Instances. (== resource_for
// beta.autoscalers ==) (== resource_for v1.autoscalers ==) (==
// resource_for beta.regionAutoscalers ==) (== resource_for
// v1.regionAutoscalers ==)
type Autoscaler struct {
// AutoscalingPolicy: The configuration parameters for the autoscaling
// algorithm. You can define one or more of the policies for an
@@ -3263,7 +3274,9 @@ func (s *BackendBucketListWarningData) MarshalJSON() ([]byte, error) {
}
// BackendService: A BackendService resource. This resource defines a
// group of backend virtual machines and their serving capacity.
// group of backend virtual machines and their serving capacity. (==
// resource_for v1.backendService ==) (== resource_for
// beta.backendService ==)
type BackendService struct {
// AffinityCookieTtlSec: Lifetime of cookies in seconds if
// session_affinity is GENERATED_COOKIE. If set to 0, the cookie is
@@ -4068,7 +4081,8 @@ func (s *CacheKeyPolicy) MarshalJSON() ([]byte, error) {
// Committed use discounts are subject to Google Cloud Platform's
// Service Specific Terms. By purchasing a committed use discount, you
// agree to these terms. Committed use discounts will not renew, so you
// must purchase a new commitment to continue receiving discounts.
// must purchase a new commitment to continue receiving discounts. (==
// resource_for beta.commitments ==) (== resource_for v1.commitments ==)
type Commitment struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -4770,7 +4784,8 @@ func (s *DeprecationStatus) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Disk: A Disk resource.
// Disk: A Disk resource. (== resource_for beta.disks ==) (==
// resource_for v1.disks ==)
type Disk struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -5321,7 +5336,8 @@ func (s *DiskMoveRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DiskType: A DiskType resource.
// DiskType: A DiskType resource. (== resource_for beta.diskTypes ==)
// (== resource_for v1.diskTypes ==)
type DiskType struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -6381,7 +6397,12 @@ func (s *FirewallListWarningData) MarshalJSON() ([]byte, error) {
// ForwardingRule: A ForwardingRule resource. A ForwardingRule resource
// specifies which pool of target virtual machines to forward a packet
// to if it matches the given [IPAddress, IPProtocol, ports] tuple.
// to if it matches the given [IPAddress, IPProtocol, ports] tuple. (==
// resource_for beta.forwardingRules ==) (== resource_for
// v1.forwardingRules ==) (== resource_for beta.globalForwardingRules
// ==) (== resource_for v1.globalForwardingRules ==) (== resource_for
// beta.regionForwardingRules ==) (== resource_for
// v1.regionForwardingRules ==)
type ForwardingRule struct {
// IPAddress: The IP address that this forwarding rule is serving on
// behalf of.
@@ -7069,13 +7090,12 @@ func (s *GlobalSetLabelsRequest) MarshalJSON() ([]byte, error) {
// GuestOsFeature: Guest OS features.
type GuestOsFeature struct {
// Type: The type of supported feature. Currently only
// VIRTIO_SCSI_MULTIQUEUE is supported. For newer Windows images, the
// server might also populate this property with the value WINDOWS to
// indicate that this is a Windows image.
// Type: The ID of a supported feature. Read Enabling guest operating
// system features to see a list of available options.
//
// Possible values:
// "FEATURE_TYPE_UNSPECIFIED"
// "MULTI_IP_SUBNET"
// "VIRTIO_SCSI_MULTIQUEUE"
// "WINDOWS"
Type string `json:"type,omitempty"`
@@ -8058,7 +8078,8 @@ func (s *HttpsHealthCheckListWarningData) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Image: An Image resource.
// Image: An Image resource. (== resource_for beta.images ==) (==
// resource_for v1.images ==)
type Image struct {
// ArchiveSizeBytes: Size of the image tar.gz archive stored in Google
// Cloud Storage (in bytes).
@@ -8086,17 +8107,9 @@ type Image struct {
// RFC1035.
Family string `json:"family,omitempty"`
// GuestOsFeatures: A list of features to enable on the guest OS.
// Applicable for bootable images only. Currently, only one feature can
// be enabled, VIRTIO_SCSI_MULTIQUEUE, which allows each virtual CPU to
// have its own queue. For Windows images, you can only enable
// VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.1621 or
// higher. Linux images with kernel versions 3.17 and higher will
// support VIRTIO_SCSI_MULTIQUEUE.
//
// For newer Windows images, the server might also populate this
// property with the value WINDOWS to indicate that this is a Windows
// image.
// GuestOsFeatures: A list of features to enable on the guest operating
// system. Applicable only for bootable images. Read Enabling guest
// operating system features to see a list of available options.
GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"`
// Id: [Output Only] The unique identifier for the resource. This
@@ -8436,7 +8449,8 @@ func (s *ImageListWarningData) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Instance: An Instance resource.
// Instance: An Instance resource. (== resource_for beta.instances ==)
// (== resource_for v1.instances ==)
type Instance struct {
// CanIpForward: Allows this instance to send and receive packets with
// non-matching destination or source IPs. This is required if you plan
@@ -8770,6 +8784,10 @@ func (s *InstanceAggregatedListWarningData) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstanceGroup: InstanceGroups (== resource_for beta.instanceGroups
// ==) (== resource_for v1.instanceGroups ==) (== resource_for
// beta.regionInstanceGroups ==) (== resource_for
// v1.regionInstanceGroups ==)
type InstanceGroup struct {
// CreationTimestamp: [Output Only] The creation timestamp for this
// instance group in RFC3339 text format.
@@ -9171,7 +9189,11 @@ func (s *InstanceGroupListWarningData) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstanceGroupManager: An Instance Group Manager resource.
// InstanceGroupManager: An Instance Group Manager resource. (==
// resource_for beta.instanceGroupManagers ==) (== resource_for
// v1.instanceGroupManagers ==) (== resource_for
// beta.regionInstanceGroupManagers ==) (== resource_for
// v1.regionInstanceGroupManagers ==)
type InstanceGroupManager struct {
// BaseInstanceName: The base instance name to use for instances in this
// group. The value must be 1-58 characters long. Instances are named by
@@ -10712,7 +10734,8 @@ func (s *InstanceReference) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstanceTemplate: An Instance Template resource.
// InstanceTemplate: An Instance Template resource. (== resource_for
// beta.instanceTemplates ==) (== resource_for v1.instanceTemplates ==)
type InstanceTemplate struct {
// CreationTimestamp: [Output Only] The creation timestamp for this
// instance template in RFC3339 text format.
@@ -11294,7 +11317,8 @@ func (s *InstancesStartWithEncryptionKeyRequest) MarshalJSON() ([]byte, error) {
// Interconnect: Represents an Interconnects resource. The Interconnects
// resource is a dedicated connection between Google's network and your
// on-premises network. For more information, see the Dedicated
// overview page.
// overview page. (== resource_for v1.interconnects ==) (== resource_for
// beta.interconnects ==)
type Interconnect struct {
// AdminEnabled: Administrative status of the interconnect. When this is
// set to true, the Interconnect is functional and can carry traffic.
@@ -11434,7 +11458,8 @@ func (s *Interconnect) MarshalJSON() ([]byte, error) {
// InterconnectAttachment: Represents an InterconnectAttachment (VLAN
// attachment) resource. For more information, see Creating VLAN
// Attachments.
// Attachments. (== resource_for beta.interconnectAttachments ==) (==
// resource_for v1.interconnectAttachments ==)
type InterconnectAttachment struct {
// CloudRouterIpAddress: [Output Only] IPv4 address + prefix length to
// be configured on Cloud Router Interface for this interconnect
@@ -12628,7 +12653,8 @@ func (s *License) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MachineType: A Machine Type resource.
// MachineType: A Machine Type resource. (== resource_for
// v1.machineTypes ==) (== resource_for beta.machineTypes ==)
type MachineType struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -13477,7 +13503,8 @@ func (s *NamedPort) MarshalJSON() ([]byte, error) {
}
// Network: Represents a Network resource. Read Networks and Firewalls
// for more information.
// for more information. (== resource_for v1.networks ==) (==
// resource_for beta.networks ==)
type Network struct {
// IPv4Range: The range of internal addresses that are legal on this
// network. This range is a CIDR specification, for example:
@@ -13967,7 +13994,10 @@ func (s *NetworksRemovePeeringRequest) MarshalJSON() ([]byte, error) {
}
// Operation: An Operation resource, used to manage asynchronous API
// requests.
// requests. (== resource_for v1.globalOperations ==) (== resource_for
// beta.globalOperations ==) (== resource_for v1.regionOperations ==)
// (== resource_for beta.regionOperations ==) (== resource_for
// v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
type Operation struct {
// ClientOperationId: [Output Only] Reserved for future use.
ClientOperationId string `json:"clientOperationId,omitempty"`
@@ -14787,9 +14817,9 @@ func (s *PathRule) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Project: A Project resource. Projects can only be created in the
// Google Cloud Platform Console. Unless marked otherwise, values can
// only be modified in the console.
// Project: A Project resource. For an overview of projects, see Cloud
// Platform Resource Hierarchy. (== resource_for v1.projects ==) (==
// resource_for beta.projects ==)
type Project struct {
// CommonInstanceMetadata: Metadata key/value pairs available to all
// instances contained in this project. See Custom metadata for more
@@ -15096,7 +15126,8 @@ func (s *Quota) UnmarshalJSON(data []byte) error {
return nil
}
// Region: Region resource.
// Region: Region resource. (== resource_for beta.regions ==) (==
// resource_for v1.regions ==)
type Region struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -16283,7 +16314,8 @@ func (s *ResourceGroupReference) MarshalJSON() ([]byte, error) {
// Compute Engine-operated gateway.
//
// Packets that do not match any route in the sending instance's routing
// table are dropped.
// table are dropped. (== resource_for beta.routes ==) (== resource_for
// v1.routes ==)
type Route struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -17640,7 +17672,8 @@ func (s *ServiceAccount) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Snapshot: A persistent disk snapshot resource.
// Snapshot: A persistent disk snapshot resource. (== resource_for
// beta.snapshots ==) (== resource_for v1.snapshots ==)
type Snapshot struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -17935,7 +17968,8 @@ func (s *SnapshotListWarningData) MarshalJSON() ([]byte, error) {
// SslCertificate: An SslCertificate resource. This resource provides a
// mechanism to upload an SSL key and certificate to the load balancer
// to serve secure connections from the user.
// to serve secure connections from the user. (== resource_for
// beta.sslCertificates ==) (== resource_for v1.sslCertificates ==)
type SslCertificate struct {
// Certificate: A local certificate file. The certificate must be in PEM
// format. The certificate chain must be no greater than 5 certs long.
@@ -18156,7 +18190,8 @@ func (s *SslCertificateListWarningData) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Subnetwork: A Subnetwork resource.
// Subnetwork: A Subnetwork resource. (== resource_for beta.subnetworks
// ==) (== resource_for v1.subnetworks ==)
type Subnetwork struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -18882,7 +18917,8 @@ func (s *Tags) MarshalJSON() ([]byte, error) {
}
// TargetHttpProxy: A TargetHttpProxy resource. This resource defines an
// HTTP proxy.
// HTTP proxy. (== resource_for beta.targetHttpProxies ==) (==
// resource_for v1.targetHttpProxies ==)
type TargetHttpProxy struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -19131,7 +19167,8 @@ func (s *TargetHttpsProxiesSetSslCertificatesRequest) MarshalJSON() ([]byte, err
}
// TargetHttpsProxy: A TargetHttpsProxy resource. This resource defines
// an HTTPS proxy.
// an HTTPS proxy. (== resource_for beta.targetHttpsProxies ==) (==
// resource_for v1.targetHttpsProxies ==)
type TargetHttpsProxy struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -19360,7 +19397,9 @@ func (s *TargetHttpsProxyListWarningData) MarshalJSON() ([]byte, error) {
}
// TargetInstance: A TargetInstance resource. This resource defines an
// endpoint instance that terminates traffic of certain protocols.
// endpoint instance that terminates traffic of certain protocols. (==
// resource_for beta.targetInstances ==) (== resource_for
// v1.targetInstances ==)
type TargetInstance struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -19884,7 +19923,8 @@ func (s *TargetInstancesScopedListWarningData) MarshalJSON() ([]byte, error) {
// TargetPool: A TargetPool resource. This resource defines a pool of
// instances, an associated HttpHealthCheck resource, and the fallback
// target pool.
// target pool. (== resource_for beta.targetPools ==) (== resource_for
// v1.targetPools ==)
type TargetPool struct {
// BackupPool: This field is applicable only when the containing target
// pool is serving a forwarding rule as the primary pool, and its
@@ -20740,7 +20780,8 @@ func (s *TargetSslProxiesSetSslCertificatesRequest) MarshalJSON() ([]byte, error
}
// TargetSslProxy: A TargetSslProxy resource. This resource defines an
// SSL proxy.
// SSL proxy. (== resource_for beta.targetSslProxies ==) (==
// resource_for v1.targetSslProxies ==)
type TargetSslProxy struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -21031,7 +21072,8 @@ func (s *TargetTcpProxiesSetProxyHeaderRequest) MarshalJSON() ([]byte, error) {
}
// TargetTcpProxy: A TargetTcpProxy resource. This resource defines a
// TCP proxy.
// TCP proxy. (== resource_for beta.targetTcpProxies ==) (==
// resource_for v1.targetTcpProxies ==)
type TargetTcpProxy struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -21256,7 +21298,9 @@ func (s *TargetTcpProxyListWarningData) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TargetVpnGateway: Represents a Target VPN gateway resource.
// TargetVpnGateway: Represents a Target VPN gateway resource. (==
// resource_for beta.targetVpnGateways ==) (== resource_for
// v1.targetVpnGateways ==)
type TargetVpnGateway struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -22256,6 +22300,8 @@ func (s *UsageExportLocation) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// VpnTunnel: VPN tunnel resource. (== resource_for beta.vpnTunnels ==)
// (== resource_for v1.vpnTunnels ==)
type VpnTunnel struct {
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
// format.
@@ -23005,7 +23051,8 @@ func (s *XpnResourceId) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Zone: A Zone resource.
// Zone: A Zone resource. (== resource_for beta.zones ==) (==
// resource_for v1.zones ==)
type Zone struct {
// AvailableCpuPlatforms: [Output Only] Available cpu/platform
// selections for the zone.
@@ -30827,7 +30874,8 @@ type DisksResizeCall struct {
header_ http.Header
}
// Resize: Resizes the specified persistent disk.
// Resize: Resizes the specified persistent disk. You can only increase
// the size of the disk.
func (r *DisksService) Resize(project string, zone string, disk string, disksresizerequest *DisksResizeRequest) *DisksResizeCall {
c := &DisksResizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
@@ -30944,7 +30992,7 @@ func (c *DisksResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
}
return ret, nil
// {
// "description": "Resizes the specified persistent disk.",
// "description": "Resizes the specified persistent disk. You can only increase the size of the disk.",
// "httpMethod": "POST",
// "id": "compute.disks.resize",
// "parameterOrder": [
@@ -44477,11 +44525,9 @@ type InstanceTemplatesDeleteCall struct {
header_ http.Header
}
// Delete: Deletes the specified instance template. If you delete an
// instance template that is being referenced from another instance
// group, the instance group will not be able to create or recreate
// virtual machine instances. Deleting an instance template is permanent
// and cannot be undone.
// Delete: Deletes the specified instance template. Deleting an instance
// template is permanent and cannot be undone. It's not possible to
// delete templates which are in use by an instance group.
// For details, see https://cloud.google.com/compute/docs/reference/latest/instanceTemplates/delete
func (r *InstanceTemplatesService) Delete(project string, instanceTemplate string) *InstanceTemplatesDeleteCall {
c := &InstanceTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -44591,7 +44637,7 @@ func (c *InstanceTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operati
}
return ret, nil
// {
// "description": "Deletes the specified instance template. If you delete an instance template that is being referenced from another instance group, the instance group will not be able to create or recreate virtual machine instances. Deleting an instance template is permanent and cannot be undone.",
// "description": "Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It's not possible to delete templates which are in use by an instance group.",
// "httpMethod": "DELETE",
// "id": "compute.instanceTemplates.delete",
// "parameterOrder": [
@@ -53774,7 +53820,8 @@ type NetworksPatchCall struct {
}
// Patch: Patches the specified network with the data included in the
// request.
// request. Only the following fields can be modified:
// routingConfig.routingMode.
func (r *NetworksService) Patch(project string, network string, network2 *Network) *NetworksPatchCall {
c := &NetworksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
@@ -53889,7 +53936,7 @@ func (c *NetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
}
return ret, nil
// {
// "description": "Patches the specified network with the data included in the request.",
// "description": "Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode.",
// "httpMethod": "PATCH",
// "id": "compute.networks.patch",
// "parameterOrder": [
File diff suppressed because it is too large. Load diff
+19 -15
View File
@@ -1,4 +1,4 @@
// Package container provides access to the Google Container Engine API.
// Package container provides access to the Google Kubernetes Engine API.
//
// See https://cloud.google.com/container-engine/
//
@@ -329,7 +329,7 @@ func (s *ClientCertificateConfig) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Cluster: A Google Container Engine cluster.
// Cluster: A Google Kubernetes Engine cluster.
type Cluster struct {
// AddonsConfig: Configurations for the various addons available to run
// in the cluster.
@@ -1522,10 +1522,16 @@ type NodeConfig struct {
// server.
// Additionally, to avoid ambiguity, keys must not conflict with any
// other
// metadata keys for the project or be one of the four reserved
// keys:
// "instance-template", "kube-env", "startup-script", and
// "user-data"
// metadata keys for the project or be one of the reserved keys:
// "cluster-name"
// "cluster-uid"
// "configure-sh"
// "gci-update-strategy"
// "gci-ensure-gke-docker"
// "instance-template"
// "kube-env"
// "startup-script"
// "user-data"
//
// Values are free-form strings, and only have meaning as interpreted
// by
@@ -1914,7 +1920,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
type RollbackNodePoolUpgradeRequest struct {
}
// ServerConfig: Container Engine service configuration.
// ServerConfig: Kubernetes Engine service configuration.
type ServerConfig struct {
// DefaultClusterVersion: Version of Kubernetes the service deploys by
// default.
@@ -2002,7 +2008,7 @@ type SetLabelsRequest struct {
// this resource,
// used to detect conflicts. The fingerprint is initially generated
// by
// Container Engine and changes after every request to modify or
// Kubernetes Engine and changes after every request to modify or
// update
// labels. You must always provide an up-to-date fingerprint hash
// when
@@ -2409,11 +2415,9 @@ func (s *UpdateClusterRequest) MarshalJSON() ([]byte, error) {
// UpdateMasterRequest: UpdateMasterRequest updates the master of the
// cluster.
type UpdateMasterRequest struct {
// MasterVersion: The Kubernetes version to change the master to. The
// only valid value is the
// latest supported version. Use "-" to have the server automatically
// select
// the latest version.
// MasterVersion: The Kubernetes version to change the master to. Use
// "-" to have the server
// automatically select the default version.
MasterVersion string `json:"masterVersion,omitempty"`
// ForceSendFields is a list of field names (e.g. "MasterVersion") to
@@ -2486,7 +2490,7 @@ type ProjectsZonesGetServerconfigCall struct {
header_ http.Header
}
// GetServerconfig: Returns configuration info about the Container
// GetServerconfig: Returns configuration info about the Kubernetes
// Engine service.
func (r *ProjectsZonesService) GetServerconfig(projectId string, zone string) *ProjectsZonesGetServerconfigCall {
c := &ProjectsZonesGetServerconfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -2590,7 +2594,7 @@ func (c *ProjectsZonesGetServerconfigCall) Do(opts ...googleapi.CallOption) (*Se
}
return ret, nil
// {
// "description": "Returns configuration info about the Container Engine service.",
// "description": "Returns configuration info about the Kubernetes Engine service.",
// "flatPath": "v1/projects/{projectId}/zones/{zone}/serverconfig",
// "httpMethod": "GET",
// "id": "container.projects.zones.getServerconfig",
File diff suppressed because it is too large. Load diff
+418 -12
View File
@@ -1,4 +1,4 @@
// Package container provides access to the Google Container Engine API.
// Package container provides access to the Google Kubernetes Engine API.
//
// See https://cloud.google.com/container-engine/
//
@@ -421,7 +421,7 @@ func (s *ClientCertificateConfig) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Cluster: A Google Container Engine cluster.
// Cluster: A Google Kubernetes Engine cluster.
type Cluster struct {
// AddonsConfig: Configurations for the various addons available to run
// in the cluster.
@@ -1686,10 +1686,16 @@ type NodeConfig struct {
// server.
// Additionally, to avoid ambiguity, keys must not conflict with any
// other
// metadata keys for the project or be one of the four reserved
// keys:
// "instance-template", "kube-env", "startup-script", and
// "user-data"
// metadata keys for the project or be one of the reserved keys:
// "cluster-name"
// "cluster-uid"
// "configure-sh"
// "gci-update-strategy"
// "gci-ensure-gke-docker"
// "instance-template"
// "kube-env"
// "startup-script"
// "user-data"
//
// Values are free-form strings, and only have meaning as interpreted
// by
@@ -1767,6 +1773,10 @@ type NodeConfig struct {
// ation/
Taints []*NodeTaint `json:"taints,omitempty"`
// WorkloadMetadataConfig: The workload metadata configuration for this
// node.
WorkloadMetadataConfig *WorkloadMetadataConfig `json:"workloadMetadataConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "Accelerators") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -2216,7 +2226,7 @@ func (s *RollbackNodePoolUpgradeRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ServerConfig: Container Engine service configuration.
// ServerConfig: Kubernetes Engine service configuration.
type ServerConfig struct {
// DefaultClusterVersion: Version of Kubernetes the service deploys by
// default.
@@ -2332,7 +2342,7 @@ type SetLabelsRequest struct {
// this resource,
// used to detect conflicts. The fingerprint is initially generated
// by
// Container Engine and changes after every request to modify or
// Kubernetes Engine and changes after every request to modify or
// update
// labels. You must always provide an up-to-date fingerprint hash
// when
@@ -2909,6 +2919,64 @@ func (s *SetNodePoolManagementRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SetNodePoolSizeRequest: SetNodePoolSizeRequest sets the size a
// node
// pool.
type SetNodePoolSizeRequest struct {
// ClusterId: The name of the cluster to update.
// This field is deprecated, use name instead.
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster, node pool id) of the node
// pool to set
// size.
// Specified in the format
// 'projects/*/locations/*/clusters/*/nodePools/*'.
Name string `json:"name,omitempty"`
// NodeCount: The desired node count for the pool.
NodeCount int64 `json:"nodeCount,omitempty"`
// NodePoolId: The name of the node pool to update.
// This field is deprecated, use name instead.
NodePoolId string `json:"nodePoolId,omitempty"`
// ProjectId: The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
ProjectId string `json:"projectId,omitempty"`
// Zone: The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
// This field is deprecated, use name instead.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ClusterId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SetNodePoolSizeRequest) MarshalJSON() ([]byte, error) {
type NoMethod SetNodePoolSizeRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StartIPRotationRequest: StartIPRotationRequest creates a new IP for
// the cluster and then performs
// a node upgrade on each node pool to point to the new IP.
@@ -3132,6 +3200,45 @@ func (s *UpdateNodePoolRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// WorkloadMetadataConfig: WorkloadMetadataConfig defines the metadata
// configuration to expose to
// workloads on the node pool.
type WorkloadMetadataConfig struct {
// NodeMetadata: NodeMetadata is the configuration for if and how to
// expose the node
// metadata to the workload running on the node.
//
// Possible values:
// "UNSPECIFIED" - Not set.
// "SECURE" - Expose only a secure subset of metadata to pods.
// Currently, this blocks
// kube-env, but exposes all other metadata.
// "EXPOSE" - Expose all GCE metadata to pods.
NodeMetadata string `json:"nodeMetadata,omitempty"`
// ForceSendFields is a list of field names (e.g. "NodeMetadata") 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. "NodeMetadata") 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 *WorkloadMetadataConfig) MarshalJSON() ([]byte, error) {
type NoMethod WorkloadMetadataConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "container.projects.locations.getServerConfig":
type ProjectsLocationsGetServerConfigCall struct {
@@ -3143,7 +3250,7 @@ type ProjectsLocationsGetServerConfigCall struct {
header_ http.Header
}
// GetServerConfig: Returns configuration info about the Container
// GetServerConfig: Returns configuration info about the Kubernetes
// Engine service.
func (r *ProjectsLocationsService) GetServerConfig(name string) *ProjectsLocationsGetServerConfigCall {
c := &ProjectsLocationsGetServerConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -3265,7 +3372,7 @@ func (c *ProjectsLocationsGetServerConfigCall) Do(opts ...googleapi.CallOption)
}
return ret, nil
// {
// "description": "Returns configuration info about the Container Engine service.",
// "description": "Returns configuration info about the Kubernetes Engine service.",
// "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serverConfig",
// "httpMethod": "GET",
// "id": "container.projects.locations.getServerConfig",
@@ -6857,6 +6964,141 @@ func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Do(opts ...googlea
}
// method id "container.projects.locations.clusters.nodePools.setSize":
type ProjectsLocationsClustersNodePoolsSetSizeCall struct {
s *Service
name string
setnodepoolsizerequest *SetNodePoolSizeRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetSize: Sets the size of a specific node pool.
func (r *ProjectsLocationsClustersNodePoolsService) SetSize(name string, setnodepoolsizerequest *SetNodePoolSizeRequest) *ProjectsLocationsClustersNodePoolsSetSizeCall {
c := &ProjectsLocationsClustersNodePoolsSetSizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
c.setnodepoolsizerequest = setnodepoolsizerequest
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 *ProjectsLocationsClustersNodePoolsSetSizeCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsSetSizeCall {
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 *ProjectsLocationsClustersNodePoolsSetSizeCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsSetSizeCall {
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 *ProjectsLocationsClustersNodePoolsSetSizeCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) 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.setnodepoolsizerequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setSize")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "container.projects.locations.clusters.nodePools.setSize" 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 *ProjectsLocationsClustersNodePoolsSetSizeCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Sets the size of a specific node pool.",
// "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setSize",
// "httpMethod": "POST",
// "id": "container.projects.locations.clusters.nodePools.setSize",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The name (project, location, cluster, node pool id) of the node pool to set\nsize.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1beta1/{+name}:setSize",
// "request": {
// "$ref": "SetNodePoolSizeRequest"
// },
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "container.projects.locations.clusters.nodePools.update":
type ProjectsLocationsClustersNodePoolsUpdateCall struct {
@@ -7494,7 +7736,7 @@ type ProjectsZonesGetServerconfigCall struct {
header_ http.Header
}
// GetServerconfig: Returns configuration info about the Container
// GetServerconfig: Returns configuration info about the Kubernetes
// Engine service.
func (r *ProjectsZonesService) GetServerconfig(projectId string, zone string) *ProjectsZonesGetServerconfigCall {
c := &ProjectsZonesGetServerconfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -7606,7 +7848,7 @@ func (c *ProjectsZonesGetServerconfigCall) Do(opts ...googleapi.CallOption) (*Se
}
return ret, nil
// {
// "description": "Returns configuration info about the Container Engine service.",
// "description": "Returns configuration info about the Kubernetes Engine service.",
// "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
// "httpMethod": "GET",
// "id": "container.projects.zones.getServerconfig",
@@ -11483,6 +11725,170 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Do(opts ...googleapi.C
}
// method id "container.projects.zones.clusters.nodePools.setSize":
type ProjectsZonesClustersNodePoolsSetSizeCall struct {
s *Service
projectId string
zone string
clusterId string
nodePoolId string
setnodepoolsizerequest *SetNodePoolSizeRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetSize: Sets the size of a specific node pool.
func (r *ProjectsZonesClustersNodePoolsService) SetSize(projectId string, zone string, clusterId string, nodePoolId string, setnodepoolsizerequest *SetNodePoolSizeRequest) *ProjectsZonesClustersNodePoolsSetSizeCall {
c := &ProjectsZonesClustersNodePoolsSetSizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
c.nodePoolId = nodePoolId
c.setnodepoolsizerequest = setnodepoolsizerequest
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 *ProjectsZonesClustersNodePoolsSetSizeCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsSetSizeCall {
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 *ProjectsZonesClustersNodePoolsSetSizeCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsSetSizeCall {
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 *ProjectsZonesClustersNodePoolsSetSizeCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsZonesClustersNodePoolsSetSizeCall) 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.setnodepoolsizerequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
"zone": c.zone,
"clusterId": c.clusterId,
"nodePoolId": c.nodePoolId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "container.projects.zones.clusters.nodePools.setSize" 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 *ProjectsZonesClustersNodePoolsSetSizeCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Sets the size of a specific node pool.",
// "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
// "httpMethod": "POST",
// "id": "container.projects.zones.clusters.nodePools.setSize",
// "parameterOrder": [
// "projectId",
// "zone",
// "clusterId",
// "nodePoolId"
// ],
// "parameters": {
// "clusterId": {
// "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "nodePoolId": {
// "description": "The name of the node pool to update.\nThis field is deprecated, use name instead.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
// "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
// "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
// "request": {
// "$ref": "SetNodePoolSizeRequest"
// },
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "container.projects.zones.clusters.nodePools.update":
type ProjectsZonesClustersNodePoolsUpdateCall struct {
+732 -4
View File
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/oXnvbTGBTx6tn_o_vg2UhQHX08E\"",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/WRBt7xb1XuIBXdKCPdttIufspds\"",
"discoveryVersion": "v1",
"id": "content:v2",
"name": "content",
"canonicalName": "Shopping Content",
"version": "v2",
"revision": "20171124",
"revision": "20180122",
"title": "Content API for Shopping",
"description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
"ownerDomain": "google.com",
@@ -1311,6 +1311,13 @@
"id": "DeliveryTime",
"type": "object",
"properties": {
"holidayCutoffs": {
"type": "array",
"description": "Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.",
"items": {
"$ref": "HolidayCutoff"
}
},
"maxTransitTimeInDays": {
"type": "integer",
"description": "Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to minTransitTimeInDays. Required.",
@@ -1407,6 +1414,64 @@
}
}
},
"HolidayCutoff": {
"id": "HolidayCutoff",
"type": "object",
"properties": {
"deadlineDate": {
"type": "string",
"description": "Date of the order deadline, in ISO 8601 format. E.g. \"2016-11-29\" for 29th November 2016. Required."
},
"deadlineHour": {
"type": "integer",
"description": "Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.",
"format": "uint32"
},
"deadlineTimezone": {
"type": "string",
"description": "Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. \"Europe/Zurich\". Required."
},
"holidayId": {
"type": "string",
"description": "Unique identifier for the holiday. Required."
},
"visibleFromDate": {
"type": "string",
"description": "Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. \"2016-10-31\" for 31st October 2016. Required."
}
}
},
"HolidaysHoliday": {
"id": "HolidaysHoliday",
"type": "object",
"properties": {
"countryCode": {
"type": "string",
"description": "The CLDR territory code of the country in which the holiday is available. E.g. \"US\", \"DE\", \"GB\". A holiday cutoff can only be configured in a shipping settings service with matching delivery country. Always present."
},
"date": {
"type": "string",
"description": "Date of the holiday, in ISO 8601 format. E.g. \"2016-12-25\" for Christmas 2016. Always present."
},
"deliveryGuaranteeDate": {
"type": "string",
"description": "Date on which the order has to arrive at the customer's, in ISO 8601 format. E.g. \"2016-12-24\" for 24th December 2016. Always present."
},
"deliveryGuaranteeHour": {
"type": "string",
"description": "Hour of the day in the delivery location's timezone on the guaranteed delivery date by which the order has to arrive at the customer's. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Always present.",
"format": "uint64"
},
"id": {
"type": "string",
"description": "Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present."
},
"type": {
"type": "string",
"description": "The holiday type. Always present."
}
}
},
"Installment": {
"id": "Installment",
"type": "object",
@@ -1860,6 +1925,13 @@
"id": "OrderLineItem",
"type": "object",
"properties": {
"annotations": {
"type": "array",
"description": "Annotations that are attached to the line item.",
"items": {
"$ref": "OrderMerchantProvidedAnnotation"
}
},
"cancellations": {
"type": "array",
"description": "Cancellations of the line item.",
@@ -2119,6 +2191,20 @@
}
}
},
"OrderMerchantProvidedAnnotation": {
"id": "OrderMerchantProvidedAnnotation",
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Key for additional merchant provided (as key-value pairs) annotation about the line item."
},
"value": {
"type": "string",
"description": "Value for additional merchant provided (as key-value pairs) annotation about the line item."
}
}
},
"OrderPaymentMethod": {
"id": "OrderPaymentMethod",
"type": "object",
@@ -2511,6 +2597,10 @@
"$ref": "OrdersCustomBatchRequestEntryCancelLineItem",
"description": "Required for cancelLineItem method."
},
"inStoreRefundLineItem": {
"$ref": "OrdersCustomBatchRequestEntryInStoreRefundLineItem",
"description": "Required for inStoreReturnLineItem method."
},
"merchantId": {
"type": "string",
"description": "The ID of the managing account.",
@@ -2536,14 +2626,30 @@
"$ref": "OrdersCustomBatchRequestEntryRefund",
"description": "Required for refund method."
},
"rejectReturnLineItem": {
"$ref": "OrdersCustomBatchRequestEntryRejectReturnLineItem",
"description": "Required for rejectReturnLineItem method."
},
"returnLineItem": {
"$ref": "OrdersCustomBatchRequestEntryReturnLineItem",
"description": "Required for returnLineItem method."
},
"returnRefundLineItem": {
"$ref": "OrdersCustomBatchRequestEntryReturnRefundLineItem",
"description": "Required for returnRefundLineItem method."
},
"setLineItemMetadata": {
"$ref": "OrdersCustomBatchRequestEntrySetLineItemMetadata",
"description": "Required for setLineItemMetadata method."
},
"shipLineItems": {
"$ref": "OrdersCustomBatchRequestEntryShipLineItems",
"description": "Required for shipLineItems method."
},
"updateLineItemShippingDetails": {
"$ref": "OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails",
"description": "Required for updateLineItemShippingDate method."
},
"updateShipment": {
"$ref": "OrdersCustomBatchRequestEntryUpdateShipment",
"description": "Required for updateShipment method."
@@ -2603,6 +2709,41 @@
}
}
},
"OrdersCustomBatchRequestEntryInStoreRefundLineItem": {
"id": "OrdersCustomBatchRequestEntryInStoreRefundLineItem",
"type": "object",
"properties": {
"amountPretax": {
"$ref": "Price",
"description": "The amount that is refunded. Required."
},
"amountTax": {
"$ref": "Price",
"description": "Tax amount that correspond to refund amount in amountPretax. Required."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersCustomBatchRequestEntryRefund": {
"id": "OrdersCustomBatchRequestEntryRefund",
"type": "object",
@@ -2629,6 +2770,33 @@
}
}
},
"OrdersCustomBatchRequestEntryRejectReturnLineItem": {
"id": "OrdersCustomBatchRequestEntryRejectReturnLineItem",
"type": "object",
"properties": {
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersCustomBatchRequestEntryReturnLineItem": {
"id": "OrdersCustomBatchRequestEntryReturnLineItem",
"type": "object",
@@ -2656,6 +2824,61 @@
}
}
},
"OrdersCustomBatchRequestEntryReturnRefundLineItem": {
"id": "OrdersCustomBatchRequestEntryReturnRefundLineItem",
"type": "object",
"properties": {
"amountPretax": {
"$ref": "Price",
"description": "The amount that is refunded. Optional, but if filled then both amountPretax and amountTax must be set."
},
"amountTax": {
"$ref": "Price",
"description": "Tax amount that correspond to refund amount in amountPretax."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersCustomBatchRequestEntrySetLineItemMetadata": {
"id": "OrdersCustomBatchRequestEntrySetLineItemMetadata",
"type": "object",
"properties": {
"annotations": {
"type": "array",
"items": {
"$ref": "OrderMerchantProvidedAnnotation"
}
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to set metadata. Either lineItemId or productId is required."
},
"productId": {
"type": "string",
"description": "The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required."
}
}
},
"OrdersCustomBatchRequestEntryShipLineItems": {
"id": "OrdersCustomBatchRequestEntryShipLineItems",
"type": "object",
@@ -2711,6 +2934,28 @@
}
}
},
"OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails": {
"id": "OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails",
"type": "object",
"properties": {
"deliverByDate": {
"type": "string",
"description": "Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to set metadata. Either lineItemId or productId is required."
},
"productId": {
"type": "string",
"description": "The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"shipByDate": {
"type": "string",
"description": "Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated."
}
}
},
"OrdersCustomBatchRequestEntryUpdateShipment": {
"id": "OrdersCustomBatchRequestEntryUpdateShipment",
"type": "object",
@@ -2809,6 +3054,60 @@
}
}
},
"OrdersInStoreRefundLineItemRequest": {
"id": "OrdersInStoreRefundLineItemRequest",
"type": "object",
"properties": {
"amountPretax": {
"$ref": "Price",
"description": "The amount that is refunded. Required."
},
"amountTax": {
"$ref": "Price",
"description": "Tax amount that correspond to refund amount in amountPretax. Required."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"operationId": {
"type": "string",
"description": "The ID of the operation. Unique across all operations for a given order."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersInStoreRefundLineItemResponse": {
"id": "OrdersInStoreRefundLineItemResponse",
"type": "object",
"properties": {
"executionStatus": {
"type": "string",
"description": "The status of the execution."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersInStoreRefundLineItemResponse\".",
"default": "content#ordersInStoreRefundLineItemResponse"
}
}
},
"OrdersListResponse": {
"id": "OrdersListResponse",
"type": "object",
@@ -2875,6 +3174,52 @@
}
}
},
"OrdersRejectReturnLineItemRequest": {
"id": "OrdersRejectReturnLineItemRequest",
"type": "object",
"properties": {
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"operationId": {
"type": "string",
"description": "The ID of the operation. Unique across all operations for a given order."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersRejectReturnLineItemResponse": {
"id": "OrdersRejectReturnLineItemResponse",
"type": "object",
"properties": {
"executionStatus": {
"type": "string",
"description": "The status of the execution."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersRejectReturnLineItemResponse\".",
"default": "content#ordersRejectReturnLineItemResponse"
}
}
},
"OrdersReturnLineItemRequest": {
"id": "OrdersReturnLineItemRequest",
"type": "object",
@@ -2921,6 +3266,99 @@
}
}
},
"OrdersReturnRefundLineItemRequest": {
"id": "OrdersReturnRefundLineItemRequest",
"type": "object",
"properties": {
"amountPretax": {
"$ref": "Price",
"description": "The amount that is refunded. Optional, but if filled then both amountPretax and amountTax must be set."
},
"amountTax": {
"$ref": "Price",
"description": "Tax amount that correspond to refund amount in amountPretax."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"operationId": {
"type": "string",
"description": "The ID of the operation. Unique across all operations for a given order."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersReturnRefundLineItemResponse": {
"id": "OrdersReturnRefundLineItemResponse",
"type": "object",
"properties": {
"executionStatus": {
"type": "string",
"description": "The status of the execution."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersReturnRefundLineItemResponse\".",
"default": "content#ordersReturnRefundLineItemResponse"
}
}
},
"OrdersSetLineItemMetadataRequest": {
"id": "OrdersSetLineItemMetadataRequest",
"type": "object",
"properties": {
"annotations": {
"type": "array",
"items": {
"$ref": "OrderMerchantProvidedAnnotation"
}
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to set metadata. Either lineItemId or productId is required."
},
"operationId": {
"type": "string",
"description": "The ID of the operation. Unique across all operations for a given order."
},
"productId": {
"type": "string",
"description": "The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required."
}
}
},
"OrdersSetLineItemMetadataResponse": {
"id": "OrdersSetLineItemMetadataResponse",
"type": "object",
"properties": {
"executionStatus": {
"type": "string",
"description": "The status of the execution."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersSetLineItemMetadataResponse\".",
"default": "content#ordersSetLineItemMetadataResponse"
}
}
},
"OrdersShipLineItemsRequest": {
"id": "OrdersShipLineItemsRequest",
"type": "object",
@@ -2972,6 +3410,47 @@
}
}
},
"OrdersUpdateLineItemShippingDetailsRequest": {
"id": "OrdersUpdateLineItemShippingDetailsRequest",
"type": "object",
"properties": {
"deliverByDate": {
"type": "string",
"description": "Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to set metadata. Either lineItemId or productId is required."
},
"operationId": {
"type": "string",
"description": "The ID of the operation. Unique across all operations for a given order."
},
"productId": {
"type": "string",
"description": "The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"shipByDate": {
"type": "string",
"description": "Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated."
}
}
},
"OrdersUpdateLineItemShippingDetailsResponse": {
"id": "OrdersUpdateLineItemShippingDetailsResponse",
"type": "object",
"properties": {
"executionStatus": {
"type": "string",
"description": "The status of the execution."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersUpdateLineItemShippingDetailsResponse\".",
"default": "content#ordersUpdateLineItemShippingDetailsResponse"
}
}
},
"OrdersUpdateMerchantOrderIdRequest": {
"id": "OrdersUpdateMerchantOrderIdRequest",
"type": "object",
@@ -3625,6 +4104,13 @@
"type": "string",
"description": "Date on which the item expires in Google Shopping, in ISO 8601 format."
},
"itemLevelIssues": {
"type": "array",
"description": "A list of all issues associated with the product.",
"items": {
"$ref": "ProductStatusItemLevelIssue"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#productStatus\".",
@@ -3694,6 +4180,10 @@
"id": "ProductStatusDestinationStatus",
"type": "object",
"properties": {
"approvalPending": {
"type": "boolean",
"description": "Whether the approval status might change due to further processing."
},
"approvalStatus": {
"type": "string",
"description": "The destination's approval status."
@@ -3704,7 +4194,33 @@
},
"intention": {
"type": "string",
"description": "Whether the destination is required, excluded, selected by default or should be validated."
"description": "Provided for backward compatibility only. Always set to \"required\"."
}
}
},
"ProductStatusItemLevelIssue": {
"id": "ProductStatusItemLevelIssue",
"type": "object",
"properties": {
"attributeName": {
"type": "string",
"description": "The attribute's name, if the issue is caused by a single attribute."
},
"code": {
"type": "string",
"description": "The error code of the issue."
},
"destination": {
"type": "string",
"description": "The destination the issue applies to."
},
"resolution": {
"type": "string",
"description": "Whether the issue can be resolved by the merchant."
},
"servability": {
"type": "string",
"description": "How this issue affects serving of the offer."
}
}
},
@@ -4193,6 +4709,24 @@
}
}
},
"ShippingsettingsGetSupportedHolidaysResponse": {
"id": "ShippingsettingsGetSupportedHolidaysResponse",
"type": "object",
"properties": {
"holidays": {
"type": "array",
"description": "A list of holidays applicable for delivery guarantees. May be empty.",
"items": {
"$ref": "HolidaysHoliday"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsGetSupportedHolidaysResponse\".",
"default": "content#shippingsettingsGetSupportedHolidaysResponse"
}
}
},
"ShippingsettingsListResponse": {
"id": "ShippingsettingsListResponse",
"type": "object",
@@ -5246,7 +5780,7 @@
"id": "content.datafeeds.list",
"path": "{merchantId}/datafeeds",
"httpMethod": "GET",
"description": "Lists the datafeeds in your Merchant Center account.",
"description": "Lists the configurations for datafeeds in your Merchant Center account.",
"parameters": {
"maxResults": {
"type": "integer",
@@ -5808,6 +6342,40 @@
"https://www.googleapis.com/auth/content"
]
},
"instorerefundlineitem": {
"id": "content.orders.instorerefundlineitem",
"path": "{merchantId}/orders/{orderId}/inStoreRefundLineItem",
"httpMethod": "POST",
"description": "Notifies that item return and refund was handled directly in store.",
"parameters": {
"merchantId": {
"type": "string",
"description": "The ID of the account that manages the order. This cannot be a multi-client account.",
"required": true,
"format": "uint64",
"location": "path"
},
"orderId": {
"type": "string",
"description": "The ID of the order.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"merchantId",
"orderId"
],
"request": {
"$ref": "OrdersInStoreRefundLineItemRequest"
},
"response": {
"$ref": "OrdersInStoreRefundLineItemResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"list": {
"id": "content.orders.list",
"path": "{merchantId}/orders",
@@ -5937,6 +6505,40 @@
"https://www.googleapis.com/auth/content"
]
},
"rejectreturnlineitem": {
"id": "content.orders.rejectreturnlineitem",
"path": "{merchantId}/orders/{orderId}/rejectReturnLineItem",
"httpMethod": "POST",
"description": "Rejects return on an line item.",
"parameters": {
"merchantId": {
"type": "string",
"description": "The ID of the account that manages the order. This cannot be a multi-client account.",
"required": true,
"format": "uint64",
"location": "path"
},
"orderId": {
"type": "string",
"description": "The ID of the order.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"merchantId",
"orderId"
],
"request": {
"$ref": "OrdersRejectReturnLineItemRequest"
},
"response": {
"$ref": "OrdersRejectReturnLineItemResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"returnlineitem": {
"id": "content.orders.returnlineitem",
"path": "{merchantId}/orders/{orderId}/returnLineItem",
@@ -5971,6 +6573,74 @@
"https://www.googleapis.com/auth/content"
]
},
"returnrefundlineitem": {
"id": "content.orders.returnrefundlineitem",
"path": "{merchantId}/orders/{orderId}/returnRefundLineItem",
"httpMethod": "POST",
"description": "Returns and refunds a line item. Note that this method can only be called on fully shipped orders.",
"parameters": {
"merchantId": {
"type": "string",
"description": "The ID of the account that manages the order. This cannot be a multi-client account.",
"required": true,
"format": "uint64",
"location": "path"
},
"orderId": {
"type": "string",
"description": "The ID of the order.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"merchantId",
"orderId"
],
"request": {
"$ref": "OrdersReturnRefundLineItemRequest"
},
"response": {
"$ref": "OrdersReturnRefundLineItemResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"setlineitemmetadata": {
"id": "content.orders.setlineitemmetadata",
"path": "{merchantId}/orders/{orderId}/setLineItemMetadata",
"httpMethod": "POST",
"description": "Sets (overrides) merchant provided annotations on the line item.",
"parameters": {
"merchantId": {
"type": "string",
"description": "The ID of the account that manages the order. This cannot be a multi-client account.",
"required": true,
"format": "uint64",
"location": "path"
},
"orderId": {
"type": "string",
"description": "The ID of the order.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"merchantId",
"orderId"
],
"request": {
"$ref": "OrdersSetLineItemMetadataRequest"
},
"response": {
"$ref": "OrdersSetLineItemMetadataResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"shiplineitems": {
"id": "content.orders.shiplineitems",
"path": "{merchantId}/orders/{orderId}/shipLineItems",
@@ -6005,6 +6675,40 @@
"https://www.googleapis.com/auth/content"
]
},
"updatelineitemshippingdetails": {
"id": "content.orders.updatelineitemshippingdetails",
"path": "{merchantId}/orders/{orderId}/updateLineItemShippingDetails",
"httpMethod": "POST",
"description": "Updates ship by and delivery by dates for a line item.",
"parameters": {
"merchantId": {
"type": "string",
"description": "The ID of the account that manages the order. This cannot be a multi-client account.",
"required": true,
"format": "uint64",
"location": "path"
},
"orderId": {
"type": "string",
"description": "The ID of the order.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"merchantId",
"orderId"
],
"request": {
"$ref": "OrdersUpdateLineItemShippingDetailsRequest"
},
"response": {
"$ref": "OrdersUpdateLineItemShippingDetailsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"updatemerchantorderid": {
"id": "content.orders.updatemerchantorderid",
"path": "{merchantId}/orders/{orderId}/updateMerchantOrderId",
@@ -6424,6 +7128,30 @@
"https://www.googleapis.com/auth/content"
]
},
"getsupportedholidays": {
"id": "content.shippingsettings.getsupportedholidays",
"path": "{merchantId}/supportedHolidays",
"httpMethod": "GET",
"description": "Retrieves supported holidays for an account.",
"parameters": {
"merchantId": {
"type": "string",
"description": "The ID of the account for which to retrieve the supported holidays.",
"required": true,
"format": "uint64",
"location": "path"
}
},
"parameterOrder": [
"merchantId"
],
"response": {
"$ref": "ShippingsettingsGetSupportedHolidaysResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"list": {
"id": "content.shippingsettings.list",
"path": "{merchantId}/shippingsettings",
+1751 -16
View File
File diff suppressed because it is too large. Load diff
+586 -2
View File
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/iAmRSwOzrdbZR2Jaj_q1_TiSXuk\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/pdq_G-7e0J9K1HvpHySXgoj-edo\"",
"discoveryVersion": "v1",
"id": "content:v2sandbox",
"name": "content",
"canonicalName": "Shopping Content",
"version": "v2sandbox",
"revision": "20171124",
"revision": "20180111",
"title": "Content API for Shopping",
"description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
"ownerDomain": "google.com",
@@ -325,6 +325,13 @@
"id": "OrderLineItem",
"type": "object",
"properties": {
"annotations": {
"type": "array",
"description": "Annotations that are attached to the line item.",
"items": {
"$ref": "OrderMerchantProvidedAnnotation"
}
},
"cancellations": {
"type": "array",
"description": "Cancellations of the line item.",
@@ -584,6 +591,20 @@
}
}
},
"OrderMerchantProvidedAnnotation": {
"id": "OrderMerchantProvidedAnnotation",
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Key for additional merchant provided (as key-value pairs) annotation about the line item."
},
"value": {
"type": "string",
"description": "Value for additional merchant provided (as key-value pairs) annotation about the line item."
}
}
},
"OrderPaymentMethod": {
"id": "OrderPaymentMethod",
"type": "object",
@@ -976,6 +997,10 @@
"$ref": "OrdersCustomBatchRequestEntryCancelLineItem",
"description": "Required for cancelLineItem method."
},
"inStoreRefundLineItem": {
"$ref": "OrdersCustomBatchRequestEntryInStoreRefundLineItem",
"description": "Required for inStoreReturnLineItem method."
},
"merchantId": {
"type": "string",
"description": "The ID of the managing account.",
@@ -1001,14 +1026,30 @@
"$ref": "OrdersCustomBatchRequestEntryRefund",
"description": "Required for refund method."
},
"rejectReturnLineItem": {
"$ref": "OrdersCustomBatchRequestEntryRejectReturnLineItem",
"description": "Required for rejectReturnLineItem method."
},
"returnLineItem": {
"$ref": "OrdersCustomBatchRequestEntryReturnLineItem",
"description": "Required for returnLineItem method."
},
"returnRefundLineItem": {
"$ref": "OrdersCustomBatchRequestEntryReturnRefundLineItem",
"description": "Required for returnRefundLineItem method."
},
"setLineItemMetadata": {
"$ref": "OrdersCustomBatchRequestEntrySetLineItemMetadata",
"description": "Required for setLineItemMetadata method."
},
"shipLineItems": {
"$ref": "OrdersCustomBatchRequestEntryShipLineItems",
"description": "Required for shipLineItems method."
},
"updateLineItemShippingDetails": {
"$ref": "OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails",
"description": "Required for updateLineItemShippingDate method."
},
"updateShipment": {
"$ref": "OrdersCustomBatchRequestEntryUpdateShipment",
"description": "Required for updateShipment method."
@@ -1068,6 +1109,41 @@
}
}
},
"OrdersCustomBatchRequestEntryInStoreRefundLineItem": {
"id": "OrdersCustomBatchRequestEntryInStoreRefundLineItem",
"type": "object",
"properties": {
"amountPretax": {
"$ref": "Price",
"description": "The amount that is refunded. Required."
},
"amountTax": {
"$ref": "Price",
"description": "Tax amount that correspond to refund amount in amountPretax. Required."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersCustomBatchRequestEntryRefund": {
"id": "OrdersCustomBatchRequestEntryRefund",
"type": "object",
@@ -1094,6 +1170,33 @@
}
}
},
"OrdersCustomBatchRequestEntryRejectReturnLineItem": {
"id": "OrdersCustomBatchRequestEntryRejectReturnLineItem",
"type": "object",
"properties": {
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersCustomBatchRequestEntryReturnLineItem": {
"id": "OrdersCustomBatchRequestEntryReturnLineItem",
"type": "object",
@@ -1121,6 +1224,61 @@
}
}
},
"OrdersCustomBatchRequestEntryReturnRefundLineItem": {
"id": "OrdersCustomBatchRequestEntryReturnRefundLineItem",
"type": "object",
"properties": {
"amountPretax": {
"$ref": "Price",
"description": "The amount that is refunded. Optional, but if filled then both amountPretax and amountTax must be set."
},
"amountTax": {
"$ref": "Price",
"description": "Tax amount that correspond to refund amount in amountPretax."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersCustomBatchRequestEntrySetLineItemMetadata": {
"id": "OrdersCustomBatchRequestEntrySetLineItemMetadata",
"type": "object",
"properties": {
"annotations": {
"type": "array",
"items": {
"$ref": "OrderMerchantProvidedAnnotation"
}
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to set metadata. Either lineItemId or productId is required."
},
"productId": {
"type": "string",
"description": "The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required."
}
}
},
"OrdersCustomBatchRequestEntryShipLineItems": {
"id": "OrdersCustomBatchRequestEntryShipLineItems",
"type": "object",
@@ -1176,6 +1334,28 @@
}
}
},
"OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails": {
"id": "OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails",
"type": "object",
"properties": {
"deliverByDate": {
"type": "string",
"description": "Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to set metadata. Either lineItemId or productId is required."
},
"productId": {
"type": "string",
"description": "The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"shipByDate": {
"type": "string",
"description": "Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated."
}
}
},
"OrdersCustomBatchRequestEntryUpdateShipment": {
"id": "OrdersCustomBatchRequestEntryUpdateShipment",
"type": "object",
@@ -1274,6 +1454,60 @@
}
}
},
"OrdersInStoreRefundLineItemRequest": {
"id": "OrdersInStoreRefundLineItemRequest",
"type": "object",
"properties": {
"amountPretax": {
"$ref": "Price",
"description": "The amount that is refunded. Required."
},
"amountTax": {
"$ref": "Price",
"description": "Tax amount that correspond to refund amount in amountPretax. Required."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"operationId": {
"type": "string",
"description": "The ID of the operation. Unique across all operations for a given order."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersInStoreRefundLineItemResponse": {
"id": "OrdersInStoreRefundLineItemResponse",
"type": "object",
"properties": {
"executionStatus": {
"type": "string",
"description": "The status of the execution."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersInStoreRefundLineItemResponse\".",
"default": "content#ordersInStoreRefundLineItemResponse"
}
}
},
"OrdersListResponse": {
"id": "OrdersListResponse",
"type": "object",
@@ -1340,6 +1574,52 @@
}
}
},
"OrdersRejectReturnLineItemRequest": {
"id": "OrdersRejectReturnLineItemRequest",
"type": "object",
"properties": {
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"operationId": {
"type": "string",
"description": "The ID of the operation. Unique across all operations for a given order."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersRejectReturnLineItemResponse": {
"id": "OrdersRejectReturnLineItemResponse",
"type": "object",
"properties": {
"executionStatus": {
"type": "string",
"description": "The status of the execution."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersRejectReturnLineItemResponse\".",
"default": "content#ordersRejectReturnLineItemResponse"
}
}
},
"OrdersReturnLineItemRequest": {
"id": "OrdersReturnLineItemRequest",
"type": "object",
@@ -1386,6 +1666,99 @@
}
}
},
"OrdersReturnRefundLineItemRequest": {
"id": "OrdersReturnRefundLineItemRequest",
"type": "object",
"properties": {
"amountPretax": {
"$ref": "Price",
"description": "The amount that is refunded. Optional, but if filled then both amountPretax and amountTax must be set."
},
"amountTax": {
"$ref": "Price",
"description": "Tax amount that correspond to refund amount in amountPretax."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to return. Either lineItemId or productId is required."
},
"operationId": {
"type": "string",
"description": "The ID of the operation. Unique across all operations for a given order."
},
"productId": {
"type": "string",
"description": "The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"quantity": {
"type": "integer",
"description": "The quantity to return and refund.",
"format": "uint32"
},
"reason": {
"type": "string",
"description": "The reason for the return."
},
"reasonText": {
"type": "string",
"description": "The explanation of the reason."
}
}
},
"OrdersReturnRefundLineItemResponse": {
"id": "OrdersReturnRefundLineItemResponse",
"type": "object",
"properties": {
"executionStatus": {
"type": "string",
"description": "The status of the execution."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersReturnRefundLineItemResponse\".",
"default": "content#ordersReturnRefundLineItemResponse"
}
}
},
"OrdersSetLineItemMetadataRequest": {
"id": "OrdersSetLineItemMetadataRequest",
"type": "object",
"properties": {
"annotations": {
"type": "array",
"items": {
"$ref": "OrderMerchantProvidedAnnotation"
}
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to set metadata. Either lineItemId or productId is required."
},
"operationId": {
"type": "string",
"description": "The ID of the operation. Unique across all operations for a given order."
},
"productId": {
"type": "string",
"description": "The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required."
}
}
},
"OrdersSetLineItemMetadataResponse": {
"id": "OrdersSetLineItemMetadataResponse",
"type": "object",
"properties": {
"executionStatus": {
"type": "string",
"description": "The status of the execution."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersSetLineItemMetadataResponse\".",
"default": "content#ordersSetLineItemMetadataResponse"
}
}
},
"OrdersShipLineItemsRequest": {
"id": "OrdersShipLineItemsRequest",
"type": "object",
@@ -1437,6 +1810,47 @@
}
}
},
"OrdersUpdateLineItemShippingDetailsRequest": {
"id": "OrdersUpdateLineItemShippingDetailsRequest",
"type": "object",
"properties": {
"deliverByDate": {
"type": "string",
"description": "Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated."
},
"lineItemId": {
"type": "string",
"description": "The ID of the line item to set metadata. Either lineItemId or productId is required."
},
"operationId": {
"type": "string",
"description": "The ID of the operation. Unique across all operations for a given order."
},
"productId": {
"type": "string",
"description": "The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required."
},
"shipByDate": {
"type": "string",
"description": "Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated."
}
}
},
"OrdersUpdateLineItemShippingDetailsResponse": {
"id": "OrdersUpdateLineItemShippingDetailsResponse",
"type": "object",
"properties": {
"executionStatus": {
"type": "string",
"description": "The status of the execution."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersUpdateLineItemShippingDetailsResponse\".",
"default": "content#ordersUpdateLineItemShippingDetailsResponse"
}
}
},
"OrdersUpdateMerchantOrderIdRequest": {
"id": "OrdersUpdateMerchantOrderIdRequest",
"type": "object",
@@ -2092,6 +2506,40 @@
"https://www.googleapis.com/auth/content"
]
},
"instorerefundlineitem": {
"id": "content.orders.instorerefundlineitem",
"path": "{merchantId}/orders/{orderId}/inStoreRefundLineItem",
"httpMethod": "POST",
"description": "Notifies that item return and refund was handled directly in store.",
"parameters": {
"merchantId": {
"type": "string",
"description": "The ID of the account that manages the order. This cannot be a multi-client account.",
"required": true,
"format": "uint64",
"location": "path"
},
"orderId": {
"type": "string",
"description": "The ID of the order.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"merchantId",
"orderId"
],
"request": {
"$ref": "OrdersInStoreRefundLineItemRequest"
},
"response": {
"$ref": "OrdersInStoreRefundLineItemResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"list": {
"id": "content.orders.list",
"path": "{merchantId}/orders",
@@ -2221,6 +2669,40 @@
"https://www.googleapis.com/auth/content"
]
},
"rejectreturnlineitem": {
"id": "content.orders.rejectreturnlineitem",
"path": "{merchantId}/orders/{orderId}/rejectReturnLineItem",
"httpMethod": "POST",
"description": "Rejects return on an line item.",
"parameters": {
"merchantId": {
"type": "string",
"description": "The ID of the account that manages the order. This cannot be a multi-client account.",
"required": true,
"format": "uint64",
"location": "path"
},
"orderId": {
"type": "string",
"description": "The ID of the order.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"merchantId",
"orderId"
],
"request": {
"$ref": "OrdersRejectReturnLineItemRequest"
},
"response": {
"$ref": "OrdersRejectReturnLineItemResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"returnlineitem": {
"id": "content.orders.returnlineitem",
"path": "{merchantId}/orders/{orderId}/returnLineItem",
@@ -2255,6 +2737,74 @@
"https://www.googleapis.com/auth/content"
]
},
"returnrefundlineitem": {
"id": "content.orders.returnrefundlineitem",
"path": "{merchantId}/orders/{orderId}/returnRefundLineItem",
"httpMethod": "POST",
"description": "Returns and refunds a line item. Note that this method can only be called on fully shipped orders.",
"parameters": {
"merchantId": {
"type": "string",
"description": "The ID of the account that manages the order. This cannot be a multi-client account.",
"required": true,
"format": "uint64",
"location": "path"
},
"orderId": {
"type": "string",
"description": "The ID of the order.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"merchantId",
"orderId"
],
"request": {
"$ref": "OrdersReturnRefundLineItemRequest"
},
"response": {
"$ref": "OrdersReturnRefundLineItemResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"setlineitemmetadata": {
"id": "content.orders.setlineitemmetadata",
"path": "{merchantId}/orders/{orderId}/setLineItemMetadata",
"httpMethod": "POST",
"description": "Sets (overrides) merchant provided annotations on the line item.",
"parameters": {
"merchantId": {
"type": "string",
"description": "The ID of the account that manages the order. This cannot be a multi-client account.",
"required": true,
"format": "uint64",
"location": "path"
},
"orderId": {
"type": "string",
"description": "The ID of the order.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"merchantId",
"orderId"
],
"request": {
"$ref": "OrdersSetLineItemMetadataRequest"
},
"response": {
"$ref": "OrdersSetLineItemMetadataResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"shiplineitems": {
"id": "content.orders.shiplineitems",
"path": "{merchantId}/orders/{orderId}/shipLineItems",
@@ -2289,6 +2839,40 @@
"https://www.googleapis.com/auth/content"
]
},
"updatelineitemshippingdetails": {
"id": "content.orders.updatelineitemshippingdetails",
"path": "{merchantId}/orders/{orderId}/updateLineItemShippingDetails",
"httpMethod": "POST",
"description": "Updates ship by and delivery by dates for a line item.",
"parameters": {
"merchantId": {
"type": "string",
"description": "The ID of the account that manages the order. This cannot be a multi-client account.",
"required": true,
"format": "uint64",
"location": "path"
},
"orderId": {
"type": "string",
"description": "The ID of the order.",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"merchantId",
"orderId"
],
"request": {
"$ref": "OrdersUpdateLineItemShippingDetailsRequest"
},
"response": {
"$ref": "OrdersUpdateLineItemShippingDetailsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"updatemerchantorderid": {
"id": "content.orders.updatemerchantorderid",
"path": "{merchantId}/orders/{orderId}/updateMerchantOrderId",
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+10 -7
View File
@@ -3928,6 +3928,9 @@ type ResourceUtilizationReportResponse struct {
// RuntimeEnvironment: The environment values to set at runtime.
type RuntimeEnvironment struct {
// AdditionalExperiments: Additional experiment flags for the job.
AdditionalExperiments []string `json:"additionalExperiments,omitempty"`
// BypassTempDirValidation: Whether to bypass the safety checks for the
// job's temporary directory.
// Use with caution.
@@ -3959,18 +3962,18 @@ type RuntimeEnvironment struct {
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BypassTempDirValidation") 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
// "AdditionalExperiments") 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. "BypassTempDirValidation")
// 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
// NullFields is a list of field names (e.g. "AdditionalExperiments") 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.
+1094 -1086
View File
File diff suppressed because it is too large. Load diff
+59 -42
View File
@@ -183,7 +183,7 @@ type Cluster struct {
// project must be unique. Names of deleted clusters can be reused.
ClusterName string `json:"clusterName,omitempty"`
// ClusterUuid: Output-only. A cluster UUID (Unique Universal
// ClusterUuid: Output only. A cluster UUID (Unique Universal
// Identifier). Cloud Dataproc generates this value when it creates the
// cluster.
ClusterUuid string `json:"clusterUuid,omitempty"`
@@ -209,10 +209,10 @@ type Cluster struct {
// cluster belongs to.
ProjectId string `json:"projectId,omitempty"`
// Status: Output-only. Cluster status.
// Status: Output only. Cluster status.
Status *ClusterStatus `json:"status,omitempty"`
// StatusHistory: Output-only. The previous cluster status.
// StatusHistory: Output only. The previous cluster status.
StatusHistory []*ClusterStatus `json:"statusHistory,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -347,28 +347,28 @@ func (s *ClusterMetrics) MarshalJSON() ([]byte, error) {
// ClusterOperationMetadata: Metadata describing the operation.
type ClusterOperationMetadata struct {
// ClusterName: Output-only. Name of the cluster for the operation.
// ClusterName: Output only. Name of the cluster for the operation.
ClusterName string `json:"clusterName,omitempty"`
// ClusterUuid: Output-only. Cluster UUID for the operation.
// ClusterUuid: Output only. Cluster UUID for the operation.
ClusterUuid string `json:"clusterUuid,omitempty"`
// Description: Output-only. Short description of operation.
// Description: Output only. Short description of operation.
Description string `json:"description,omitempty"`
// Labels: Output-only. Labels associated with the operation
// Labels: Output only. Labels associated with the operation
Labels map[string]string `json:"labels,omitempty"`
// OperationType: Output-only. The operation type.
// OperationType: Output only. The operation type.
OperationType string `json:"operationType,omitempty"`
// Status: Output-only. Current operation status.
// Status: Output only. Current operation status.
Status *ClusterOperationStatus `json:"status,omitempty"`
// StatusHistory: Output-only. The previous operation status.
// StatusHistory: Output only. The previous operation status.
StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"`
// Warnings: Output-only. Errors encountered during operation execution.
// Warnings: Output only. Errors encountered during operation execution.
Warnings []string `json:"warnings,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterName") to
@@ -396,15 +396,15 @@ func (s *ClusterOperationMetadata) MarshalJSON() ([]byte, error) {
// ClusterOperationStatus: The status of the operation.
type ClusterOperationStatus struct {
// Details: Output-only.A message containing any operation metadata
// Details: Output only. A message containing any operation metadata
// details.
Details string `json:"details,omitempty"`
// InnerState: Output-only. A message containing the detailed operation
// InnerState: Output only. A message containing the detailed operation
// state.
InnerState string `json:"innerState,omitempty"`
// State: Output-only. A message containing the operation state.
// State: Output only. A message containing the operation state.
//
// Possible values:
// "UNKNOWN" - Unused.
@@ -413,7 +413,7 @@ type ClusterOperationStatus struct {
// "DONE" - The operation is done; either cancelled or completed.
State string `json:"state,omitempty"`
// StateStartTime: Output-only. The time this state was entered.
// StateStartTime: Output only. The time this state was entered.
StateStartTime string `json:"stateStartTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "Details") to
@@ -441,10 +441,10 @@ func (s *ClusterOperationStatus) MarshalJSON() ([]byte, error) {
// ClusterStatus: The status of a cluster and its instances.
type ClusterStatus struct {
// Detail: Output-only. Optional details of cluster's state.
// Detail: Output only. Optional details of cluster's state.
Detail string `json:"detail,omitempty"`
// State: Output-only. The cluster's state.
// State: Output only. The cluster's state.
//
// Possible values:
// "UNKNOWN" - The cluster state is unknown.
@@ -459,14 +459,14 @@ type ClusterStatus struct {
// and process jobs.
State string `json:"state,omitempty"`
// StateStartTime: Output-only. Time when this state was entered.
// StateStartTime: Output only. Time when this state was entered.
StateStartTime string `json:"stateStartTime,omitempty"`
// Substate: Output-only. Additional state information that includes
// Substate: Output only. Additional state information that includes
// status reported by the agent.
//
// Possible values:
// "UNSPECIFIED"
// "UNSPECIFIED" - The cluster substate is unknown.
// "UNHEALTHY" - The cluster is known to be in an unhealthy state (for
// example, critical daemons are not running or HDFS capacity is
// exhausted).Applies to RUNNING state.
@@ -505,7 +505,7 @@ type DiagnoseClusterRequest struct {
// DiagnoseClusterResults: The location of diagnostic output.
type DiagnoseClusterResults struct {
// OutputUri: Output-only. The Google Cloud Storage URI of the
// OutputUri: Output only. The Google Cloud Storage URI of the
// diagnostic output. The output report is a plain text file with a
// summary of collected diagnostics.
OutputUri string `json:"outputUri,omitempty"`
@@ -838,7 +838,7 @@ type InstanceGroupConfig struct {
// DiskConfig: Optional. Disk option config settings.
DiskConfig *DiskConfig `json:"diskConfig,omitempty"`
// ImageUri: Output-only. The Google Compute Engine image resource used
// ImageUri: Output only. The Google Compute Engine image resource used
// for cluster instances. Inferred from SoftwareConfig.image_version.
ImageUri string `json:"imageUri,omitempty"`
@@ -863,7 +863,7 @@ type InstanceGroupConfig struct {
// n1-standard-2
MachineTypeUri string `json:"machineTypeUri,omitempty"`
// ManagedGroupConfig: Output-only. The config for Google Compute Engine
// ManagedGroupConfig: Output only. The config for Google Compute Engine
// Instance Group Manager that manages this group. This is only used for
// preemptible instance groups.
ManagedGroupConfig *ManagedGroupConfig `json:"managedGroupConfig,omitempty"`
@@ -897,13 +897,13 @@ func (s *InstanceGroupConfig) MarshalJSON() ([]byte, error) {
// Job: A Cloud Dataproc job resource.
type Job struct {
// DriverControlFilesUri: Output-only. If present, the location of
// DriverControlFilesUri: Output only. If present, the location of
// miscellaneous control files which may be used as part of job setup
// and handling. If not present, control files may be placed in the same
// location as driver_output_uri.
DriverControlFilesUri string `json:"driverControlFilesUri,omitempty"`
// DriverOutputResourceUri: Output-only. A URI pointing to the location
// DriverOutputResourceUri: Output only. A URI pointing to the location
// of the stdout of the job's driver program.
DriverOutputResourceUri string `json:"driverOutputResourceUri,omitempty"`
@@ -946,15 +946,15 @@ type Job struct {
// SparkSqlJob: Job is a SparkSql job.
SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"`
// Status: Output-only. The job status. Additional application-specific
// Status: Output only. The job status. Additional application-specific
// status information may be contained in the <code>type_job</code> and
// <code>yarn_applications</code> fields.
Status *JobStatus `json:"status,omitempty"`
// StatusHistory: Output-only. The previous job status.
// StatusHistory: Output only. The previous job status.
StatusHistory []*JobStatus `json:"statusHistory,omitempty"`
// YarnApplications: Output-only. The collection of YARN applications
// YarnApplications: Output only. The collection of YARN applications
// spun up by this job.Beta Feature: This report is available for
// testing purposes only. It may be changed before final release.
YarnApplications []*YarnApplication `json:"yarnApplications,omitempty"`
@@ -994,7 +994,7 @@ type JobPlacement struct {
// submitted.
ClusterName string `json:"clusterName,omitempty"`
// ClusterUuid: Output-only. A cluster UUID generated by the Cloud
// ClusterUuid: Output only. A cluster UUID generated by the Cloud
// Dataproc service when the job is submitted.
ClusterUuid string `json:"clusterUuid,omitempty"`
@@ -1058,9 +1058,7 @@ func (s *JobReference) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// JobScheduling: Job scheduling options.Beta Feature: These options are
// available for testing purposes only. They may be changed before final
// release.
// JobScheduling: Job scheduling options.
type JobScheduling struct {
// MaxFailuresPerHour: Optional. Maximum number of times per hour a
// driver may be restarted as a result of driver terminating with
@@ -1095,11 +1093,11 @@ func (s *JobScheduling) MarshalJSON() ([]byte, error) {
// JobStatus: Cloud Dataproc job status.
type JobStatus struct {
// Details: Output-only. Optional job state details, such as an error
// Details: Output only. Optional job state details, such as an error
// description if the state is <code>ERROR</code>.
Details string `json:"details,omitempty"`
// State: Output-only. A state message specifying the overall job state.
// State: Output only. A state message specifying the overall job state.
//
// Possible values:
// "STATE_UNSPECIFIED" - The job state is unknown.
@@ -1121,14 +1119,14 @@ type JobStatus struct {
// only.
State string `json:"state,omitempty"`
// StateStartTime: Output-only. The time when this state was entered.
// StateStartTime: Output only. The time when this state was entered.
StateStartTime string `json:"stateStartTime,omitempty"`
// Substate: Output-only. Additional state information, which includes
// Substate: Output only. Additional state information, which includes
// status reported by the agent.
//
// Possible values:
// "UNSPECIFIED"
// "UNSPECIFIED" - The job substate is unknown.
// "SUBMITTED" - The Job is submitted to the agent.Applies to RUNNING
// state.
// "QUEUED" - The Job has been received and is awaiting execution (it
@@ -1165,10 +1163,10 @@ func (s *JobStatus) MarshalJSON() ([]byte, error) {
// ListClustersResponse: The list of all clusters in a project.
type ListClustersResponse struct {
// Clusters: Output-only. The clusters in the project.
// Clusters: Output only. The clusters in the project.
Clusters []*Cluster `json:"clusters,omitempty"`
// NextPageToken: Output-only. This token is included in the response if
// NextPageToken: Output only. This token is included in the response if
// there are more results to fetch. To fetch additional results, provide
// this value as the page_token in a subsequent ListClustersRequest.
NextPageToken string `json:"nextPageToken,omitempty"`
@@ -1202,7 +1200,7 @@ func (s *ListClustersResponse) MarshalJSON() ([]byte, error) {
// ListJobsResponse: A list of jobs in a project.
type ListJobsResponse struct {
// Jobs: Output-only. Jobs list.
// Jobs: Output only. Jobs list.
Jobs []*Job `json:"jobs,omitempty"`
// NextPageToken: Optional. This token is included in the response if
@@ -1309,11 +1307,11 @@ func (s *LoggingConfig) MarshalJSON() ([]byte, error) {
// ManagedGroupConfig: Specifies the resources used to actively manage
// an instance group.
type ManagedGroupConfig struct {
// InstanceGroupManagerName: Output-only. The name of the Instance Group
// InstanceGroupManagerName: Output only. The name of the Instance Group
// Manager for this group.
InstanceGroupManagerName string `json:"instanceGroupManagerName,omitempty"`
// InstanceTemplateName: Output-only. The name of the Instance Template
// InstanceTemplateName: Output only. The name of the Instance Template
// used for the Managed Instance Group.
InstanceTemplateName string `json:"instanceTemplateName,omitempty"`
@@ -2776,6 +2774,19 @@ func (r *ProjectsRegionsClustersService) Patch(projectId string, region string,
return c
}
// GracefulDecommissionTimeout sets the optional parameter
// "gracefulDecommissionTimeout": Timeout for graceful YARN
// decomissioning. Graceful decommissioning allows removing nodes from
// the cluster without interrupting jobs in progress. Timeout specifies
// how long to wait for jobs in progress to finish before forcefully
// removing nodes (and potentially interrupting jobs). Default timeout
// is 0 (for forceful decommission), and the maximum allowed timeout is
// 1 day.Only supported on Dataproc image versions 1.2 and higher.
func (c *ProjectsRegionsClustersPatchCall) GracefulDecommissionTimeout(gracefulDecommissionTimeout string) *ProjectsRegionsClustersPatchCall {
c.urlParams_.Set("gracefulDecommissionTimeout", gracefulDecommissionTimeout)
return c
}
// UpdateMask sets the optional parameter "updateMask": Required.
// Specifies the path, relative to Cluster, of the field to update. For
// example, to change the number of workers in a cluster to 5, the
@@ -2919,6 +2930,12 @@ func (c *ProjectsRegionsClustersPatchCall) Do(opts ...googleapi.CallOption) (*Op
// "required": true,
// "type": "string"
// },
// "gracefulDecommissionTimeout": {
// "description": "Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day.Only supported on Dataproc image versions 1.2 and higher.",
// "format": "google-duration",
// "location": "query",
// "type": "string"
// },
// "projectId": {
// "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.",
// "location": "path",
File diff suppressed because it is too large. Load diff
+381 -45
View File
@@ -267,7 +267,7 @@ type Cluster struct {
// project must be unique. Names of deleted clusters can be reused.
ClusterName string `json:"clusterName,omitempty"`
// ClusterUuid: Output-only. A cluster UUID (Unique Universal
// ClusterUuid: Output only. A cluster UUID (Unique Universal
// Identifier). Cloud Dataproc generates this value when it creates the
// cluster.
ClusterUuid string `json:"clusterUuid,omitempty"`
@@ -293,10 +293,10 @@ type Cluster struct {
// cluster belongs to.
ProjectId string `json:"projectId,omitempty"`
// Status: Output-only. Cluster status.
// Status: Output only. Cluster status.
Status *ClusterStatus `json:"status,omitempty"`
// StatusHistory: Output-only. The previous cluster status.
// StatusHistory: Output only. The previous cluster status.
StatusHistory []*ClusterStatus `json:"statusHistory,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -432,6 +432,7 @@ func (s *ClusterMetrics) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ClusterOperation: The cluster operation triggered by a workflow.
type ClusterOperation struct {
// Done: Output only. Indicates the operation is done.
Done bool `json:"done,omitempty"`
@@ -467,28 +468,28 @@ func (s *ClusterOperation) MarshalJSON() ([]byte, error) {
// ClusterOperationMetadata: Metadata describing the operation.
type ClusterOperationMetadata struct {
// ClusterName: Output-only. Name of the cluster for the operation.
// ClusterName: Output only. Name of the cluster for the operation.
ClusterName string `json:"clusterName,omitempty"`
// ClusterUuid: Output-only. Cluster UUID for the operation.
// ClusterUuid: Output only. Cluster UUID for the operation.
ClusterUuid string `json:"clusterUuid,omitempty"`
// Description: Output-only. Short description of operation.
// Description: Output only. Short description of operation.
Description string `json:"description,omitempty"`
// Labels: Output-only. Labels associated with the operation
// Labels: Output only. Labels associated with the operation
Labels map[string]string `json:"labels,omitempty"`
// OperationType: Output-only. The operation type.
// OperationType: Output only. The operation type.
OperationType string `json:"operationType,omitempty"`
// Status: Output-only. Current operation status.
// Status: Output only. Current operation status.
Status *ClusterOperationStatus `json:"status,omitempty"`
// StatusHistory: Output-only. The previous operation status.
// StatusHistory: Output only. The previous operation status.
StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"`
// Warnings: Output-only. Errors encountered during operation execution.
// Warnings: Output only. Errors encountered during operation execution.
Warnings []string `json:"warnings,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterName") to
@@ -516,15 +517,15 @@ func (s *ClusterOperationMetadata) MarshalJSON() ([]byte, error) {
// ClusterOperationStatus: The status of the operation.
type ClusterOperationStatus struct {
// Details: Output-only.A message containing any operation metadata
// Details: Output only. A message containing any operation metadata
// details.
Details string `json:"details,omitempty"`
// InnerState: Output-only. A message containing the detailed operation
// InnerState: Output only. A message containing the detailed operation
// state.
InnerState string `json:"innerState,omitempty"`
// State: Output-only. A message containing the operation state.
// State: Output only. A message containing the operation state.
//
// Possible values:
// "UNKNOWN" - Unused.
@@ -533,7 +534,7 @@ type ClusterOperationStatus struct {
// "DONE" - The operation is done; either cancelled or completed.
State string `json:"state,omitempty"`
// StateStartTime: Output-only. The time this state was entered.
// StateStartTime: Output only. The time this state was entered.
StateStartTime string `json:"stateStartTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "Details") to
@@ -597,10 +598,10 @@ func (s *ClusterSelector) MarshalJSON() ([]byte, error) {
// ClusterStatus: The status of a cluster and its instances.
type ClusterStatus struct {
// Detail: Output-only. Optional details of cluster's state.
// Detail: Output only. Optional details of cluster's state.
Detail string `json:"detail,omitempty"`
// State: Output-only. The cluster's state.
// State: Output only. The cluster's state.
//
// Possible values:
// "UNKNOWN" - The cluster state is unknown.
@@ -615,14 +616,14 @@ type ClusterStatus struct {
// and process jobs.
State string `json:"state,omitempty"`
// StateStartTime: Output-only. Time when this state was entered.
// StateStartTime: Output only. Time when this state was entered.
StateStartTime string `json:"stateStartTime,omitempty"`
// Substate: Output-only. Additional state information that includes
// Substate: Output only. Additional state information that includes
// status reported by the agent.
//
// Possible values:
// "UNSPECIFIED"
// "UNSPECIFIED" - The cluster substate is unknown.
// "UNHEALTHY" - The cluster is known to be in an unhealthy state (for
// example, critical daemons are not running or HDFS capacity is
// exhausted).Applies to RUNNING state.
@@ -661,7 +662,7 @@ type DiagnoseClusterRequest struct {
// DiagnoseClusterResults: The location of diagnostic output.
type DiagnoseClusterResults struct {
// OutputUri: Output-only. The Google Cloud Storage URI of the
// OutputUri: Output only. The Google Cloud Storage URI of the
// diagnostic output. The output report is a plain text file with a
// summary of collected diagnostics.
OutputUri string `json:"outputUri,omitempty"`
@@ -696,6 +697,10 @@ type DiskConfig struct {
// 500GB).
BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"`
// BootDiskType: Optional. Type of the boot disk (default is
// 'pd-standard'). Valid values: 'pd-ssd', 'pd-standard'
BootDiskType string `json:"bootDiskType,omitempty"`
// NumLocalSsds: Optional. Number of attached SSDs, from 0 to 4 (default
// is 0). If SSDs are not attached, the boot disk is used to store
// runtime logs and HDFS
@@ -994,7 +999,7 @@ type InstanceGroupConfig struct {
// DiskConfig: Optional. Disk option config settings.
DiskConfig *DiskConfig `json:"diskConfig,omitempty"`
// ImageUri: Output-only. The Google Compute Engine image resource used
// ImageUri: Output only. The Google Compute Engine image resource used
// for cluster instances. Inferred from SoftwareConfig.image_version.
ImageUri string `json:"imageUri,omitempty"`
@@ -1019,11 +1024,15 @@ type InstanceGroupConfig struct {
// n1-standard-2
MachineTypeUri string `json:"machineTypeUri,omitempty"`
// ManagedGroupConfig: Output-only. The config for Google Compute Engine
// ManagedGroupConfig: Output only. The config for Google Compute Engine
// Instance Group Manager that manages this group. This is only used for
// preemptible instance groups.
ManagedGroupConfig *ManagedGroupConfig `json:"managedGroupConfig,omitempty"`
// MinCpuPlatform: Optional. Specifies the minimum cpu platform for the
// Instance Group. See Cloud Dataproc&rarr;Minimum CPU Platform.
MinCpuPlatform string `json:"minCpuPlatform,omitempty"`
// NumInstances: Optional. The number of VM instances in the instance
// group. For master instance groups, must be set to 1.
NumInstances int64 `json:"numInstances,omitempty"`
@@ -1095,13 +1104,13 @@ func (s *InstantiateWorkflowTemplateRequest) MarshalJSON() ([]byte, error) {
// Job: A Cloud Dataproc job resource.
type Job struct {
// DriverControlFilesUri: Output-only. If present, the location of
// DriverControlFilesUri: Output only. If present, the location of
// miscellaneous control files which may be used as part of job setup
// and handling. If not present, control files may be placed in the same
// location as driver_output_uri.
DriverControlFilesUri string `json:"driverControlFilesUri,omitempty"`
// DriverOutputResourceUri: Output-only. A URI pointing to the location
// DriverOutputResourceUri: Output only. A URI pointing to the location
// of the stdout of the job's driver program.
DriverOutputResourceUri string `json:"driverOutputResourceUri,omitempty"`
@@ -1144,15 +1153,15 @@ type Job struct {
// SparkSqlJob: Job is a SparkSql job.
SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"`
// Status: Output-only. The job status. Additional application-specific
// Status: Output only. The job status. Additional application-specific
// status information may be contained in the <code>type_job</code> and
// <code>yarn_applications</code> fields.
Status *JobStatus `json:"status,omitempty"`
// StatusHistory: Output-only. The previous job status.
// StatusHistory: Output only. The previous job status.
StatusHistory []*JobStatus `json:"statusHistory,omitempty"`
// YarnApplications: Output-only. The collection of YARN applications
// YarnApplications: Output only. The collection of YARN applications
// spun up by this job.Beta Feature: This report is available for
// testing purposes only. It may be changed before final release.
YarnApplications []*YarnApplication `json:"yarnApplications,omitempty"`
@@ -1192,7 +1201,7 @@ type JobPlacement struct {
// submitted.
ClusterName string `json:"clusterName,omitempty"`
// ClusterUuid: Output-only. A cluster UUID generated by the Cloud
// ClusterUuid: Output only. A cluster UUID generated by the Cloud
// Dataproc service when the job is submitted.
ClusterUuid string `json:"clusterUuid,omitempty"`
@@ -1256,9 +1265,7 @@ func (s *JobReference) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// JobScheduling: Job scheduling options.Beta Feature: These options are
// available for testing purposes only. They may be changed before final
// release.
// JobScheduling: Job scheduling options.
type JobScheduling struct {
// MaxFailuresPerHour: Optional. Maximum number of times per hour a
// driver may be restarted as a result of driver terminating with
@@ -1293,11 +1300,11 @@ func (s *JobScheduling) MarshalJSON() ([]byte, error) {
// JobStatus: Cloud Dataproc job status.
type JobStatus struct {
// Details: Output-only. Optional job state details, such as an error
// Details: Output only. Optional job state details, such as an error
// description if the state is <code>ERROR</code>.
Details string `json:"details,omitempty"`
// State: Output-only. A state message specifying the overall job state.
// State: Output only. A state message specifying the overall job state.
//
// Possible values:
// "STATE_UNSPECIFIED" - The job state is unknown.
@@ -1319,14 +1326,14 @@ type JobStatus struct {
// only.
State string `json:"state,omitempty"`
// StateStartTime: Output-only. The time when this state was entered.
// StateStartTime: Output only. The time when this state was entered.
StateStartTime string `json:"stateStartTime,omitempty"`
// Substate: Output-only. Additional state information, which includes
// Substate: Output only. Additional state information, which includes
// status reported by the agent.
//
// Possible values:
// "UNSPECIFIED"
// "UNSPECIFIED" - The job substate is unknown.
// "SUBMITTED" - The Job is submitted to the agent.Applies to RUNNING
// state.
// "QUEUED" - The Job has been received and is awaiting execution (it
@@ -1402,10 +1409,10 @@ func (s *LifecycleConfig) MarshalJSON() ([]byte, error) {
// ListClustersResponse: The list of all clusters in a project.
type ListClustersResponse struct {
// Clusters: Output-only. The clusters in the project.
// Clusters: Output only. The clusters in the project.
Clusters []*Cluster `json:"clusters,omitempty"`
// NextPageToken: Output-only. This token is included in the response if
// NextPageToken: Output only. This token is included in the response if
// there are more results to fetch. To fetch additional results, provide
// this value as the page_token in a subsequent
// <code>ListClustersRequest</code>.
@@ -1440,7 +1447,7 @@ func (s *ListClustersResponse) MarshalJSON() ([]byte, error) {
// ListJobsResponse: A list of jobs in a project.
type ListJobsResponse struct {
// Jobs: Output-only. Jobs list.
// Jobs: Output only. Jobs list.
Jobs []*Job `json:"jobs,omitempty"`
// NextPageToken: Optional. This token is included in the response if
@@ -1626,11 +1633,11 @@ func (s *ManagedCluster) MarshalJSON() ([]byte, error) {
// ManagedGroupConfig: Specifies the resources used to actively manage
// an instance group.
type ManagedGroupConfig struct {
// InstanceGroupManagerName: Output-only. The name of the Instance Group
// InstanceGroupManagerName: Output only. The name of the Instance Group
// Manager for this group.
InstanceGroupManagerName string `json:"instanceGroupManagerName,omitempty"`
// InstanceTemplateName: Output-only. The name of the Instance Template
// InstanceTemplateName: Output only. The name of the Instance Template
// used for the Managed Instance Group.
InstanceTemplateName string `json:"instanceTemplateName,omitempty"`
@@ -1758,6 +1765,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// OrderedJob: A job executed by the workflow.
type OrderedJob struct {
// HadoopJob: Job is a Hadoop job.
HadoopJob *HadoopJob `json:"hadoopJob,omitempty"`
@@ -1904,7 +1912,7 @@ func (s *PigJob) MarshalJSON() ([]byte, error) {
// ]
// }
// For a description of IAM and its features, see the IAM developer's
// guide (https://cloud.google.com/iam).
// guide (https://cloud.google.com/iam/docs).
type Policy struct {
// Bindings: Associates a list of members to a role. bindings with no
// members will result in an error.
@@ -1921,7 +1929,7 @@ type Policy struct {
// to setIamPolicy, then the existing policy is overwritten blindly.
Etag string `json:"etag,omitempty"`
// Version: Version of the Policy. The default version is 0.
// Version: Deprecated.
Version int64 `json:"version,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -2509,7 +2517,7 @@ type WorkflowNode struct {
// State: Output only. The node state.
//
// Possible values:
// "NODE_STATUS_UNSPECIFIED"
// "NODE_STATUS_UNSPECIFIED" - State is unspecified.
// "BLOCKED" - The node is awaiting prerequisite node to finish.
// "RUNNABLE" - The node is runnable but not running.
// "RUNNING" - The node is running.
@@ -3292,6 +3300,170 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi
}
// method id "dataproc.projects.locations.workflowTemplates.instantiateInline":
type ProjectsLocationsWorkflowTemplatesInstantiateInlineCall struct {
s *Service
parent string
workflowtemplate *WorkflowTemplate
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// InstantiateInline: Instantiates a template and begins execution.This
// method is equivalent to executing the sequence
// CreateWorkflowTemplate, InstantiateWorkflowTemplate,
// DeleteWorkflowTemplate.The returned Operation can be used to track
// execution of workflow by polling
// google.cloud.dataproc.v1beta2.OperationService.GetOperation. The
// Operation will complete when entire workflow is finished.The running
// workflow can be aborted via
// google.cloud.dataproc.v1beta2.OperationService.CancelOperation.The
// google.cloud.dataproc.v1beta2.Operation.metadata will always be
// google.cloud.dataproc.v1beta2.WorkflowMetadata.The
// google.cloud.dataproc.v1beta2.Operation.result will always be
// google.protobuf.Empty.
func (r *ProjectsLocationsWorkflowTemplatesService) InstantiateInline(parent string, workflowtemplate *WorkflowTemplate) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall {
c := &ProjectsLocationsWorkflowTemplatesInstantiateInlineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
c.workflowtemplate = workflowtemplate
return c
}
// InstanceId sets the optional parameter "instanceId": A tag that
// prevents multiple concurrent workflow instances with the same tag
// from running. This mitigates risk of concurrent instances started due
// to retries.It is recommended to always set this value to a UUID
// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag
// must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
// and hyphens (-). The maximum length is 40 characters.
func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) InstanceId(instanceId string) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall {
c.urlParams_.Set("instanceId", instanceId)
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 *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall {
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 *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall {
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 *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) 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.workflowtemplate)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/workflowTemplates:instantiateInline")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "dataproc.projects.locations.workflowTemplates.instantiateInline" 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 *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling google.cloud.dataproc.v1beta2.OperationService.GetOperation. The Operation will complete when entire workflow is finished.The running workflow can be aborted via google.cloud.dataproc.v1beta2.OperationService.CancelOperation.The google.cloud.dataproc.v1beta2.Operation.metadata will always be google.cloud.dataproc.v1beta2.WorkflowMetadata.The google.cloud.dataproc.v1beta2.Operation.result will always be google.protobuf.Empty.",
// "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/workflowTemplates:instantiateInline",
// "httpMethod": "POST",
// "id": "dataproc.projects.locations.workflowTemplates.instantiateInline",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "instanceId": {
// "description": "Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.",
// "location": "query",
// "type": "string"
// },
// "parent": {
// "description": "Required. The \"resource name\" of the workflow template region, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1beta2/{+parent}/workflowTemplates:instantiateInline",
// "request": {
// "$ref": "WorkflowTemplate"
// },
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "dataproc.projects.locations.workflowTemplates.list":
type ProjectsLocationsWorkflowTemplatesListCall struct {
@@ -7280,6 +7452,170 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi.C
}
// method id "dataproc.projects.regions.workflowTemplates.instantiateInline":
type ProjectsRegionsWorkflowTemplatesInstantiateInlineCall struct {
s *Service
parent string
workflowtemplate *WorkflowTemplate
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// InstantiateInline: Instantiates a template and begins execution.This
// method is equivalent to executing the sequence
// CreateWorkflowTemplate, InstantiateWorkflowTemplate,
// DeleteWorkflowTemplate.The returned Operation can be used to track
// execution of workflow by polling
// google.cloud.dataproc.v1beta2.OperationService.GetOperation. The
// Operation will complete when entire workflow is finished.The running
// workflow can be aborted via
// google.cloud.dataproc.v1beta2.OperationService.CancelOperation.The
// google.cloud.dataproc.v1beta2.Operation.metadata will always be
// google.cloud.dataproc.v1beta2.WorkflowMetadata.The
// google.cloud.dataproc.v1beta2.Operation.result will always be
// google.protobuf.Empty.
func (r *ProjectsRegionsWorkflowTemplatesService) InstantiateInline(parent string, workflowtemplate *WorkflowTemplate) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall {
c := &ProjectsRegionsWorkflowTemplatesInstantiateInlineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
c.workflowtemplate = workflowtemplate
return c
}
// InstanceId sets the optional parameter "instanceId": A tag that
// prevents multiple concurrent workflow instances with the same tag
// from running. This mitigates risk of concurrent instances started due
// to retries.It is recommended to always set this value to a UUID
// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag
// must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
// and hyphens (-). The maximum length is 40 characters.
func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) InstanceId(instanceId string) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall {
c.urlParams_.Set("instanceId", instanceId)
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 *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall {
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 *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall {
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 *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) 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.workflowtemplate)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/workflowTemplates:instantiateInline")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "dataproc.projects.regions.workflowTemplates.instantiateInline" 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 *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling google.cloud.dataproc.v1beta2.OperationService.GetOperation. The Operation will complete when entire workflow is finished.The running workflow can be aborted via google.cloud.dataproc.v1beta2.OperationService.CancelOperation.The google.cloud.dataproc.v1beta2.Operation.metadata will always be google.cloud.dataproc.v1beta2.WorkflowMetadata.The google.cloud.dataproc.v1beta2.Operation.result will always be google.protobuf.Empty.",
// "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/workflowTemplates:instantiateInline",
// "httpMethod": "POST",
// "id": "dataproc.projects.regions.workflowTemplates.instantiateInline",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "instanceId": {
// "description": "Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.",
// "location": "query",
// "type": "string"
// },
// "parent": {
// "description": "Required. The \"resource name\" of the workflow template region, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}",
// "location": "path",
// "pattern": "^projects/[^/]+/regions/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1beta2/{+parent}/workflowTemplates:instantiateInline",
// "request": {
// "$ref": "WorkflowTemplate"
// },
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "dataproc.projects.regions.workflowTemplates.list":
type ProjectsRegionsWorkflowTemplatesListCall struct {
File diff suppressed because it is too large. Load diff
+297 -297
View File
@@ -1,48 +1,48 @@
{
"batchPath": "batch",
"revision": "20171107",
"documentationLink": "https://cloud.google.com/datastore/",
"id": "datastore:v1beta1",
"revision": "20180109",
"title": "Google Cloud Datastore API",
"discoveryVersion": "v1",
"ownerName": "Google",
"discoveryVersion": "v1",
"version_module": true,
"resources": {
"projects": {
"methods": {
"export": {
"description": "Exports a copy of all or a subset of entities from Google Cloud Datastore\nto another storage system, such as Google Cloud Storage. Recent updates to\nentities may not be reflected in the export. The export occurs in the\nbackground and its progress can be monitored and managed via the\nOperation resource that is created. The output of an export may only be\nused once the associated operation is done. If an export operation is\ncancelled before completion it may leave partial data behind in Google\nCloud Storage.",
"httpMethod": "POST",
"parameterOrder": [
"projectId"
],
"response": {
"$ref": "GoogleLongrunningOperation"
},
"parameters": {
"projectId": {
"description": "Project ID against which to make the request.",
"required": true,
"type": "string",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"
],
"flatPath": "v1beta1/projects/{projectId}:export",
"id": "datastore.projects.export",
"path": "v1beta1/projects/{projectId}:export",
"request": {
"$ref": "GoogleDatastoreAdminV1beta1ExportEntitiesRequest"
},
"response": {
"$ref": "GoogleLongrunningOperation"
},
"parameterOrder": [
"projectId"
],
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"
],
"parameters": {
"projectId": {
"location": "path",
"description": "Project ID against which to make the request.",
"required": true,
"type": "string"
}
},
"flatPath": "v1beta1/projects/{projectId}:export",
"path": "v1beta1/projects/{projectId}:export",
"id": "datastore.projects.export"
"description": "Exports a copy of all or a subset of entities from Google Cloud Datastore\nto another storage system, such as Google Cloud Storage. Recent updates to\nentities may not be reflected in the export. The export occurs in the\nbackground and its progress can be monitored and managed via the\nOperation resource that is created. The output of an export may only be\nused once the associated operation is done. If an export operation is\ncancelled before completion it may leave partial data behind in Google\nCloud Storage."
},
"import": {
"description": "Imports entities into Google Cloud Datastore. Existing entities with the\nsame key are overwritten. The import occurs in the background and its\nprogress can be monitored and managed via the Operation resource that is\ncreated. If an ImportEntities operation is cancelled, it is possible\nthat a subset of the data has already been imported to Cloud Datastore.",
"request": {
"$ref": "GoogleDatastoreAdminV1beta1ImportEntitiesRequest"
},
"description": "Imports entities into Google Cloud Datastore. Existing entities with the\nsame key are overwritten. The import occurs in the background and its\nprogress can be monitored and managed via the Operation resource that is\ncreated. If an ImportEntities operation is cancelled, it is possible\nthat a subset of the data has already been imported to Cloud Datastore.",
"response": {
"$ref": "GoogleLongrunningOperation"
},
@@ -50,18 +50,18 @@
"projectId"
],
"httpMethod": "POST",
"parameters": {
"projectId": {
"description": "Project ID against which to make the request.",
"required": true,
"type": "string",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"
],
"parameters": {
"projectId": {
"required": true,
"type": "string",
"location": "path",
"description": "Project ID against which to make the request."
}
},
"flatPath": "v1beta1/projects/{projectId}:import",
"path": "v1beta1/projects/{projectId}:import",
"id": "datastore.projects.import"
@@ -70,29 +70,22 @@
}
},
"parameters": {
"upload_protocol": {
"fields": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"prettyPrint": {
"type": "boolean",
"default": "true",
"location": "query",
"description": "Returns response with indentations and line breaks."
},
"fields": {
"type": "string",
"location": "query",
"description": "Selector specifying which fields to include in a partial response."
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
"location": "query"
},
"callback": {
"description": "JSONP",
"type": "string",
"location": "query"
},
"$.xgafv": {
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
@@ -102,14 +95,11 @@
"1",
"2"
],
"description": "V1 error format."
},
"callback": {
"location": "query",
"description": "JSONP",
"description": "V1 error format.",
"type": "string"
},
"alt": {
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
@@ -122,8 +112,7 @@
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response."
"location": "query"
},
"access_token": {
"location": "query",
@@ -131,53 +120,258 @@
"type": "string"
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
"type": "string",
"location": "query"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
"type": "string",
"location": "query"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"type": "boolean",
"default": "true",
"location": "query",
"description": "Pretty-print response."
},
"oauth_token": {
"type": "string",
"location": "query",
"description": "OAuth 2.0 token for the current user."
"default": "true"
},
"bearer_token": {
"type": "string",
"location": "query",
"description": "OAuth bearer token."
"description": "OAuth bearer token.",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
},
"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.",
"type": "boolean",
"default": "true"
}
},
"schemas": {
"GoogleDatastoreAdminV1beta1EntityFilter": {
"GoogleDatastoreAdminV1beta1CommonMetadata": {
"description": "Metadata common to all Datastore Admin operations.",
"type": "object",
"properties": {
"kinds": {
"type": "array",
"items": {
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "If empty, then this represents all kinds."
"description": "The client-assigned labels which were provided when the operation was\ncreated. May also include additional labels.",
"type": "object"
},
"namespaceIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "An empty list represents all namespaces. This is the preferred\nusage for projects that don't use namespaces.\n\nAn empty string element represents the default namespace. This should be\nused if the project has data in non-default namespaces, but doesn't want to\ninclude them.\nEach namespace in this list must be unique."
"endTime": {
"description": "The time the operation ended, either successfully or otherwise.",
"format": "google-datetime",
"type": "string"
},
"operationType": {
"enumDescriptions": [
"Unspecified.",
"ExportEntities.",
"ImportEntities."
],
"enum": [
"OPERATION_TYPE_UNSPECIFIED",
"EXPORT_ENTITIES",
"IMPORT_ENTITIES"
],
"description": "The type of the operation. Can be used as a filter in\nListOperationsRequest.",
"type": "string"
},
"state": {
"description": "The current state of the Operation.",
"type": "string",
"enumDescriptions": [
"Unspecified.",
"Request is being prepared for processing.",
"Request is actively being processed.",
"Request is in the process of being cancelled after user called\ngoogle.longrunning.Operations.CancelOperation on the operation.",
"Request has been processed and is in its finalization stage.",
"Request has completed successfully.",
"Request has finished being processed, but encountered an error.",
"Request has finished being cancelled after user called\ngoogle.longrunning.Operations.CancelOperation."
],
"enum": [
"STATE_UNSPECIFIED",
"INITIALIZING",
"PROCESSING",
"CANCELLING",
"FINALIZING",
"SUCCESSFUL",
"FAILED",
"CANCELLED"
]
},
"startTime": {
"description": "The time that work began on the operation.",
"format": "google-datetime",
"type": "string"
}
},
"id": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Identifies a subset of entities in a project. This is specified as\ncombinations of kinds and namespaces (either or both of which may be all, as\ndescribed in the following examples).\nExample usage:\n\nEntire project:\n kinds=[], namespace_ids=[]\n\nKinds Foo and Bar in all namespaces:\n kinds=['Foo', 'Bar'], namespace_ids=[]\n\nKinds Foo and Bar only in the default namespace:\n kinds=['Foo', 'Bar'], namespace_ids=['']\n\nKinds Foo and Bar in both the default and Baz namespaces:\n kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']\n\nThe entire Baz namespace:\n kinds=[], namespace_ids=['Baz']"
"id": "GoogleDatastoreAdminV1beta1CommonMetadata"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object",
"properties": {
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
},
"details": {
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
}
}
},
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32",
"type": "integer"
}
},
"id": "Status"
},
"GoogleDatastoreAdminV1beta1ExportEntitiesMetadata": {
"description": "Metadata for ExportEntities operations.",
"type": "object",
"properties": {
"common": {
"description": "Metadata common to all Datastore Admin operations.",
"$ref": "GoogleDatastoreAdminV1beta1CommonMetadata"
},
"progressBytes": {
"$ref": "GoogleDatastoreAdminV1beta1Progress",
"description": "An estimate of the number of bytes processed."
},
"entityFilter": {
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Description of which entities are being exported."
},
"outputUrlPrefix": {
"description": "Location for the export metadata and data files. This will be the same\nvalue as the\ngoogle.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix\nfield. The final output location is provided in\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.",
"type": "string"
},
"progressEntities": {
"$ref": "GoogleDatastoreAdminV1beta1Progress",
"description": "An estimate of the number of entities processed."
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesMetadata"
},
"GoogleDatastoreAdminV1beta1ExportEntitiesRequest": {
"description": "The request for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.",
"type": "object",
"properties": {
"entityFilter": {
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Description of what data from the project is included in the export."
},
"outputUrlPrefix": {
"description": "Location for the export metadata and data files.\n\nThe full resource URL of the external storage location. Currently, only\nGoogle Cloud Storage is supported. So output_url_prefix should be of the\nform: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the\nname of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud\nStorage namespace path (this is not a Cloud Datastore namespace). For more\ninformation about Cloud Storage namespace paths, see\n[Object name\nconsiderations](https://cloud.google.com/storage/docs/naming#object-considerations).\n\nThe resulting files will be nested deeper than the specified URL prefix.\nThe final output URL will be provided in the\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url\nfield. That value should be used for subsequent ImportEntities operations.\n\nBy nesting the data files deeper, the same Cloud Storage bucket can be used\nin multiple ExportEntities operations without conflict.",
"type": "string"
},
"labels": {
"description": "Client-assigned labels.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesRequest"
},
"GoogleDatastoreAdminV1beta1ExportEntitiesResponse": {
"description": "The response for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.",
"type": "object",
"properties": {
"outputUrl": {
"description": "Location of the output metadata file. This can be used to begin an import\ninto Cloud Datastore (this project or another project). See\ngoogle.datastore.admin.v1beta1.ImportEntitiesRequest.input_url.\nOnly present if the operation completed successfully.",
"type": "string"
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesResponse"
},
"GoogleDatastoreAdminV1beta1ImportEntitiesRequest": {
"properties": {
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Client-assigned labels.",
"type": "object"
},
"inputUrl": {
"description": "The full resource URL of the external storage location. Currently, only\nGoogle Cloud Storage is supported. So input_url should be of the form:\n`gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where\n`BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is\nan optional Cloud Storage namespace path (this is not a Cloud Datastore\nnamespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written\nby the ExportEntities operation. For more information about Cloud Storage\nnamespace paths, see\n[Object name\nconsiderations](https://cloud.google.com/storage/docs/naming#object-considerations).\n\nFor more information, see\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.",
"type": "string"
},
"entityFilter": {
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Optionally specify which kinds/namespaces are to be imported. If provided,\nthe list must be a subset of the EntityFilter used in creating the export,\notherwise a FAILED_PRECONDITION error will be returned. If no filter is\nspecified then all entities from the export are imported."
}
},
"id": "GoogleDatastoreAdminV1beta1ImportEntitiesRequest",
"description": "The request for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities.",
"type": "object"
},
"GoogleDatastoreAdminV1beta1ImportEntitiesMetadata": {
"properties": {
"progressBytes": {
"description": "An estimate of the number of bytes processed.",
"$ref": "GoogleDatastoreAdminV1beta1Progress"
},
"inputUrl": {
"description": "The location of the import metadata file. This will be the same value as\nthe google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url\nfield.",
"type": "string"
},
"entityFilter": {
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Description of which entities are being imported."
},
"progressEntities": {
"$ref": "GoogleDatastoreAdminV1beta1Progress",
"description": "An estimate of the number of entities processed."
},
"common": {
"$ref": "GoogleDatastoreAdminV1beta1CommonMetadata",
"description": "Metadata common to all Datastore Admin operations."
}
},
"id": "GoogleDatastoreAdminV1beta1ImportEntitiesMetadata",
"description": "Metadata for ImportEntities operations.",
"type": "object"
},
"GoogleDatastoreAdminV1beta1Progress": {
"description": "Measures the progress of a particular metric.",
"type": "object",
"properties": {
"workEstimated": {
"description": "An estimate of how much work needs to be performed. May be zero if the\nwork estimate is unavailable.",
"format": "int64",
"type": "string"
},
"workCompleted": {
"description": "The amount of work that has been completed. Note that this may be greater\nthan work_estimated.",
"format": "int64",
"type": "string"
}
},
"id": "GoogleDatastoreAdminV1beta1Progress"
},
"GoogleLongrunningOperation": {
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
@@ -196,245 +390,51 @@
"type": "string"
},
"error": {
"$ref": "Status",
"description": "The error result of the operation in case of failure or cancellation."
"description": "The error result of the operation in case of failure or cancellation.",
"$ref": "Status"
},
"metadata": {
"additionalProperties": {
"type": "any",
"description": "Properties of the object. Contains field @type with type URL."
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
"type": "object"
},
"done": {
"type": "boolean",
"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."
"description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable.",
"type": "boolean"
}
},
"id": "GoogleLongrunningOperation"
},
"GoogleDatastoreAdminV1beta1CommonMetadata": {
"type": "object",
"GoogleDatastoreAdminV1beta1EntityFilter": {
"properties": {
"endTime": {
"description": "The time the operation ended, either successfully or otherwise.",
"format": "google-datetime",
"type": "string"
},
"operationType": {
"enum": [
"OPERATION_TYPE_UNSPECIFIED",
"EXPORT_ENTITIES",
"IMPORT_ENTITIES"
],
"description": "The type of the operation. Can be used as a filter in\nListOperationsRequest.",
"type": "string",
"enumDescriptions": [
"Unspecified.",
"ExportEntities.",
"ImportEntities."
]
},
"state": {
"enum": [
"STATE_UNSPECIFIED",
"INITIALIZING",
"PROCESSING",
"CANCELLING",
"FINALIZING",
"SUCCESSFUL",
"FAILED",
"CANCELLED"
],
"description": "The current state of the Operation.",
"type": "string",
"enumDescriptions": [
"Unspecified.",
"Request is being prepared for processing.",
"Request is actively being processed.",
"Request is in the process of being cancelled after user called\ngoogle.longrunning.Operations.CancelOperation on the operation.",
"Request has been processed and is in its finalization stage.",
"Request has completed successfully.",
"Request has finished being processed, but encountered an error.",
"Request has finished being cancelled after user called\ngoogle.longrunning.Operations.CancelOperation."
]
},
"startTime": {
"type": "string",
"description": "The time that work began on the operation.",
"format": "google-datetime"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "The client-assigned labels which were provided when the operation was\ncreated. May also include additional labels."
}
},
"id": "GoogleDatastoreAdminV1beta1CommonMetadata",
"description": "Metadata common to all Datastore Admin operations."
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object",
"properties": {
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32",
"type": "integer"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
},
"details": {
"kinds": {
"description": "If empty, then this represents all kinds.",
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "any",
"description": "Properties of the object. Contains field @type with type URL."
}
},
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use."
}
},
"id": "Status"
},
"GoogleDatastoreAdminV1beta1ExportEntitiesRequest": {
"description": "The request for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.",
"type": "object",
"properties": {
"entityFilter": {
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Description of what data from the project is included in the export."
},
"outputUrlPrefix": {
"description": "Location for the export metadata and data files.\n\nThe full resource URL of the external storage location. Currently, only\nGoogle Cloud Storage is supported. So output_url_prefix should be of the\nform: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the\nname of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud\nStorage namespace path (this is not a Cloud Datastore namespace). For more\ninformation about Cloud Storage namespace paths, see\n[Object name\nconsiderations](https://cloud.google.com/storage/docs/naming#object-considerations).\n\nThe resulting files will be nested deeper than the specified URL prefix.\nThe final output URL will be provided in the\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url\nfield. That value should be used for subsequent ImportEntities operations.\n\nBy nesting the data files deeper, the same Cloud Storage bucket can be used\nin multiple ExportEntities operations without conflict.",
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Client-assigned labels."
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesRequest"
},
"GoogleDatastoreAdminV1beta1ExportEntitiesMetadata": {
"type": "object",
"properties": {
"common": {
"$ref": "GoogleDatastoreAdminV1beta1CommonMetadata",
"description": "Metadata common to all Datastore Admin operations."
}
},
"progressBytes": {
"$ref": "GoogleDatastoreAdminV1beta1Progress",
"description": "An estimate of the number of bytes processed."
},
"entityFilter": {
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Description of which entities are being exported."
},
"outputUrlPrefix": {
"type": "string",
"description": "Location for the export metadata and data files. This will be the same\nvalue as the\ngoogle.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix\nfield. The final output location is provided in\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url."
},
"progressEntities": {
"$ref": "GoogleDatastoreAdminV1beta1Progress",
"description": "An estimate of the number of entities processed."
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesMetadata",
"description": "Metadata for ExportEntities operations."
},
"GoogleDatastoreAdminV1beta1ExportEntitiesResponse": {
"description": "The response for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.",
"type": "object",
"properties": {
"outputUrl": {
"type": "string",
"description": "Location of the output metadata file. This can be used to begin an import\ninto Cloud Datastore (this project or another project). See\ngoogle.datastore.admin.v1beta1.ImportEntitiesRequest.input_url.\nOnly present if the operation completed successfully."
}
},
"id": "GoogleDatastoreAdminV1beta1ExportEntitiesResponse"
},
"GoogleDatastoreAdminV1beta1ImportEntitiesRequest": {
"description": "The request for\ngoogle.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities.",
"type": "object",
"properties": {
"inputUrl": {
"description": "The full resource URL of the external storage location. Currently, only\nGoogle Cloud Storage is supported. So input_url should be of the form:\n`gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where\n`BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is\nan optional Cloud Storage namespace path (this is not a Cloud Datastore\nnamespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written\nby the ExportEntities operation. For more information about Cloud Storage\nnamespace paths, see\n[Object name\nconsiderations](https://cloud.google.com/storage/docs/naming#object-considerations).\n\nFor more information, see\ngoogle.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.",
"type": "string"
},
"entityFilter": {
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Optionally specify which kinds/namespaces are to be imported. If provided,\nthe list must be a subset of the EntityFilter used in creating the export,\notherwise a FAILED_PRECONDITION error will be returned. If no filter is\nspecified then all entities from the export are imported."
},
"labels": {
"type": "object",
"additionalProperties": {
"namespaceIds": {
"description": "An empty list represents all namespaces. This is the preferred\nusage for projects that don't use namespaces.\n\nAn empty string element represents the default namespace. This should be\nused if the project has data in non-default namespaces, but doesn't want to\ninclude them.\nEach namespace in this list must be unique.",
"type": "array",
"items": {
"type": "string"
},
"description": "Client-assigned labels."
}
}
},
"id": "GoogleDatastoreAdminV1beta1ImportEntitiesRequest"
},
"GoogleDatastoreAdminV1beta1ImportEntitiesMetadata": {
"description": "Metadata for ImportEntities operations.",
"type": "object",
"properties": {
"entityFilter": {
"$ref": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Description of which entities are being imported."
},
"progressEntities": {
"$ref": "GoogleDatastoreAdminV1beta1Progress",
"description": "An estimate of the number of entities processed."
},
"common": {
"$ref": "GoogleDatastoreAdminV1beta1CommonMetadata",
"description": "Metadata common to all Datastore Admin operations."
},
"progressBytes": {
"$ref": "GoogleDatastoreAdminV1beta1Progress",
"description": "An estimate of the number of bytes processed."
},
"inputUrl": {
"type": "string",
"description": "The location of the import metadata file. This will be the same value as\nthe google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url\nfield."
}
},
"id": "GoogleDatastoreAdminV1beta1ImportEntitiesMetadata"
},
"GoogleDatastoreAdminV1beta1Progress": {
"type": "object",
"properties": {
"workEstimated": {
"description": "An estimate of how much work needs to be performed. May be zero if the\nwork estimate is unavailable.",
"format": "int64",
"type": "string"
},
"workCompleted": {
"description": "The amount of work that has been completed. Note that this may be greater\nthan work_estimated.",
"format": "int64",
"type": "string"
}
},
"id": "GoogleDatastoreAdminV1beta1Progress",
"description": "Measures the progress of a particular metric."
"id": "GoogleDatastoreAdminV1beta1EntityFilter",
"description": "Identifies a subset of entities in a project. This is specified as\ncombinations of kinds and namespaces (either or both of which may be all, as\ndescribed in the following examples).\nExample usage:\n\nEntire project:\n kinds=[], namespace_ids=[]\n\nKinds Foo and Bar in all namespaces:\n kinds=['Foo', 'Bar'], namespace_ids=[]\n\nKinds Foo and Bar only in the default namespace:\n kinds=['Foo', 'Bar'], namespace_ids=['']\n\nKinds Foo and Bar in both the default and Baz namespaces:\n kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']\n\nThe entire Baz namespace:\n kinds=[], namespace_ids=['Baz']",
"type": "object"
}
},
"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"
},
"protocol": "rest",
"version": "v1beta1",
"baseUrl": "https://datastore.googleapis.com/",
"auth": {
File diff suppressed because it is too large. Load diff
Loaded 100 of 3435 files, more files were not shown because too many files have changed in this diff. Show more