From 8d66391179d88a910a5637129c0f520fbcabe93e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 27 Oct 2023 00:22:13 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2238) --- cloudbilling/v1/cloudbilling-api.json | 245 +++- cloudbilling/v1/cloudbilling-gen.go | 1161 ++++++++++++++++- container/v1/container-api.json | 41 +- container/v1/container-gen.go | 62 + displayvideo/v1/displayvideo-api.json | 23 +- displayvideo/v1/displayvideo-gen.go | 12 + displayvideo/v2/displayvideo-api.json | 23 +- displayvideo/v2/displayvideo-gen.go | 12 + displayvideo/v3/displayvideo-api.json | 27 +- displayvideo/v3/displayvideo-gen.go | 15 +- file/v1/file-api.json | 14 +- file/v1/file-gen.go | 4 + file/v1beta1/file-api.json | 14 +- file/v1beta1/file-gen.go | 4 + monitoring/v3/monitoring-api.json | 6 +- monitoring/v3/monitoring-gen.go | 9 +- places/v1/places-api.json | 14 +- places/v1/places-gen.go | 21 +- run/v2/run-api.json | 18 +- run/v2/run-gen.go | 35 + testing/v1/testing-api.json | 9 +- testing/v1/testing-gen.go | 6 +- .../v1/websecurityscanner-api.json | 8 +- .../v1/websecurityscanner-gen.go | 2 + .../v1alpha/websecurityscanner-api.json | 22 +- .../v1alpha/websecurityscanner-gen.go | 18 + .../v1beta/websecurityscanner-api.json | 8 +- .../v1beta/websecurityscanner-gen.go | 2 + 28 files changed, 1747 insertions(+), 88 deletions(-) diff --git a/cloudbilling/v1/cloudbilling-api.json b/cloudbilling/v1/cloudbilling-api.json index 72d48764b3a..c53a387f87c 100644 --- a/cloudbilling/v1/cloudbilling-api.json +++ b/cloudbilling/v1/cloudbilling-api.json @@ -119,7 +119,13 @@ "httpMethod": "POST", "id": "cloudbilling.billingAccounts.create", "parameterOrder": [], - "parameters": {}, + "parameters": { + "parent": { + "description": "Optional. The parent to create a billing account from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + "location": "query", + "type": "string" + } + }, "path": "v1/billingAccounts", "request": { "$ref": "BillingAccount" @@ -214,6 +220,11 @@ "description": "A token identifying a page of results to return. This should be a `next_page_token` value returned from a previous `ListBillingAccounts` call. If unspecified, the first page of results is returned.", "location": "query", "type": "string" + }, + "parent": { + "description": "Optional. The parent resource to list billing accounts from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + "location": "query", + "type": "string" } }, "path": "v1/billingAccounts", @@ -226,6 +237,35 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "move": { + "description": "Changes which parent organization a billing account belongs to.", + "flatPath": "v1/billingAccounts/{billingAccountsId}:move", + "httpMethod": "POST", + "id": "cloudbilling.billingAccounts.move", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the billing account to move. Must be of the form `billingAccounts/{billing_account_id}`. The specified billing account cannot be a subaccount, since a subaccount always belongs to the same organization as its parent account.", + "location": "path", + "pattern": "^billingAccounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:move", + "request": { + "$ref": "MoveBillingAccountRequest" + }, + "response": { + "$ref": "BillingAccount" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-billing", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates a billing account's fields. Currently the only field that can be edited is `display_name`. The current authenticated user must have the `billing.accounts.update` IAM permission, which is typically given to the [administrator](https://cloud.google.com/billing/docs/how-to/billing-access) of the billing account.", "flatPath": "v1/billingAccounts/{billingAccountsId}", @@ -363,6 +403,196 @@ ] } } + }, + "subAccounts": { + "methods": { + "create": { + "description": "This method creates [billing subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). Google Cloud resellers should use the Channel Services APIs, [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the parent account, which is typically given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will return an error if the parent account has not been provisioned for subaccounts.", + "flatPath": "v1/billingAccounts/{billingAccountsId}/subAccounts", + "httpMethod": "POST", + "id": "cloudbilling.billingAccounts.subAccounts.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Optional. The parent to create a billing account from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + "location": "path", + "pattern": "^billingAccounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/subAccounts", + "request": { + "$ref": "BillingAccount" + }, + "response": { + "$ref": "BillingAccount" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-billing", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the billing accounts that the current authenticated user has permission to [view](https://cloud.google.com/billing/docs/how-to/billing-access).", + "flatPath": "v1/billingAccounts/{billingAccountsId}/subAccounts", + "httpMethod": "GET", + "id": "cloudbilling.billingAccounts.subAccounts.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Options for how to filter the returned billing accounts. This only supports filtering for [subaccounts](https://cloud.google.com/billing/docs/concepts) under a single provided parent billing account. (e.g. \"master_billing_account=billingAccounts/012345-678901-ABCDEF\"). Boolean algebra and other fields are not currently supported.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Requested page size. The maximum page size is 100; this is also the default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A token identifying a page of results to return. This should be a `next_page_token` value returned from a previous `ListBillingAccounts` call. If unspecified, the first page of results is returned.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Optional. The parent resource to list billing accounts from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + "location": "path", + "pattern": "^billingAccounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/subAccounts", + "response": { + "$ref": "ListBillingAccountsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-billing", + "https://www.googleapis.com/auth/cloud-billing.readonly", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "organizations": { + "resources": { + "billingAccounts": { + "methods": { + "create": { + "description": "This method creates [billing subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). Google Cloud resellers should use the Channel Services APIs, [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the parent account, which is typically given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will return an error if the parent account has not been provisioned for subaccounts.", + "flatPath": "v1/organizations/{organizationsId}/billingAccounts", + "httpMethod": "POST", + "id": "cloudbilling.organizations.billingAccounts.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Optional. The parent to create a billing account from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/billingAccounts", + "request": { + "$ref": "BillingAccount" + }, + "response": { + "$ref": "BillingAccount" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-billing", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the billing accounts that the current authenticated user has permission to [view](https://cloud.google.com/billing/docs/how-to/billing-access).", + "flatPath": "v1/organizations/{organizationsId}/billingAccounts", + "httpMethod": "GET", + "id": "cloudbilling.organizations.billingAccounts.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Options for how to filter the returned billing accounts. This only supports filtering for [subaccounts](https://cloud.google.com/billing/docs/concepts) under a single provided parent billing account. (e.g. \"master_billing_account=billingAccounts/012345-678901-ABCDEF\"). Boolean algebra and other fields are not currently supported.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Requested page size. The maximum page size is 100; this is also the default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A token identifying a page of results to return. This should be a `next_page_token` value returned from a previous `ListBillingAccounts` call. If unspecified, the first page of results is returned.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Optional. The parent resource to list billing accounts from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/billingAccounts", + "response": { + "$ref": "ListBillingAccountsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-billing", + "https://www.googleapis.com/auth/cloud-billing.readonly", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "move": { + "description": "Changes which parent organization a billing account belongs to.", + "flatPath": "v1/organizations/{organizationsId}/billingAccounts/{billingAccountsId}:move", + "httpMethod": "GET", + "id": "cloudbilling.organizations.billingAccounts.move", + "parameterOrder": [ + "destinationParent", + "name" + ], + "parameters": { + "destinationParent": { + "description": "Required. The resource name of the Organization to reparent the billing account under. Must be of the form `organizations/{organization_id}`.", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + }, + "name": { + "description": "Required. The resource name of the billing account to move. Must be of the form `billingAccounts/{billing_account_id}`. The specified billing account cannot be a subaccount, since a subaccount always belongs to the same organization as its parent account.", + "location": "path", + "pattern": "^billingAccounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+destinationParent}/{+name}:move", + "response": { + "$ref": "BillingAccount" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-billing", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } }, @@ -521,7 +751,7 @@ } } }, - "revision": "20230811", + "revision": "20231025", "rootUrl": "https://cloudbilling.googleapis.com/", "schemas": { "AggregationInfo": { @@ -826,6 +1056,17 @@ }, "type": "object" }, + "MoveBillingAccountRequest": { + "description": "Request message for `MoveBillingAccount` RPC.", + "id": "MoveBillingAccountRequest", + "properties": { + "destinationParent": { + "description": "Required. The resource name of the Organization to reparent the billing account under. Must be of the form `organizations/{organization_id}`.", + "type": "string" + } + }, + "type": "object" + }, "Policy": { "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", diff --git a/cloudbilling/v1/cloudbilling-gen.go b/cloudbilling/v1/cloudbilling-gen.go index 92a85f8d31a..b2e5b85f30f 100644 --- a/cloudbilling/v1/cloudbilling-gen.go +++ b/cloudbilling/v1/cloudbilling-gen.go @@ -146,6 +146,7 @@ func New(client *http.Client) (*APIService, error) { } s := &APIService{client: client, BasePath: basePath} s.BillingAccounts = NewBillingAccountsService(s) + s.Organizations = NewOrganizationsService(s) s.Projects = NewProjectsService(s) s.Services = NewServicesService(s) return s, nil @@ -158,6 +159,8 @@ type APIService struct { BillingAccounts *BillingAccountsService + Organizations *OrganizationsService + Projects *ProjectsService Services *ServicesService @@ -173,6 +176,7 @@ func (s *APIService) userAgent() string { func NewBillingAccountsService(s *APIService) *BillingAccountsService { rs := &BillingAccountsService{s: s} rs.Projects = NewBillingAccountsProjectsService(s) + rs.SubAccounts = NewBillingAccountsSubAccountsService(s) return rs } @@ -180,6 +184,8 @@ type BillingAccountsService struct { s *APIService Projects *BillingAccountsProjectsService + + SubAccounts *BillingAccountsSubAccountsService } func NewBillingAccountsProjectsService(s *APIService) *BillingAccountsProjectsService { @@ -191,6 +197,36 @@ type BillingAccountsProjectsService struct { s *APIService } +func NewBillingAccountsSubAccountsService(s *APIService) *BillingAccountsSubAccountsService { + rs := &BillingAccountsSubAccountsService{s: s} + return rs +} + +type BillingAccountsSubAccountsService struct { + s *APIService +} + +func NewOrganizationsService(s *APIService) *OrganizationsService { + rs := &OrganizationsService{s: s} + rs.BillingAccounts = NewOrganizationsBillingAccountsService(s) + return rs +} + +type OrganizationsService struct { + s *APIService + + BillingAccounts *OrganizationsBillingAccountsService +} + +func NewOrganizationsBillingAccountsService(s *APIService) *OrganizationsBillingAccountsService { + rs := &OrganizationsBillingAccountsService{s: s} + return rs +} + +type OrganizationsBillingAccountsService struct { + s *APIService +} + func NewProjectsService(s *APIService) *ProjectsService { rs := &ProjectsService{s: s} return rs @@ -833,6 +869,38 @@ func (s *Money) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MoveBillingAccountRequest: Request message for `MoveBillingAccount` +// RPC. +type MoveBillingAccountRequest struct { + // DestinationParent: Required. The resource name of the Organization to + // reparent the billing account under. Must be of the form + // `organizations/{organization_id}`. + DestinationParent string `json:"destinationParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty or default 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. "DestinationParent") 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 *MoveBillingAccountRequest) MarshalJSON() ([]byte, error) { + type NoMethod MoveBillingAccountRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Policy: An Identity and Access Management (IAM) policy, which // specifies access controls for Google Cloud resources. A `Policy` is a // collection of `bindings`. A `binding` binds one or more `members`, or @@ -1430,6 +1498,15 @@ func (r *BillingAccountsService) Create(billingaccount *BillingAccount) *Billing return c } +// Parent sets the optional parameter "parent": The parent to create a +// billing account from. Format: - organizations/{organization_id} eg +// organizations/12345678 - billingAccounts/{billing_account_id} eg +// `billingAccounts/012345-567890-ABCDEF` +func (c *BillingAccountsCreateCall) Parent(parent string) *BillingAccountsCreateCall { + c.urlParams_.Set("parent", parent) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -1523,7 +1600,13 @@ func (c *BillingAccountsCreateCall) Do(opts ...googleapi.CallOption) (*BillingAc // "httpMethod": "POST", // "id": "cloudbilling.billingAccounts.create", // "parameterOrder": [], - // "parameters": {}, + // "parameters": { + // "parent": { + // "description": "Optional. The parent to create a billing account from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + // "location": "query", + // "type": "string" + // } + // }, // "path": "v1/billingAccounts", // "request": { // "$ref": "BillingAccount" @@ -1914,6 +1997,15 @@ func (c *BillingAccountsListCall) PageToken(pageToken string) *BillingAccountsLi return c } +// Parent sets the optional parameter "parent": The parent resource to +// list billing accounts from. Format: - organizations/{organization_id} +// eg organizations/12345678 - billingAccounts/{billing_account_id} eg +// `billingAccounts/012345-567890-ABCDEF` +func (c *BillingAccountsListCall) Parent(parent string) *BillingAccountsListCall { + c.urlParams_.Set("parent", parent) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -2031,6 +2123,11 @@ func (c *BillingAccountsListCall) Do(opts ...googleapi.CallOption) (*ListBilling // "description": "A token identifying a page of results to return. This should be a `next_page_token` value returned from a previous `ListBillingAccounts` call. If unspecified, the first page of results is returned.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Optional. The parent resource to list billing accounts from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/billingAccounts", @@ -2067,6 +2164,152 @@ func (c *BillingAccountsListCall) Pages(ctx context.Context, f func(*ListBilling } } +// method id "cloudbilling.billingAccounts.move": + +type BillingAccountsMoveCall struct { + s *APIService + name string + movebillingaccountrequest *MoveBillingAccountRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Move: Changes which parent organization a billing account belongs to. +// +// - name: The resource name of the billing account to move. Must be of +// the form `billingAccounts/{billing_account_id}`. The specified +// billing account cannot be a subaccount, since a subaccount always +// belongs to the same organization as its parent account. +func (r *BillingAccountsService) Move(name string, movebillingaccountrequest *MoveBillingAccountRequest) *BillingAccountsMoveCall { + c := &BillingAccountsMoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.movebillingaccountrequest = movebillingaccountrequest + 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 *BillingAccountsMoveCall) Fields(s ...googleapi.Field) *BillingAccountsMoveCall { + 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 *BillingAccountsMoveCall) Context(ctx context.Context) *BillingAccountsMoveCall { + 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 *BillingAccountsMoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BillingAccountsMoveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.movebillingaccountrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:move") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + 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 "cloudbilling.billingAccounts.move" call. +// Exactly one of *BillingAccount or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *BillingAccount.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 *BillingAccountsMoveCall) Do(opts ...googleapi.CallOption) (*BillingAccount, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &BillingAccount{ + 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": "Changes which parent organization a billing account belongs to.", + // "flatPath": "v1/billingAccounts/{billingAccountsId}:move", + // "httpMethod": "POST", + // "id": "cloudbilling.billingAccounts.move", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the billing account to move. Must be of the form `billingAccounts/{billing_account_id}`. The specified billing account cannot be a subaccount, since a subaccount always belongs to the same organization as its parent account.", + // "location": "path", + // "pattern": "^billingAccounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:move", + // "request": { + // "$ref": "MoveBillingAccountRequest" + // }, + // "response": { + // "$ref": "BillingAccount" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-billing", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "cloudbilling.billingAccounts.patch": type BillingAccountsPatchCall struct { @@ -2731,6 +2974,922 @@ func (c *BillingAccountsProjectsListCall) Pages(ctx context.Context, f func(*Lis } } +// method id "cloudbilling.billingAccounts.subAccounts.create": + +type BillingAccountsSubAccountsCreateCall struct { + s *APIService + parent string + billingaccount *BillingAccount + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: This method creates billing subaccounts +// (https://cloud.google.com/billing/docs/concepts#subaccounts). Google +// Cloud resellers should use the Channel Services APIs, +// accounts.customers.create +// (https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) +// and accounts.customers.entitlements.create +// (https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). +// When creating a subaccount, the current authenticated user must have +// the `billing.accounts.update` IAM permission on the parent account, +// which is typically given to billing account administrators +// (https://cloud.google.com/billing/docs/how-to/billing-access). This +// method will return an error if the parent account has not been +// provisioned for subaccounts. +// +// - parent: Optional. The parent to create a billing account from. +// Format: - organizations/{organization_id} eg organizations/12345678 +// - billingAccounts/{billing_account_id} eg +// `billingAccounts/012345-567890-ABCDEF`. +func (r *BillingAccountsSubAccountsService) Create(parent string, billingaccount *BillingAccount) *BillingAccountsSubAccountsCreateCall { + c := &BillingAccountsSubAccountsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.billingaccount = billingaccount + 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 *BillingAccountsSubAccountsCreateCall) Fields(s ...googleapi.Field) *BillingAccountsSubAccountsCreateCall { + 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 *BillingAccountsSubAccountsCreateCall) Context(ctx context.Context) *BillingAccountsSubAccountsCreateCall { + 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 *BillingAccountsSubAccountsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BillingAccountsSubAccountsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.billingaccount) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subAccounts") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + 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 "cloudbilling.billingAccounts.subAccounts.create" call. +// Exactly one of *BillingAccount or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *BillingAccount.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 *BillingAccountsSubAccountsCreateCall) Do(opts ...googleapi.CallOption) (*BillingAccount, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &BillingAccount{ + 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": "This method creates [billing subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). Google Cloud resellers should use the Channel Services APIs, [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the parent account, which is typically given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will return an error if the parent account has not been provisioned for subaccounts.", + // "flatPath": "v1/billingAccounts/{billingAccountsId}/subAccounts", + // "httpMethod": "POST", + // "id": "cloudbilling.billingAccounts.subAccounts.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Optional. The parent to create a billing account from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + // "location": "path", + // "pattern": "^billingAccounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/subAccounts", + // "request": { + // "$ref": "BillingAccount" + // }, + // "response": { + // "$ref": "BillingAccount" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-billing", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "cloudbilling.billingAccounts.subAccounts.list": + +type BillingAccountsSubAccountsListCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the billing accounts that the current authenticated user +// has permission to view +// (https://cloud.google.com/billing/docs/how-to/billing-access). +// +// - parent: Optional. The parent resource to list billing accounts +// from. Format: - organizations/{organization_id} eg +// organizations/12345678 - billingAccounts/{billing_account_id} eg +// `billingAccounts/012345-567890-ABCDEF`. +func (r *BillingAccountsSubAccountsService) List(parent string) *BillingAccountsSubAccountsListCall { + c := &BillingAccountsSubAccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Options for how to +// filter the returned billing accounts. This only supports filtering +// for subaccounts (https://cloud.google.com/billing/docs/concepts) +// under a single provided parent billing account. (e.g. +// "master_billing_account=billingAccounts/012345-678901-ABCDEF"). +// Boolean algebra and other fields are not currently supported. +func (c *BillingAccountsSubAccountsListCall) Filter(filter string) *BillingAccountsSubAccountsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// The maximum page size is 100; this is also the default. +func (c *BillingAccountsSubAccountsListCall) PageSize(pageSize int64) *BillingAccountsSubAccountsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results to return. This should be a +// `next_page_token` value returned from a previous +// `ListBillingAccounts` call. If unspecified, the first page of results +// is returned. +func (c *BillingAccountsSubAccountsListCall) PageToken(pageToken string) *BillingAccountsSubAccountsListCall { + 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 *BillingAccountsSubAccountsListCall) Fields(s ...googleapi.Field) *BillingAccountsSubAccountsListCall { + 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 *BillingAccountsSubAccountsListCall) IfNoneMatch(entityTag string) *BillingAccountsSubAccountsListCall { + 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 *BillingAccountsSubAccountsListCall) Context(ctx context.Context) *BillingAccountsSubAccountsListCall { + 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 *BillingAccountsSubAccountsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BillingAccountsSubAccountsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subAccounts") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + 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 "cloudbilling.billingAccounts.subAccounts.list" call. +// Exactly one of *ListBillingAccountsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListBillingAccountsResponse.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 *BillingAccountsSubAccountsListCall) Do(opts ...googleapi.CallOption) (*ListBillingAccountsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &ListBillingAccountsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the billing accounts that the current authenticated user has permission to [view](https://cloud.google.com/billing/docs/how-to/billing-access).", + // "flatPath": "v1/billingAccounts/{billingAccountsId}/subAccounts", + // "httpMethod": "GET", + // "id": "cloudbilling.billingAccounts.subAccounts.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Options for how to filter the returned billing accounts. This only supports filtering for [subaccounts](https://cloud.google.com/billing/docs/concepts) under a single provided parent billing account. (e.g. \"master_billing_account=billingAccounts/012345-678901-ABCDEF\"). Boolean algebra and other fields are not currently supported.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Requested page size. The maximum page size is 100; this is also the default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results to return. This should be a `next_page_token` value returned from a previous `ListBillingAccounts` call. If unspecified, the first page of results is returned.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Optional. The parent resource to list billing accounts from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + // "location": "path", + // "pattern": "^billingAccounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/subAccounts", + // "response": { + // "$ref": "ListBillingAccountsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-billing", + // "https://www.googleapis.com/auth/cloud-billing.readonly", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *BillingAccountsSubAccountsListCall) Pages(ctx context.Context, f func(*ListBillingAccountsResponse) 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 "cloudbilling.organizations.billingAccounts.create": + +type OrganizationsBillingAccountsCreateCall struct { + s *APIService + parent string + billingaccount *BillingAccount + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: This method creates billing subaccounts +// (https://cloud.google.com/billing/docs/concepts#subaccounts). Google +// Cloud resellers should use the Channel Services APIs, +// accounts.customers.create +// (https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) +// and accounts.customers.entitlements.create +// (https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). +// When creating a subaccount, the current authenticated user must have +// the `billing.accounts.update` IAM permission on the parent account, +// which is typically given to billing account administrators +// (https://cloud.google.com/billing/docs/how-to/billing-access). This +// method will return an error if the parent account has not been +// provisioned for subaccounts. +// +// - parent: Optional. The parent to create a billing account from. +// Format: - organizations/{organization_id} eg organizations/12345678 +// - billingAccounts/{billing_account_id} eg +// `billingAccounts/012345-567890-ABCDEF`. +func (r *OrganizationsBillingAccountsService) Create(parent string, billingaccount *BillingAccount) *OrganizationsBillingAccountsCreateCall { + c := &OrganizationsBillingAccountsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.billingaccount = billingaccount + 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 *OrganizationsBillingAccountsCreateCall) Fields(s ...googleapi.Field) *OrganizationsBillingAccountsCreateCall { + 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 *OrganizationsBillingAccountsCreateCall) Context(ctx context.Context) *OrganizationsBillingAccountsCreateCall { + 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 *OrganizationsBillingAccountsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsBillingAccountsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.billingaccount) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/billingAccounts") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + 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 "cloudbilling.organizations.billingAccounts.create" call. +// Exactly one of *BillingAccount or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *BillingAccount.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 *OrganizationsBillingAccountsCreateCall) Do(opts ...googleapi.CallOption) (*BillingAccount, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &BillingAccount{ + 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": "This method creates [billing subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). Google Cloud resellers should use the Channel Services APIs, [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the parent account, which is typically given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will return an error if the parent account has not been provisioned for subaccounts.", + // "flatPath": "v1/organizations/{organizationsId}/billingAccounts", + // "httpMethod": "POST", + // "id": "cloudbilling.organizations.billingAccounts.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Optional. The parent to create a billing account from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/billingAccounts", + // "request": { + // "$ref": "BillingAccount" + // }, + // "response": { + // "$ref": "BillingAccount" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-billing", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "cloudbilling.organizations.billingAccounts.list": + +type OrganizationsBillingAccountsListCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the billing accounts that the current authenticated user +// has permission to view +// (https://cloud.google.com/billing/docs/how-to/billing-access). +// +// - parent: Optional. The parent resource to list billing accounts +// from. Format: - organizations/{organization_id} eg +// organizations/12345678 - billingAccounts/{billing_account_id} eg +// `billingAccounts/012345-567890-ABCDEF`. +func (r *OrganizationsBillingAccountsService) List(parent string) *OrganizationsBillingAccountsListCall { + c := &OrganizationsBillingAccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Options for how to +// filter the returned billing accounts. This only supports filtering +// for subaccounts (https://cloud.google.com/billing/docs/concepts) +// under a single provided parent billing account. (e.g. +// "master_billing_account=billingAccounts/012345-678901-ABCDEF"). +// Boolean algebra and other fields are not currently supported. +func (c *OrganizationsBillingAccountsListCall) Filter(filter string) *OrganizationsBillingAccountsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// The maximum page size is 100; this is also the default. +func (c *OrganizationsBillingAccountsListCall) PageSize(pageSize int64) *OrganizationsBillingAccountsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results to return. This should be a +// `next_page_token` value returned from a previous +// `ListBillingAccounts` call. If unspecified, the first page of results +// is returned. +func (c *OrganizationsBillingAccountsListCall) PageToken(pageToken string) *OrganizationsBillingAccountsListCall { + 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 *OrganizationsBillingAccountsListCall) Fields(s ...googleapi.Field) *OrganizationsBillingAccountsListCall { + 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 *OrganizationsBillingAccountsListCall) IfNoneMatch(entityTag string) *OrganizationsBillingAccountsListCall { + 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 *OrganizationsBillingAccountsListCall) Context(ctx context.Context) *OrganizationsBillingAccountsListCall { + 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 *OrganizationsBillingAccountsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsBillingAccountsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/billingAccounts") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + 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 "cloudbilling.organizations.billingAccounts.list" call. +// Exactly one of *ListBillingAccountsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListBillingAccountsResponse.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 *OrganizationsBillingAccountsListCall) Do(opts ...googleapi.CallOption) (*ListBillingAccountsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &ListBillingAccountsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the billing accounts that the current authenticated user has permission to [view](https://cloud.google.com/billing/docs/how-to/billing-access).", + // "flatPath": "v1/organizations/{organizationsId}/billingAccounts", + // "httpMethod": "GET", + // "id": "cloudbilling.organizations.billingAccounts.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Options for how to filter the returned billing accounts. This only supports filtering for [subaccounts](https://cloud.google.com/billing/docs/concepts) under a single provided parent billing account. (e.g. \"master_billing_account=billingAccounts/012345-678901-ABCDEF\"). Boolean algebra and other fields are not currently supported.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Requested page size. The maximum page size is 100; this is also the default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results to return. This should be a `next_page_token` value returned from a previous `ListBillingAccounts` call. If unspecified, the first page of results is returned.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Optional. The parent resource to list billing accounts from. Format: - organizations/{organization_id} eg organizations/12345678 - billingAccounts/{billing_account_id} eg `billingAccounts/012345-567890-ABCDEF`", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/billingAccounts", + // "response": { + // "$ref": "ListBillingAccountsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-billing", + // "https://www.googleapis.com/auth/cloud-billing.readonly", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsBillingAccountsListCall) Pages(ctx context.Context, f func(*ListBillingAccountsResponse) 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 "cloudbilling.organizations.billingAccounts.move": + +type OrganizationsBillingAccountsMoveCall struct { + s *APIService + destinationParent string + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Move: Changes which parent organization a billing account belongs to. +// +// - destinationParent: The resource name of the Organization to +// reparent the billing account under. Must be of the form +// `organizations/{organization_id}`. +// - name: The resource name of the billing account to move. Must be of +// the form `billingAccounts/{billing_account_id}`. The specified +// billing account cannot be a subaccount, since a subaccount always +// belongs to the same organization as its parent account. +func (r *OrganizationsBillingAccountsService) Move(destinationParent string, name string) *OrganizationsBillingAccountsMoveCall { + c := &OrganizationsBillingAccountsMoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.destinationParent = destinationParent + 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 *OrganizationsBillingAccountsMoveCall) Fields(s ...googleapi.Field) *OrganizationsBillingAccountsMoveCall { + 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 *OrganizationsBillingAccountsMoveCall) IfNoneMatch(entityTag string) *OrganizationsBillingAccountsMoveCall { + 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 *OrganizationsBillingAccountsMoveCall) Context(ctx context.Context) *OrganizationsBillingAccountsMoveCall { + 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 *OrganizationsBillingAccountsMoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsBillingAccountsMoveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+destinationParent}/{+name}:move") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "destinationParent": c.destinationParent, + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudbilling.organizations.billingAccounts.move" call. +// Exactly one of *BillingAccount or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *BillingAccount.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 *OrganizationsBillingAccountsMoveCall) Do(opts ...googleapi.CallOption) (*BillingAccount, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &BillingAccount{ + 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": "Changes which parent organization a billing account belongs to.", + // "flatPath": "v1/organizations/{organizationsId}/billingAccounts/{billingAccountsId}:move", + // "httpMethod": "GET", + // "id": "cloudbilling.organizations.billingAccounts.move", + // "parameterOrder": [ + // "destinationParent", + // "name" + // ], + // "parameters": { + // "destinationParent": { + // "description": "Required. The resource name of the Organization to reparent the billing account under. Must be of the form `organizations/{organization_id}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "name": { + // "description": "Required. The resource name of the billing account to move. Must be of the form `billingAccounts/{billing_account_id}`. The specified billing account cannot be a subaccount, since a subaccount always belongs to the same organization as its parent account.", + // "location": "path", + // "pattern": "^billingAccounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+destinationParent}/{+name}:move", + // "response": { + // "$ref": "BillingAccount" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-billing", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "cloudbilling.projects.getBillingInfo": type ProjectsGetBillingInfoCall struct { diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 53dfde6027a..30652ac5a1f 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2540,7 +2540,7 @@ } } }, - "revision": "20230919", + "revision": "20231012", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3605,6 +3605,10 @@ "$ref": "NetworkTags", "description": "The desired network tags that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters." }, + "desiredNodePoolAutoConfigResourceManagerTags": { + "$ref": "ResourceManagerTags", + "description": "The desired resource manager tags that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters." + }, "desiredNodePoolAutoscaling": { "$ref": "NodePoolAutoscaling", "description": "Autoscaler configuration for the node pool specified in desired_node_pool_id. If there is only one pool in the cluster and desired_node_pool_id is not provided then the change applies to that single node pool." @@ -4070,11 +4074,13 @@ "enum": [ "CHANNEL_UNSPECIFIED", "CHANNEL_DISABLED", + "CHANNEL_EXPERIMENTAL", "CHANNEL_STANDARD" ], "enumDescriptions": [ "Default value.", "Gateway API support is disabled", + "Gateway API support is enabled, experimental CRDs are installed", "Gateway API support is enabled, standard CRDs are installed" ], "type": "string" @@ -5186,6 +5192,10 @@ "description": "The resource labels for the node pool to use to annotate any related Google Compute Engine resources.", "type": "object" }, + "resourceManagerTags": { + "$ref": "ResourceManagerTags", + "description": "A map of resource manager tag keys and values to be attached to the nodes." + }, "sandboxConfig": { "$ref": "SandboxConfig", "description": "Sandbox configuration for this node." @@ -5483,6 +5493,10 @@ "networkTags": { "$ref": "NetworkTags", "description": "The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster creation. Each tag within the list must comply with RFC1035." + }, + "resourceManagerTags": { + "$ref": "ResourceManagerTags", + "description": "Resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies." } }, "type": "object" @@ -5674,7 +5688,8 @@ "SET_NODE_POOL_SIZE", "SET_NETWORK_POLICY", "SET_MAINTENANCE_POLICY", - "RESIZE_CLUSTER" + "RESIZE_CLUSTER", + "FLEET_FEATURE_UPGRADE" ], "enumDeprecated": [ false, @@ -5694,6 +5709,7 @@ false, true, true, + false, false ], "enumDescriptions": [ @@ -5714,7 +5730,8 @@ "The node pool is being resized. With the exception of resizing to or from size zero, the node pool is generally usable during this operation.", "Unused. Updating network policy uses UPDATE_CLUSTER.", "Unused. Updating maintenance policy uses UPDATE_CLUSTER.", - "The control plane is being resized. This operation type is initiated by GKE. These operations are often performed preemptively to ensure that the control plane has sufficient resources and is not typically an indication of issues. For more details, see [documentation on resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs)." + "The control plane is being resized. This operation type is initiated by GKE. These operations are often performed preemptively to ensure that the control plane has sufficient resources and is not typically an indication of issues. For more details, see [documentation on resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).", + "Fleet features of GKE Enterprise are being upgraded. The cluster should be assumed to be blocked for other upgrades until the operation finishes." ], "type": "string" }, @@ -6094,6 +6111,20 @@ }, "type": "object" }, + "ResourceManagerTags": { + "description": "A map of resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies. Tags must be according to specifications in https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications. A maximum of 5 tag key-value pairs can be specified. Existing tags will be replaced with new values.", + "id": "ResourceManagerTags", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` 2. `{org_id}/{tag_key_name}={tag_value_name}` 3. `{project_id}/{tag_key_name}={tag_value_name}`", + "type": "object" + } + }, + "type": "object" + }, "ResourceUsageExportConfig": { "description": "Configuration for exporting cluster resource usages.", "id": "ResourceUsageExportConfig", @@ -7093,6 +7124,10 @@ "$ref": "ResourceLabels", "description": "The resource labels for the node pool to use to annotate any related Google Compute Engine resources." }, + "resourceManagerTags": { + "$ref": "ResourceManagerTags", + "description": "Desired resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies. Existing tags will be replaced with new values." + }, "tags": { "$ref": "NetworkTags", "description": "The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be *replaced* with the provided tags." diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index ac47c66b452..fe589b6b999 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -1866,6 +1866,11 @@ type ClusterUpdate struct { // node auto-provisioning enabled clusters. DesiredNodePoolAutoConfigNetworkTags *NetworkTags `json:"desiredNodePoolAutoConfigNetworkTags,omitempty"` + // DesiredNodePoolAutoConfigResourceManagerTags: The desired resource + // manager tags that apply to all auto-provisioned node pools in + // autopilot clusters and node auto-provisioning enabled clusters. + DesiredNodePoolAutoConfigResourceManagerTags *ResourceManagerTags `json:"desiredNodePoolAutoConfigResourceManagerTags,omitempty"` + // DesiredNodePoolAutoscaling: Autoscaler configuration for the node // pool specified in desired_node_pool_id. If there is only one pool in // the cluster and desired_node_pool_id is not provided then the change @@ -2694,6 +2699,8 @@ type GatewayAPIConfig struct { // Possible values: // "CHANNEL_UNSPECIFIED" - Default value. // "CHANNEL_DISABLED" - Gateway API support is disabled + // "CHANNEL_EXPERIMENTAL" - Gateway API support is enabled, + // experimental CRDs are installed // "CHANNEL_STANDARD" - Gateway API support is enabled, standard CRDs // are installed Channel string `json:"channel,omitempty"` @@ -4702,6 +4709,10 @@ type NodeConfig struct { // annotate any related Google Compute Engine resources. ResourceLabels map[string]string `json:"resourceLabels,omitempty"` + // ResourceManagerTags: A map of resource manager tag keys and values to + // be attached to the nodes. + ResourceManagerTags *ResourceManagerTags `json:"resourceManagerTags,omitempty"` + // SandboxConfig: Sandbox configuration for this node. SandboxConfig *SandboxConfig `json:"sandboxConfig,omitempty"` @@ -5178,6 +5189,11 @@ type NodePoolAutoConfig struct { // the list must comply with RFC1035. NetworkTags *NetworkTags `json:"networkTags,omitempty"` + // ResourceManagerTags: Resource manager tag keys and values to be + // attached to the nodes for managing Compute Engine firewalls using + // Network Firewall Policies. + ResourceManagerTags *ResourceManagerTags `json:"resourceManagerTags,omitempty"` + // ForceSendFields is a list of field names (e.g. "NetworkTags") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -5541,6 +5557,9 @@ type Operation struct { // For more details, see [documentation on // resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/main // tenance-windows-and-exclusions#repairs). + // "FLEET_FEATURE_UPGRADE" - Fleet features of GKE Enterprise are + // being upgraded. The cluster should be assumed to be blocked for other + // upgrades until the operation finishes. OperationType string `json:"operationType,omitempty"` // Progress: Output only. [Output only] Progress information for an @@ -6209,6 +6228,43 @@ func (s *ResourceLimit) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ResourceManagerTags: A map of resource manager tag keys and values to +// be attached to the nodes for managing Compute Engine firewalls using +// Network Firewall Policies. Tags must be according to specifications +// in +// https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications. +// A maximum of 5 tag key-value pairs can be specified. Existing tags +// will be replaced with new values. +type ResourceManagerTags struct { + // Tags: TagKeyValue must be in one of the following formats + // ([KEY]=[VALUE]) 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` 2. + // `{org_id}/{tag_key_name}={tag_value_name}` 3. + // `{project_id}/{tag_key_name}={tag_value_name}` + Tags map[string]string `json:"tags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Tags") to + // unconditionally include in API requests. By default, fields with + // empty or default 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. "Tags") 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 *ResourceManagerTags) MarshalJSON() ([]byte, error) { + type NoMethod ResourceManagerTags + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ResourceUsageExportConfig: Configuration for exporting cluster // resource usages. type ResourceUsageExportConfig struct { @@ -7848,6 +7904,12 @@ type UpdateNodePoolRequest struct { // annotate any related Google Compute Engine resources. ResourceLabels *ResourceLabels `json:"resourceLabels,omitempty"` + // ResourceManagerTags: Desired resource manager tag keys and values to + // be attached to the nodes for managing Compute Engine firewalls using + // Network Firewall Policies. Existing tags will be replaced with new + // values. + ResourceManagerTags *ResourceManagerTags `json:"resourceManagerTags,omitempty"` + // Tags: The desired network tags to be applied to all nodes in the node // pool. If this field is not present, the tags will not be changed. // Otherwise, the existing network tags will be *replaced* with the diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index c558560f54b..c691b8812e1 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -8146,7 +8146,7 @@ } } }, - "revision": "20231009", + "revision": "20231026", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -10885,7 +10885,8 @@ "SDF_VERSION_5_3", "SDF_VERSION_5_4", "SDF_VERSION_5_5", - "SDF_VERSION_6" + "SDF_VERSION_6", + "SDF_VERSION_7" ], "enumDeprecated": [ false, @@ -10899,6 +10900,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -10913,7 +10915,8 @@ "SDF version 5.3", "SDF version 5.4", "SDF version 5.5", - "SDF version 6" + "SDF version 6", + "SDF version 7 Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version. Currently in beta. Only available for use by a subset of users." ], "type": "string" } @@ -17706,7 +17709,8 @@ "SDF_VERSION_5_3", "SDF_VERSION_5_4", "SDF_VERSION_5_5", - "SDF_VERSION_6" + "SDF_VERSION_6", + "SDF_VERSION_7" ], "enumDeprecated": [ false, @@ -17720,6 +17724,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -17734,7 +17739,8 @@ "SDF version 5.3", "SDF version 5.4", "SDF version 5.5", - "SDF version 6" + "SDF version 6", + "SDF version 7 Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version. Currently in beta. Only available for use by a subset of users." ], "type": "string" } @@ -17780,7 +17786,8 @@ "SDF_VERSION_5_3", "SDF_VERSION_5_4", "SDF_VERSION_5_5", - "SDF_VERSION_6" + "SDF_VERSION_6", + "SDF_VERSION_7" ], "enumDeprecated": [ false, @@ -17794,6 +17801,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -17808,7 +17816,8 @@ "SDF version 5.3", "SDF version 5.4", "SDF version 5.5", - "SDF version 6" + "SDF version 6", + "SDF version 7 Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version. Currently in beta. Only available for use by a subset of users." ], "type": "string" } diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index e0853667c01..4de634aaf2a 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -5203,6 +5203,10 @@ type CreateSdfDownloadTaskRequest struct { // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 + // "SDF_VERSION_7" - SDF version 7 Read the [v7 migration + // guide](/display-video/api/structured-data-file/v7-migration-guide) + // before migrating to this version. Currently in beta. Only available + // for use by a subset of users. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiserId") to @@ -14650,6 +14654,10 @@ type SdfConfig struct { // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 + // "SDF_VERSION_7" - SDF version 7 Read the [v7 migration + // guide](/display-video/api/structured-data-file/v7-migration-guide) + // before migrating to this version. Currently in beta. Only available + // for use by a subset of users. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdminEmail") to @@ -14733,6 +14741,10 @@ type SdfDownloadTaskMetadata struct { // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 + // "SDF_VERSION_7" - SDF version 7 Read the [v7 migration + // guide](/display-video/api/structured-data-file/v7-migration-guide) + // before migrating to this version. Currently in beta. Only available + // for use by a subset of users. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index ccd4bb2aadf..e973579bfa0 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -9172,7 +9172,7 @@ } } }, - "revision": "20231009", + "revision": "20231026", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -12183,7 +12183,8 @@ "SDF_VERSION_5_3", "SDF_VERSION_5_4", "SDF_VERSION_5_5", - "SDF_VERSION_6" + "SDF_VERSION_6", + "SDF_VERSION_7" ], "enumDeprecated": [ false, @@ -12197,6 +12198,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -12211,7 +12213,8 @@ "SDF version 5.3", "SDF version 5.4", "SDF version 5.5", - "SDF version 6" + "SDF version 6", + "SDF version 7 Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version. Currently in beta. Only available for use by a subset of users." ], "type": "string" } @@ -19481,7 +19484,8 @@ "SDF_VERSION_5_3", "SDF_VERSION_5_4", "SDF_VERSION_5_5", - "SDF_VERSION_6" + "SDF_VERSION_6", + "SDF_VERSION_7" ], "enumDeprecated": [ false, @@ -19495,6 +19499,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -19509,7 +19514,8 @@ "SDF version 5.3", "SDF version 5.4", "SDF version 5.5", - "SDF version 6" + "SDF version 6", + "SDF version 7 Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version. Currently in beta. Only available for use by a subset of users." ], "type": "string" } @@ -19555,7 +19561,8 @@ "SDF_VERSION_5_3", "SDF_VERSION_5_4", "SDF_VERSION_5_5", - "SDF_VERSION_6" + "SDF_VERSION_6", + "SDF_VERSION_7" ], "enumDeprecated": [ false, @@ -19569,6 +19576,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -19583,7 +19591,8 @@ "SDF version 5.3", "SDF version 5.4", "SDF version 5.5", - "SDF version 6" + "SDF version 6", + "SDF version 7 Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version. Currently in beta. Only available for use by a subset of users." ], "type": "string" } diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index 4faf3344c3e..e06839b9b3a 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -5737,6 +5737,10 @@ type CreateSdfDownloadTaskRequest struct { // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 + // "SDF_VERSION_7" - SDF version 7 Read the [v7 migration + // guide](/display-video/api/structured-data-file/v7-migration-guide) + // before migrating to this version. Currently in beta. Only available + // for use by a subset of users. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiserId") to @@ -15883,6 +15887,10 @@ type SdfConfig struct { // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 + // "SDF_VERSION_7" - SDF version 7 Read the [v7 migration + // guide](/display-video/api/structured-data-file/v7-migration-guide) + // before migrating to this version. Currently in beta. Only available + // for use by a subset of users. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdminEmail") to @@ -15966,6 +15974,10 @@ type SdfDownloadTaskMetadata struct { // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 + // "SDF_VERSION_7" - SDF version 7 Read the [v7 migration + // guide](/display-video/api/structured-data-file/v7-migration-guide) + // before migrating to this version. Currently in beta. Only available + // for use by a subset of users. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to diff --git a/displayvideo/v3/displayvideo-api.json b/displayvideo/v3/displayvideo-api.json index 5794ea80bbd..eeb44ee13d7 100644 --- a/displayvideo/v3/displayvideo-api.json +++ b/displayvideo/v3/displayvideo-api.json @@ -9127,7 +9127,7 @@ } } }, - "revision": "20231012", + "revision": "20231026", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -9258,7 +9258,7 @@ "AD_GROUP_FORMAT_BUMPER", "AD_GROUP_FORMAT_NON_SKIPPABLE_IN_STREAM", "AD_GROUP_FORMAT_AUDIO", - "AD_GROUP_FORMAT_ACTION", + "AD_GROUP_FORMAT_RESPONSIVE", "AD_GROUP_FORMAT_REACH", "AD_GROUP_FORMAT_MASTHEAD" ], @@ -9269,7 +9269,7 @@ "Bumper ads.", "Non-skippable in-stream ads.", "Non-skippable in-stream audio ads.", - "[Responsive ads for video action campaigns] (https://support.google.com/displayvideo/answer/9065351).", + "Responsive ads.", "[Effective reach ad groups] (https://support.google.com/displayvideo/answer/9173684), including in-stream and bumper ads.", "Masthead Ad that is surfaced on the top slot on the YouTube homepage." ], @@ -12742,7 +12742,8 @@ "SDF_VERSION_5_3", "SDF_VERSION_5_4", "SDF_VERSION_5_5", - "SDF_VERSION_6" + "SDF_VERSION_6", + "SDF_VERSION_7" ], "enumDeprecated": [ false, @@ -12756,6 +12757,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -12770,7 +12772,8 @@ "SDF version 5.3", "SDF version 5.4", "SDF version 5.5", - "SDF version 6" + "SDF version 6", + "SDF version 7 Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version. Currently in beta. Only available for use by a subset of users." ], "type": "string" } @@ -20179,7 +20182,8 @@ "SDF_VERSION_5_3", "SDF_VERSION_5_4", "SDF_VERSION_5_5", - "SDF_VERSION_6" + "SDF_VERSION_6", + "SDF_VERSION_7" ], "enumDeprecated": [ false, @@ -20193,6 +20197,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -20207,7 +20212,8 @@ "SDF version 5.3", "SDF version 5.4", "SDF version 5.5", - "SDF version 6" + "SDF version 6", + "SDF version 7 Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version. Currently in beta. Only available for use by a subset of users." ], "type": "string" } @@ -20253,7 +20259,8 @@ "SDF_VERSION_5_3", "SDF_VERSION_5_4", "SDF_VERSION_5_5", - "SDF_VERSION_6" + "SDF_VERSION_6", + "SDF_VERSION_7" ], "enumDeprecated": [ false, @@ -20267,6 +20274,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -20281,7 +20289,8 @@ "SDF version 5.3", "SDF version 5.4", "SDF version 5.5", - "SDF version 6" + "SDF version 6", + "SDF version 7 Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version. Currently in beta. Only available for use by a subset of users." ], "type": "string" } diff --git a/displayvideo/v3/displayvideo-gen.go b/displayvideo/v3/displayvideo-gen.go index 600b1afa9b8..df31e7a7ed0 100644 --- a/displayvideo/v3/displayvideo-gen.go +++ b/displayvideo/v3/displayvideo-gen.go @@ -856,8 +856,7 @@ type AdGroup struct { // "AD_GROUP_FORMAT_NON_SKIPPABLE_IN_STREAM" - Non-skippable in-stream // ads. // "AD_GROUP_FORMAT_AUDIO" - Non-skippable in-stream audio ads. - // "AD_GROUP_FORMAT_ACTION" - [Responsive ads for video action - // campaigns] (https://support.google.com/displayvideo/answer/9065351). + // "AD_GROUP_FORMAT_RESPONSIVE" - Responsive ads. // "AD_GROUP_FORMAT_REACH" - [Effective reach ad groups] // (https://support.google.com/displayvideo/answer/9173684), including // in-stream and bumper ads. @@ -6470,6 +6469,10 @@ type CreateSdfDownloadTaskRequest struct { // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 + // "SDF_VERSION_7" - SDF version 7 Read the [v7 migration + // guide](/display-video/api/structured-data-file/v7-migration-guide) + // before migrating to this version. Currently in beta. Only available + // for use by a subset of users. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiserId") to @@ -16835,6 +16838,10 @@ type SdfConfig struct { // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 + // "SDF_VERSION_7" - SDF version 7 Read the [v7 migration + // guide](/display-video/api/structured-data-file/v7-migration-guide) + // before migrating to this version. Currently in beta. Only available + // for use by a subset of users. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdminEmail") to @@ -16918,6 +16925,10 @@ type SdfDownloadTaskMetadata struct { // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 + // "SDF_VERSION_7" - SDF version 7 Read the [v7 migration + // guide](/display-video/api/structured-data-file/v7-migration-guide) + // before migrating to this version. Currently in beta. Only available + // for use by a subset of users. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to diff --git a/file/v1/file-api.json b/file/v1/file-api.json index ac095eb75c4..30432bae7f7 100644 --- a/file/v1/file-api.json +++ b/file/v1/file-api.json @@ -874,7 +874,7 @@ } } }, - "revision": "20230803", + "revision": "20231019", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -942,7 +942,8 @@ "BASIC_SSD", "HIGH_SCALE_SSD", "ENTERPRISE", - "ZONAL" + "ZONAL", + "REGIONAL" ], "enumDescriptions": [ "Not set.", @@ -952,7 +953,8 @@ "BASIC instances offer a maximum capacity of 63.9 TB. BASIC_SSD is an alias for PREMIUM Tier, and offers improved performance backed by SSD.", "HIGH_SCALE instances offer expanded capacity and performance scaling capabilities.", "ENTERPRISE instances offer the features and availability needed for mission-critical workloads.", - "ZONAL instances offer expanded capacity and performance scaling capabilities." + "ZONAL instances offer expanded capacity and performance scaling capabilities.", + "REGIONAL instances offer the features and availability needed for mission-critical workloads." ], "readOnly": true, "type": "string" @@ -1473,7 +1475,8 @@ "BASIC_SSD", "HIGH_SCALE_SSD", "ENTERPRISE", - "ZONAL" + "ZONAL", + "REGIONAL" ], "enumDescriptions": [ "Not set.", @@ -1483,7 +1486,8 @@ "BASIC instances offer a maximum capacity of 63.9 TB. BASIC_SSD is an alias for PREMIUM Tier, and offers improved performance backed by SSD.", "HIGH_SCALE instances offer expanded capacity and performance scaling capabilities.", "ENTERPRISE instances offer the features and availability needed for mission-critical workloads.", - "ZONAL instances offer expanded capacity and performance scaling capabilities." + "ZONAL instances offer expanded capacity and performance scaling capabilities.", + "REGIONAL instances offer the features and availability needed for mission-critical workloads." ], "type": "string" } diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index 4d2b2ac5012..c7b834e9085 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -283,6 +283,8 @@ type Backup struct { // availability needed for mission-critical workloads. // "ZONAL" - ZONAL instances offer expanded capacity and performance // scaling capabilities. + // "REGIONAL" - REGIONAL instances offer the features and availability + // needed for mission-critical workloads. SourceInstanceTier string `json:"sourceInstanceTier,omitempty"` // State: Output only. The backup state. @@ -1081,6 +1083,8 @@ type Instance struct { // availability needed for mission-critical workloads. // "ZONAL" - ZONAL instances offer expanded capacity and performance // scaling capabilities. + // "REGIONAL" - REGIONAL instances offer the features and availability + // needed for mission-critical workloads. Tier string `json:"tier,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/file/v1beta1/file-api.json b/file/v1beta1/file-api.json index 4bdfc17cfc7..c0853df1f49 100644 --- a/file/v1beta1/file-api.json +++ b/file/v1beta1/file-api.json @@ -1041,7 +1041,7 @@ } } }, - "revision": "20230803", + "revision": "20231019", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1109,7 +1109,8 @@ "BASIC_SSD", "HIGH_SCALE_SSD", "ENTERPRISE", - "ZONAL" + "ZONAL", + "REGIONAL" ], "enumDescriptions": [ "Not set.", @@ -1119,7 +1120,8 @@ "BASIC instances offer a maximum capacity of 63.9 TB. BASIC_SSD is an alias for PREMIUM Tier, and offers improved performance backed by SSD.", "HIGH_SCALE instances offer expanded capacity and performance scaling capabilities.", "ENTERPRISE instances offer the features and availability needed for mission-critical workloads.", - "ZONAL instances offer expanded capacity and performance scaling capabilities." + "ZONAL instances offer expanded capacity and performance scaling capabilities.", + "REGIONAL instances offer the features and availability needed for mission-critical workloads." ], "readOnly": true, "type": "string" @@ -1695,7 +1697,8 @@ "BASIC_SSD", "HIGH_SCALE_SSD", "ENTERPRISE", - "ZONAL" + "ZONAL", + "REGIONAL" ], "enumDescriptions": [ "Not set.", @@ -1705,7 +1708,8 @@ "BASIC instances offer a maximum capacity of 63.9 TB. BASIC_SSD is an alias for PREMIUM Tier, and offers improved performance backed by SSD.", "HIGH_SCALE instances offer expanded capacity and performance scaling capabilities.", "ENTERPRISE instances offer the features and availability needed for mission-critical workloads.", - "ZONAL instances offer expanded capacity and performance scaling capabilities." + "ZONAL instances offer expanded capacity and performance scaling capabilities.", + "REGIONAL instances offer the features and availability needed for mission-critical workloads." ], "type": "string" } diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index cbf163acbad..af781066772 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -293,6 +293,8 @@ type Backup struct { // availability needed for mission-critical workloads. // "ZONAL" - ZONAL instances offer expanded capacity and performance // scaling capabilities. + // "REGIONAL" - REGIONAL instances offer the features and availability + // needed for mission-critical workloads. SourceInstanceTier string `json:"sourceInstanceTier,omitempty"` // State: Output only. The backup state. @@ -1164,6 +1166,8 @@ type Instance struct { // availability needed for mission-critical workloads. // "ZONAL" - ZONAL instances offer expanded capacity and performance // scaling capabilities. + // "REGIONAL" - REGIONAL instances offer the features and availability + // needed for mission-critical workloads. Tier string `json:"tier,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index 3fae61591a7..c78e1f581f5 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -1788,7 +1788,7 @@ "timeSeries": { "methods": { "create": { - "description": "Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.", + "description": "Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This method does not support resource locations constraint of an organization policy (https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations#setting_the_organization_policy).", "flatPath": "v3/projects/{projectsId}/timeSeries", "httpMethod": "POST", "id": "monitoring.projects.timeSeries.create", @@ -2714,7 +2714,7 @@ } } }, - "revision": "20231016", + "revision": "20231023", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -3667,7 +3667,7 @@ "id": "ForecastOptions", "properties": { "forecastHorizon": { - "description": "Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing.", + "description": "Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing. The forecast horizon can range from 1 hour to 60 hours.", "format": "google-duration", "type": "string" } diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index 00431a978f0..00144d6812e 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -2258,7 +2258,8 @@ type ForecastOptions struct { // forecast whether a time series will violate the threshold. If the // predicted value is found to violate the threshold, and the violation // is observed in all forecasts made for the configured duration, then - // the time series is considered to be failing. + // the time series is considered to be failing. The forecast horizon can + // range from 1 hour to 60 hours. ForecastHorizon string `json:"forecastHorizon,omitempty"` // ForceSendFields is a list of field names (e.g. "ForecastHorizon") to @@ -14450,7 +14451,9 @@ type ProjectsTimeSeriesCreateCall struct { // Create: Creates or adds data to one or more time series. The response // is empty if all time series in the request were written. If any time // series could not be written, a corresponding failure message is -// included in the error response. +// included in the error response. This method does not support resource +// locations constraint of an organization policy +// (https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations#setting_the_organization_policy). // // - name: The project // (https://cloud.google.com/monitoring/api/v3#project_name) on which @@ -14554,7 +14557,7 @@ func (c *ProjectsTimeSeriesCreateCall) Do(opts ...googleapi.CallOption) (*Empty, } return ret, nil // { - // "description": "Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.", + // "description": "Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This method does not support resource locations constraint of an organization policy (https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations#setting_the_organization_policy).", // "flatPath": "v3/projects/{projectsId}/timeSeries", // "httpMethod": "POST", // "id": "monitoring.projects.timeSeries.create", diff --git a/places/v1/places-api.json b/places/v1/places-api.json index 414509eeec1..c241ec1c9de 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -120,7 +120,7 @@ "places": { "methods": { "get": { - "description": "Get a Place with a place id (in a name) string.", + "description": "Get place details with a place id (in a name) string.", "flatPath": "v1/places/{placesId}", "httpMethod": "GET", "id": "places.places.get", @@ -134,7 +134,7 @@ "type": "string" }, "name": { - "description": "Required. A place ID returned in a Place (with \"places/\" prefix), or equivalently the name in the same Place. Format: places/place_id.", + "description": "Required. A place ID returned in a Place (with \"places/\" prefix), or equivalently the name in the same Place. Format: places/*place_id*.", "location": "path", "pattern": "^places/[^/]+$", "required": true, @@ -248,7 +248,7 @@ } } }, - "revision": "20231024", + "revision": "20231025", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -294,7 +294,7 @@ "description": "Required. Center latitude and longitude. The range of latitude must be within [-90.0, 90.0]. The range of the longitude must be within [-180.0, 180.0]." }, "radius": { - "description": "Required. Radius measured in meters. The radius must be within [0.0, 50000.0].", + "description": "Required. Radius measured in meters. The radius must be within [0.0, 50000.0]. The default radius is 0.0.", "format": "double", "type": "number" } @@ -609,7 +609,7 @@ "type": "string" }, "iconMaskBaseUri": { - "description": "A truncated URL to an v2 icon mask. User can access different icon type by appending type suffix to the end (eg, \".svg\" or \".png\").", + "description": "A truncated URL to an icon mask. User can access different icon type by appending type suffix to the end (eg, \".svg\" or \".png\").", "type": "string" }, "id": { @@ -1230,7 +1230,7 @@ "description": "The region to search. This location serves as a restriction which means results outside given location will not be returned. Cannot be set along with location_bias." }, "maxResultCount": { - "description": "Maximum number of results to return. It must be between 1 and 20, inclusively. If the number is unset, it falls back to the upper limit. If the number is set to negative or exceeds the upper limit, an INVALID_ARGUMENT error is returned.", + "description": "Maximum number of results to return. It must be between 1 and 20, inclusively. The default is 20. If the number is unset, it falls back to the upper limit. If the number is set to negative or exceeds the upper limit, an INVALID_ARGUMENT error is returned.", "format": "int32", "type": "integer" }, @@ -1240,7 +1240,7 @@ "type": "number" }, "openNow": { - "description": "Used to restrict the search to places that are currently open.", + "description": "Used to restrict the search to places that are currently open. The default is false.", "type": "boolean" }, "priceLevels": { diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index 73858dd0c42..58dfd46dbc5 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -287,7 +287,7 @@ type GoogleMapsPlacesV1Circle struct { Center *GoogleTypeLatLng `json:"center,omitempty"` // Radius: Required. Radius measured in meters. The radius must be - // within [0.0, 50000.0]. + // within [0.0, 50000.0]. The default radius is 0.0. Radius float64 `json:"radius,omitempty"` // ForceSendFields is a list of field names (e.g. "Center") to @@ -729,7 +729,7 @@ type GoogleMapsPlacesV1Place struct { // e.g. #909CE1. IconBackgroundColor string `json:"iconBackgroundColor,omitempty"` - // IconMaskBaseUri: A truncated URL to an v2 icon mask. User can access + // IconMaskBaseUri: A truncated URL to an icon mask. User can access // different icon type by appending type suffix to the end (eg, ".svg" // or ".png"). IconMaskBaseUri string `json:"iconMaskBaseUri,omitempty"` @@ -1668,9 +1668,10 @@ type GoogleMapsPlacesV1SearchTextRequest struct { LocationRestriction *GoogleMapsPlacesV1SearchTextRequestLocationRestriction `json:"locationRestriction,omitempty"` // MaxResultCount: Maximum number of results to return. It must be - // between 1 and 20, inclusively. If the number is unset, it falls back - // to the upper limit. If the number is set to negative or exceeds the - // upper limit, an INVALID_ARGUMENT error is returned. + // between 1 and 20, inclusively. The default is 20. If the number is + // unset, it falls back to the upper limit. If the number is set to + // negative or exceeds the upper limit, an INVALID_ARGUMENT error is + // returned. MaxResultCount int64 `json:"maxResultCount,omitempty"` // MinRating: Filter out results whose average user rating is strictly @@ -1683,7 +1684,7 @@ type GoogleMapsPlacesV1SearchTextRequest struct { MinRating float64 `json:"minRating,omitempty"` // OpenNow: Used to restrict the search to places that are currently - // open. + // open. The default is false. OpenNow bool `json:"openNow,omitempty"` // PriceLevels: Used to restrict the search to places that are marked as @@ -2047,10 +2048,10 @@ type PlacesGetCall struct { header_ http.Header } -// Get: Get a Place with a place id (in a name) string. +// Get: Get place details with a place id (in a name) string. // // - name: A place ID returned in a Place (with "places/" prefix), or -// equivalently the name in the same Place. Format: places/place_id. +// equivalently the name in the same Place. Format: places/*place_id*. func (r *PlacesService) Get(name string) *PlacesGetCall { c := &PlacesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2177,7 +2178,7 @@ func (c *PlacesGetCall) Do(opts ...googleapi.CallOption) (*GoogleMapsPlacesV1Pla } return ret, nil // { - // "description": "Get a Place with a place id (in a name) string.", + // "description": "Get place details with a place id (in a name) string.", // "flatPath": "v1/places/{placesId}", // "httpMethod": "GET", // "id": "places.places.get", @@ -2191,7 +2192,7 @@ func (c *PlacesGetCall) Do(opts ...googleapi.CallOption) (*GoogleMapsPlacesV1Pla // "type": "string" // }, // "name": { - // "description": "Required. A place ID returned in a Place (with \"places/\" prefix), or equivalently the name in the same Place. Format: places/place_id.", + // "description": "Required. A place ID returned in a Place (with \"places/\" prefix), or equivalently the name in the same Place. Format: places/*place_id*.", // "location": "path", // "pattern": "^places/[^/]+$", // "required": true, diff --git a/run/v2/run-api.json b/run/v2/run-api.json index d4c1cdff325..bc94333cc02 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1115,7 +1115,7 @@ } } }, - "revision": "20231008", + "revision": "20231022", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -2661,6 +2661,10 @@ "readOnly": true, "type": "boolean" }, + "scaling": { + "$ref": "GoogleCloudRunV2ServiceScaling", + "description": "Optional. Specifies service-level scaling settings" + }, "template": { "$ref": "GoogleCloudRunV2RevisionTemplate", "description": "Required. The template used to create revisions for this Service." @@ -2704,6 +2708,18 @@ }, "type": "object" }, + "GoogleCloudRunV2ServiceScaling": { + "description": "Scaling settings that apply to the service as a whole rather than the individual revision.", + "id": "GoogleCloudRunV2ServiceScaling", + "properties": { + "minInstanceCount": { + "description": "total min instances for the service. This number of instances will be divide among all revisions with specified traffic based on the percent of traffic they are receiving. (ALPHA)", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudRunV2TCPSocketAction": { "description": "TCPSocketAction describes an action based on opening a socket", "id": "GoogleCloudRunV2TCPSocketAction", diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index b0a1330b630..33d37a1bcda 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -2445,6 +2445,9 @@ type GoogleCloudRunV2Service struct { // SatisfiesPzs: Output only. Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` + // Scaling: Optional. Specifies service-level scaling settings + Scaling *GoogleCloudRunV2ServiceScaling `json:"scaling,omitempty"` + // Template: Required. The template used to create revisions for this // Service. Template *GoogleCloudRunV2RevisionTemplate `json:"template,omitempty"` @@ -2504,6 +2507,38 @@ func (s *GoogleCloudRunV2Service) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRunV2ServiceScaling: Scaling settings that apply to the +// service as a whole rather than the individual revision. +type GoogleCloudRunV2ServiceScaling struct { + // MinInstanceCount: total min instances for the service. This number of + // instances will be divide among all revisions with specified traffic + // based on the percent of traffic they are receiving. (ALPHA) + MinInstanceCount int64 `json:"minInstanceCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MinInstanceCount") to + // unconditionally include in API requests. By default, fields with + // empty or default 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. "MinInstanceCount") 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 *GoogleCloudRunV2ServiceScaling) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2ServiceScaling + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRunV2TCPSocketAction: TCPSocketAction describes an action // based on opening a socket type GoogleCloudRunV2TCPSocketAction struct { diff --git a/testing/v1/testing-api.json b/testing/v1/testing-api.json index 0c406fa6ca6..be61d679192 100644 --- a/testing/v1/testing-api.json +++ b/testing/v1/testing-api.json @@ -442,7 +442,7 @@ } } }, - "revision": "20231017", + "revision": "20231023", "rootUrl": "https://testing.googleapis.com/", "schemas": { "Account": { @@ -1161,11 +1161,6 @@ "$ref": "AndroidDevice", "description": "Required. The requested device" }, - "androidDeviceList": { - "$ref": "AndroidDeviceList", - "deprecated": true, - "description": "Optional. The list of requested devices. At most two devices may be simultaneously requested." - }, "createTime": { "description": "Output only. The time that the Session was created.", "format": "google-datetime", @@ -1226,7 +1221,7 @@ "type": "array" }, "ttl": { - "description": "Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the ExtendDeviceSession RPC. Default: 30 minutes.", + "description": "Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 30 minutes.", "format": "google-duration", "type": "string" } diff --git a/testing/v1/testing-gen.go b/testing/v1/testing-gen.go index 50e7c86773d..f517c8c231c 100644 --- a/testing/v1/testing-gen.go +++ b/testing/v1/testing-gen.go @@ -1254,10 +1254,6 @@ type DeviceSession struct { // AndroidDevice: Required. The requested device AndroidDevice *AndroidDevice `json:"androidDevice,omitempty"` - // AndroidDeviceList: Optional. The list of requested devices. At most - // two devices may be simultaneously requested. - AndroidDeviceList *AndroidDeviceList `json:"androidDeviceList,omitempty"` - // CreateTime: Output only. The time that the Session was created. CreateTime string `json:"createTime,omitempty"` @@ -1308,7 +1304,7 @@ type DeviceSession struct { // Ttl: Optional. The amount of time that a device will be initially // allocated for. This can eventually be extended with the - // ExtendDeviceSession RPC. Default: 30 minutes. + // UpdateDeviceSession RPC. Default: 30 minutes. Ttl string `json:"ttl,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/websecurityscanner/v1/websecurityscanner-api.json b/websecurityscanner/v1/websecurityscanner-api.json index 8e29febc4d2..3b4cf741040 100644 --- a/websecurityscanner/v1/websecurityscanner-api.json +++ b/websecurityscanner/v1/websecurityscanner-api.json @@ -526,7 +526,7 @@ } } }, - "revision": "20230701", + "revision": "20231021", "rootUrl": "https://websecurityscanner.googleapis.com/", "schemas": { "Authentication": { @@ -1029,7 +1029,8 @@ "UNSUPPORTED_BLACKLIST_PATTERN_FORMAT", "UNSUPPORTED_FILTER", "UNSUPPORTED_FINDING_TYPE", - "UNSUPPORTED_URL_SCHEME" + "UNSUPPORTED_URL_SCHEME", + "CLOUD_ASSET_INVENTORY_ASSET_NOT_FOUND" ], "enumDescriptions": [ "There is no error.", @@ -1073,7 +1074,8 @@ "One or more blacklist patterns were in the wrong format.", "The supplied filter is not supported.", "The supplied finding type is not supported. For example, we do not provide findings of the given finding type.", - "The URL scheme of one or more of the supplied URLs is not supported." + "The URL scheme of one or more of the supplied URLs is not supported.", + "CAI is not able to list assets." ], "type": "string" }, diff --git a/websecurityscanner/v1/websecurityscanner-gen.go b/websecurityscanner/v1/websecurityscanner-gen.go index fe3eaa4e421..48654820202 100644 --- a/websecurityscanner/v1/websecurityscanner-gen.go +++ b/websecurityscanner/v1/websecurityscanner-gen.go @@ -1062,6 +1062,8 @@ type ScanConfigError struct { // finding type. // "UNSUPPORTED_URL_SCHEME" - The URL scheme of one or more of the // supplied URLs is not supported. + // "CLOUD_ASSET_INVENTORY_ASSET_NOT_FOUND" - CAI is not able to list + // assets. Code string `json:"code,omitempty"` // FieldName: Output only. Indicates the full name of the ScanConfig diff --git a/websecurityscanner/v1alpha/websecurityscanner-api.json b/websecurityscanner/v1alpha/websecurityscanner-api.json index cb95acf5e05..0cdf8de2420 100644 --- a/websecurityscanner/v1alpha/websecurityscanner-api.json +++ b/websecurityscanner/v1alpha/websecurityscanner-api.json @@ -526,7 +526,7 @@ } } }, - "revision": "20220522", + "revision": "20231021", "rootUrl": "https://websecurityscanner.googleapis.com/", "schemas": { "Authentication": { @@ -618,7 +618,10 @@ "XSS_ANGULAR_CALLBACK", "INVALID_HEADER", "MISSPELLED_SECURITY_HEADER_NAME", - "MISMATCHING_SECURITY_HEADER_VALUES" + "MISMATCHING_SECURITY_HEADER_VALUES", + "ACCESSIBLE_GIT_REPOSITORY", + "ACCESSIBLE_SVN_REPOSITORY", + "ACCESSIBLE_ENV_FILE" ], "enumDescriptions": [ "The invalid finding type.", @@ -632,7 +635,10 @@ "A cross-site scripting (XSS) vulnerability in AngularJS module that occurs when a user-provided string is interpolated by Angular.", "A malformed or invalid valued header.", "Misspelled security header name.", - "Mismatching values in a duplicate security header." + "Mismatching values in a duplicate security header.", + "A world-readable git repository that potentially leaks source code, commit history or sensitive information such as credentials.", + "A world-readable subversion repository that potentially leaks source code, commit history or sensitive information such as credentials.", + "A world-readable env file that potentially leaks source code, commit history or sensitive information such as credentials." ], "type": "string" }, @@ -706,7 +712,10 @@ "XSS_ANGULAR_CALLBACK", "INVALID_HEADER", "MISSPELLED_SECURITY_HEADER_NAME", - "MISMATCHING_SECURITY_HEADER_VALUES" + "MISMATCHING_SECURITY_HEADER_VALUES", + "ACCESSIBLE_GIT_REPOSITORY", + "ACCESSIBLE_SVN_REPOSITORY", + "ACCESSIBLE_ENV_FILE" ], "enumDescriptions": [ "The invalid finding type.", @@ -720,7 +729,10 @@ "A cross-site scripting (XSS) vulnerability in AngularJS module that occurs when a user-provided string is interpolated by Angular.", "A malformed or invalid valued header.", "Misspelled security header name.", - "Mismatching values in a duplicate security header." + "Mismatching values in a duplicate security header.", + "A world-readable git repository that potentially leaks source code, commit history or sensitive information such as credentials.", + "A world-readable subversion repository that potentially leaks source code, commit history or sensitive information such as credentials.", + "A world-readable env file that potentially leaks source code, commit history or sensitive information such as credentials." ], "type": "string" } diff --git a/websecurityscanner/v1alpha/websecurityscanner-gen.go b/websecurityscanner/v1alpha/websecurityscanner-gen.go index 6c150c8a1ad..bf56f504324 100644 --- a/websecurityscanner/v1alpha/websecurityscanner-gen.go +++ b/websecurityscanner/v1alpha/websecurityscanner-gen.go @@ -397,6 +397,15 @@ type Finding struct { // name. // "MISMATCHING_SECURITY_HEADER_VALUES" - Mismatching values in a // duplicate security header. + // "ACCESSIBLE_GIT_REPOSITORY" - A world-readable git repository that + // potentially leaks source code, commit history or sensitive + // information such as credentials. + // "ACCESSIBLE_SVN_REPOSITORY" - A world-readable subversion + // repository that potentially leaks source code, commit history or + // sensitive information such as credentials. + // "ACCESSIBLE_ENV_FILE" - A world-readable env file that potentially + // leaks source code, commit history or sensitive information such as + // credentials. FindingType string `json:"findingType,omitempty"` // FrameUrl: If the vulnerability was originated from nested IFrame, the @@ -524,6 +533,15 @@ type FindingTypeStats struct { // name. // "MISMATCHING_SECURITY_HEADER_VALUES" - Mismatching values in a // duplicate security header. + // "ACCESSIBLE_GIT_REPOSITORY" - A world-readable git repository that + // potentially leaks source code, commit history or sensitive + // information such as credentials. + // "ACCESSIBLE_SVN_REPOSITORY" - A world-readable subversion + // repository that potentially leaks source code, commit history or + // sensitive information such as credentials. + // "ACCESSIBLE_ENV_FILE" - A world-readable env file that potentially + // leaks source code, commit history or sensitive information such as + // credentials. FindingType string `json:"findingType,omitempty"` // ForceSendFields is a list of field names (e.g. "FindingCount") to diff --git a/websecurityscanner/v1beta/websecurityscanner-api.json b/websecurityscanner/v1beta/websecurityscanner-api.json index 86bd8d8d587..8a56d1f0682 100644 --- a/websecurityscanner/v1beta/websecurityscanner-api.json +++ b/websecurityscanner/v1beta/websecurityscanner-api.json @@ -526,7 +526,7 @@ } } }, - "revision": "20230701", + "revision": "20231021", "rootUrl": "https://websecurityscanner.googleapis.com/", "schemas": { "Authentication": { @@ -1052,7 +1052,8 @@ "UNSUPPORTED_BLACKLIST_PATTERN_FORMAT", "UNSUPPORTED_FILTER", "UNSUPPORTED_FINDING_TYPE", - "UNSUPPORTED_URL_SCHEME" + "UNSUPPORTED_URL_SCHEME", + "CLOUD_ASSET_INVENTORY_ASSET_NOT_FOUND" ], "enumDescriptions": [ "There is no error.", @@ -1096,7 +1097,8 @@ "One or more blacklist patterns were in the wrong format.", "The supplied filter is not supported.", "The supplied finding type is not supported. For example, we do not provide findings of the given finding type.", - "The URL scheme of one or more of the supplied URLs is not supported." + "The URL scheme of one or more of the supplied URLs is not supported.", + "CAI is not able to list assets." ], "type": "string" }, diff --git a/websecurityscanner/v1beta/websecurityscanner-gen.go b/websecurityscanner/v1beta/websecurityscanner-gen.go index a85b1851026..25ed5c36e5a 100644 --- a/websecurityscanner/v1beta/websecurityscanner-gen.go +++ b/websecurityscanner/v1beta/websecurityscanner-gen.go @@ -1071,6 +1071,8 @@ type ScanConfigError struct { // finding type. // "UNSUPPORTED_URL_SCHEME" - The URL scheme of one or more of the // supplied URLs is not supported. + // "CLOUD_ASSET_INVENTORY_ASSET_NOT_FOUND" - CAI is not able to list + // assets. Code string `json:"code,omitempty"` // FieldName: Indicates the full name of the ScanConfig field that