diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index 2b58b4bc631..ac6de59b1a2 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -937,6 +937,11 @@ "location": "query", "type": "string" }, + "orderBy": { + "description": "The order to sort results by. Must be one of display_name, description, make_and_model, or create_time. Default order is ascending, but descending order can be returned by appending \"desc\" to the order_by field. For instance, \"description desc\" will return the printers sorted by description in descending order.", + "location": "query", + "type": "string" + }, "orgUnitId": { "description": "Organization Unit that we want to list the printers for. When org_unit is not present in the request then all printers of the customer are returned (or filtered). When org_unit is present in the request then only printers available to this OU will be returned (owned or inherited). You may see if printer is owned or inherited for this OU by looking at Printer.org_unit_id.", "location": "query", @@ -4402,7 +4407,7 @@ } } }, - "revision": "20220201", + "revision": "20220208", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index db795e62b08..f262a60d807 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -8866,6 +8866,17 @@ func (c *CustomersChromePrintersListCall) Filter(filter string) *CustomersChrome return c } +// OrderBy sets the optional parameter "orderBy": The order to sort +// results by. Must be one of display_name, description, make_and_model, +// or create_time. Default order is ascending, but descending order can +// be returned by appending "desc" to the order_by field. For instance, +// "description desc" will return the printers sorted by description in +// descending order. +func (c *CustomersChromePrintersListCall) OrderBy(orderBy string) *CustomersChromePrintersListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + // OrgUnitId sets the optional parameter "orgUnitId": Organization Unit // that we want to list the printers for. When org_unit is not present // in the request then all printers of the customer are returned (or @@ -9004,6 +9015,11 @@ func (c *CustomersChromePrintersListCall) Do(opts ...googleapi.CallOption) (*Lis // "location": "query", // "type": "string" // }, + // "orderBy": { + // "description": "The order to sort results by. Must be one of display_name, description, make_and_model, or create_time. Default order is ascending, but descending order can be returned by appending \"desc\" to the order_by field. For instance, \"description desc\" will return the printers sorted by description in descending order.", + // "location": "query", + // "type": "string" + // }, // "orgUnitId": { // "description": "Organization Unit that we want to list the printers for. When org_unit is not present in the request then all printers of the customer are returned (or filtered). When org_unit is present in the request then only printers available to this OU will be returned (owned or inherited). You may see if printer is owned or inherited for this OU by looking at Printer.org_unit_id.", // "location": "query", diff --git a/alertcenter/v1beta1/alertcenter-api.json b/alertcenter/v1beta1/alertcenter-api.json index ec533b55e0d..2d26d09d32a 100644 --- a/alertcenter/v1beta1/alertcenter-api.json +++ b/alertcenter/v1beta1/alertcenter-api.json @@ -423,7 +423,7 @@ } } }, - "revision": "20211214", + "revision": "20220131", "rootUrl": "https://alertcenter.googleapis.com/", "schemas": { "AccountSuspensionDetails": { @@ -804,7 +804,8 @@ "RESOLVED", "FALSE_POSITIVE", "PARTIALLY_RESOLVED", - "MERGED" + "MERGED", + "DOWNGRADED" ], "enumDescriptions": [ "Status is unspecified.", @@ -813,7 +814,8 @@ "The incident has been resolved.", "Further assessment indicated no customer impact.", "The incident has been partially resolved.", - "The incident was merged into a parent." + "The incident was merged into a parent.", + "The incident has lower impact than initially anticipated." ], "type": "string" } @@ -1289,7 +1291,7 @@ "id": "MergeInfo", "properties": { "newAlertId": { - "description": "New alert ID. Reference the [google.apps.alertcenter.Alert] with this ID for the current state.", + "description": "Optional. New alert ID. Reference the [google.apps.alertcenter.Alert] with this ID for the current state.", "type": "string" }, "newIncidentTrackingId": { diff --git a/alertcenter/v1beta1/alertcenter-gen.go b/alertcenter/v1beta1/alertcenter-gen.go index 4d8cc867feb..8eb570ec1b8 100644 --- a/alertcenter/v1beta1/alertcenter-gen.go +++ b/alertcenter/v1beta1/alertcenter-gen.go @@ -687,6 +687,8 @@ type AppsOutage struct { // "FALSE_POSITIVE" - Further assessment indicated no customer impact. // "PARTIALLY_RESOLVED" - The incident has been partially resolved. // "MERGED" - The incident was merged into a parent. + // "DOWNGRADED" - The incident has lower impact than initially + // anticipated. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "DashboardUri") to @@ -1543,7 +1545,7 @@ func (s *MatchInfo) MarshalJSON() ([]byte, error) { // MergeInfo: New alert tracking numbers. type MergeInfo struct { - // NewAlertId: New alert ID. Reference the + // NewAlertId: Optional. New alert ID. Reference the // [google.apps.alertcenter.Alert] with this ID for the current state. NewAlertId string `json:"newAlertId,omitempty"` diff --git a/api-list.json b/api-list.json index 7c610287304..7b8b6428f42 100644 --- a/api-list.json +++ b/api-list.json @@ -554,6 +554,21 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/bare-metal", + "preferred": false + }, + { + "kind": "discovery#directoryItem", + "id": "baremetalsolution:v2", + "name": "baremetalsolution", + "version": "v2", + "title": "Bare Metal Solution API", + "description": "Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.", + "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v2", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/bare-metal", "preferred": true }, { @@ -3892,21 +3907,6 @@ "documentationLink": "https://developers.google.com/android/work/play/custom-app-api/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "playintegrity:v1", - "name": "playintegrity", - "version": "v1", - "title": "Google Play Integrity API", - "description": "Play Integrity", - "discoveryRestUrl": "https://playintegrity.googleapis.com/$discovery/rest?version=v1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://developer.android.com/google/play/integrity", - "preferred": true - }, { "kind": "discovery#directoryItem", "id": "policyanalyzer:v1beta1", diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 40aadef3064..7637eb1a098 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -2896,6 +2896,129 @@ } } }, + "endpointAttachments": { + "methods": { + "create": { + "description": "Creates an EndpointAttachment. **Note:** Not supported for Apigee hybrid.", + "flatPath": "v1/organizations/{organizationsId}/endpointAttachments", + "httpMethod": "POST", + "id": "apigee.organizations.endpointAttachments.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "endpointAttachmentId": { + "description": "The ID to use for the endpoint attachment. ID must be a 1-20 characters string with lowercase letters and numbers and must start with a letter.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The Organization this EndpointAttachment will be created in.", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/endpointAttachments", + "request": { + "$ref": "GoogleCloudApigeeV1EndpointAttachment" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an endpoint attachment.", + "flatPath": "v1/organizations/{organizationsId}/endpointAttachments/{endpointAttachmentsId}", + "httpMethod": "DELETE", + "id": "apigee.organizations.endpointAttachments.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the Endpoint Attachment in the following format: `organizations/{organization}/endpointAttachments/{endpoint_attachment}`.", + "location": "path", + "pattern": "^organizations/[^/]+/endpointAttachments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the specified EndpointAttachment.", + "flatPath": "v1/organizations/{organizationsId}/endpointAttachments/{endpointAttachmentsId}", + "httpMethod": "GET", + "id": "apigee.organizations.endpointAttachments.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the Endpoint Attachment in the following format: `organizations/{organization}/endpointAttachments/{endpoint_attachment}`.", + "location": "path", + "pattern": "^organizations/[^/]+/endpointAttachments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1EndpointAttachment" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the EndpointAttachments in the specified Organization.", + "flatPath": "v1/organizations/{organizationsId}/endpointAttachments", + "httpMethod": "GET", + "id": "apigee.organizations.endpointAttachments.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of Endpoint Attachments to return. If unspecified, at most 25 attachments will be returned.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token, returned from a previous ListEndpointAttachments call, that you can use to retrieve the next page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the Organization for which to list Endpoint Attachments in the format: `organizations/{organization}`.", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/endpointAttachments", + "response": { + "$ref": "GoogleCloudApigeeV1ListEndpointAttachmentsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "envgroups": { "methods": { "create": { @@ -7440,7 +7563,7 @@ } } }, - "revision": "20220127", + "revision": "20220205", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -9476,6 +9599,30 @@ }, "type": "object" }, + "GoogleCloudApigeeV1EndpointAttachment": { + "description": "Apigee Endpoint Attachment.", + "id": "GoogleCloudApigeeV1EndpointAttachment", + "properties": { + "host": { + "description": "Output only. Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.", + "readOnly": true, + "type": "string" + }, + "location": { + "description": "Required. Location of the endpoint attachment.", + "type": "string" + }, + "name": { + "description": "Name of the Endpoint Attachment in the following format: `organizations/{organization}/endpointAttachments/{endpoint_attachment}`.", + "type": "string" + }, + "serviceAttachment": { + "description": "Format: projects/*/regions/*/serviceAttachments/*", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1EntityMetadata": { "description": "Metadata common to many entities in this API.", "id": "GoogleCloudApigeeV1EntityMetadata", @@ -10523,6 +10670,24 @@ }, "type": "object" }, + "GoogleCloudApigeeV1ListEndpointAttachmentsResponse": { + "description": "Response for ListEndpointAttachments method.", + "id": "GoogleCloudApigeeV1ListEndpointAttachmentsResponse", + "properties": { + "endpointAttachments": { + "description": "Endpoint Attachments in the specified organization.", + "items": { + "$ref": "GoogleCloudApigeeV1EndpointAttachment" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Page token that you can include in a ListEndpointAttachments request to retrieve the next page. If omitted, no subsequent pages exist.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse": { "description": "Response for ListEnvironmentGroupAttachments.", "id": "GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse", diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 6ef1ea8fd1d..797e2b87f3c 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -173,6 +173,7 @@ func NewOrganizationsService(s *Service) *OrganizationsService { rs.Datacollectors = NewOrganizationsDatacollectorsService(s) rs.Deployments = NewOrganizationsDeploymentsService(s) rs.Developers = NewOrganizationsDevelopersService(s) + rs.EndpointAttachments = NewOrganizationsEndpointAttachmentsService(s) rs.Envgroups = NewOrganizationsEnvgroupsService(s) rs.Environments = NewOrganizationsEnvironmentsService(s) rs.HostQueries = NewOrganizationsHostQueriesService(s) @@ -204,6 +205,8 @@ type OrganizationsService struct { Developers *OrganizationsDevelopersService + EndpointAttachments *OrganizationsEndpointAttachmentsService + Envgroups *OrganizationsEnvgroupsService Environments *OrganizationsEnvironmentsService @@ -470,6 +473,15 @@ type OrganizationsDevelopersSubscriptionsService struct { s *Service } +func NewOrganizationsEndpointAttachmentsService(s *Service) *OrganizationsEndpointAttachmentsService { + rs := &OrganizationsEndpointAttachmentsService{s: s} + return rs +} + +type OrganizationsEndpointAttachmentsService struct { + s *Service +} + func NewOrganizationsEnvgroupsService(s *Service) *OrganizationsEnvgroupsService { rs := &OrganizationsEnvgroupsService{s: s} rs.Attachments = NewOrganizationsEnvgroupsAttachmentsService(s) @@ -3945,6 +3957,50 @@ func (s *GoogleCloudApigeeV1DimensionMetric) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1EndpointAttachment: Apigee Endpoint Attachment. +type GoogleCloudApigeeV1EndpointAttachment struct { + // Host: Output only. Host that can be used in either HTTP Target + // Endpoint directly, or as the host in Target Server. + Host string `json:"host,omitempty"` + + // Location: Required. Location of the endpoint attachment. + Location string `json:"location,omitempty"` + + // Name: Name of the Endpoint Attachment in the following format: + // `organizations/{organization}/endpointAttachments/{endpoint_attachment + // }`. + Name string `json:"name,omitempty"` + + // ServiceAttachment: Format: projects/*/regions/*/serviceAttachments/* + ServiceAttachment string `json:"serviceAttachment,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Host") 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. "Host") 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 *GoogleCloudApigeeV1EndpointAttachment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1EndpointAttachment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1EntityMetadata: Metadata common to many entities // in this API. type GoogleCloudApigeeV1EntityMetadata struct { @@ -5664,6 +5720,46 @@ func (s *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1ListEndpointAttachmentsResponse: Response for +// ListEndpointAttachments method. +type GoogleCloudApigeeV1ListEndpointAttachmentsResponse struct { + // EndpointAttachments: Endpoint Attachments in the specified + // organization. + EndpointAttachments []*GoogleCloudApigeeV1EndpointAttachment `json:"endpointAttachments,omitempty"` + + // NextPageToken: Page token that you can include in a + // ListEndpointAttachments request to retrieve the next page. If + // omitted, no subsequent pages exist. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "EndpointAttachments") + // 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. "EndpointAttachments") 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 *GoogleCloudApigeeV1ListEndpointAttachmentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ListEndpointAttachmentsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse: Response // for ListEnvironmentGroupAttachments. type GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse struct { @@ -24171,6 +24267,644 @@ func (c *OrganizationsDevelopersSubscriptionsListCall) Do(opts ...googleapi.Call } +// method id "apigee.organizations.endpointAttachments.create": + +type OrganizationsEndpointAttachmentsCreateCall struct { + s *Service + parent string + googlecloudapigeev1endpointattachment *GoogleCloudApigeeV1EndpointAttachment + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an EndpointAttachment. **Note:** Not supported for +// Apigee hybrid. +// +// - parent: The Organization this EndpointAttachment will be created +// in. +func (r *OrganizationsEndpointAttachmentsService) Create(parent string, googlecloudapigeev1endpointattachment *GoogleCloudApigeeV1EndpointAttachment) *OrganizationsEndpointAttachmentsCreateCall { + c := &OrganizationsEndpointAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1endpointattachment = googlecloudapigeev1endpointattachment + return c +} + +// EndpointAttachmentId sets the optional parameter +// "endpointAttachmentId": The ID to use for the endpoint attachment. ID +// must be a 1-20 characters string with lowercase letters and numbers +// and must start with a letter. +func (c *OrganizationsEndpointAttachmentsCreateCall) EndpointAttachmentId(endpointAttachmentId string) *OrganizationsEndpointAttachmentsCreateCall { + c.urlParams_.Set("endpointAttachmentId", endpointAttachmentId) + 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 *OrganizationsEndpointAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsCreateCall { + 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 *OrganizationsEndpointAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsCreateCall { + 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 *OrganizationsEndpointAttachmentsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEndpointAttachmentsCreateCall) 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.googlecloudapigeev1endpointattachment) + 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}/endpointAttachments") + 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 "apigee.organizations.endpointAttachments.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *OrganizationsEndpointAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + 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": "Creates an EndpointAttachment. **Note:** Not supported for Apigee hybrid.", + // "flatPath": "v1/organizations/{organizationsId}/endpointAttachments", + // "httpMethod": "POST", + // "id": "apigee.organizations.endpointAttachments.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "endpointAttachmentId": { + // "description": "The ID to use for the endpoint attachment. ID must be a 1-20 characters string with lowercase letters and numbers and must start with a letter.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The Organization this EndpointAttachment will be created in.", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/endpointAttachments", + // "request": { + // "$ref": "GoogleCloudApigeeV1EndpointAttachment" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.endpointAttachments.delete": + +type OrganizationsEndpointAttachmentsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an endpoint attachment. +// +// - name: Name of the Endpoint Attachment in the following format: +// `organizations/{organization}/endpointAttachments/{endpoint_attachme +// nt}`. +func (r *OrganizationsEndpointAttachmentsService) Delete(name string) *OrganizationsEndpointAttachmentsDeleteCall { + c := &OrganizationsEndpointAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEndpointAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsDeleteCall { + 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 *OrganizationsEndpointAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsDeleteCall { + 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 *OrganizationsEndpointAttachmentsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEndpointAttachmentsDeleteCall) 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 + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", 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 "apigee.organizations.endpointAttachments.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *OrganizationsEndpointAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + 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": "Deletes an endpoint attachment.", + // "flatPath": "v1/organizations/{organizationsId}/endpointAttachments/{endpointAttachmentsId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.endpointAttachments.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the Endpoint Attachment in the following format: `organizations/{organization}/endpointAttachments/{endpoint_attachment}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/endpointAttachments/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.endpointAttachments.get": + +type OrganizationsEndpointAttachmentsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the specified EndpointAttachment. +// +// - name: Name of the Endpoint Attachment in the following format: +// `organizations/{organization}/endpointAttachments/{endpoint_attachme +// nt}`. +func (r *OrganizationsEndpointAttachmentsService) Get(name string) *OrganizationsEndpointAttachmentsGetCall { + c := &OrganizationsEndpointAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEndpointAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsGetCall { + 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 *OrganizationsEndpointAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEndpointAttachmentsGetCall { + 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 *OrganizationsEndpointAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsGetCall { + 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 *OrganizationsEndpointAttachmentsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEndpointAttachmentsGetCall) 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/{+name}") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.endpointAttachments.get" call. +// Exactly one of *GoogleCloudApigeeV1EndpointAttachment or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudApigeeV1EndpointAttachment.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 *OrganizationsEndpointAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EndpointAttachment, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1EndpointAttachment{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the specified EndpointAttachment.", + // "flatPath": "v1/organizations/{organizationsId}/endpointAttachments/{endpointAttachmentsId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.endpointAttachments.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the Endpoint Attachment in the following format: `organizations/{organization}/endpointAttachments/{endpoint_attachment}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/endpointAttachments/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1EndpointAttachment" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.endpointAttachments.list": + +type OrganizationsEndpointAttachmentsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the EndpointAttachments in the specified Organization. +// +// - parent: Name of the Organization for which to list Endpoint +// Attachments in the format: `organizations/{organization}`. +func (r *OrganizationsEndpointAttachmentsService) List(parent string) *OrganizationsEndpointAttachmentsListCall { + c := &OrganizationsEndpointAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// Endpoint Attachments to return. If unspecified, at most 25 +// attachments will be returned. +func (c *OrganizationsEndpointAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEndpointAttachmentsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token, +// returned from a previous ListEndpointAttachments call, that you can +// use to retrieve the next page. +func (c *OrganizationsEndpointAttachmentsListCall) PageToken(pageToken string) *OrganizationsEndpointAttachmentsListCall { + 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 *OrganizationsEndpointAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsListCall { + 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 *OrganizationsEndpointAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEndpointAttachmentsListCall { + 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 *OrganizationsEndpointAttachmentsListCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsListCall { + 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 *OrganizationsEndpointAttachmentsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEndpointAttachmentsListCall) 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}/endpointAttachments") + 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 "apigee.organizations.endpointAttachments.list" call. +// Exactly one of *GoogleCloudApigeeV1ListEndpointAttachmentsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ListEndpointAttachmentsResponse.ServerResponse.Hea +// der 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 *OrganizationsEndpointAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEndpointAttachmentsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1ListEndpointAttachmentsResponse{ + 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 EndpointAttachments in the specified Organization.", + // "flatPath": "v1/organizations/{organizationsId}/endpointAttachments", + // "httpMethod": "GET", + // "id": "apigee.organizations.endpointAttachments.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. Maximum number of Endpoint Attachments to return. If unspecified, at most 25 attachments will be returned.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token, returned from a previous ListEndpointAttachments call, that you can use to retrieve the next page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the Organization for which to list Endpoint Attachments in the format: `organizations/{organization}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/endpointAttachments", + // "response": { + // "$ref": "GoogleCloudApigeeV1ListEndpointAttachmentsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsEndpointAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEndpointAttachmentsResponse) 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 "apigee.organizations.envgroups.create": type OrganizationsEnvgroupsCreateCall struct { diff --git a/baremetalsolution/v2/baremetalsolution-api.json b/baremetalsolution/v2/baremetalsolution-api.json index 068dc869f30..c32633021dc 100644 --- a/baremetalsolution/v2/baremetalsolution-api.json +++ b/baremetalsolution/v2/baremetalsolution-api.json @@ -212,6 +212,11 @@ "parent" ], "parameters": { + "filter": { + "description": "List filter.", + "location": "query", + "type": "string" + }, "pageSize": { "description": "Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", "format": "int32", @@ -239,6 +244,40 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "patch": { + "description": "Update details of a single server.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + "httpMethod": "PATCH", + "id": "baremetalsolution.projects.locations.instances.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name of this `Instance`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/instances/{instance}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to update. The only currently supported fields are: `labels`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "Instance" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "reset": { "description": "Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:reset", @@ -305,6 +344,11 @@ "parent" ], "parameters": { + "filter": { + "description": "List filter.", + "location": "query", + "type": "string" + }, "pageSize": { "description": "Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.", "format": "int32", @@ -331,125 +375,36 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - } - } - }, - "operations": { - "methods": { - "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "baremetalsolution.projects.locations.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v2/{+name}:cancel", - "request": { - "$ref": "CancelOperationRequest" - }, - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "baremetalsolution.projects.locations.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v2/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "baremetalsolution.projects.locations.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v2/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] }, - "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations", - "httpMethod": "GET", - "id": "baremetalsolution.projects.locations.operations.list", + "patch": { + "description": "Update details of a single network.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/networks/{networksId}", + "httpMethod": "PATCH", + "id": "baremetalsolution.projects.locations.networks.patch", "parameterOrder": [ "name" ], "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" - }, "name": { - "description": "The name of the operation's parent resource.", + "description": "Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}`", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/networks/[^/]+$", "required": true, "type": "string" }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", + "updateMask": { + "description": "The list of fields to update. The only currently supported fields are: `labels`", + "format": "google-fieldmask", "location": "query", "type": "string" } }, - "path": "v2/{+name}/operations", + "path": "v2/{+name}", + "request": { + "$ref": "Network" + }, "response": { - "$ref": "ListOperationsResponse" + "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -551,6 +506,11 @@ "parent" ], "parameters": { + "filter": { + "description": "List filter.", + "location": "query", + "type": "string" + }, "pageSize": { "description": "The maximum number of items to return.", "format": "int32", @@ -650,6 +610,11 @@ "parent" ], "parameters": { + "filter": { + "description": "List filter.", + "location": "query", + "type": "string" + }, "pageSize": { "description": "Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.", "format": "int32", @@ -694,7 +659,7 @@ "type": "string" }, "updateMask": { - "description": "The list of fields to update. The only currently supported fields are: `snapshot_auto_delete_behavior` `snapshot_schedule_policy_name`", + "description": "The list of fields to update. The only currently supported fields are: `snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels'", "format": "google-fieldmask", "location": "query", "type": "string" @@ -716,7 +681,7 @@ "luns": { "methods": { "get": { - "description": "Get details of a single storage lun.", + "description": "Get details of a single storage logical unit number(LUN).", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/luns/{lunsId}", "httpMethod": "GET", "id": "baremetalsolution.projects.locations.volumes.luns.get", @@ -931,15 +896,9 @@ } } }, - "revision": "20211207", + "revision": "20220119", "rootUrl": "https://baremetalsolution.googleapis.com/", "schemas": { - "CancelOperationRequest": { - "description": "The request message for Operations.CancelOperation.", - "id": "CancelOperationRequest", - "properties": {}, - "type": "object" - }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", "id": "Empty", @@ -960,6 +919,10 @@ "description": "True if you enable hyperthreading for the server, otherwise false. The default value is false.", "type": "boolean" }, + "id": { + "description": "An identifier for the `Instance`, generated by the backend.", + "type": "string" + }, "interactiveSerialConsoleEnabled": { "description": "True if the interactive serial console feature is enabled for the instance, false otherwise. The default value is false.", "type": "boolean" @@ -1112,24 +1075,6 @@ }, "type": "object" }, - "ListOperationsResponse": { - "description": "The response message for Operations.ListOperations.", - "id": "ListOperationsResponse", - "properties": { - "nextPageToken": { - "description": "The standard List next-page token.", - "type": "string" - }, - "operations": { - "description": "A list of operations that matches the specified filter in the request.", - "items": { - "$ref": "Operation" - }, - "type": "array" - } - }, - "type": "object" - }, "ListSnapshotSchedulePoliciesResponse": { "description": "Response message containing the list of snapshot schedule policies.", "id": "ListSnapshotSchedulePoliciesResponse", @@ -1240,6 +1185,10 @@ "description": "Display if this LUN is a boot LUN.", "type": "boolean" }, + "id": { + "description": "An identifier for the LUN, generated by the backend.", + "type": "string" + }, "multiprotocolType": { "description": "The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.", "enum": [ @@ -1317,10 +1266,21 @@ "description": "The cidr of the Network.", "type": "string" }, + "id": { + "description": "An identifier for the `Network`, generated by the backend.", + "type": "string" + }, "ipAddress": { "description": "IP address configured.", "type": "string" }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels as key value pairs.", + "type": "object" + }, "macAddress": { "description": "List of physical interfaces.", "items": { @@ -1329,12 +1289,12 @@ "type": "array" }, "name": { - "description": "Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}` This field will contain the same value as field \"network\", which will soon be deprecated. Please use this field to reference the name of the network resource.", + "description": "Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}`", "readOnly": true, "type": "string" }, - "network": { - "description": "Name of the network.", + "servicesCidr": { + "description": "IP range for reserved for services (e.g. NFS).", "type": "string" }, "state": { @@ -1346,7 +1306,7 @@ ], "enumDescriptions": [ "The Network is in an unknown state.", - "The Network is being provisioning.", + "The Network is provisioning.", "The Network has been provisioned." ], "type": "string" @@ -1485,13 +1445,24 @@ "description": "The description of the snapshot schedule policy.", "type": "string" }, + "id": { + "description": "An identifier for the snapshot schedule policy, generated by the backend.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels as key value pairs.", + "type": "object" + }, "name": { "description": "Output only. The name of the snapshot schedule policy.", "readOnly": true, "type": "string" }, "schedules": { - "description": "The snapshot schedules contained in this policy. You can specify a maxiumum of 5 schedules.", + "description": "The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.", "items": { "$ref": "Schedule" }, @@ -1548,8 +1519,8 @@ ], "enumDescriptions": [ "The unspecified state.", - "The vrf is being provisioning.", - "The vrf is being provisioning." + "The vrf is provisioning.", + "The vrf is provisioned." ], "type": "string" }, @@ -1597,6 +1568,17 @@ "format": "int64", "type": "string" }, + "id": { + "description": "An identifier for the `Volume`, generated by the backend.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels as key value pairs.", + "type": "object" + }, "name": { "description": "Output only. The resource name of this `Volume`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/volumes/{volume}`", "readOnly": true, @@ -1674,14 +1656,19 @@ "id": "VolumeSnapshot", "properties": { "createTime": { - "description": "Optional. The creation time of the storage volume snapshot.", + "description": "Output only. The creation time of the storage volume snapshot.", "format": "google-datetime", + "readOnly": true, "type": "string" }, "description": { "description": "The description of the storage volume snapshot.", "type": "string" }, + "id": { + "description": "An identifier for the snapshot, generated by the backend.", + "type": "string" + }, "name": { "description": "Output only. The name of the storage volume snapshot.", "readOnly": true, diff --git a/baremetalsolution/v2/baremetalsolution-gen.go b/baremetalsolution/v2/baremetalsolution-gen.go index 613d29d2eb7..e7510ebb121 100644 --- a/baremetalsolution/v2/baremetalsolution-gen.go +++ b/baremetalsolution/v2/baremetalsolution-gen.go @@ -50,6 +50,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -152,7 +153,6 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Instances = NewProjectsLocationsInstancesService(s) rs.Networks = NewProjectsLocationsNetworksService(s) - rs.Operations = NewProjectsLocationsOperationsService(s) rs.SnapshotSchedulePolicies = NewProjectsLocationsSnapshotSchedulePoliciesService(s) rs.Volumes = NewProjectsLocationsVolumesService(s) return rs @@ -165,8 +165,6 @@ type ProjectsLocationsService struct { Networks *ProjectsLocationsNetworksService - Operations *ProjectsLocationsOperationsService - SnapshotSchedulePolicies *ProjectsLocationsSnapshotSchedulePoliciesService Volumes *ProjectsLocationsVolumesService @@ -190,15 +188,6 @@ type ProjectsLocationsNetworksService struct { s *Service } -func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { - rs := &ProjectsLocationsOperationsService{s: s} - return rs -} - -type ProjectsLocationsOperationsService struct { - s *Service -} - func NewProjectsLocationsSnapshotSchedulePoliciesService(s *Service) *ProjectsLocationsSnapshotSchedulePoliciesService { rs := &ProjectsLocationsSnapshotSchedulePoliciesService{s: s} return rs @@ -241,11 +230,6 @@ type ProjectsLocationsVolumesSnapshotsService struct { s *Service } -// CancelOperationRequest: The request message for -// Operations.CancelOperation. -type CancelOperationRequest struct { -} - // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -267,6 +251,9 @@ type Instance struct { // server, otherwise false. The default value is false. HyperthreadingEnabled bool `json:"hyperthreadingEnabled,omitempty"` + // Id: An identifier for the `Instance`, generated by the backend. + Id string `json:"id,omitempty"` + // InteractiveSerialConsoleEnabled: True if the interactive serial // console feature is enabled for the instance, false otherwise. The // default value is false. @@ -483,43 +470,6 @@ func (s *ListNetworksResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. -type ListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. - Operations []*Operation `json:"operations,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty 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. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ListSnapshotSchedulePoliciesResponse: Response message containing the // list of snapshot schedule policies. type ListSnapshotSchedulePoliciesResponse struct { @@ -691,6 +641,9 @@ type Lun struct { // BootLun: Display if this LUN is a boot LUN. BootLun bool `json:"bootLun,omitempty"` + // Id: An identifier for the LUN, generated by the backend. + Id string `json:"id,omitempty"` + // MultiprotocolType: The LUN multiprotocol type ensures the // characteristics of the LUN are optimized for each operating system. // @@ -766,29 +719,32 @@ type Network struct { // Cidr: The cidr of the Network. Cidr string `json:"cidr,omitempty"` + // Id: An identifier for the `Network`, generated by the backend. + Id string `json:"id,omitempty"` + // IpAddress: IP address configured. IpAddress string `json:"ipAddress,omitempty"` + // Labels: Labels as key value pairs. + Labels map[string]string `json:"labels,omitempty"` + // MacAddress: List of physical interfaces. MacAddress []string `json:"macAddress,omitempty"` // Name: Output only. The resource name of this `Network`. Resource // names are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. Format: - // `projects/{project}/locations/{location}/networks/{network}` This - // field will contain the same value as field "network", which will soon - // be deprecated. Please use this field to reference the name of the - // network resource. + // `projects/{project}/locations/{location}/networks/{network}` Name string `json:"name,omitempty"` - // Network: Name of the network. - Network string `json:"network,omitempty"` + // ServicesCidr: IP range for reserved for services (e.g. NFS). + ServicesCidr string `json:"servicesCidr,omitempty"` // State: The Network state. // // Possible values: // "STATE_UNSPECIFIED" - The Network is in an unknown state. - // "PROVISIONING" - The Network is being provisioning. + // "PROVISIONING" - The Network is provisioning. // "PROVISIONED" - The Network has been provisioned. State string `json:"state,omitempty"` @@ -1029,11 +985,18 @@ type SnapshotSchedulePolicy struct { // Description: The description of the snapshot schedule policy. Description string `json:"description,omitempty"` + // Id: An identifier for the snapshot schedule policy, generated by the + // backend. + Id string `json:"id,omitempty"` + + // Labels: Labels as key value pairs. + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. The name of the snapshot schedule policy. Name string `json:"name,omitempty"` // Schedules: The snapshot schedules contained in this policy. You can - // specify a maxiumum of 5 schedules. + // specify a maximum of 5 schedules. Schedules []*Schedule `json:"schedules,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -1119,8 +1082,8 @@ type VRF struct { // // Possible values: // "STATE_UNSPECIFIED" - The unspecified state. - // "PROVISIONING" - The vrf is being provisioning. - // "PROVISIONED" - The vrf is being provisioning. + // "PROVISIONING" - The vrf is provisioning. + // "PROVISIONED" - The vrf is provisioned. State string `json:"state,omitempty"` // VlanAttachments: The list of VLAN attachments for the VRF. @@ -1196,6 +1159,12 @@ type Volume struct { // with auto grow or auto shrink. CurrentSizeGib int64 `json:"currentSizeGib,omitempty,string"` + // Id: An identifier for the `Volume`, generated by the backend. + Id string `json:"id,omitempty"` + + // Labels: Labels as key value pairs. + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. The resource name of this `Volume`. Resource names // are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. Format: @@ -1277,13 +1246,16 @@ func (s *Volume) MarshalJSON() ([]byte, error) { // VolumeSnapshot: Snapshot registered for a given storage volume. type VolumeSnapshot struct { - // CreateTime: Optional. The creation time of the storage volume + // CreateTime: Output only. The creation time of the storage volume // snapshot. CreateTime string `json:"createTime,omitempty"` // Description: The description of the storage volume snapshot. Description string `json:"description,omitempty"` + // Id: An identifier for the snapshot, generated by the backend. + Id string `json:"id,omitempty"` + // Name: Output only. The name of the storage volume snapshot. Name string `json:"name,omitempty"` @@ -1377,7 +1349,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -1549,7 +1521,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -1732,7 +1704,7 @@ func (c *ProjectsLocationsInstancesGetCall) Header() http.Header { func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -1841,6 +1813,12 @@ func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocatio return c } +// Filter sets the optional parameter "filter": List filter. +func (c *ProjectsLocationsInstancesListCall) Filter(filter string) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("filter", filter) + return c +} + // PageSize sets the optional parameter "pageSize": Requested page size. // Server may return fewer items than requested. If unspecified, the // server will pick an appropriate default. @@ -1893,7 +1871,7 @@ func (c *ProjectsLocationsInstancesListCall) Header() http.Header { func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -1963,6 +1941,11 @@ func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (* // "parent" // ], // "parameters": { + // "filter": { + // "description": "List filter.", + // "location": "query", + // "type": "string" + // }, // "pageSize": { // "description": "Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", // "format": "int32", @@ -2014,6 +1997,164 @@ func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.Context, f func(* } } +// method id "baremetalsolution.projects.locations.instances.patch": + +type ProjectsLocationsInstancesPatchCall struct { + s *Service + name string + instance *Instance + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update details of a single server. +// +// - name: Output only. The resource name of this `Instance`. Resource +// names are schemeless URIs that follow the conventions in +// https://cloud.google.com/apis/design/resource_names. Format: +// `projects/{project}/locations/{location}/instances/{instance}`. +func (r *ProjectsLocationsInstancesService) Patch(name string, instance *Instance) *ProjectsLocationsInstancesPatchCall { + c := &ProjectsLocationsInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.instance = instance + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update. The only currently supported fields are: `labels` +func (c *ProjectsLocationsInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsInstancesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *ProjectsLocationsInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesPatchCall { + 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 *ProjectsLocationsInstancesPatchCall) Context(ctx context.Context) *ProjectsLocationsInstancesPatchCall { + 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 *ProjectsLocationsInstancesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesPatchCall) 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.instance) + 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, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", 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 "baremetalsolution.projects.locations.instances.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update details of a single server.", + // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + // "httpMethod": "PATCH", + // "id": "baremetalsolution.projects.locations.instances.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The resource name of this `Instance`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/instances/{instance}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update. The only currently supported fields are: `labels`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "Instance" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "baremetalsolution.projects.locations.instances.reset": type ProjectsLocationsInstancesResetCall struct { @@ -2063,7 +2204,7 @@ func (c *ProjectsLocationsInstancesResetCall) Header() http.Header { func (c *ProjectsLocationsInstancesResetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -2214,7 +2355,7 @@ func (c *ProjectsLocationsNetworksGetCall) Header() http.Header { func (c *ProjectsLocationsNetworksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -2323,6 +2464,12 @@ func (r *ProjectsLocationsNetworksService) List(parent string) *ProjectsLocation return c } +// Filter sets the optional parameter "filter": List filter. +func (c *ProjectsLocationsNetworksListCall) Filter(filter string) *ProjectsLocationsNetworksListCall { + c.urlParams_.Set("filter", filter) + return c +} + // PageSize sets the optional parameter "pageSize": Requested page size. // The server might return fewer items than requested. If unspecified, // server will pick an appropriate default. @@ -2375,7 +2522,7 @@ func (c *ProjectsLocationsNetworksListCall) Header() http.Header { func (c *ProjectsLocationsNetworksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -2445,6 +2592,11 @@ func (c *ProjectsLocationsNetworksListCall) Do(opts ...googleapi.CallOption) (*L // "parent" // ], // "parameters": { + // "filter": { + // "description": "List filter.", + // "location": "query", + // "type": "string" + // }, // "pageSize": { // "description": "Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.", // "format": "int32", @@ -2496,40 +2648,41 @@ func (c *ProjectsLocationsNetworksListCall) Pages(ctx context.Context, f func(*L } } -// method id "baremetalsolution.projects.locations.operations.cancel": +// method id "baremetalsolution.projects.locations.networks.patch": -type ProjectsLocationsOperationsCancelCall struct { - s *Service - name string - canceloperationrequest *CancelOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNetworksPatchCall struct { + s *Service + name string + network *Network + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. +// Patch: Update details of a single network. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { - c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of this `Network`. Resource +// names are schemeless URIs that follow the conventions in +// https://cloud.google.com/apis/design/resource_names. Format: +// `projects/{project}/locations/{location}/networks/{network}`. +func (r *ProjectsLocationsNetworksService) Patch(name string, network *Network) *ProjectsLocationsNetworksPatchCall { + c := &ProjectsLocationsNetworksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.canceloperationrequest = canceloperationrequest + c.network = network + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update. The only currently supported fields are: `labels` +func (c *ProjectsLocationsNetworksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsNetworksPatchCall { + c.urlParams_.Set("updateMask", updateMask) 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 *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsNetworksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2537,38 +2690,38 @@ func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *Pr // 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 *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsNetworksPatchCall) Context(ctx context.Context) *ProjectsLocationsNetworksPatchCall { 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 *ProjectsLocationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsNetworksPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNetworksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + 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.canceloperationrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.network) 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, "v2/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -2579,14 +2732,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "baremetalsolution.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "baremetalsolution.projects.locations.networks.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsNetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2605,7 +2758,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2617,28 +2770,34 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "baremetalsolution.projects.locations.operations.cancel", + // "description": "Update details of a single network.", + // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/networks/{networksId}", + // "httpMethod": "PATCH", + // "id": "baremetalsolution.projects.locations.networks.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/networks/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update. The only currently supported fields are: `labels`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v2/{+name}:cancel", + // "path": "v2/{+name}", // "request": { - // "$ref": "CancelOperationRequest" + // "$ref": "Network" // }, // "response": { - // "$ref": "Empty" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -2647,503 +2806,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) } -// method id "baremetalsolution.projects.locations.operations.delete": - -type ProjectsLocationsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. -// -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { - c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { - 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 *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { - 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 *ProjectsLocationsOperationsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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 "baremetalsolution.projects.locations.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &Empty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "baremetalsolution.projects.locations.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "baremetalsolution.projects.locations.operations.get": - -type ProjectsLocationsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. -// -// - name: The name of the operation resource. -func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { - c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { - 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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { - 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 *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { - 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 *ProjectsLocationsOperationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") - 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, "v2/{+name}") - 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{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "baremetalsolution.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "baremetalsolution.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "baremetalsolution.projects.locations.operations.list": - -type ProjectsLocationsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. -// -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { - c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { - 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 *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { - 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { - 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 *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { - 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 *ProjectsLocationsOperationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") - 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, "v2/{+name}/operations") - 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{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "baremetalsolution.projects.locations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &ListOperationsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "baremetalsolution.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/{+name}/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "baremetalsolution.projects.locations.snapshotSchedulePolicies.create": +// method id "baremetalsolution.projects.locations.snapshotSchedulePolicies.create": type ProjectsLocationsSnapshotSchedulePoliciesCreateCall struct { s *Service @@ -3199,7 +2862,7 @@ func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Header() http.Head func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -3344,7 +3007,7 @@ func (c *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Header() http.Head func (c *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -3487,7 +3150,7 @@ func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) Header() http.Header func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -3598,6 +3261,12 @@ func (r *ProjectsLocationsSnapshotSchedulePoliciesService) List(parent string) * return c } +// Filter sets the optional parameter "filter": List filter. +func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Filter(filter string) *ProjectsLocationsSnapshotSchedulePoliciesListCall { + c.urlParams_.Set("filter", filter) + return c +} + // PageSize sets the optional parameter "pageSize": The maximum number // of items to return. func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsSnapshotSchedulePoliciesListCall { @@ -3649,7 +3318,7 @@ func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Header() http.Header func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -3720,6 +3389,11 @@ func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Do(opts ...googleapi // "parent" // ], // "parameters": { + // "filter": { + // "description": "List filter.", + // "location": "query", + // "type": "string" + // }, // "pageSize": { // "description": "The maximum number of items to return.", // "format": "int32", @@ -3826,7 +3500,7 @@ func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Header() http.Heade func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -3983,7 +3657,7 @@ func (c *ProjectsLocationsVolumesGetCall) Header() http.Header { func (c *ProjectsLocationsVolumesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -4092,6 +3766,12 @@ func (r *ProjectsLocationsVolumesService) List(parent string) *ProjectsLocations return c } +// Filter sets the optional parameter "filter": List filter. +func (c *ProjectsLocationsVolumesListCall) Filter(filter string) *ProjectsLocationsVolumesListCall { + c.urlParams_.Set("filter", filter) + return c +} + // PageSize sets the optional parameter "pageSize": Requested page size. // The server might return fewer items than requested. If unspecified, // server will pick an appropriate default. @@ -4144,7 +3824,7 @@ func (c *ProjectsLocationsVolumesListCall) Header() http.Header { func (c *ProjectsLocationsVolumesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -4214,6 +3894,11 @@ func (c *ProjectsLocationsVolumesListCall) Do(opts ...googleapi.CallOption) (*Li // "parent" // ], // "parameters": { + // "filter": { + // "description": "List filter.", + // "location": "query", + // "type": "string" + // }, // "pageSize": { // "description": "Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.", // "format": "int32", @@ -4292,6 +3977,7 @@ func (r *ProjectsLocationsVolumesService) Patch(name string, volume *Volume) *Pr // UpdateMask sets the optional parameter "updateMask": The list of // fields to update. The only currently supported fields are: // `snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` +// 'labels' func (c *ProjectsLocationsVolumesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsVolumesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -4324,7 +4010,7 @@ func (c *ProjectsLocationsVolumesPatchCall) Header() http.Header { func (c *ProjectsLocationsVolumesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -4404,7 +4090,7 @@ func (c *ProjectsLocationsVolumesPatchCall) Do(opts ...googleapi.CallOption) (*O // "type": "string" // }, // "updateMask": { - // "description": "The list of fields to update. The only currently supported fields are: `snapshot_auto_delete_behavior` `snapshot_schedule_policy_name`", + // "description": "The list of fields to update. The only currently supported fields are: `snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels'", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -4435,7 +4121,7 @@ type ProjectsLocationsVolumesLunsGetCall struct { header_ http.Header } -// Get: Get details of a single storage lun. +// Get: Get details of a single storage logical unit number(LUN). // // - name: Name of the resource. func (r *ProjectsLocationsVolumesLunsService) Get(name string) *ProjectsLocationsVolumesLunsGetCall { @@ -4481,7 +4167,7 @@ func (c *ProjectsLocationsVolumesLunsGetCall) Header() http.Header { func (c *ProjectsLocationsVolumesLunsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -4543,7 +4229,7 @@ func (c *ProjectsLocationsVolumesLunsGetCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Get details of a single storage lun.", + // "description": "Get details of a single storage logical unit number(LUN).", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/luns/{lunsId}", // "httpMethod": "GET", // "id": "baremetalsolution.projects.locations.volumes.luns.get", @@ -4642,7 +4328,7 @@ func (c *ProjectsLocationsVolumesLunsListCall) Header() http.Header { func (c *ProjectsLocationsVolumesLunsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -4811,7 +4497,7 @@ func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Header() http.Header { func (c *ProjectsLocationsVolumesSnapshotsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -4951,7 +4637,7 @@ func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Header() http.Header { func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -5094,7 +4780,7 @@ func (c *ProjectsLocationsVolumesSnapshotsGetCall) Header() http.Header { func (c *ProjectsLocationsVolumesSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -5255,7 +4941,7 @@ func (c *ProjectsLocationsVolumesSnapshotsListCall) Header() http.Header { func (c *ProjectsLocationsVolumesSnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -5425,7 +5111,7 @@ func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Header() ht func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220112") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/billingbudgets/v1/billingbudgets-api.json b/billingbudgets/v1/billingbudgets-api.json index f9c47227a73..d4e08c2e359 100644 --- a/billingbudgets/v1/billingbudgets-api.json +++ b/billingbudgets/v1/billingbudgets-api.json @@ -270,7 +270,7 @@ } } }, - "revision": "20220129", + "revision": "20220205", "rootUrl": "https://billingbudgets.googleapis.com/", "schemas": { "GoogleCloudBillingBudgetsV1Budget": { @@ -506,6 +506,7 @@ "type": "object" }, "GoogleTypeDate": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/billingbudgets/v1/billingbudgets-gen.go b/billingbudgets/v1/billingbudgets-gen.go index b036174e5aa..03edbae13d7 100644 --- a/billingbudgets/v1/billingbudgets-gen.go +++ b/billingbudgets/v1/billingbudgets-gen.go @@ -628,6 +628,15 @@ type GoogleProtobufEmpty struct { googleapi.ServerResponse `json:"-"` } +// GoogleTypeDate: Represents a whole or partial calendar date, such as +// a birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/billingbudgets/v1beta1/billingbudgets-api.json b/billingbudgets/v1beta1/billingbudgets-api.json index 224b22891dc..e5579ac3d3d 100644 --- a/billingbudgets/v1beta1/billingbudgets-api.json +++ b/billingbudgets/v1beta1/billingbudgets-api.json @@ -113,7 +113,7 @@ "budgets": { "methods": { "create": { - "description": "Creates a new budget. See Quotas and limits for more information on the limits of the number of budgets you can create.", + "description": "Creates a new budget. See [Quotas and limits](https://cloud.google.com/billing/quotas) for more information on the limits of the number of budgets you can create.", "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/budgets", "httpMethod": "POST", "id": "billingbudgets.billingAccounts.budgets.create", @@ -264,7 +264,7 @@ } } }, - "revision": "20220129", + "revision": "20220205", "rootUrl": "https://billingbudgets.googleapis.com/", "schemas": { "GoogleCloudBillingBudgetsV1beta1AllUpdatesRule": { @@ -527,6 +527,7 @@ "type": "object" }, "GoogleTypeDate": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/billingbudgets/v1beta1/billingbudgets-gen.go b/billingbudgets/v1beta1/billingbudgets-gen.go index 516aae211aa..679238cb59d 100644 --- a/billingbudgets/v1beta1/billingbudgets-gen.go +++ b/billingbudgets/v1beta1/billingbudgets-gen.go @@ -678,6 +678,15 @@ type GoogleProtobufEmpty struct { googleapi.ServerResponse `json:"-"` } +// GoogleTypeDate: Represents a whole or partial calendar date, such as +// a birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -767,8 +776,9 @@ type BillingAccountsBudgetsCreateCall struct { header_ http.Header } -// Create: Creates a new budget. See Quotas and limits for more -// information on the limits of the number of budgets you can create. +// Create: Creates a new budget. See Quotas and limits +// (https://cloud.google.com/billing/quotas) for more information on the +// limits of the number of budgets you can create. // // - parent: The name of the billing account to create the budget in. // Values are of the form `billingAccounts/{billingAccountId}`. @@ -871,7 +881,7 @@ func (c *BillingAccountsBudgetsCreateCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Creates a new budget. See Quotas and limits for more information on the limits of the number of budgets you can create.", + // "description": "Creates a new budget. See [Quotas and limits](https://cloud.google.com/billing/quotas) for more information on the limits of the number of budgets you can create.", // "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/budgets", // "httpMethod": "POST", // "id": "billingbudgets.billingAccounts.budgets.create", diff --git a/calendar/v3/calendar-api.json b/calendar/v3/calendar-api.json index cc18d6a2aa8..78816dfc86b 100644 --- a/calendar/v3/calendar-api.json +++ b/calendar/v3/calendar-api.json @@ -960,7 +960,7 @@ "enumDescriptions": [ "Notifications are sent to all guests.", "Notifications are sent to non-Google Calendar guests only.", - "No notifications are sent. For calendar migration tasks, consider using the Events.import method instead." + "No notifications are sent. Warning: Using the value none can have significant adverse effects, including events not syncing to external calendars or events being lost altogether for some users. For calendar migration tasks, consider using the events.import method instead." ], "location": "query", "type": "string" @@ -1723,7 +1723,7 @@ } } }, - "revision": "20211229", + "revision": "20220203", "rootUrl": "https://www.googleapis.com/", "schemas": { "Acl": { diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index 03d2a7a5736..2be24edb583 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -6405,8 +6405,11 @@ func (c *EventsInsertCall) SendNotifications(sendNotifications bool) *EventsInse // "all" - Notifications are sent to all guests. // "externalOnly" - Notifications are sent to non-Google Calendar // guests only. -// "none" - No notifications are sent. For calendar migration tasks, -// consider using the Events.import method instead. +// "none" - No notifications are sent. Warning: Using the value none +// can have significant adverse effects, including events not syncing to +// external calendars or events being lost altogether for some users. +// For calendar migration tasks, consider using the events.import method +// instead. func (c *EventsInsertCall) SendUpdates(sendUpdates string) *EventsInsertCall { c.urlParams_.Set("sendUpdates", sendUpdates) return c @@ -6554,7 +6557,7 @@ func (c *EventsInsertCall) Do(opts ...googleapi.CallOption) (*Event, error) { // "enumDescriptions": [ // "Notifications are sent to all guests.", // "Notifications are sent to non-Google Calendar guests only.", - // "No notifications are sent. For calendar migration tasks, consider using the Events.import method instead." + // "No notifications are sent. Warning: Using the value none can have significant adverse effects, including events not syncing to external calendars or events being lost altogether for some users. For calendar migration tasks, consider using the events.import method instead." // ], // "location": "query", // "type": "string" diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index 354f0422c72..93fcdf76799 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -2039,7 +2039,7 @@ } } }, - "revision": "20220126", + "revision": "20220131", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "AddBitbucketServerConnectedRepositoryRequest": { @@ -3482,28 +3482,6 @@ }, "type": "object" }, - "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig": { - "description": "Configuration per workload for both Private Pools and Hybrid Pools.", - "id": "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig", - "properties": { - "diskSizeGb": { - "description": "The disk size (in GB) which is requested for the build container. If unset, a value of 10 GB will be used.", - "format": "int64", - "type": "string" - }, - "memoryGb": { - "description": "The memory (in GB) which is requested for the build container. If unset, a value of 4 GB will be used.", - "format": "float", - "type": "number" - }, - "vcpuCount": { - "description": "The number of vCPUs which are requested for the build container. If unset, a value of 1 will be used.", - "format": "float", - "type": "number" - } - }, - "type": "object" - }, "GoogleDevtoolsCloudbuildV2OperationMetadata": { "description": "Represents the metadata of the long-running operation.", "id": "GoogleDevtoolsCloudbuildV2OperationMetadata", @@ -3612,43 +3590,6 @@ }, "type": "object" }, - "HybridPoolConfig": { - "description": "Configuration for a Hybrid Worker Pool Next ID: 6", - "id": "HybridPoolConfig", - "properties": { - "defaultWorkerConfig": { - "$ref": "HybridWorkerConfig", - "description": "Default settings which will be applied to builds on this worker pool if they are not specified in the build request." - }, - "membership": { - "description": "Required. Immutable. The Anthos/GKE Hub membership of the cluster which will run the actual build operations. Example: projects/{project}/locations/{location}/memberships/{cluster_name}", - "type": "string" - } - }, - "type": "object" - }, - "HybridWorkerConfig": { - "description": "These settings can be applied to a user's build operations. Next ID: 4", - "id": "HybridWorkerConfig", - "properties": { - "diskSizeGb": { - "description": "The disk size (in GB) which is requested for the build container. Defaults to 10 GB.", - "format": "int64", - "type": "string" - }, - "memoryGb": { - "description": "The memory (in GB) which is requested for the build container. Defaults to 4 GB.", - "format": "float", - "type": "number" - }, - "vcpuCount": { - "description": "The number of vCPUs which are requested for the build container. Defaults to 1.", - "format": "float", - "type": "number" - } - }, - "type": "object" - }, "InlineSecret": { "description": "Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.", "id": "InlineSecret", @@ -3996,10 +3937,6 @@ "name": { "description": "The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}", "type": "string" - }, - "workerConfig": { - "$ref": "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig", - "description": "Configuration per workload." } }, "type": "object" @@ -4694,10 +4631,6 @@ "readOnly": true, "type": "string" }, - "hybridPoolConfig": { - "$ref": "HybridPoolConfig", - "description": "Hybrid pool configuration" - }, "name": { "description": "Output only. The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.", "readOnly": true, diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index d0885cdf38a..730124f89bf 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -2474,60 +2474,6 @@ func (s *GitRepoSource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig: -// Configuration per workload for both Private Pools and Hybrid Pools. -type GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig struct { - // DiskSizeGb: The disk size (in GB) which is requested for the build - // container. If unset, a value of 10 GB will be used. - DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // MemoryGb: The memory (in GB) which is requested for the build - // container. If unset, a value of 4 GB will be used. - MemoryGb float64 `json:"memoryGb,omitempty"` - - // VcpuCount: The number of vCPUs which are requested for the build - // container. If unset, a value of 1 will be used. - VcpuCount float64 `json:"vcpuCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") 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. "DiskSizeGb") 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 *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig) UnmarshalJSON(data []byte) error { - type NoMethod GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig - var s1 struct { - MemoryGb gensupport.JSONFloat64 `json:"memoryGb"` - VcpuCount gensupport.JSONFloat64 `json:"vcpuCount"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.MemoryGb = float64(s1.MemoryGb) - s.VcpuCount = float64(s1.VcpuCount) - return nil -} - // GoogleDevtoolsCloudbuildV2OperationMetadata: Represents the metadata // of the long-running operation. type GoogleDevtoolsCloudbuildV2OperationMetadata struct { @@ -2699,95 +2645,6 @@ func (s *HttpBody) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// HybridPoolConfig: Configuration for a Hybrid Worker Pool Next ID: 6 -type HybridPoolConfig struct { - // DefaultWorkerConfig: Default settings which will be applied to builds - // on this worker pool if they are not specified in the build request. - DefaultWorkerConfig *HybridWorkerConfig `json:"defaultWorkerConfig,omitempty"` - - // Membership: Required. Immutable. The Anthos/GKE Hub membership of the - // cluster which will run the actual build operations. Example: - // projects/{project}/locations/{location}/memberships/{cluster_name} - Membership string `json:"membership,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DefaultWorkerConfig") - // 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. "DefaultWorkerConfig") 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 *HybridPoolConfig) MarshalJSON() ([]byte, error) { - type NoMethod HybridPoolConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// HybridWorkerConfig: These settings can be applied to a user's build -// operations. Next ID: 4 -type HybridWorkerConfig struct { - // DiskSizeGb: The disk size (in GB) which is requested for the build - // container. Defaults to 10 GB. - DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // MemoryGb: The memory (in GB) which is requested for the build - // container. Defaults to 4 GB. - MemoryGb float64 `json:"memoryGb,omitempty"` - - // VcpuCount: The number of vCPUs which are requested for the build - // container. Defaults to 1. - VcpuCount float64 `json:"vcpuCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") 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. "DiskSizeGb") 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 *HybridWorkerConfig) MarshalJSON() ([]byte, error) { - type NoMethod HybridWorkerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *HybridWorkerConfig) UnmarshalJSON(data []byte) error { - type NoMethod HybridWorkerConfig - var s1 struct { - MemoryGb gensupport.JSONFloat64 `json:"memoryGb"` - VcpuCount gensupport.JSONFloat64 `json:"vcpuCount"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.MemoryGb = float64(s1.MemoryGb) - s.VcpuCount = float64(s1.VcpuCount) - return nil -} - // InlineSecret: Pairs a set of secret environment variables mapped to // encrypted values with the Cloud KMS key to use to decrypt the value. type InlineSecret struct { @@ -3437,9 +3294,6 @@ type PoolOption struct { // projects/{project}/locations/{location}/workerPools/{workerPoolId} Name string `json:"name,omitempty"` - // WorkerConfig: Configuration per workload. - WorkerConfig *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig `json:"workerConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -4663,9 +4517,6 @@ type WorkerPool struct { // up-to-date value before proceeding. Etag string `json:"etag,omitempty"` - // HybridPoolConfig: Hybrid pool configuration - HybridPoolConfig *HybridPoolConfig `json:"hybridPoolConfig,omitempty"` - // Name: Output only. The resource name of the `WorkerPool`, with format // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. // The value of `{worker_pool}` is provided by `worker_pool_id` in diff --git a/cloudbuild/v1alpha1/cloudbuild-api.json b/cloudbuild/v1alpha1/cloudbuild-api.json index 632f1704d14..e9d5cd1492f 100644 --- a/cloudbuild/v1alpha1/cloudbuild-api.json +++ b/cloudbuild/v1alpha1/cloudbuild-api.json @@ -306,7 +306,7 @@ } } }, - "revision": "20220126", + "revision": "20220131", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -1222,28 +1222,6 @@ }, "type": "object" }, - "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig": { - "description": "Configuration per workload for both Private Pools and Hybrid Pools.", - "id": "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig", - "properties": { - "diskSizeGb": { - "description": "The disk size (in GB) which is requested for the build container. If unset, a value of 10 GB will be used.", - "format": "int64", - "type": "string" - }, - "memoryGb": { - "description": "The memory (in GB) which is requested for the build container. If unset, a value of 4 GB will be used.", - "format": "float", - "type": "number" - }, - "vcpuCount": { - "description": "The number of vCPUs which are requested for the build container. If unset, a value of 1 will be used.", - "format": "float", - "type": "number" - } - }, - "type": "object" - }, "GoogleDevtoolsCloudbuildV2OperationMetadata": { "description": "Represents the metadata of the long-running operation.", "id": "GoogleDevtoolsCloudbuildV2OperationMetadata", @@ -1576,10 +1554,6 @@ "name": { "description": "The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}", "type": "string" - }, - "workerConfig": { - "$ref": "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig", - "description": "Configuration per workload." } }, "type": "object" diff --git a/cloudbuild/v1alpha1/cloudbuild-gen.go b/cloudbuild/v1alpha1/cloudbuild-gen.go index 264e9e6e9b1..9a7e4f86ded 100644 --- a/cloudbuild/v1alpha1/cloudbuild-gen.go +++ b/cloudbuild/v1alpha1/cloudbuild-gen.go @@ -1467,60 +1467,6 @@ func (s *FileHashes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig: -// Configuration per workload for both Private Pools and Hybrid Pools. -type GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig struct { - // DiskSizeGb: The disk size (in GB) which is requested for the build - // container. If unset, a value of 10 GB will be used. - DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // MemoryGb: The memory (in GB) which is requested for the build - // container. If unset, a value of 4 GB will be used. - MemoryGb float64 `json:"memoryGb,omitempty"` - - // VcpuCount: The number of vCPUs which are requested for the build - // container. If unset, a value of 1 will be used. - VcpuCount float64 `json:"vcpuCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") 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. "DiskSizeGb") 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 *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig) UnmarshalJSON(data []byte) error { - type NoMethod GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig - var s1 struct { - MemoryGb gensupport.JSONFloat64 `json:"memoryGb"` - VcpuCount gensupport.JSONFloat64 `json:"vcpuCount"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.MemoryGb = float64(s1.MemoryGb) - s.VcpuCount = float64(s1.VcpuCount) - return nil -} - // GoogleDevtoolsCloudbuildV2OperationMetadata: Represents the metadata // of the long-running operation. type GoogleDevtoolsCloudbuildV2OperationMetadata struct { @@ -2091,9 +2037,6 @@ type PoolOption struct { // projects/{project}/locations/{location}/workerPools/{workerPoolId} Name string `json:"name,omitempty"` - // WorkerConfig: Configuration per workload. - WorkerConfig *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig `json:"workerConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/cloudbuild/v1alpha2/cloudbuild-api.json b/cloudbuild/v1alpha2/cloudbuild-api.json index 744d8592100..af0749d7df9 100644 --- a/cloudbuild/v1alpha2/cloudbuild-api.json +++ b/cloudbuild/v1alpha2/cloudbuild-api.json @@ -317,7 +317,7 @@ } } }, - "revision": "20220126", + "revision": "20220131", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -1233,28 +1233,6 @@ }, "type": "object" }, - "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig": { - "description": "Configuration per workload for both Private Pools and Hybrid Pools.", - "id": "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig", - "properties": { - "diskSizeGb": { - "description": "The disk size (in GB) which is requested for the build container. If unset, a value of 10 GB will be used.", - "format": "int64", - "type": "string" - }, - "memoryGb": { - "description": "The memory (in GB) which is requested for the build container. If unset, a value of 4 GB will be used.", - "format": "float", - "type": "number" - }, - "vcpuCount": { - "description": "The number of vCPUs which are requested for the build container. If unset, a value of 1 will be used.", - "format": "float", - "type": "number" - } - }, - "type": "object" - }, "GoogleDevtoolsCloudbuildV2OperationMetadata": { "description": "Represents the metadata of the long-running operation.", "id": "GoogleDevtoolsCloudbuildV2OperationMetadata", @@ -1579,10 +1557,6 @@ "name": { "description": "The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}", "type": "string" - }, - "workerConfig": { - "$ref": "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig", - "description": "Configuration per workload." } }, "type": "object" diff --git a/cloudbuild/v1alpha2/cloudbuild-gen.go b/cloudbuild/v1alpha2/cloudbuild-gen.go index 317a3593849..f59ac23f12c 100644 --- a/cloudbuild/v1alpha2/cloudbuild-gen.go +++ b/cloudbuild/v1alpha2/cloudbuild-gen.go @@ -1467,60 +1467,6 @@ func (s *FileHashes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig: -// Configuration per workload for both Private Pools and Hybrid Pools. -type GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig struct { - // DiskSizeGb: The disk size (in GB) which is requested for the build - // container. If unset, a value of 10 GB will be used. - DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // MemoryGb: The memory (in GB) which is requested for the build - // container. If unset, a value of 4 GB will be used. - MemoryGb float64 `json:"memoryGb,omitempty"` - - // VcpuCount: The number of vCPUs which are requested for the build - // container. If unset, a value of 1 will be used. - VcpuCount float64 `json:"vcpuCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") 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. "DiskSizeGb") 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 *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig) UnmarshalJSON(data []byte) error { - type NoMethod GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig - var s1 struct { - MemoryGb gensupport.JSONFloat64 `json:"memoryGb"` - VcpuCount gensupport.JSONFloat64 `json:"vcpuCount"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.MemoryGb = float64(s1.MemoryGb) - s.VcpuCount = float64(s1.VcpuCount) - return nil -} - // GoogleDevtoolsCloudbuildV2OperationMetadata: Represents the metadata // of the long-running operation. type GoogleDevtoolsCloudbuildV2OperationMetadata struct { @@ -2084,9 +2030,6 @@ type PoolOption struct { // projects/{project}/locations/{location}/workerPools/{workerPoolId} Name string `json:"name,omitempty"` - // WorkerConfig: Configuration per workload. - WorkerConfig *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig `json:"workerConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/cloudbuild/v1beta1/cloudbuild-api.json b/cloudbuild/v1beta1/cloudbuild-api.json index 6b580cc3937..8f84fd5e573 100644 --- a/cloudbuild/v1beta1/cloudbuild-api.json +++ b/cloudbuild/v1beta1/cloudbuild-api.json @@ -322,7 +322,7 @@ } } }, - "revision": "20220126", + "revision": "20220131", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -1238,28 +1238,6 @@ }, "type": "object" }, - "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig": { - "description": "Configuration per workload for both Private Pools and Hybrid Pools.", - "id": "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig", - "properties": { - "diskSizeGb": { - "description": "The disk size (in GB) which is requested for the build container. If unset, a value of 10 GB will be used.", - "format": "int64", - "type": "string" - }, - "memoryGb": { - "description": "The memory (in GB) which is requested for the build container. If unset, a value of 4 GB will be used.", - "format": "float", - "type": "number" - }, - "vcpuCount": { - "description": "The number of vCPUs which are requested for the build container. If unset, a value of 1 will be used.", - "format": "float", - "type": "number" - } - }, - "type": "object" - }, "GoogleDevtoolsCloudbuildV2OperationMetadata": { "description": "Represents the metadata of the long-running operation.", "id": "GoogleDevtoolsCloudbuildV2OperationMetadata", @@ -1584,10 +1562,6 @@ "name": { "description": "The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}", "type": "string" - }, - "workerConfig": { - "$ref": "GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig", - "description": "Configuration per workload." } }, "type": "object" diff --git a/cloudbuild/v1beta1/cloudbuild-gen.go b/cloudbuild/v1beta1/cloudbuild-gen.go index 8be3af06d05..ef89954c399 100644 --- a/cloudbuild/v1beta1/cloudbuild-gen.go +++ b/cloudbuild/v1beta1/cloudbuild-gen.go @@ -1467,60 +1467,6 @@ func (s *FileHashes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig: -// Configuration per workload for both Private Pools and Hybrid Pools. -type GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig struct { - // DiskSizeGb: The disk size (in GB) which is requested for the build - // container. If unset, a value of 10 GB will be used. - DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // MemoryGb: The memory (in GB) which is requested for the build - // container. If unset, a value of 4 GB will be used. - MemoryGb float64 `json:"memoryGb,omitempty"` - - // VcpuCount: The number of vCPUs which are requested for the build - // container. If unset, a value of 1 will be used. - VcpuCount float64 `json:"vcpuCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") 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. "DiskSizeGb") 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 *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig) UnmarshalJSON(data []byte) error { - type NoMethod GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig - var s1 struct { - MemoryGb gensupport.JSONFloat64 `json:"memoryGb"` - VcpuCount gensupport.JSONFloat64 `json:"vcpuCount"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.MemoryGb = float64(s1.MemoryGb) - s.VcpuCount = float64(s1.VcpuCount) - return nil -} - // GoogleDevtoolsCloudbuildV2OperationMetadata: Represents the metadata // of the long-running operation. type GoogleDevtoolsCloudbuildV2OperationMetadata struct { @@ -2087,9 +2033,6 @@ type PoolOption struct { // projects/{project}/locations/{location}/workerPools/{workerPoolId} Name string `json:"name,omitempty"` - // WorkerConfig: Configuration per workload. - WorkerConfig *GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig `json:"workerConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/cloudidentity/v1/cloudidentity-api.json b/cloudidentity/v1/cloudidentity-api.json index c7416380b27..2bdbaff8088 100644 --- a/cloudidentity/v1/cloudidentity-api.json +++ b/cloudidentity/v1/cloudidentity-api.json @@ -1341,7 +1341,7 @@ } } }, - "revision": "20220125", + "revision": "20220208", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "CheckTransitiveMembershipResponse": { @@ -2852,45 +2852,6 @@ } }, "type": "object" - }, - "UserInvitation": { - "description": "The `UserInvitation` resource represents an email that can be sent to an unmanaged user account inviting them to join the customer's Google Workspace or Cloud Identity account. An unmanaged account shares an email address domain with the Google Workspace or Cloud Identity account but is not managed by it yet. If the user accepts the `UserInvitation`, the user account will become managed.", - "id": "UserInvitation", - "properties": { - "mailsSentCount": { - "description": "Number of invitation emails sent to the user.", - "format": "int64", - "type": "string" - }, - "name": { - "description": "Shall be of the form `customers/{customer}/userinvitations/{user_email_address}`.", - "type": "string" - }, - "state": { - "description": "State of the `UserInvitation`.", - "enum": [ - "STATE_UNSPECIFIED", - "NOT_YET_SENT", - "INVITED", - "ACCEPTED", - "DECLINED" - ], - "enumDescriptions": [ - "The default value. This value is used if the state is omitted.", - "The `UserInvitation` has been created and is ready for sending as an email.", - "The user has been invited by email.", - "The user has accepted the invitation and is part of the organization.", - "The user declined the invitation." - ], - "type": "string" - }, - "updateTime": { - "description": "Time when the `UserInvitation` was last updated.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" } }, "servicePath": "", diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index 29a699cad3f..5c18f7bb290 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -2622,61 +2622,6 @@ func (s *UpdateMembershipRolesParams) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UserInvitation: The `UserInvitation` resource represents an email -// that can be sent to an unmanaged user account inviting them to join -// the customer's Google Workspace or Cloud Identity account. An -// unmanaged account shares an email address domain with the Google -// Workspace or Cloud Identity account but is not managed by it yet. If -// the user accepts the `UserInvitation`, the user account will become -// managed. -type UserInvitation struct { - // MailsSentCount: Number of invitation emails sent to the user. - MailsSentCount int64 `json:"mailsSentCount,omitempty,string"` - - // Name: Shall be of the form - // `customers/{customer}/userinvitations/{user_email_address}`. - Name string `json:"name,omitempty"` - - // State: State of the `UserInvitation`. - // - // Possible values: - // "STATE_UNSPECIFIED" - The default value. This value is used if the - // state is omitted. - // "NOT_YET_SENT" - The `UserInvitation` has been created and is ready - // for sending as an email. - // "INVITED" - The user has been invited by email. - // "ACCEPTED" - The user has accepted the invitation and is part of - // the organization. - // "DECLINED" - The user declined the invitation. - State string `json:"state,omitempty"` - - // UpdateTime: Time when the `UserInvitation` was last updated. - UpdateTime string `json:"updateTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MailsSentCount") 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. "MailsSentCount") 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 *UserInvitation) MarshalJSON() ([]byte, error) { - type NoMethod UserInvitation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // method id "cloudidentity.devices.cancelWipe": type DevicesCancelWipeCall struct { diff --git a/cloudidentity/v1beta1/cloudidentity-api.json b/cloudidentity/v1beta1/cloudidentity-api.json index 545ffeeb78b..030d3639740 100644 --- a/cloudidentity/v1beta1/cloudidentity-api.json +++ b/cloudidentity/v1beta1/cloudidentity-api.json @@ -1460,7 +1460,7 @@ ], "parameters": { "name": { - "description": "Required. Immutable. The [resource name](https://cloud.google.com/apis/design/resource_names) of the OrgMembership. Format: orgUnits/{$orgUnitId}/memberships/{$membership} The `$orgUnitId` is the `orgUnitId` from the [Admin SDK `OrgUnit` resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/orgunits), The `$membership` shall be of the form `{$entityType};{$memberId}`, where `$entityType` is the enum value of OrgMembership.EntityType, and `memberId` is the `id` from [Drive API (V3) `Drive` resource](https://developers.google.com/drive/api/v3/reference/drives#resource) for OrgMembership.EntityType.SHARED_DRIVE.", + "description": "Required. Immutable. The [resource name](https://cloud.google.com/apis/design/resource_names) of the OrgMembership. Format: orgUnits/{$orgUnitId}/memberships/{$membership} The `$orgUnitId` is the `orgUnitId` from the [Admin SDK `OrgUnit` resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/orgunits). To manage a Membership without specifying source `orgUnitId`, this API also supports the wildcard character '-' for `$orgUnitId` per https://google.aip.dev/159. The `$membership` shall be of the form `{$entityType};{$memberId}`, where `$entityType` is the enum value of OrgMembership.EntityType, and `memberId` is the `id` from [Drive API (V3) `Drive` resource](https://developers.google.com/drive/api/v3/reference/drives#resource) for OrgMembership.EntityType.SHARED_DRIVE.", "location": "path", "pattern": "^orgUnits/[^/]+/memberships/[^/]+$", "required": true, @@ -1480,7 +1480,7 @@ } } }, - "revision": "20220125", + "revision": "20220208", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AndroidAttributes": { diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index db5b93da198..c08b01a2627 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -10679,10 +10679,13 @@ type OrgUnitsMembershipsMoveCall struct { // OrgMembership. Format: // orgUnits/{$orgUnitId}/memberships/{$membership} The `$orgUnitId` is // the `orgUnitId` from the Admin SDK `OrgUnit` resource -// (https://developers.google.com/admin-sdk/directory/reference/rest/v1/orgunits), -// The `$membership` shall be of the form `{$entityType};{$memberId}`, -// where `$entityType` is the enum value of OrgMembership.EntityType, -// and `memberId` is the `id` from Drive API (V3) `Drive` resource +// (https://developers.google.com/admin-sdk/directory/reference/rest/v1/orgunits). +// To manage a Membership without specifying source `orgUnitId`, this +// API also supports the wildcard character '-' for `$orgUnitId` per +// https://google.aip.dev/159. The `$membership` shall be of the form +// `{$entityType};{$memberId}`, where `$entityType` is the enum value +// of OrgMembership.EntityType, and `memberId` is the `id` from Drive +// API (V3) `Drive` resource // (https://developers.google.com/drive/api/v3/reference/drives#resource) // for OrgMembership.EntityType.SHARED_DRIVE. func (r *OrgUnitsMembershipsService) Move(name string, moveorgmembershiprequest *MoveOrgMembershipRequest) *OrgUnitsMembershipsMoveCall { @@ -10792,7 +10795,7 @@ func (c *OrgUnitsMembershipsMoveCall) Do(opts ...googleapi.CallOption) (*Operati // ], // "parameters": { // "name": { - // "description": "Required. Immutable. The [resource name](https://cloud.google.com/apis/design/resource_names) of the OrgMembership. Format: orgUnits/{$orgUnitId}/memberships/{$membership} The `$orgUnitId` is the `orgUnitId` from the [Admin SDK `OrgUnit` resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/orgunits), The `$membership` shall be of the form `{$entityType};{$memberId}`, where `$entityType` is the enum value of OrgMembership.EntityType, and `memberId` is the `id` from [Drive API (V3) `Drive` resource](https://developers.google.com/drive/api/v3/reference/drives#resource) for OrgMembership.EntityType.SHARED_DRIVE.", + // "description": "Required. Immutable. The [resource name](https://cloud.google.com/apis/design/resource_names) of the OrgMembership. Format: orgUnits/{$orgUnitId}/memberships/{$membership} The `$orgUnitId` is the `orgUnitId` from the [Admin SDK `OrgUnit` resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/orgunits). To manage a Membership without specifying source `orgUnitId`, this API also supports the wildcard character '-' for `$orgUnitId` per https://google.aip.dev/159. The `$membership` shall be of the form `{$entityType};{$memberId}`, where `$entityType` is the enum value of OrgMembership.EntityType, and `memberId` is the `id` from [Drive API (V3) `Drive` resource](https://developers.google.com/drive/api/v3/reference/drives#resource) for OrgMembership.EntityType.SHARED_DRIVE.", // "location": "path", // "pattern": "^orgUnits/[^/]+/memberships/[^/]+$", // "required": true, diff --git a/composer/v1/composer-api.json b/composer/v1/composer-api.json index b198a180a31..f753333dc3c 100644 --- a/composer/v1/composer-api.json +++ b/composer/v1/composer-api.json @@ -406,7 +406,7 @@ } } }, - "revision": "20211130", + "revision": "20220202", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AllowedIpRange": { @@ -479,7 +479,7 @@ "type": "object" }, "Date": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", "properties": { "day": { @@ -961,6 +961,10 @@ "description": "The configuration information for configuring a Private IP Cloud Composer environment.", "id": "PrivateEnvironmentConfig", "properties": { + "cloudComposerConnectionSubnetwork": { + "description": "Optional. When specified, the environment will use Private Service Connect instead of VPC peerings to connect to Cloud SQL in the Tenant Project, and the PSC endpoint in the Customer Project will use an IP address from this subnetwork.", + "type": "string" + }, "cloudComposerNetworkIpv4CidrBlock": { "description": "Optional. The CIDR block from which IP range for Cloud Composer Network in tenant project will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer.", "type": "string" diff --git a/composer/v1/composer-gen.go b/composer/v1/composer-gen.go index abb886fd347..c7816b83b69 100644 --- a/composer/v1/composer-gen.go +++ b/composer/v1/composer-gen.go @@ -320,11 +320,11 @@ func (s *DatabaseConfig) MarshalJSON() ([]byte, error) { // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day value, -// with a zero year, such as an anniversary * A year on its own, with -// zero month and day values * A year and month value, with a zero day, -// such as a credit card expiration date Related types are -// google.type.TimeOfDay and `google.protobuf.Timestamp`. +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -1153,6 +1153,12 @@ func (s *PrivateClusterConfig) MarshalJSON() ([]byte, error) { // PrivateEnvironmentConfig: The configuration information for // configuring a Private IP Cloud Composer environment. type PrivateEnvironmentConfig struct { + // CloudComposerConnectionSubnetwork: Optional. When specified, the + // environment will use Private Service Connect instead of VPC peerings + // to connect to Cloud SQL in the Tenant Project, and the PSC endpoint + // in the Customer Project will use an IP address from this subnetwork. + CloudComposerConnectionSubnetwork string `json:"cloudComposerConnectionSubnetwork,omitempty"` + // CloudComposerNetworkIpv4CidrBlock: Optional. The CIDR block from // which IP range for Cloud Composer Network in tenant project will be // reserved. Needs to be disjoint from @@ -1195,7 +1201,7 @@ type PrivateEnvironmentConfig struct { WebServerIpv4ReservedRange string `json:"webServerIpv4ReservedRange,omitempty"` // ForceSendFields is a list of field names (e.g. - // "CloudComposerNetworkIpv4CidrBlock") to unconditionally include in + // "CloudComposerConnectionSubnetwork") 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 @@ -1204,7 +1210,7 @@ type PrivateEnvironmentConfig struct { ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. - // "CloudComposerNetworkIpv4CidrBlock") to include in API requests with + // "CloudComposerConnectionSubnetwork") 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 diff --git a/composer/v1beta1/composer-api.json b/composer/v1beta1/composer-api.json index 4ce01699a64..c92268d5393 100644 --- a/composer/v1beta1/composer-api.json +++ b/composer/v1beta1/composer-api.json @@ -462,7 +462,7 @@ } } }, - "revision": "20211130", + "revision": "20220202", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AllowedIpRange": { @@ -561,7 +561,7 @@ "type": "object" }, "Date": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", "properties": { "day": { @@ -1230,8 +1230,8 @@ "description": "Store environment state response.", "id": "StoreEnvironmentStateResponse", "properties": { - "snapshotLocation": { - "description": "The fully-resolved Cloud Storage location of the created snapshot, e.g.: \"gs://my-bucket/snapshots/project_id/location/environment_uuid/timestamp\". This field is populated only if the snapshot creation was successful.", + "snapshotPath": { + "description": "The fully-resolved Cloud Storage path of the created snapshot, e.g.: \"gs://my-bucket/snapshots/project_location_environment_timestamp\". This field is populated only if the snapshot creation was successful.", "type": "string" } }, diff --git a/composer/v1beta1/composer-gen.go b/composer/v1beta1/composer-gen.go index 63db54e3fec..0406e633718 100644 --- a/composer/v1beta1/composer-gen.go +++ b/composer/v1beta1/composer-gen.go @@ -398,11 +398,11 @@ func (s *DatabaseConfig) MarshalJSON() ([]byte, error) { // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day value, -// with a zero year, such as an anniversary * A year on its own, with -// zero month and day values * A year and month value, with a zero day, -// such as a credit card expiration date Related types are -// google.type.TimeOfDay and `google.protobuf.Timestamp`. +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -1588,14 +1588,13 @@ func (s *Status) MarshalJSON() ([]byte, error) { // StoreEnvironmentStateResponse: Store environment state response. type StoreEnvironmentStateResponse struct { - // SnapshotLocation: The fully-resolved Cloud Storage location of the - // created snapshot, e.g.: - // "gs://my-bucket/snapshots/project_id/location/environment_uuid/timesta - // mp". This field is populated only if the snapshot creation was - // successful. - SnapshotLocation string `json:"snapshotLocation,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SnapshotLocation") to + // SnapshotPath: The fully-resolved Cloud Storage path of the created + // snapshot, e.g.: + // "gs://my-bucket/snapshots/project_location_environment_timestamp". + // This field is populated only if the snapshot creation was successful. + SnapshotPath string `json:"snapshotPath,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SnapshotPath") 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 @@ -1603,13 +1602,12 @@ type StoreEnvironmentStateResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SnapshotLocation") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "SnapshotPath") 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:"-"` } diff --git a/container/v1/container-api.json b/container/v1/container-api.json index e599f535433..21b7a4ef535 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2459,7 +2459,7 @@ } } }, - "revision": "20220114", + "revision": "20220116", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2814,6 +2814,10 @@ "readOnly": true, "type": "string" }, + "identityServiceConfig": { + "$ref": "IdentityServiceConfig", + "description": "Configuration for Identity Service component." + }, "initialClusterVersion": { "description": "The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - \"latest\": picks the highest valid Kubernetes version - \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version - \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version - \"1.X.Y-gke.N\": picks an explicit Kubernetes version - \"\",\"-\": picks the default Kubernetes version", "type": "string" @@ -3098,6 +3102,10 @@ "$ref": "GcfsConfig", "description": "The desired GCFS config for the cluster" }, + "desiredIdentityServiceConfig": { + "$ref": "IdentityServiceConfig", + "description": "The desired Identity Service component configuration." + }, "desiredImageType": { "description": "The desired image type for the node pool. NOTE: Set the \"desired_node_pool\" field as well.", "type": "string" @@ -3662,6 +3670,17 @@ }, "type": "object" }, + "IdentityServiceConfig": { + "description": "IdentityServiceConfig is configuration for Identity Service which allows customers to use external identity providers with the K8S API", + "id": "IdentityServiceConfig", + "properties": { + "enabled": { + "description": "Whether to enable the Identity Service component", + "type": "boolean" + } + }, + "type": "object" + }, "IntraNodeVisibilityConfig": { "description": "IntraNodeVisibilityConfig contains the desired config of the intra-node visibility on this cluster.", "id": "IntraNodeVisibilityConfig", diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 3aa6168375c..0d1f45e19c6 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -897,6 +897,9 @@ type Cluster struct { // Id: Output only. Unique id for the cluster. Id string `json:"id,omitempty"` + // IdentityServiceConfig: Configuration for Identity Service component. + IdentityServiceConfig *IdentityServiceConfig `json:"identityServiceConfig,omitempty"` + // InitialClusterVersion: The initial Kubernetes version for this // cluster. Valid versions are those found in validMasterVersions // returned by getServerConfig. The version can be upgraded over time; @@ -1255,6 +1258,10 @@ type ClusterUpdate struct { // DesiredGcfsConfig: The desired GCFS config for the cluster DesiredGcfsConfig *GcfsConfig `json:"desiredGcfsConfig,omitempty"` + // DesiredIdentityServiceConfig: The desired Identity Service component + // configuration. + DesiredIdentityServiceConfig *IdentityServiceConfig `json:"desiredIdentityServiceConfig,omitempty"` + // DesiredImageType: The desired image type for the node pool. NOTE: Set // the "desired_node_pool" field as well. DesiredImageType string `json:"desiredImageType,omitempty"` @@ -2308,6 +2315,36 @@ func (s *IPAllocationPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// IdentityServiceConfig: IdentityServiceConfig is configuration for +// Identity Service which allows customers to use external identity +// providers with the K8S API +type IdentityServiceConfig struct { + // Enabled: Whether to enable the Identity Service component + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *IdentityServiceConfig) MarshalJSON() ([]byte, error) { + type NoMethod IdentityServiceConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // IntraNodeVisibilityConfig: IntraNodeVisibilityConfig contains the // desired config of the intra-node visibility on this cluster. type IntraNodeVisibilityConfig struct { diff --git a/containeranalysis/v1/containeranalysis-gen.go b/containeranalysis/v1/containeranalysis-gen.go index cfc9260ed9a..9148e3a6245 100644 --- a/containeranalysis/v1/containeranalysis-gen.go +++ b/containeranalysis/v1/containeranalysis-gen.go @@ -50,6 +50,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -5828,7 +5829,7 @@ func (c *ProjectsNotesBatchCreateCall) Header() http.Header { func (c *ProjectsNotesBatchCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -5978,7 +5979,7 @@ func (c *ProjectsNotesCreateCall) Header() http.Header { func (c *ProjectsNotesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -6124,7 +6125,7 @@ func (c *ProjectsNotesDeleteCall) Header() http.Header { func (c *ProjectsNotesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -6268,7 +6269,7 @@ func (c *ProjectsNotesGetCall) Header() http.Header { func (c *ProjectsNotesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -6412,7 +6413,7 @@ func (c *ProjectsNotesGetIamPolicyCall) Header() http.Header { func (c *ProjectsNotesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -6585,7 +6586,7 @@ func (c *ProjectsNotesListCall) Header() http.Header { func (c *ProjectsNotesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -6767,7 +6768,7 @@ func (c *ProjectsNotesPatchCall) Header() http.Header { func (c *ProjectsNotesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -6922,7 +6923,7 @@ func (c *ProjectsNotesSetIamPolicyCall) Header() http.Header { func (c *ProjectsNotesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7070,7 +7071,7 @@ func (c *ProjectsNotesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsNotesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7244,7 +7245,7 @@ func (c *ProjectsNotesOccurrencesListCall) Header() http.Header { func (c *ProjectsNotesOccurrencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7420,7 +7421,7 @@ func (c *ProjectsOccurrencesBatchCreateCall) Header() http.Header { func (c *ProjectsOccurrencesBatchCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7564,7 +7565,7 @@ func (c *ProjectsOccurrencesCreateCall) Header() http.Header { func (c *ProjectsOccurrencesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7707,7 +7708,7 @@ func (c *ProjectsOccurrencesDeleteCall) Header() http.Header { func (c *ProjectsOccurrencesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7851,7 +7852,7 @@ func (c *ProjectsOccurrencesGetCall) Header() http.Header { func (c *ProjectsOccurrencesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7995,7 +7996,7 @@ func (c *ProjectsOccurrencesGetIamPolicyCall) Header() http.Header { func (c *ProjectsOccurrencesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8149,7 +8150,7 @@ func (c *ProjectsOccurrencesGetNotesCall) Header() http.Header { func (c *ProjectsOccurrencesGetNotesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8303,7 +8304,7 @@ func (c *ProjectsOccurrencesGetVulnerabilitySummaryCall) Header() http.Header { func (c *ProjectsOccurrencesGetVulnerabilitySummaryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8476,7 +8477,7 @@ func (c *ProjectsOccurrencesListCall) Header() http.Header { func (c *ProjectsOccurrencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8658,7 +8659,7 @@ func (c *ProjectsOccurrencesPatchCall) Header() http.Header { func (c *ProjectsOccurrencesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8813,7 +8814,7 @@ func (c *ProjectsOccurrencesSetIamPolicyCall) Header() http.Header { func (c *ProjectsOccurrencesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8961,7 +8962,7 @@ func (c *ProjectsOccurrencesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsOccurrencesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 08c55496ffd..bcedc39faee 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -50,6 +50,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -6607,7 +6608,7 @@ func (c *ProjectsNotesCreateCall) Header() http.Header { func (c *ProjectsNotesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -6758,7 +6759,7 @@ func (c *ProjectsNotesDeleteCall) Header() http.Header { func (c *ProjectsNotesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -6902,7 +6903,7 @@ func (c *ProjectsNotesGetCall) Header() http.Header { func (c *ProjectsNotesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7052,7 +7053,7 @@ func (c *ProjectsNotesGetIamPolicyCall) Header() http.Header { func (c *ProjectsNotesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7231,7 +7232,7 @@ func (c *ProjectsNotesListCall) Header() http.Header { func (c *ProjectsNotesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7418,7 +7419,7 @@ func (c *ProjectsNotesPatchCall) Header() http.Header { func (c *ProjectsNotesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7579,7 +7580,7 @@ func (c *ProjectsNotesSetIamPolicyCall) Header() http.Header { func (c *ProjectsNotesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7731,7 +7732,7 @@ func (c *ProjectsNotesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsNotesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -7905,7 +7906,7 @@ func (c *ProjectsNotesOccurrencesListCall) Header() http.Header { func (c *ProjectsNotesOccurrencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8088,7 +8089,7 @@ func (c *ProjectsOccurrencesCreateCall) Header() http.Header { func (c *ProjectsOccurrencesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8235,7 +8236,7 @@ func (c *ProjectsOccurrencesDeleteCall) Header() http.Header { func (c *ProjectsOccurrencesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8379,7 +8380,7 @@ func (c *ProjectsOccurrencesGetCall) Header() http.Header { func (c *ProjectsOccurrencesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8529,7 +8530,7 @@ func (c *ProjectsOccurrencesGetIamPolicyCall) Header() http.Header { func (c *ProjectsOccurrencesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8681,7 +8682,7 @@ func (c *ProjectsOccurrencesGetNotesCall) Header() http.Header { func (c *ProjectsOccurrencesGetNotesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -8835,7 +8836,7 @@ func (c *ProjectsOccurrencesGetVulnerabilitySummaryCall) Header() http.Header { func (c *ProjectsOccurrencesGetVulnerabilitySummaryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -9045,7 +9046,7 @@ func (c *ProjectsOccurrencesListCall) Header() http.Header { func (c *ProjectsOccurrencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -9271,7 +9272,7 @@ func (c *ProjectsOccurrencesPatchCall) Header() http.Header { func (c *ProjectsOccurrencesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -9432,7 +9433,7 @@ func (c *ProjectsOccurrencesSetIamPolicyCall) Header() http.Header { func (c *ProjectsOccurrencesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -9584,7 +9585,7 @@ func (c *ProjectsOccurrencesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsOccurrencesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -9726,7 +9727,7 @@ func (c *ProjectsOperationsCreateCall) Header() http.Header { func (c *ProjectsOperationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -9871,7 +9872,7 @@ func (c *ProjectsOperationsPatchCall) Header() http.Header { func (c *ProjectsOperationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -10023,7 +10024,7 @@ func (c *ProjectsScanConfigsGetCall) Header() http.Header { func (c *ProjectsScanConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -10189,7 +10190,7 @@ func (c *ProjectsScanConfigsListCall) Header() http.Header { func (c *ProjectsScanConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -10371,7 +10372,7 @@ func (c *ProjectsScanConfigsPatchCall) Header() http.Header { func (c *ProjectsScanConfigsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -10534,7 +10535,7 @@ func (c *ProvidersNotesCreateCall) Header() http.Header { func (c *ProvidersNotesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -10685,7 +10686,7 @@ func (c *ProvidersNotesDeleteCall) Header() http.Header { func (c *ProvidersNotesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -10829,7 +10830,7 @@ func (c *ProvidersNotesGetCall) Header() http.Header { func (c *ProvidersNotesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -10979,7 +10980,7 @@ func (c *ProvidersNotesGetIamPolicyCall) Header() http.Header { func (c *ProvidersNotesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -11158,7 +11159,7 @@ func (c *ProvidersNotesListCall) Header() http.Header { func (c *ProvidersNotesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -11345,7 +11346,7 @@ func (c *ProvidersNotesPatchCall) Header() http.Header { func (c *ProvidersNotesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -11506,7 +11507,7 @@ func (c *ProvidersNotesSetIamPolicyCall) Header() http.Header { func (c *ProvidersNotesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -11658,7 +11659,7 @@ func (c *ProvidersNotesTestIamPermissionsCall) Header() http.Header { func (c *ProvidersNotesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } @@ -11832,7 +11833,7 @@ func (c *ProvidersNotesOccurrencesListCall) Header() http.Header { func (c *ProvidersNotesOccurrencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220201") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 49cfb99cadd..645d8117d13 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20220129", + "revision": "20220205", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -6176,6 +6176,7 @@ "type": "object" }, "GoogleTypeDate": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 60cf5496aec..1c4cc035d25 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -8973,6 +8973,15 @@ func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error { return nil } +// GoogleTypeDate: Represents a whole or partial calendar date, such as +// a birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/documentai/v1beta2/documentai-api.json b/documentai/v1beta2/documentai-api.json index 3da0337e74d..0914b3ce9ac 100644 --- a/documentai/v1beta2/documentai-api.json +++ b/documentai/v1beta2/documentai-api.json @@ -292,7 +292,7 @@ } } }, - "revision": "20220129", + "revision": "20220205", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -4083,6 +4083,7 @@ "type": "object" }, "GoogleTypeDate": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index c81e6b5b169..90485c7b6c8 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -6713,6 +6713,15 @@ func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error { return nil } +// GoogleTypeDate: Represents a whole or partial calendar date, such as +// a birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index 22df2157499..6c9656f63c2 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -796,7 +796,7 @@ } } }, - "revision": "20220129", + "revision": "20220205", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -5992,6 +5992,7 @@ "type": "object" }, "GoogleTypeDate": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 1541de970f5..ff445614d65 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -8987,6 +8987,15 @@ func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error { return nil } +// GoogleTypeDate: Represents a whole or partial calendar date, such as +// a birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/internal/kokoro/trampoline.sh b/internal/kokoro/trampoline.sh old mode 100644 new mode 100755 diff --git a/logging/v2/logging-api.json b/logging/v2/logging-api.json index c2cc27ae28b..c34e6424807 100644 --- a/logging/v2/logging-api.json +++ b/logging/v2/logging-api.json @@ -1489,6 +1489,41 @@ "https://www.googleapis.com/auth/logging.admin", "https://www.googleapis.com/auth/logging.read" ] + }, + "updateSettings": { + "description": "Updates the Log Router settings for the given resource.Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.UpdateSettings will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled. 4) location_id is not supported by Logging. 5) location_id violate OrgPolicy.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", + "flatPath": "v2/folders/{foldersId}/settings", + "httpMethod": "PATCH", + "id": "logging.folders.updateSettings", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name for the settings to update. \"organizations/[ORGANIZATION_ID]/settings\" For example:\"organizations/12345/settings\"Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.", + "location": "path", + "pattern": "^folders/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask identifying which fields from settings should be updated. A field will be overwritten if and only if it is in the update mask. Output only fields cannot be updated.See FieldMask for more information.For example: \"updateMask=kmsKeyName\"", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}/settings", + "request": { + "$ref": "Settings" + }, + "response": { + "$ref": "Settings" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/logging.admin" + ] } }, "resources": { @@ -5782,7 +5817,7 @@ } } }, - "revision": "20220127", + "revision": "20220204", "rootUrl": "https://logging.googleapis.com/", "schemas": { "BigQueryOptions": { @@ -6507,6 +6542,10 @@ "description": "Optional. The span ID within the trace associated with the log entry.For Trace spans, this is the same format that the Trace API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such as 000000000000004a.", "type": "string" }, + "split": { + "$ref": "LogSplit", + "description": "Optional. Information indicating this LogEntry is part of a sequence of multiple log entries split from a single LogEntry." + }, "textPayload": { "description": "The log entry payload, represented as a Unicode string (UTF-8).", "type": "string" @@ -6790,6 +6829,27 @@ }, "type": "object" }, + "LogSplit": { + "description": "Additional information used to correlate multiple log entries. Used when a single LogEntry would exceed the Google Cloud Logging size limit and is split across multiple log entries.", + "id": "LogSplit", + "properties": { + "index": { + "description": "The index of this LogEntry in the sequence of split log entries. Log entries are given |index| values 0, 1, ..., n-1 for a sequence of n log entries.", + "format": "int32", + "type": "integer" + }, + "totalSplits": { + "description": "The total number of log entries that the original LogEntry was split into.", + "format": "int32", + "type": "integer" + }, + "uid": { + "description": "A globally unique identifier for all log entries in a sequence of split log entries. All log entries with the same |LogSplit.uid| are assumed to be part of the same sequence of split log entries.", + "type": "string" + } + }, + "type": "object" + }, "LogView": { "description": "Describes a view over log entries in a bucket.", "id": "LogView", @@ -6857,10 +6917,10 @@ "The feature is not yet implemented. Users can not use it.", "Prelaunch features are hidden from users and are only visible internally.", "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", - "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", + "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don't have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", "GA features are open to all developers and are considered stable and fully qualified for production use.", - "Deprecated features are scheduled to be shut down and removed. For more information, see the “Deprecation Policy” section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation." + "Deprecated features are scheduled to be shut down and removed. For more information, see the \"Deprecation Policy\" section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation." ], "type": "string" }, @@ -6954,10 +7014,10 @@ "The feature is not yet implemented. Users can not use it.", "Prelaunch features are hidden from users and are only visible internally.", "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", - "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", + "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don't have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", "GA features are open to all developers and are considered stable and fully qualified for production use.", - "Deprecated features are scheduled to be shut down and removed. For more information, see the “Deprecation Policy” section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation." + "Deprecated features are scheduled to be shut down and removed. For more information, see the \"Deprecation Policy\" section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation." ], "type": "string" }, @@ -7023,10 +7083,10 @@ "The feature is not yet implemented. Users can not use it.", "Prelaunch features are hidden from users and are only visible internally.", "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", - "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", + "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don't have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", "GA features are open to all developers and are considered stable and fully qualified for production use.", - "Deprecated features are scheduled to be shut down and removed. For more information, see the “Deprecation Policy” section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation." + "Deprecated features are scheduled to be shut down and removed. For more information, see the \"Deprecation Policy\" section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation." ], "type": "string" }, diff --git a/logging/v2/logging-gen.go b/logging/v2/logging-gen.go index 671d633753c..914f6ce3fcd 100644 --- a/logging/v2/logging-gen.go +++ b/logging/v2/logging-gen.go @@ -2013,6 +2013,10 @@ type LogEntry struct { // as 000000000000004a. SpanId string `json:"spanId,omitempty"` + // Split: Optional. Information indicating this LogEntry is part of a + // sequence of multiple log entries split from a single LogEntry. + Split *LogSplit `json:"split,omitempty"` + // TextPayload: The log entry payload, represented as a Unicode string // (UTF-8). TextPayload string `json:"textPayload,omitempty"` @@ -2527,6 +2531,47 @@ func (s *LogSink) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LogSplit: Additional information used to correlate multiple log +// entries. Used when a single LogEntry would exceed the Google Cloud +// Logging size limit and is split across multiple log entries. +type LogSplit struct { + // Index: The index of this LogEntry in the sequence of split log + // entries. Log entries are given |index| values 0, 1, ..., n-1 for a + // sequence of n log entries. + Index int64 `json:"index,omitempty"` + + // TotalSplits: The total number of log entries that the original + // LogEntry was split into. + TotalSplits int64 `json:"totalSplits,omitempty"` + + // Uid: A globally unique identifier for all log entries in a sequence + // of split log entries. All log entries with the same |LogSplit.uid| + // are assumed to be part of the same sequence of split log entries. + Uid string `json:"uid,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Index") 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. "Index") 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 *LogSplit) MarshalJSON() ([]byte, error) { + type NoMethod LogSplit + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LogView: Describes a view over log entries in a bucket. type LogView struct { // CreateTime: Output only. The creation timestamp of the view. @@ -2619,7 +2664,7 @@ type MetricDescriptor struct { // issues are resolved and we are in the process of verifying // functionality. Alpha customers need to apply for access, agree to // applicable terms, and have their projects allowlisted. Alpha releases - // don’t have to be feature complete, no SLAs are provided, and there + // don't have to be feature complete, no SLAs are provided, and there // are no technical support obligations, but they will be far enough // along that customers can actually use them in test environments or // for limited-use tests -- just like they would in normal production @@ -2632,7 +2677,7 @@ type MetricDescriptor struct { // "GA" - GA features are open to all developers and are considered // stable and fully qualified for production use. // "DEPRECATED" - Deprecated features are scheduled to be shut down - // and removed. For more information, see the “Deprecation Policy” + // and removed. For more information, see the "Deprecation Policy" // section of our Terms of Service (https://cloud.google.com/terms/) and // the Google Cloud Platform Subject to the Deprecation Policy // (https://cloud.google.com/terms/deprecation) documentation. @@ -2792,7 +2837,7 @@ type MetricDescriptorMetadata struct { // issues are resolved and we are in the process of verifying // functionality. Alpha customers need to apply for access, agree to // applicable terms, and have their projects allowlisted. Alpha releases - // don’t have to be feature complete, no SLAs are provided, and there + // don't have to be feature complete, no SLAs are provided, and there // are no technical support obligations, but they will be far enough // along that customers can actually use them in test environments or // for limited-use tests -- just like they would in normal production @@ -2805,7 +2850,7 @@ type MetricDescriptorMetadata struct { // "GA" - GA features are open to all developers and are considered // stable and fully qualified for production use. // "DEPRECATED" - Deprecated features are scheduled to be shut down - // and removed. For more information, see the “Deprecation Policy” + // and removed. For more information, see the "Deprecation Policy" // section of our Terms of Service (https://cloud.google.com/terms/) and // the Google Cloud Platform Subject to the Deprecation Policy // (https://cloud.google.com/terms/deprecation) documentation. @@ -2932,7 +2977,7 @@ type MonitoredResourceDescriptor struct { // issues are resolved and we are in the process of verifying // functionality. Alpha customers need to apply for access, agree to // applicable terms, and have their projects allowlisted. Alpha releases - // don’t have to be feature complete, no SLAs are provided, and there + // don't have to be feature complete, no SLAs are provided, and there // are no technical support obligations, but they will be far enough // along that customers can actually use them in test environments or // for limited-use tests -- just like they would in normal production @@ -2945,7 +2990,7 @@ type MonitoredResourceDescriptor struct { // "GA" - GA features are open to all developers and are considered // stable and fully qualified for production use. // "DEPRECATED" - Deprecated features are scheduled to be shut down - // and removed. For more information, see the “Deprecation Policy” + // and removed. For more information, see the "Deprecation Policy" // section of our Terms of Service (https://cloud.google.com/terms/) and // the Google Cloud Platform Subject to the Deprecation Policy // (https://cloud.google.com/terms/deprecation) documentation. @@ -10602,6 +10647,181 @@ func (c *FoldersGetSettingsCall) Do(opts ...googleapi.CallOption) (*Settings, er } +// method id "logging.folders.updateSettings": + +type FoldersUpdateSettingsCall struct { + s *Service + name string + settings *Settings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateSettings: Updates the Log Router settings for the given +// resource.Note: Settings for the Log Router can currently only be +// configured for Google Cloud organizations. Once configured, it +// applies to all projects and folders in the Google Cloud +// organization.UpdateSettings will fail if 1) kms_key_name is invalid, +// or 2) the associated service account does not have the required +// roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, +// or 3) access to the key is disabled. 4) location_id is not supported +// by Logging. 5) location_id violate OrgPolicy.See Enabling CMEK for +// Log Router +// (https://cloud.google.com/logging/docs/routing/managed-encryption) +// for more information. +// +// - name: The resource name for the settings to update. +// "organizations/[ORGANIZATION_ID]/settings" For +// example:"organizations/12345/settings"Note: Settings for the Log +// Router can currently only be configured for Google Cloud +// organizations. Once configured, it applies to all projects and +// folders in the Google Cloud organization. +func (r *FoldersService) UpdateSettings(name string, settings *Settings) *FoldersUpdateSettingsCall { + c := &FoldersUpdateSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.settings = settings + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// identifying which fields from settings should be updated. A field +// will be overwritten if and only if it is in the update mask. Output +// only fields cannot be updated.See FieldMask for more information.For +// example: "updateMask=kmsKeyName" +func (c *FoldersUpdateSettingsCall) UpdateMask(updateMask string) *FoldersUpdateSettingsCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *FoldersUpdateSettingsCall) Fields(s ...googleapi.Field) *FoldersUpdateSettingsCall { + 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 *FoldersUpdateSettingsCall) Context(ctx context.Context) *FoldersUpdateSettingsCall { + 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 *FoldersUpdateSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersUpdateSettingsCall) 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.settings) + 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, "v2/{+name}/settings") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", 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 "logging.folders.updateSettings" call. +// Exactly one of *Settings or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Settings.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 *FoldersUpdateSettingsCall) Do(opts ...googleapi.CallOption) (*Settings, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Settings{ + 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": "Updates the Log Router settings for the given resource.Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.UpdateSettings will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled. 4) location_id is not supported by Logging. 5) location_id violate OrgPolicy.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", + // "flatPath": "v2/folders/{foldersId}/settings", + // "httpMethod": "PATCH", + // "id": "logging.folders.updateSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name for the settings to update. \"organizations/[ORGANIZATION_ID]/settings\" For example:\"organizations/12345/settings\"Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.", + // "location": "path", + // "pattern": "^folders/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Field mask identifying which fields from settings should be updated. A field will be overwritten if and only if it is in the update mask. Output only fields cannot be updated.See FieldMask for more information.For example: \"updateMask=kmsKeyName\"", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}/settings", + // "request": { + // "$ref": "Settings" + // }, + // "response": { + // "$ref": "Settings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + +} + // method id "logging.folders.exclusions.create": type FoldersExclusionsCreateCall struct { diff --git a/metastore/v1beta/metastore-api.json b/metastore/v1beta/metastore-api.json index 905d98666b1..b638ebe3bf1 100644 --- a/metastore/v1beta/metastore-api.json +++ b/metastore/v1beta/metastore-api.json @@ -855,6 +855,190 @@ } } }, + "databases": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}:getIamPolicy", + "httpMethod": "GET", + "id": "metastore.projects.locations.services.databases.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}:setIamPolicy", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.databases.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}:testIamPermissions", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.databases.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "tables": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}/tables/{tablesId}:getIamPolicy", + "httpMethod": "GET", + "id": "metastore.projects.locations.services.databases.tables.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}/tables/{tablesId}:setIamPolicy", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.databases.tables.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}/tables/{tablesId}:testIamPermissions", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.databases.tables.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "metadataImports": { "methods": { "create": { @@ -1014,7 +1198,7 @@ } } }, - "revision": "20220127", + "revision": "20220205", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/metastore/v1beta/metastore-gen.go b/metastore/v1beta/metastore-gen.go index bcc31ca0220..94239405df3 100644 --- a/metastore/v1beta/metastore-gen.go +++ b/metastore/v1beta/metastore-gen.go @@ -176,6 +176,7 @@ type ProjectsLocationsOperationsService struct { func NewProjectsLocationsServicesService(s *APIService) *ProjectsLocationsServicesService { rs := &ProjectsLocationsServicesService{s: s} rs.Backups = NewProjectsLocationsServicesBackupsService(s) + rs.Databases = NewProjectsLocationsServicesDatabasesService(s) rs.MetadataImports = NewProjectsLocationsServicesMetadataImportsService(s) return rs } @@ -185,6 +186,8 @@ type ProjectsLocationsServicesService struct { Backups *ProjectsLocationsServicesBackupsService + Databases *ProjectsLocationsServicesDatabasesService + MetadataImports *ProjectsLocationsServicesMetadataImportsService } @@ -197,6 +200,27 @@ type ProjectsLocationsServicesBackupsService struct { s *APIService } +func NewProjectsLocationsServicesDatabasesService(s *APIService) *ProjectsLocationsServicesDatabasesService { + rs := &ProjectsLocationsServicesDatabasesService{s: s} + rs.Tables = NewProjectsLocationsServicesDatabasesTablesService(s) + return rs +} + +type ProjectsLocationsServicesDatabasesService struct { + s *APIService + + Tables *ProjectsLocationsServicesDatabasesTablesService +} + +func NewProjectsLocationsServicesDatabasesTablesService(s *APIService) *ProjectsLocationsServicesDatabasesTablesService { + rs := &ProjectsLocationsServicesDatabasesTablesService{s: s} + return rs +} + +type ProjectsLocationsServicesDatabasesTablesService struct { + s *APIService +} + func NewProjectsLocationsServicesMetadataImportsService(s *APIService) *ProjectsLocationsServicesMetadataImportsService { rs := &ProjectsLocationsServicesMetadataImportsService{s: s} return rs @@ -6027,6 +6051,944 @@ func (c *ProjectsLocationsServicesBackupsTestIamPermissionsCall) Do(opts ...goog } +// method id "metastore.projects.locations.services.databases.getIamPolicy": + +type ProjectsLocationsServicesDatabasesGetIamPolicyCall struct { + s *APIService + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See the operation documentation for the appropriate +// value for this field. +func (r *ProjectsLocationsServicesDatabasesService) GetIamPolicy(resource string) *ProjectsLocationsServicesDatabasesGetIamPolicyCall { + c := &ProjectsLocationsServicesDatabasesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy.Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected.Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset.The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1.To learn which +// resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsServicesDatabasesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServicesDatabasesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsServicesDatabasesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesDatabasesGetIamPolicyCall { + 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 *ProjectsLocationsServicesDatabasesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesDatabasesGetIamPolicyCall { + 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 *ProjectsLocationsServicesDatabasesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesDatabasesGetIamPolicyCall { + 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 *ProjectsLocationsServicesDatabasesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesDatabasesGetIamPolicyCall) 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, "v1beta/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.databases.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsServicesDatabasesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "metastore.projects.locations.services.databases.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "metastore.projects.locations.services.databases.setIamPolicy": + +type ProjectsLocationsServicesDatabasesSetIamPolicyCall struct { + s *APIService + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy.Can return NOT_FOUND, +// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See the operation documentation for the appropriate +// value for this field. +func (r *ProjectsLocationsServicesDatabasesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsServicesDatabasesSetIamPolicyCall { + c := &ProjectsLocationsServicesDatabasesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + 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 *ProjectsLocationsServicesDatabasesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesDatabasesSetIamPolicyCall { + 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 *ProjectsLocationsServicesDatabasesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesDatabasesSetIamPolicyCall { + 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 *ProjectsLocationsServicesDatabasesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesDatabasesSetIamPolicyCall) 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.setiampolicyrequest) + 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, "v1beta/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.databases.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsServicesDatabasesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.services.databases.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "metastore.projects.locations.services.databases.testIamPermissions": + +type ProjectsLocationsServicesDatabasesTestIamPermissionsCall struct { + s *APIService + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a NOT_FOUND error.Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See the operation documentation for the +// appropriate value for this field. +func (r *ProjectsLocationsServicesDatabasesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsServicesDatabasesTestIamPermissionsCall { + c := &ProjectsLocationsServicesDatabasesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *ProjectsLocationsServicesDatabasesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesDatabasesTestIamPermissionsCall { + 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 *ProjectsLocationsServicesDatabasesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServicesDatabasesTestIamPermissionsCall { + 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 *ProjectsLocationsServicesDatabasesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesDatabasesTestIamPermissionsCall) 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.testiampermissionsrequest) + 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, "v1beta/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.databases.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsServicesDatabasesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.services.databases.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "metastore.projects.locations.services.databases.tables.getIamPolicy": + +type ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall struct { + s *APIService + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See the operation documentation for the appropriate +// value for this field. +func (r *ProjectsLocationsServicesDatabasesTablesService) GetIamPolicy(resource string) *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall { + c := &ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy.Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected.Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset.The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1.To learn which +// resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall { + 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 *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall { + 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 *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall { + 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 *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall) 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, "v1beta/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.databases.tables.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}/tables/{tablesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "metastore.projects.locations.services.databases.tables.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "metastore.projects.locations.services.databases.tables.setIamPolicy": + +type ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall struct { + s *APIService + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy.Can return NOT_FOUND, +// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See the operation documentation for the appropriate +// value for this field. +func (r *ProjectsLocationsServicesDatabasesTablesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall { + c := &ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + 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 *ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall { + 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 *ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall { + 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 *ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall) 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.setiampolicyrequest) + 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, "v1beta/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.databases.tables.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}/tables/{tablesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.services.databases.tables.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "metastore.projects.locations.services.databases.tables.testIamPermissions": + +type ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall struct { + s *APIService + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a NOT_FOUND error.Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See the operation documentation for the +// appropriate value for this field. +func (r *ProjectsLocationsServicesDatabasesTablesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall { + c := &ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall { + 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 *ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall { + 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 *ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall) 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.testiampermissionsrequest) + 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, "v1beta/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.databases.tables.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/databases/{databasesId}/tables/{tablesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.services.databases.tables.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "metastore.projects.locations.services.metadataImports.create": type ProjectsLocationsServicesMetadataImportsCreateCall struct { diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index 7ba13ec848f..e7923f9eda1 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -2571,7 +2571,7 @@ } } }, - "revision": "20220131", + "revision": "20220205", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -4259,6 +4259,22 @@ "format": "google-duration", "type": "string" }, + "evaluationMissingData": { + "description": "A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.", + "enum": [ + "EVALUATION_MISSING_DATA_UNSPECIFIED", + "EVALUATION_MISSING_DATA_INACTIVE", + "EVALUATION_MISSING_DATA_ACTIVE", + "EVALUATION_MISSING_DATA_NO_OP" + ], + "enumDescriptions": [ + "An unspecified evaluation missing data option, if used, it will default to EVALUATION_MISSING_DATA_ACTIVE.", + "If there is no data to evaluate the condition, then evaluate the condition as false.", + "If there is no data to evaluate the condition, then evaluate the condition as true. The default for conditions with a duration value.", + "Do not evaluate the condition to any value if there is no data." + ], + "type": "string" + }, "filter": { "description": "Required. A filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies which time series should be compared with the threshold.The filter is similar to the one that is specified in the ListTimeSeries request (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that call is useful to verify the time series that will be retrieved / processed). The filter must specify the metric type and the resource type. Optionally, it can specify resource labels and metric labels. This field must not exceed 2048 Unicode characters in length.", "type": "string" @@ -4378,6 +4394,22 @@ "format": "google-duration", "type": "string" }, + "evaluationMissingData": { + "description": "A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.", + "enum": [ + "EVALUATION_MISSING_DATA_UNSPECIFIED", + "EVALUATION_MISSING_DATA_INACTIVE", + "EVALUATION_MISSING_DATA_ACTIVE", + "EVALUATION_MISSING_DATA_NO_OP" + ], + "enumDescriptions": [ + "An unspecified evaluation missing data option, if used, it will default to EVALUATION_MISSING_DATA_ACTIVE.", + "If there is no data to evaluate the condition, then evaluate the condition as false.", + "If there is no data to evaluate the condition, then evaluate the condition as true. The default for conditions with a duration value.", + "Do not evaluate the condition to any value if there is no data." + ], + "type": "string" + }, "query": { "description": "Monitoring Query Language (https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.", "type": "string" diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index 7740f35804c..a44df027697 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -3665,6 +3665,22 @@ type MetricThreshold struct { // alerted on quickly. Duration string `json:"duration,omitempty"` + // EvaluationMissingData: A condition control that determines how + // metric-threshold conditions are evaluated when data stops arriving. + // + // Possible values: + // "EVALUATION_MISSING_DATA_UNSPECIFIED" - An unspecified evaluation + // missing data option, if used, it will default to + // EVALUATION_MISSING_DATA_ACTIVE. + // "EVALUATION_MISSING_DATA_INACTIVE" - If there is no data to + // evaluate the condition, then evaluate the condition as false. + // "EVALUATION_MISSING_DATA_ACTIVE" - If there is no data to evaluate + // the condition, then evaluate the condition as true. The default for + // conditions with a duration value. + // "EVALUATION_MISSING_DATA_NO_OP" - Do not evaluate the condition to + // any value if there is no data. + EvaluationMissingData string `json:"evaluationMissingData,omitempty"` + // Filter: Required. A filter // (https://cloud.google.com/monitoring/api/v3/filters) that identifies // which time series should be compared with the threshold.The filter is @@ -3938,6 +3954,22 @@ type MonitoringQueryLanguageCondition struct { // alerted on quickly. Duration string `json:"duration,omitempty"` + // EvaluationMissingData: A condition control that determines how + // metric-threshold conditions are evaluated when data stops arriving. + // + // Possible values: + // "EVALUATION_MISSING_DATA_UNSPECIFIED" - An unspecified evaluation + // missing data option, if used, it will default to + // EVALUATION_MISSING_DATA_ACTIVE. + // "EVALUATION_MISSING_DATA_INACTIVE" - If there is no data to + // evaluate the condition, then evaluate the condition as false. + // "EVALUATION_MISSING_DATA_ACTIVE" - If there is no data to evaluate + // the condition, then evaluate the condition as true. The default for + // conditions with a duration value. + // "EVALUATION_MISSING_DATA_NO_OP" - Do not evaluate the condition to + // any value if there is no data. + EvaluationMissingData string `json:"evaluationMissingData,omitempty"` + // Query: Monitoring Query Language // (https://cloud.google.com/monitoring/mql) query that outputs a // boolean stream. diff --git a/policysimulator/v1/policysimulator-api.json b/policysimulator/v1/policysimulator-api.json index 8faa448079f..3aa2847080c 100644 --- a/policysimulator/v1/policysimulator-api.json +++ b/policysimulator/v1/policysimulator-api.json @@ -493,7 +493,7 @@ } } }, - "revision": "20220128", + "revision": "20220205", "rootUrl": "https://policysimulator.googleapis.com/", "schemas": { "GoogleCloudPolicysimulatorV1AccessStateDiff": { @@ -1236,6 +1236,7 @@ "type": "object" }, "GoogleTypeDate": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/policysimulator/v1/policysimulator-gen.go b/policysimulator/v1/policysimulator-gen.go index e6fb47bf77e..9122e5d92eb 100644 --- a/policysimulator/v1/policysimulator-gen.go +++ b/policysimulator/v1/policysimulator-gen.go @@ -1622,6 +1622,15 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleTypeDate: Represents a whole or partial calendar date, such as +// a birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/policysimulator/v1beta1/policysimulator-api.json b/policysimulator/v1beta1/policysimulator-api.json index 66b160d84e5..31fe743e795 100644 --- a/policysimulator/v1beta1/policysimulator-api.json +++ b/policysimulator/v1beta1/policysimulator-api.json @@ -493,7 +493,7 @@ } } }, - "revision": "20220128", + "revision": "20220205", "rootUrl": "https://policysimulator.googleapis.com/", "schemas": { "GoogleCloudPolicysimulatorV1Replay": { @@ -1236,6 +1236,7 @@ "type": "object" }, "GoogleTypeDate": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/policysimulator/v1beta1/policysimulator-gen.go b/policysimulator/v1beta1/policysimulator-gen.go index 6281c7ff4a9..58d1edeea4b 100644 --- a/policysimulator/v1beta1/policysimulator-gen.go +++ b/policysimulator/v1beta1/policysimulator-gen.go @@ -1623,6 +1623,15 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleTypeDate: Represents a whole or partial calendar date, such as +// a birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/recommender/v1beta1/recommender-api.json b/recommender/v1beta1/recommender-api.json index bb02ef9a70b..75491e3019d 100644 --- a/recommender/v1beta1/recommender-api.json +++ b/recommender/v1beta1/recommender-api.json @@ -1442,7 +1442,7 @@ } } }, - "revision": "20220124", + "revision": "20220207", "rootUrl": "https://recommender.googleapis.com/", "schemas": { "GoogleCloudRecommenderV1beta1CostProjection": { @@ -1492,6 +1492,10 @@ "securityProjection": { "$ref": "GoogleCloudRecommenderV1beta1SecurityProjection", "description": "Use with CategoryType.SECURITY" + }, + "sustainabilityProjection": { + "$ref": "GoogleCloudRecommenderV1beta1SustainabilityProjection", + "description": "Use with CategoryType.SUSTAINABILITY" } }, "type": "object" @@ -2075,6 +2079,23 @@ }, "type": "object" }, + "GoogleCloudRecommenderV1beta1SustainabilityProjection": { + "description": "Contains metadata about how much sustainability a recommendation can save or incur.", + "id": "GoogleCloudRecommenderV1beta1SustainabilityProjection", + "properties": { + "duration": { + "description": "Duration for which this sustanability applies.", + "format": "google-duration", + "type": "string" + }, + "kgCO2e": { + "description": "Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e so that the name renders correctly in camelCase (kgCO2e).", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudRecommenderV1beta1ValueMatcher": { "description": "Contains various matching options for values for a GCP resource field.", "id": "GoogleCloudRecommenderV1beta1ValueMatcher", diff --git a/recommender/v1beta1/recommender-gen.go b/recommender/v1beta1/recommender-gen.go index 0cac6c11713..154f9720a2c 100644 --- a/recommender/v1beta1/recommender-gen.go +++ b/recommender/v1beta1/recommender-gen.go @@ -483,6 +483,9 @@ type GoogleCloudRecommenderV1beta1Impact struct { // SecurityProjection: Use with CategoryType.SECURITY SecurityProjection *GoogleCloudRecommenderV1beta1SecurityProjection `json:"securityProjection,omitempty"` + // SustainabilityProjection: Use with CategoryType.SUSTAINABILITY + SustainabilityProjection *GoogleCloudRecommenderV1beta1SustainabilityProjection `json:"sustainabilityProjection,omitempty"` + // ForceSendFields is a list of field names (e.g. "Category") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1449,6 +1452,54 @@ func (s *GoogleCloudRecommenderV1beta1SecurityProjection) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRecommenderV1beta1SustainabilityProjection: Contains +// metadata about how much sustainability a recommendation can save or +// incur. +type GoogleCloudRecommenderV1beta1SustainabilityProjection struct { + // Duration: Duration for which this sustanability applies. + Duration string `json:"duration,omitempty"` + + // KgCO2e: Carbon Footprint generated in kg of CO2 equivalent. Chose + // kg_c_o2e so that the name renders correctly in camelCase (kgCO2e). + KgCO2e float64 `json:"kgCO2e,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Duration") 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. "Duration") 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 *GoogleCloudRecommenderV1beta1SustainabilityProjection) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecommenderV1beta1SustainabilityProjection + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudRecommenderV1beta1SustainabilityProjection) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudRecommenderV1beta1SustainabilityProjection + var s1 struct { + KgCO2e gensupport.JSONFloat64 `json:"kgCO2e"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.KgCO2e = float64(s1.KgCO2e) + return nil +} + // GoogleCloudRecommenderV1beta1ValueMatcher: Contains various matching // options for values for a GCP resource field. type GoogleCloudRecommenderV1beta1ValueMatcher struct { diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 151d3f72a7a..44d492dd215 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -169,7 +169,7 @@ ] }, "getDefaultBranch": { - "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:getDefaultBranch", "httpMethod": "GET", "id": "retail.projects.locations.catalogs.getDefaultBranch", @@ -264,7 +264,7 @@ ] }, "setDefaultBranch": { - "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:setDefaultBranch", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.setDefaultBranch", @@ -1007,7 +1007,7 @@ } } }, - "revision": "20220127", + "revision": "20220203", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -1225,7 +1225,7 @@ "id": "GoogleCloudRetailV2BigQuerySource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.", + "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: This feature is in private preview. Please contact the support team for importing Google Analytics 4 events. The schema is available here: https://support.google.com/analytics/answer/7029846.", "type": "string" }, "datasetId": { @@ -3575,7 +3575,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index b3dc8e30046..b882684dd6d 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -688,8 +688,12 @@ type GoogleCloudRetailV2BigQuerySource struct { // Center // (https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). // Supported values for user events imports: * `user_event` (default): - // One JSON UserEvent per line. * `user_event_ga360`: Using - // https://support.google.com/analytics/answer/3437719. + // One JSON UserEvent per line. * `user_event_ga360`: The schema is + // available here: https://support.google.com/analytics/answer/3437719. + // * `user_event_ga4`: This feature is in private preview. Please + // contact the support team for importing Google Analytics 4 events. The + // schema is available here: + // https://support.google.com/analytics/answer/7029846. DataSchema string `json:"dataSchema,omitempty"` // DatasetId: Required. The BigQuery data set to copy the data from with @@ -5362,11 +5366,11 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day value, -// with a zero year, such as an anniversary * A year on its own, with -// zero month and day values * A year and month value, with a zero day, -// such as a credit card expiration date Related types are -// google.type.TimeOfDay and `google.protobuf.Timestamp`. +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -5667,10 +5671,7 @@ type ProjectsLocationsCatalogsGetDefaultBranchCall struct { // GetDefaultBranch: Get which branch is currently default branch set by // CatalogService.SetDefaultBranch method under a specified parent -// catalog. This feature is only available for users who have Retail -// Search enabled. Please submit a form here -// (https://cloud.google.com/contact) to contact cloud sales if you are -// interested in using Retail Search. +// catalog. // // - catalog: The parent catalog resource name, such as // `projects/*/locations/global/catalogs/default_catalog`. @@ -5781,7 +5782,7 @@ func (c *ProjectsLocationsCatalogsGetDefaultBranchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + // "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:getDefaultBranch", // "httpMethod": "GET", // "id": "retail.projects.locations.catalogs.getDefaultBranch", @@ -6197,10 +6198,7 @@ type ProjectsLocationsCatalogsSetDefaultBranchCall struct { // PredictionService will only return product IDs from branch // {newBranch}. * SearchService will only return product IDs from branch // {newBranch} (if branch is not explicitly set). * UserEventService -// will only join events with products from branch {newBranch}. This -// feature is only available for users who have Retail Search enabled. -// Please submit a form here (https://cloud.google.com/contact) to -// contact cloud sales if you are interested in using Retail Search. +// will only join events with products from branch {newBranch}. // // - catalog: Full resource name of the catalog, such as // `projects/*/locations/global/catalogs/default_catalog`. @@ -6302,7 +6300,7 @@ func (c *ProjectsLocationsCatalogsSetDefaultBranchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + // "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:setDefaultBranch", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.setDefaultBranch", diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index eb2296f3e07..50d0fd5d1e7 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -169,7 +169,7 @@ ] }, "getDefaultBranch": { - "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:getDefaultBranch", "httpMethod": "GET", "id": "retail.projects.locations.catalogs.getDefaultBranch", @@ -264,7 +264,7 @@ ] }, "setDefaultBranch": { - "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:setDefaultBranch", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.setDefaultBranch", @@ -1443,7 +1443,7 @@ } } }, - "revision": "20220127", + "revision": "20220203", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -1901,7 +1901,7 @@ "id": "GoogleCloudRetailV2alphaBigQuerySource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.", + "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: This feature is in private preview. Please contact the support team for importing Google Analytics 4 events. The schema is available here: https://support.google.com/analytics/answer/7029846.", "type": "string" }, "datasetId": { @@ -2642,7 +2642,7 @@ "type": "array" }, "languageCode": { - "description": "Language of the title/description and other string attributes. Use language tags defined by BCP 47. ISO 639-1. This specifies the language of offers in Merchant Center that will be accepted. If empty no language filtering will be performed.", + "description": "Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This specifies the language of offers in Merchant Center that will be accepted. If empty no language filtering will be performed.", "type": "string" }, "merchantCenterAccountId": { @@ -2651,7 +2651,7 @@ "type": "string" }, "regionCode": { - "description": "Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2 code. List of values can be found here under the `region` tag. [https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry]. If left blank no region filtering will be performed. Ex. `US`.", + "description": "Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2 code. List of values can be found [here](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) under the `region` tag. If left blank no region filtering will be performed. Example value: `US`.", "type": "string" } }, @@ -4617,7 +4617,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index b2d6d4af1c8..7ae4d2d7049 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -1155,8 +1155,12 @@ type GoogleCloudRetailV2alphaBigQuerySource struct { // Center // (https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). // Supported values for user events imports: * `user_event` (default): - // One JSON UserEvent per line. * `user_event_ga360`: Using - // https://support.google.com/analytics/answer/3437719. + // One JSON UserEvent per line. * `user_event_ga360`: The schema is + // available here: https://support.google.com/analytics/answer/3437719. + // * `user_event_ga4`: This feature is in private preview. Please + // contact the support team for importing Google Analytics 4 events. The + // schema is available here: + // https://support.google.com/analytics/answer/7029846. DataSchema string `json:"dataSchema,omitempty"` // DatasetId: Required. The BigQuery data set to copy the data from with @@ -2657,7 +2661,8 @@ type GoogleCloudRetailV2alphaMerchantCenterLink struct { Destinations []string `json:"destinations,omitempty"` // LanguageCode: Language of the title/description and other string - // attributes. Use language tags defined by BCP 47. ISO 639-1. This + // attributes. Use language tags defined by BCP 47 + // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This // specifies the language of offers in Merchant Center that will be // accepted. If empty no language filtering will be performed. LanguageCode string `json:"languageCode,omitempty"` @@ -2669,11 +2674,10 @@ type GoogleCloudRetailV2alphaMerchantCenterLink struct { MerchantCenterAccountId int64 `json:"merchantCenterAccountId,omitempty,string"` // RegionCode: Region code of offers to accept. 2-letter Uppercase ISO - // 3166-1 alpha-2 code. List of values can be found here under the - // `region` tag. - // [https://www.iana.org/assignments/language-subtag-registry/language-su - // btag-registry]. If left blank no region filtering will be performed. - // Ex. `US`. + // 3166-1 alpha-2 code. List of values can be found here + // (https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) + // under the `region` tag. If left blank no region filtering will be + // performed. Example value: `US`. RegionCode string `json:"regionCode,omitempty"` // ForceSendFields is a list of field names (e.g. "BranchId") to @@ -6510,11 +6514,11 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day value, -// with a zero year, such as an anniversary * A year on its own, with -// zero month and day values * A year and month value, with a zero day, -// such as a credit card expiration date Related types are -// google.type.TimeOfDay and `google.protobuf.Timestamp`. +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -6815,10 +6819,7 @@ type ProjectsLocationsCatalogsGetDefaultBranchCall struct { // GetDefaultBranch: Get which branch is currently default branch set by // CatalogService.SetDefaultBranch method under a specified parent -// catalog. This feature is only available for users who have Retail -// Search enabled. Please submit a form here -// (https://cloud.google.com/contact) to contact cloud sales if you are -// interested in using Retail Search. +// catalog. // // - catalog: The parent catalog resource name, such as // `projects/*/locations/global/catalogs/default_catalog`. @@ -6929,7 +6930,7 @@ func (c *ProjectsLocationsCatalogsGetDefaultBranchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + // "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.", // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:getDefaultBranch", // "httpMethod": "GET", // "id": "retail.projects.locations.catalogs.getDefaultBranch", @@ -7346,10 +7347,7 @@ type ProjectsLocationsCatalogsSetDefaultBranchCall struct { // PredictionService will only return product IDs from branch // {newBranch}. * SearchService will only return product IDs from branch // {newBranch} (if branch is not explicitly set). * UserEventService -// will only join events with products from branch {newBranch}. This -// feature is only available for users who have Retail Search enabled. -// Please submit a form here (https://cloud.google.com/contact) to -// contact cloud sales if you are interested in using Retail Search. +// will only join events with products from branch {newBranch}. // // - catalog: Full resource name of the catalog, such as // `projects/*/locations/global/catalogs/default_catalog`. @@ -7451,7 +7449,7 @@ func (c *ProjectsLocationsCatalogsSetDefaultBranchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + // "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.", // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:setDefaultBranch", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.setDefaultBranch", diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index ad173da855c..1ac4cbf52aa 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -169,7 +169,7 @@ ] }, "getDefaultBranch": { - "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:getDefaultBranch", "httpMethod": "GET", "id": "retail.projects.locations.catalogs.getDefaultBranch", @@ -264,7 +264,7 @@ ] }, "setDefaultBranch": { - "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:setDefaultBranch", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.setDefaultBranch", @@ -1382,7 +1382,7 @@ } } }, - "revision": "20220127", + "revision": "20220203", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2077,7 +2077,7 @@ "id": "GoogleCloudRetailV2betaBigQuerySource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.", + "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: This feature is in private preview. Please contact the support team for importing Google Analytics 4 events. The schema is available here: https://support.google.com/analytics/answer/7029846.", "type": "string" }, "datasetId": { @@ -4411,7 +4411,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 8de2f12a8c1..a25c5c76b0c 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -1600,8 +1600,12 @@ type GoogleCloudRetailV2betaBigQuerySource struct { // Center // (https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). // Supported values for user events imports: * `user_event` (default): - // One JSON UserEvent per line. * `user_event_ga360`: Using - // https://support.google.com/analytics/answer/3437719. + // One JSON UserEvent per line. * `user_event_ga360`: The schema is + // available here: https://support.google.com/analytics/answer/3437719. + // * `user_event_ga4`: This feature is in private preview. Please + // contact the support team for importing Google Analytics 4 events. The + // schema is available here: + // https://support.google.com/analytics/answer/7029846. DataSchema string `json:"dataSchema,omitempty"` // DatasetId: Required. The BigQuery data set to copy the data from with @@ -6243,11 +6247,11 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day value, -// with a zero year, such as an anniversary * A year on its own, with -// zero month and day values * A year and month value, with a zero day, -// such as a credit card expiration date Related types are -// google.type.TimeOfDay and `google.protobuf.Timestamp`. +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -6548,10 +6552,7 @@ type ProjectsLocationsCatalogsGetDefaultBranchCall struct { // GetDefaultBranch: Get which branch is currently default branch set by // CatalogService.SetDefaultBranch method under a specified parent -// catalog. This feature is only available for users who have Retail -// Search enabled. Please submit a form here -// (https://cloud.google.com/contact) to contact cloud sales if you are -// interested in using Retail Search. +// catalog. // // - catalog: The parent catalog resource name, such as // `projects/*/locations/global/catalogs/default_catalog`. @@ -6662,7 +6663,7 @@ func (c *ProjectsLocationsCatalogsGetDefaultBranchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + // "description": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.", // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:getDefaultBranch", // "httpMethod": "GET", // "id": "retail.projects.locations.catalogs.getDefaultBranch", @@ -7079,10 +7080,7 @@ type ProjectsLocationsCatalogsSetDefaultBranchCall struct { // PredictionService will only return product IDs from branch // {newBranch}. * SearchService will only return product IDs from branch // {newBranch} (if branch is not explicitly set). * UserEventService -// will only join events with products from branch {newBranch}. This -// feature is only available for users who have Retail Search enabled. -// Please submit a form here (https://cloud.google.com/contact) to -// contact cloud sales if you are interested in using Retail Search. +// will only join events with products from branch {newBranch}. // // - catalog: Full resource name of the catalog, such as // `projects/*/locations/global/catalogs/default_catalog`. @@ -7184,7 +7182,7 @@ func (c *ProjectsLocationsCatalogsSetDefaultBranchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.", + // "description": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.", // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:setDefaultBranch", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.setDefaultBranch", diff --git a/run/v1/run-api.json b/run/v1/run-api.json index d1d9a666112..4918fdb0840 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://run.googleapis.com/", "batchPath": "batch", "canonicalName": "Cloud Run", - "description": "Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API follows the Knative Serving API specification.", + "description": "Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/run/", "fullyEncodeReservedExpansion": true, @@ -2261,7 +2261,7 @@ } } }, - "revision": "20220121", + "revision": "20220204", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -3494,7 +3494,7 @@ "additionalProperties": { "type": "string" }, - "description": "(Optional) Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", + "description": "(Optional) Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations", "type": "object" }, "clusterName": { @@ -3536,11 +3536,11 @@ "additionalProperties": { "type": "string" }, - "description": "(Optional) Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels", + "description": "(Optional) Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: https://kubernetes.io/docs/user-guide/labels", "type": "object" }, "name": { - "description": "Name must be unique within a namespace, within a Cloud Run region. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional", + "description": "Name must be unique within a namespace, within a Cloud Run region. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/user-guide/identifiers#names +optional", "type": "string" }, "namespace": { @@ -3563,7 +3563,7 @@ "type": "string" }, "uid": { - "description": "(Optional) UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "description": "(Optional) UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: https://kubernetes.io/docs/user-guide/identifiers#uids", "type": "string" } }, @@ -3590,11 +3590,11 @@ "type": "string" }, "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "description": "Name of the referent. More info: https://kubernetes.io/docs/user-guide/identifiers#names", "type": "string" }, "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "description": "UID of the referent. More info: https://kubernetes.io/docs/user-guide/identifiers#uids", "type": "string" } }, @@ -4190,7 +4190,7 @@ "type": "integer" }, "uid": { - "description": "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids +optional", + "description": "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/user-guide/identifiers#uids +optional", "type": "string" } }, @@ -4403,7 +4403,7 @@ "type": "string" }, "url": { - "description": "Output only. URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)", + "description": "Output only. URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. https://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)", "type": "string" } }, diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 5ffa2e70df3..498ed4fe9ef 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -2624,7 +2624,7 @@ type ObjectMeta struct { // stored with a resource that may be set by external tools to store and // retrieve arbitrary metadata. They are not queryable and should be // preserved when modifying objects. More info: - // http://kubernetes.io/docs/user-guide/annotations + // https://kubernetes.io/docs/user-guide/annotations Annotations map[string]string `json:"annotations,omitempty"` // ClusterName: (Optional) Not supported by Cloud Run The name of the @@ -2705,7 +2705,7 @@ type ObjectMeta struct { // Labels: (Optional) Map of string keys and values that can be used to // organize and categorize (scope and select) objects. May match // selectors of replication controllers and routes. More info: - // http://kubernetes.io/docs/user-guide/labels + // https://kubernetes.io/docs/user-guide/labels Labels map[string]string `json:"labels,omitempty"` // Name: Name must be unique within a namespace, within a Cloud Run @@ -2713,7 +2713,7 @@ type ObjectMeta struct { // may allow a client to request the generation of an appropriate name // automatically. Name is primarily intended for creation idempotence // and configuration definition. Cannot be updated. More info: - // http://kubernetes.io/docs/user-guide/identifiers#names +optional + // https://kubernetes.io/docs/user-guide/identifiers#names +optional Name string `json:"name,omitempty"` // Namespace: Namespace defines the space within each name must be @@ -2746,7 +2746,7 @@ type ObjectMeta struct { // object. It is typically generated by the server on successful // creation of a resource and is not allowed to change on PUT // operations. Populated by the system. Read-only. More info: - // http://kubernetes.io/docs/user-guide/identifiers#uids + // https://kubernetes.io/docs/user-guide/identifiers#uids Uid string `json:"uid,omitempty"` // ForceSendFields is a list of field names (e.g. "Annotations") to @@ -2796,11 +2796,11 @@ type OwnerReference struct { Kind string `json:"kind,omitempty"` // Name: Name of the referent. More info: - // http://kubernetes.io/docs/user-guide/identifiers#names + // https://kubernetes.io/docs/user-guide/identifiers#names Name string `json:"name,omitempty"` // Uid: UID of the referent. More info: - // http://kubernetes.io/docs/user-guide/identifiers#uids + // https://kubernetes.io/docs/user-guide/identifiers#uids Uid string `json:"uid,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") to @@ -4007,7 +4007,7 @@ type StatusDetails struct { // Uid: UID of the resource. (when there is a single resource which can // be described). More info: - // http://kubernetes.io/docs/user-guide/identifiers#uids +optional + // https://kubernetes.io/docs/user-guide/identifiers#uids +optional Uid string `json:"uid,omitempty"` // ForceSendFields is a list of field names (e.g. "Causes") to @@ -4414,7 +4414,7 @@ type TrafficTarget struct { // Url: Output only. URL displays the URL for accessing tagged traffic // targets. URL is displayed in status, and is disallowed on spec. URL - // must contain a scheme (e.g. http://) and a hostname, but may not + // must contain a scheme (e.g. https://) and a hostname, but may not // contain anything else (e.g. basic auth, url path, etc.) Url string `json:"url,omitempty"` diff --git a/run/v1alpha1/run-api.json b/run/v1alpha1/run-api.json index ce180c30a39..0913eaf7912 100644 --- a/run/v1alpha1/run-api.json +++ b/run/v1alpha1/run-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://run.googleapis.com/", "batchPath": "batch", "canonicalName": "Cloud Run", - "description": "Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API follows the Knative Serving API specification.", + "description": "Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/run/", "fullyEncodeReservedExpansion": true, @@ -268,7 +268,7 @@ } } }, - "revision": "20220107", + "revision": "20220204", "rootUrl": "https://run.googleapis.com/", "schemas": { "ConfigMapEnvSource": { @@ -950,7 +950,7 @@ "additionalProperties": { "type": "string" }, - "description": "(Optional) Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", + "description": "(Optional) Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations", "type": "object" }, "clusterName": { @@ -992,11 +992,11 @@ "additionalProperties": { "type": "string" }, - "description": "(Optional) Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels", + "description": "(Optional) Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: https://kubernetes.io/docs/user-guide/labels", "type": "object" }, "name": { - "description": "Name must be unique within a namespace, within a Cloud Run region. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional", + "description": "Name must be unique within a namespace, within a Cloud Run region. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/user-guide/identifiers#names +optional", "type": "string" }, "namespace": { @@ -1019,7 +1019,7 @@ "type": "string" }, "uid": { - "description": "(Optional) UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "description": "(Optional) UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: https://kubernetes.io/docs/user-guide/identifiers#uids", "type": "string" } }, @@ -1046,11 +1046,11 @@ "type": "string" }, "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "description": "Name of the referent. More info: https://kubernetes.io/docs/user-guide/identifiers#names", "type": "string" }, "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "description": "UID of the referent. More info: https://kubernetes.io/docs/user-guide/identifiers#uids", "type": "string" } }, diff --git a/run/v1alpha1/run-gen.go b/run/v1alpha1/run-gen.go index b0ce897e31f..7a5641a2acf 100644 --- a/run/v1alpha1/run-gen.go +++ b/run/v1alpha1/run-gen.go @@ -1400,7 +1400,7 @@ type ObjectMeta struct { // stored with a resource that may be set by external tools to store and // retrieve arbitrary metadata. They are not queryable and should be // preserved when modifying objects. More info: - // http://kubernetes.io/docs/user-guide/annotations + // https://kubernetes.io/docs/user-guide/annotations Annotations map[string]string `json:"annotations,omitempty"` // ClusterName: (Optional) Not supported by Cloud Run The name of the @@ -1481,7 +1481,7 @@ type ObjectMeta struct { // Labels: (Optional) Map of string keys and values that can be used to // organize and categorize (scope and select) objects. May match // selectors of replication controllers and routes. More info: - // http://kubernetes.io/docs/user-guide/labels + // https://kubernetes.io/docs/user-guide/labels Labels map[string]string `json:"labels,omitempty"` // Name: Name must be unique within a namespace, within a Cloud Run @@ -1489,7 +1489,7 @@ type ObjectMeta struct { // may allow a client to request the generation of an appropriate name // automatically. Name is primarily intended for creation idempotence // and configuration definition. Cannot be updated. More info: - // http://kubernetes.io/docs/user-guide/identifiers#names +optional + // https://kubernetes.io/docs/user-guide/identifiers#names +optional Name string `json:"name,omitempty"` // Namespace: Namespace defines the space within each name must be @@ -1522,7 +1522,7 @@ type ObjectMeta struct { // object. It is typically generated by the server on successful // creation of a resource and is not allowed to change on PUT // operations. Populated by the system. Read-only. More info: - // http://kubernetes.io/docs/user-guide/identifiers#uids + // https://kubernetes.io/docs/user-guide/identifiers#uids Uid string `json:"uid,omitempty"` // ForceSendFields is a list of field names (e.g. "Annotations") to @@ -1572,11 +1572,11 @@ type OwnerReference struct { Kind string `json:"kind,omitempty"` // Name: Name of the referent. More info: - // http://kubernetes.io/docs/user-guide/identifiers#names + // https://kubernetes.io/docs/user-guide/identifiers#names Name string `json:"name,omitempty"` // Uid: UID of the referent. More info: - // http://kubernetes.io/docs/user-guide/identifiers#uids + // https://kubernetes.io/docs/user-guide/identifiers#uids Uid string `json:"uid,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") to diff --git a/run/v2/run-api.json b/run/v2/run-api.json index a33ffb291e1..d29ce66602e 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://run.googleapis.com/", "batchPath": "batch", "canonicalName": "Cloud Run", - "description": "Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API follows the Knative Serving API specification.", + "description": "Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/run/", "fullyEncodeReservedExpansion": true, @@ -171,25 +171,25 @@ ], "parameters": { "filter": { - "description": "The standard list filter.", + "description": "Optional. A filter for matching the completed or in-progress operations. The supported formats of *filter* are: To query for only completed operations: done:true To query for only ongoing operations: done:false Must be empty to query for all of the latest operations for the given parent project.", "location": "query", "type": "string" }, "name": { - "description": "The name of the operation's parent resource.", + "description": "Required. To query for all of the operations for a project.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, "pageSize": { - "description": "The standard list page size.", + "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set or set to less than or equal to 0, the default page size is 100. .", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The standard list page token.", + "description": "Token identifying which result to start with, which is returned by a previous list call.", "location": "query", "type": "string" } @@ -590,7 +590,7 @@ } } }, - "revision": "20220121", + "revision": "20220204", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunOpV2BinaryAuthorization": { @@ -1052,7 +1052,7 @@ "type": "object" }, "launchStage": { - "description": "Set the launch stage to a preview stage on write to allow use of preview features in that stage. On read, describes whether the resource uses preview features. Launch Stages are defined at [Google Cloud Platform Launch Stages](http://cloud.google.com/terms/launch-stages).", + "description": "Set the launch stage to a preview stage on write to allow use of preview features in that stage. On read, describes whether the resource uses preview features. Launch Stages are defined at [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages).", "enum": [ "LAUNCH_STAGE_UNSPECIFIED", "UNIMPLEMENTED", @@ -1068,10 +1068,10 @@ "The feature is not yet implemented. Users can not use it.", "Prelaunch features are hidden from users and are only visible internally.", "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", - "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", + "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don't have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", "GA features are open to all developers and are considered stable and fully qualified for production use.", - "Deprecated features are scheduled to be shut down and removed. For more information, see the “Deprecation Policy” section of our [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) documentation." + "Deprecated features are scheduled to be shut down and removed. For more information, see the \"Deprecation Policy\" section of our [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) documentation." ], "type": "string" }, @@ -1285,7 +1285,7 @@ "additionalProperties": { "type": "string" }, - "description": "Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run will populate some annotations using 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field follows Kubernetes annotations' namespacing, limits, and rules. More info: http://kubernetes.io/docs/user-guide/annotations", + "description": "Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run will populate some annotations using 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field follows Kubernetes annotations' namespacing, limits, and rules. More info: https://kubernetes.io/docs/user-guide/annotations", "type": "object" }, "binaryAuthorization": { @@ -1385,7 +1385,7 @@ "type": "string" }, "launchStage": { - "description": "The launch stage as defined by [Google Cloud Platform Launch Stages](http://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed.", + "description": "The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed.", "enum": [ "LAUNCH_STAGE_UNSPECIFIED", "UNIMPLEMENTED", @@ -1401,10 +1401,10 @@ "The feature is not yet implemented. Users can not use it.", "Prelaunch features are hidden from users and are only visible internally.", "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", - "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", + "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don't have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", "GA features are open to all developers and are considered stable and fully qualified for production use.", - "Deprecated features are scheduled to be shut down and removed. For more information, see the “Deprecation Policy” section of our [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) documentation." + "Deprecated features are scheduled to be shut down and removed. For more information, see the \"Deprecation Policy\" section of our [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) documentation." ], "type": "string" }, diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 17f92f33c9b..f76f733df65 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -797,7 +797,7 @@ type GoogleCloudRunOpV2Revision struct { // allow use of preview features in that stage. On read, describes // whether the resource uses preview features. Launch Stages are defined // at Google Cloud Platform Launch Stages - // (http://cloud.google.com/terms/launch-stages). + // (https://cloud.google.com/terms/launch-stages). // // Possible values: // "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value. @@ -815,7 +815,7 @@ type GoogleCloudRunOpV2Revision struct { // issues are resolved and we are in the process of verifying // functionality. Alpha customers need to apply for access, agree to // applicable terms, and have their projects allowlisted. Alpha releases - // don’t have to be feature complete, no SLAs are provided, and there + // don't have to be feature complete, no SLAs are provided, and there // are no technical support obligations, but they will be far enough // along that customers can actually use them in test environments or // for limited-use tests -- just like they would in normal production @@ -828,7 +828,7 @@ type GoogleCloudRunOpV2Revision struct { // "GA" - GA features are open to all developers and are considered // stable and fully qualified for production use. // "DEPRECATED" - Deprecated features are scheduled to be shut down - // and removed. For more information, see the “Deprecation Policy” + // and removed. For more information, see the "Deprecation Policy" // section of our [Terms of Service](https://cloud.google.com/terms/) // and the [Google Cloud Platform Subject to the Deprecation // Policy](https://cloud.google.com/terms/deprecation) documentation. @@ -1133,7 +1133,7 @@ type GoogleCloudRunOpV2Service struct { // some annotations using 'run.googleapis.com' or 'serving.knative.dev' // namespaces. This field follows Kubernetes annotations' namespacing, // limits, and rules. More info: - // http://kubernetes.io/docs/user-guide/annotations + // https://kubernetes.io/docs/user-guide/annotations Annotations map[string]string `json:"annotations,omitempty"` // BinaryAuthorization: Settings for the Binary Authorization feature. @@ -1216,7 +1216,7 @@ type GoogleCloudRunOpV2Service struct { LatestReadyRevision string `json:"latestReadyRevision,omitempty"` // LaunchStage: The launch stage as defined by Google Cloud Platform - // Launch Stages (http://cloud.google.com/terms/launch-stages). Cloud + // Launch Stages (https://cloud.google.com/terms/launch-stages). Cloud // Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA // is assumed. // @@ -1236,7 +1236,7 @@ type GoogleCloudRunOpV2Service struct { // issues are resolved and we are in the process of verifying // functionality. Alpha customers need to apply for access, agree to // applicable terms, and have their projects allowlisted. Alpha releases - // don’t have to be feature complete, no SLAs are provided, and there + // don't have to be feature complete, no SLAs are provided, and there // are no technical support obligations, but they will be far enough // along that customers can actually use them in test environments or // for limited-use tests -- just like they would in normal production @@ -1249,7 +1249,7 @@ type GoogleCloudRunOpV2Service struct { // "GA" - GA features are open to all developers and are considered // stable and fully qualified for production use. // "DEPRECATED" - Deprecated features are scheduled to be shut down - // and removed. For more information, see the “Deprecation Policy” + // and removed. For more information, see the "Deprecation Policy" // section of our [Terms of Service](https://cloud.google.com/terms/) // and the [Google Cloud Platform Subject to the Deprecation // Policy](https://cloud.google.com/terms/deprecation) documentation. @@ -2519,29 +2519,35 @@ type ProjectsLocationsOperationsListCall struct { // the name binding is the parent resource, without the operations // collection id. // -// - name: The name of the operation's parent resource. +// - name: To query for all of the operations for a project. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": A filter for matching +// the completed or in-progress operations. The supported formats of +// *filter* are: To query for only completed operations: done:true To +// query for only ongoing operations: done:false Must be empty to query +// for all of the latest operations for the given parent project. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The maximum number +// of records that should be returned. Requested page size cannot exceed +// 100. If not set or set to less than or equal to 0, the default page +// size is 100. . func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": Token identifying +// which result to start with, which is returned by a previous list +// call. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -2656,25 +2662,25 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "Optional. A filter for matching the completed or in-progress operations. The supported formats of *filter* are: To query for only completed operations: done:true To query for only ongoing operations: done:false Must be empty to query for all of the latest operations for the given parent project.", // "location": "query", // "type": "string" // }, // "name": { - // "description": "The name of the operation's parent resource.", + // "description": "Required. To query for all of the operations for a project.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set or set to less than or equal to 0, the default page size is 100. .", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "Token identifying which result to start with, which is returned by a previous list call.", // "location": "query", // "type": "string" // } diff --git a/sasportal/v1alpha1/sasportal-api.json b/sasportal/v1alpha1/sasportal-api.json index 8d5493bba92..938246b8e7f 100644 --- a/sasportal/v1alpha1/sasportal-api.json +++ b/sasportal/v1alpha1/sasportal-api.json @@ -2483,7 +2483,7 @@ } } }, - "revision": "20220110", + "revision": "20220208", "rootUrl": "https://sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { @@ -2867,6 +2867,11 @@ "interferenceCoordinationGroup": { "description": "ICG. A group of CBSDs that manage their own interference with the group. See CBRSA-TS-2001 V3.0.0 for more details.", "type": "string" + }, + "nrqzValidated": { + "description": "Output only. Whether a CPI has validated to have coordinated with the National Quiet Zone office.", + "readOnly": true, + "type": "boolean" } }, "type": "object" diff --git a/sasportal/v1alpha1/sasportal-gen.go b/sasportal/v1alpha1/sasportal-gen.go index b34e5ff90b8..311492ac0e7 100644 --- a/sasportal/v1alpha1/sasportal-gen.go +++ b/sasportal/v1alpha1/sasportal-gen.go @@ -863,6 +863,10 @@ type SasPortalDeviceMetadata struct { // more details. InterferenceCoordinationGroup string `json:"interferenceCoordinationGroup,omitempty"` + // NrqzValidated: Output only. Whether a CPI has validated to have + // coordinated with the National Quiet Zone office. + NrqzValidated bool `json:"nrqzValidated,omitempty"` + // ForceSendFields is a list of field names (e.g. "AntennaModel") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/testing/v1/testing-api.json b/testing/v1/testing-api.json index efafd5b9ff7..238ff3c301d 100644 --- a/testing/v1/testing-api.json +++ b/testing/v1/testing-api.json @@ -282,7 +282,7 @@ } } }, - "revision": "20211228", + "revision": "20220201", "rootUrl": "https://testing.googleapis.com/", "schemas": { "Account": { @@ -851,7 +851,7 @@ "type": "object" }, "Date": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", "properties": { "day": { @@ -2141,7 +2141,7 @@ "type": "object" }, "UniformSharding": { - "description": "Uniformly shards test cases given a total number of shards. For Instrumentation test, it will be translated to \"-e numShard\" \"-e shardIndex\" AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these sharding arguments via environment_variables is invalid.", + "description": "Uniformly shards test cases given a total number of shards. For Instrumentation test, it will be translated to \"-e numShard\" \"-e shardIndex\" AndroidJUnitRunner arguments. Based on the sharding mechanism AndroidJUnitRunner uses, there is no guarantee that test cases will be distributed uniformly across all shards. With uniform sharding enabled, specifying these sharding arguments via environment_variables is invalid.", "id": "UniformSharding", "properties": { "numShards": { diff --git a/testing/v1/testing-gen.go b/testing/v1/testing-gen.go index fb89f5a317d..dd713096c28 100644 --- a/testing/v1/testing-gen.go +++ b/testing/v1/testing-gen.go @@ -1042,11 +1042,11 @@ func (s *ClientInfoDetail) MarshalJSON() ([]byte, error) { // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day value, -// with a zero year, such as an anniversary * A year on its own, with -// zero month and day values * A year and month value, with a zero day, -// such as a credit card expiration date Related types are -// google.type.TimeOfDay and `google.protobuf.Timestamp`. +// with non-zero year, month, and day values * A month and day, with a +// zero year (e.g., an anniversary) * A year on its own, with a zero +// month and a zero day * A year and month, with a zero day (e.g., a +// credit card expiration date) Related types: * google.type.TimeOfDay * +// google.type.DateTime * google.protobuf.Timestamp type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -3178,8 +3178,10 @@ func (s *TrafficRule) UnmarshalJSON(data []byte) error { // UniformSharding: Uniformly shards test cases given a total number of // shards. For Instrumentation test, it will be translated to "-e -// numShard" "-e shardIndex" AndroidJUnitRunner arguments. With uniform -// sharding enabled, specifying these sharding arguments via +// numShard" "-e shardIndex" AndroidJUnitRunner arguments. Based on the +// sharding mechanism AndroidJUnitRunner uses, there is no guarantee +// that test cases will be distributed uniformly across all shards. With +// uniform sharding enabled, specifying these sharding arguments via // environment_variables is invalid. type UniformSharding struct { // NumShards: Required. Total number of shards. When any physical diff --git a/vmmigration/v1/vmmigration-api.json b/vmmigration/v1/vmmigration-api.json index 6e0fcc485a0..305878d7447 100644 --- a/vmmigration/v1/vmmigration-api.json +++ b/vmmigration/v1/vmmigration-api.json @@ -356,7 +356,7 @@ ], "parameters": { "name": { - "description": "The Group name.", + "description": "Output only. The Group name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/groups/[^/]+$", "required": true, @@ -890,6 +890,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "upgradeAppliance": { + "description": "Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/datacenterConnectors/{datacenterConnectorsId}:upgradeAppliance", + "httpMethod": "POST", + "id": "vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance", + "parameterOrder": [ + "datacenterConnector" + ], + "parameters": { + "datacenterConnector": { + "description": "Required. The DatacenterConnector name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/datacenterConnectors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+datacenterConnector}:upgradeAppliance", + "request": { + "$ref": "UpgradeApplianceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -1822,7 +1850,7 @@ ], "parameters": { "name": { - "description": "The name of the target project.", + "description": "Output only. The name of the target project.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/targetProjects/[^/]+$", "required": true, @@ -1858,7 +1886,7 @@ } } }, - "revision": "20220120", + "revision": "20220203", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AddGroupMigrationRequest": { @@ -1872,6 +1900,29 @@ }, "type": "object" }, + "ApplianceVersion": { + "description": "Describes an appliance version.", + "id": "ApplianceVersion", + "properties": { + "critical": { + "description": "Determine whether it's critical to upgrade the appliance to this version.", + "type": "boolean" + }, + "releaseNotesUri": { + "description": "Link to a page that contains the version release notes.", + "type": "string" + }, + "uri": { + "description": "A link for downloading the version.", + "type": "string" + }, + "version": { + "description": "The appliance version.", + "type": "string" + } + }, + "type": "object" + }, "AppliedLicense": { "description": "AppliedLicense holds the license data returned by adaptation module report.", "id": "AppliedLicense", @@ -1899,6 +1950,21 @@ }, "type": "object" }, + "AvailableUpdates": { + "description": "Holds informatiom about the available versions for upgrade.", + "id": "AvailableUpdates", + "properties": { + "inPlaceUpdate": { + "$ref": "ApplianceVersion", + "description": "The latest version for in place update. The current appliance can be updated to this version using the API or m4c CLI." + }, + "newDeployableAppliance": { + "$ref": "ApplianceVersion", + "description": "The newest deployable version of the appliance. The current appliance can't be updated into this version, and the owner must manually deploy this OVA to a new appliance." + } + }, + "type": "object" + }, "CancelCloneJobRequest": { "description": "Request message for 'CancelCloneJob' request.", "id": "CancelCloneJobRequest", @@ -1938,7 +2004,8 @@ "readOnly": true }, "name": { - "description": "The name of the clone.", + "description": "Output only. The name of the clone.", + "readOnly": true, "type": "string" }, "state": { @@ -2342,6 +2409,21 @@ "description": "DatacenterConnector message describes a connector between the Source and GCP, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to GCP and support vm migration data transfer.", "id": "DatacenterConnector", "properties": { + "applianceInfrastructureVersion": { + "description": "Output only. Appliance OVA version. This is the OVA which is manually installed by the user and contains the infrastructure for the automatically updatable components on the appliance.", + "readOnly": true, + "type": "string" + }, + "applianceSoftwareVersion": { + "description": "Output only. Appliance last installed update bundle version. This is the version of the automatically updatable components on the appliance.", + "readOnly": true, + "type": "string" + }, + "availableVersions": { + "$ref": "AvailableUpdates", + "description": "Output only. The available versions for updating this appliance.", + "readOnly": true + }, "bucket": { "description": "Output only. The communication channel between the datacenter connector and GCP.", "readOnly": true, @@ -2402,6 +2484,11 @@ "readOnly": true, "type": "string" }, + "upgradeStatus": { + "$ref": "UpgradeStatus", + "description": "Output only. The status of the current / last upgradeAppliance operation.", + "readOnly": true + }, "version": { "description": "The version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified.", "type": "string" @@ -2427,8 +2514,7 @@ }, "vmwareVms": { "$ref": "VmwareVmsDetails", - "description": "Output only. The description of the VMs in a Source of type Vmware.", - "readOnly": true + "description": "The description of the VMs in a Source of type Vmware." } }, "type": "object" @@ -2458,7 +2544,8 @@ "type": "string" }, "name": { - "description": "The Group name.", + "description": "Output only. The Group name.", + "readOnly": true, "type": "string" }, "updateTime": { @@ -3269,7 +3356,8 @@ "type": "string" }, "name": { - "description": "The name of the target project.", + "description": "Output only. The name of the target project.", + "readOnly": true, "type": "string" }, "project": { @@ -3285,6 +3373,57 @@ }, "type": "object" }, + "UpgradeApplianceRequest": { + "description": "Request message for 'UpgradeAppliance' request.", + "id": "UpgradeApplianceRequest", + "properties": { + "requestId": { + "description": "A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "UpgradeStatus": { + "description": "UpgradeStatus contains information about upgradeAppliance operation.", + "id": "UpgradeStatus", + "properties": { + "error": { + "$ref": "Status", + "description": "Provides details on the state of the upgrade operation in case of an error." + }, + "previousVersion": { + "description": "The version from which we upgraded.", + "type": "string" + }, + "startTime": { + "description": "The time the operation was started.", + "format": "google-datetime", + "type": "string" + }, + "state": { + "description": "The state of the upgradeAppliance operation.", + "enum": [ + "STATE_UNSPECIFIED", + "RUNNING", + "FAILED", + "SUCCEEDED" + ], + "enumDescriptions": [ + "The state was not sampled by the health checks yet.", + "The upgrade has started.", + "The upgrade failed.", + "The upgrade finished successfully." + ], + "type": "string" + }, + "version": { + "description": "The version to upgrade to.", + "type": "string" + } + }, + "type": "object" + }, "UtilizationReport": { "description": "Utilization report details the utilization (CPU, memory, etc.) of selected source VMs.", "id": "UtilizationReport", @@ -3506,7 +3645,7 @@ "type": "string" }, "guestDescription": { - "description": "The VM's OS. See for example https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html for types of strings this might hold.", + "description": "The VM's OS. See for example https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html for types of strings this might hold.", "type": "string" }, "memoryMb": { diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index cc60333c942..ab4622b1df8 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -295,6 +295,45 @@ func (s *AddGroupMigrationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ApplianceVersion: Describes an appliance version. +type ApplianceVersion struct { + // Critical: Determine whether it's critical to upgrade the appliance to + // this version. + Critical bool `json:"critical,omitempty"` + + // ReleaseNotesUri: Link to a page that contains the version release + // notes. + ReleaseNotesUri string `json:"releaseNotesUri,omitempty"` + + // Uri: A link for downloading the version. + Uri string `json:"uri,omitempty"` + + // Version: The appliance version. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Critical") 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. "Critical") 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 *ApplianceVersion) MarshalJSON() ([]byte, error) { + type NoMethod ApplianceVersion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AppliedLicense: AppliedLicense holds the license data returned by // adaptation module report. type AppliedLicense struct { @@ -334,6 +373,41 @@ func (s *AppliedLicense) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AvailableUpdates: Holds informatiom about the available versions for +// upgrade. +type AvailableUpdates struct { + // InPlaceUpdate: The latest version for in place update. The current + // appliance can be updated to this version using the API or m4c CLI. + InPlaceUpdate *ApplianceVersion `json:"inPlaceUpdate,omitempty"` + + // NewDeployableAppliance: The newest deployable version of the + // appliance. The current appliance can't be updated into this version, + // and the owner must manually deploy this OVA to a new appliance. + NewDeployableAppliance *ApplianceVersion `json:"newDeployableAppliance,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InPlaceUpdate") 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. "InPlaceUpdate") 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 *AvailableUpdates) MarshalJSON() ([]byte, error) { + type NoMethod AvailableUpdates + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CancelCloneJobRequest: Request message for 'CancelCloneJob' request. type CancelCloneJobRequest struct { } @@ -371,7 +445,7 @@ type CloneJob struct { // Clone Job's state. Error *Status `json:"error,omitempty"` - // Name: The name of the clone. + // Name: Output only. The name of the clone. Name string `json:"name,omitempty"` // State: Output only. State of the clone job. @@ -775,6 +849,21 @@ func (s *CutoverJob) MarshalJSON() ([]byte, error) { // datacenter (an OVA vm installed by the user) to connect the // Datacenter to GCP and support vm migration data transfer. type DatacenterConnector struct { + // ApplianceInfrastructureVersion: Output only. Appliance OVA version. + // This is the OVA which is manually installed by the user and contains + // the infrastructure for the automatically updatable components on the + // appliance. + ApplianceInfrastructureVersion string `json:"applianceInfrastructureVersion,omitempty"` + + // ApplianceSoftwareVersion: Output only. Appliance last installed + // update bundle version. This is the version of the automatically + // updatable components on the appliance. + ApplianceSoftwareVersion string `json:"applianceSoftwareVersion,omitempty"` + + // AvailableVersions: Output only. The available versions for updating + // this appliance. + AvailableVersions *AvailableUpdates `json:"availableVersions,omitempty"` + // Bucket: Output only. The communication channel between the datacenter // connector and GCP. Bucket string `json:"bucket,omitempty"` @@ -822,6 +911,10 @@ type DatacenterConnector struct { // an API call. UpdateTime string `json:"updateTime,omitempty"` + // UpgradeStatus: Output only. The status of the current / last + // upgradeAppliance operation. + UpgradeStatus *UpgradeStatus `json:"upgradeStatus,omitempty"` + // Version: The version running in the DatacenterConnector. This is // supplied by the OVA connector during the registration process and can // not be modified. @@ -831,20 +924,22 @@ type DatacenterConnector struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Bucket") 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 is a list of field names (e.g. + // "ApplianceInfrastructureVersion") 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. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. + // "ApplianceInfrastructureVersion") 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:"-"` } @@ -872,8 +967,7 @@ type FetchInventoryResponse struct { // queried (if the result is from the cache). UpdateTime string `json:"updateTime,omitempty"` - // VmwareVms: Output only. The description of the VMs in a Source of - // type Vmware. + // VmwareVms: The description of the VMs in a Source of type Vmware. VmwareVms *VmwareVmsDetails `json:"vmwareVms,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -921,7 +1015,7 @@ type Group struct { // can be updated. DisplayName string `json:"displayName,omitempty"` - // Name: The Group name. + // Name: Output only. The Group name. Name string `json:"name,omitempty"` // UpdateTime: Output only. The update time timestamp. @@ -2102,7 +2196,7 @@ type TargetProject struct { // Description: The target project's description. Description string `json:"description,omitempty"` - // Name: The name of the target project. + // Name: Output only. The name of the target project. Name string `json:"name,omitempty"` // Project: The target project ID (number) or project name. @@ -2139,6 +2233,95 @@ func (s *TargetProject) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UpgradeApplianceRequest: Request message for 'UpgradeAppliance' +// request. +type UpgradeApplianceRequest struct { + // RequestId: A request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The + // server will guarantee that for at least 60 minutes after the first + // request. For example, consider a situation where you make an initial + // request and t he request times out. If you make the request again + // with the same request ID, the server can check if original operation + // with the same request ID was received, and if so, will ignore the + // second request. This prevents clients from accidentally creating + // duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RequestId") 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. "RequestId") 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 *UpgradeApplianceRequest) MarshalJSON() ([]byte, error) { + type NoMethod UpgradeApplianceRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UpgradeStatus: UpgradeStatus contains information about +// upgradeAppliance operation. +type UpgradeStatus struct { + // Error: Provides details on the state of the upgrade operation in case + // of an error. + Error *Status `json:"error,omitempty"` + + // PreviousVersion: The version from which we upgraded. + PreviousVersion string `json:"previousVersion,omitempty"` + + // StartTime: The time the operation was started. + StartTime string `json:"startTime,omitempty"` + + // State: The state of the upgradeAppliance operation. + // + // Possible values: + // "STATE_UNSPECIFIED" - The state was not sampled by the health + // checks yet. + // "RUNNING" - The upgrade has started. + // "FAILED" - The upgrade failed. + // "SUCCEEDED" - The upgrade finished successfully. + State string `json:"state,omitempty"` + + // Version: The version to upgrade to. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Error") 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. "Error") 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 *UpgradeStatus) MarshalJSON() ([]byte, error) { + type NoMethod UpgradeStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UtilizationReport: Utilization report details the utilization (CPU, // memory, etc.) of selected source VMs. type UtilizationReport struct { @@ -2382,7 +2565,7 @@ type VmwareVmDetails struct { DisplayName string `json:"displayName,omitempty"` // GuestDescription: The VM's OS. See for example - // https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html + // https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html // for types of strings this might hold. GuestDescription string `json:"guestDescription,omitempty"` @@ -3663,7 +3846,7 @@ type ProjectsLocationsGroupsPatchCall struct { // Patch: Updates the parameters of a single Group. // -// - name: The Group name. +// - name: Output only. The Group name. func (r *ProjectsLocationsGroupsService) Patch(name string, group *Group) *ProjectsLocationsGroupsPatchCall { c := &ProjectsLocationsGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3799,7 +3982,7 @@ func (c *ProjectsLocationsGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Op // ], // "parameters": { // "name": { - // "description": "The Group name.", + // "description": "Output only. The Group name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/groups/[^/]+$", // "required": true, @@ -6360,6 +6543,149 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsListCall) Pages(ctx context } } +// method id "vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance": + +type ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall struct { + s *Service + datacenterConnector string + upgradeappliancerequest *UpgradeApplianceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpgradeAppliance: Upgrades the appliance relate to this +// DatacenterConnector to the in-place updateable version. +// +// - datacenterConnector: The DatacenterConnector name. +func (r *ProjectsLocationsSourcesDatacenterConnectorsService) UpgradeAppliance(datacenterConnector string, upgradeappliancerequest *UpgradeApplianceRequest) *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall { + c := &ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.datacenterConnector = datacenterConnector + c.upgradeappliancerequest = upgradeappliancerequest + 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 *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall { + 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 *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) Context(ctx context.Context) *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall { + 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 *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) 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.upgradeappliancerequest) + 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/{+datacenterConnector}:upgradeAppliance") + 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{ + "datacenterConnector": c.datacenterConnector, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/datacenterConnectors/{datacenterConnectorsId}:upgradeAppliance", + // "httpMethod": "POST", + // "id": "vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance", + // "parameterOrder": [ + // "datacenterConnector" + // ], + // "parameters": { + // "datacenterConnector": { + // "description": "Required. The DatacenterConnector name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/datacenterConnectors/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+datacenterConnector}:upgradeAppliance", + // "request": { + // "$ref": "UpgradeApplianceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "vmmigration.projects.locations.sources.migratingVms.create": type ProjectsLocationsSourcesMigratingVmsCreateCall struct { @@ -10702,7 +11028,7 @@ type ProjectsLocationsTargetProjectsPatchCall struct { // TargetProject is a global resource; hence the only supported value // for location is `global`. // -// - name: The name of the target project. +// - name: Output only. The name of the target project. func (r *ProjectsLocationsTargetProjectsService) Patch(name string, targetproject *TargetProject) *ProjectsLocationsTargetProjectsPatchCall { c := &ProjectsLocationsTargetProjectsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -10838,7 +11164,7 @@ func (c *ProjectsLocationsTargetProjectsPatchCall) Do(opts ...googleapi.CallOpti // ], // "parameters": { // "name": { - // "description": "The name of the target project.", + // "description": "Output only. The name of the target project.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/targetProjects/[^/]+$", // "required": true, diff --git a/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index a89d4f02059..e3301dcf717 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -356,7 +356,7 @@ ], "parameters": { "name": { - "description": "The Group name.", + "description": "Output only. The Group name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/groups/[^/]+$", "required": true, @@ -890,6 +890,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "upgradeAppliance": { + "description": "Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/datacenterConnectors/{datacenterConnectorsId}:upgradeAppliance", + "httpMethod": "POST", + "id": "vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance", + "parameterOrder": [ + "datacenterConnector" + ], + "parameters": { + "datacenterConnector": { + "description": "Required. The DatacenterConnector name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/datacenterConnectors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+datacenterConnector}:upgradeAppliance", + "request": { + "$ref": "UpgradeApplianceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -1822,7 +1850,7 @@ ], "parameters": { "name": { - "description": "The name of the target project.", + "description": "Output only. The name of the target project.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/targetProjects/[^/]+$", "required": true, @@ -1858,7 +1886,7 @@ } } }, - "revision": "20220120", + "revision": "20220203", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AddGroupMigrationRequest": { @@ -1872,6 +1900,29 @@ }, "type": "object" }, + "ApplianceVersion": { + "description": "Describes an appliance version.", + "id": "ApplianceVersion", + "properties": { + "critical": { + "description": "Determine whether it's critical to upgrade the appliance to this version.", + "type": "boolean" + }, + "releaseNotesUri": { + "description": "Link to a page that contains the version release notes.", + "type": "string" + }, + "uri": { + "description": "A link for downloading the version.", + "type": "string" + }, + "version": { + "description": "The appliance version.", + "type": "string" + } + }, + "type": "object" + }, "AppliedLicense": { "description": "AppliedLicense holds the license data returned by adaptation module report.", "id": "AppliedLicense", @@ -1899,6 +1950,21 @@ }, "type": "object" }, + "AvailableUpdates": { + "description": "Holds informatiom about the available versions for upgrade.", + "id": "AvailableUpdates", + "properties": { + "inPlaceUpdate": { + "$ref": "ApplianceVersion", + "description": "The latest version for in place update. The current appliance can be updated to this version using the API or m4c CLI." + }, + "newDeployableAppliance": { + "$ref": "ApplianceVersion", + "description": "The newest deployable version of the appliance. The current appliance can't be updated into this version, and the owner must manually deploy this OVA to a new appliance." + } + }, + "type": "object" + }, "CancelCloneJobRequest": { "description": "Request message for 'CancelCloneJob' request.", "id": "CancelCloneJobRequest", @@ -1943,7 +2009,8 @@ "readOnly": true }, "name": { - "description": "The name of the clone.", + "description": "Output only. The name of the clone.", + "readOnly": true, "type": "string" }, "state": { @@ -2367,39 +2434,25 @@ }, "type": "object" }, - "CycleStep": { - "description": "CycleStep hold information about a step progress.", - "id": "CycleStep", + "DatacenterConnector": { + "description": "DatacenterConnector message describes a connector between the Source and GCP, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to GCP and support vm migration data transfer.", + "id": "DatacenterConnector", "properties": { - "endTime": { - "description": "The time the cycle step has ended.", - "format": "google-datetime", + "applianceInfrastructureVersion": { + "description": "Output only. Appliance OVA version. This is the OVA which is manually installed by the user and contains the infrastructure for the automatically updatable components on the appliance.", + "readOnly": true, "type": "string" }, - "initializingReplication": { - "$ref": "InitializingReplicationStep", - "description": "Initializing replication step." - }, - "postProcessing": { - "$ref": "PostProcessingStep", - "description": "Post processing step." + "applianceSoftwareVersion": { + "description": "Output only. Appliance last installed update bundle version. This is the version of the automatically updatable components on the appliance.", + "readOnly": true, + "type": "string" }, - "replicating": { - "$ref": "ReplicatingStep", - "description": "Replicating step." + "availableVersions": { + "$ref": "AvailableUpdates", + "description": "Output only. The available versions for updating this appliance.", + "readOnly": true }, - "startTime": { - "description": "The time the cycle step has started.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, - "DatacenterConnector": { - "description": "DatacenterConnector message describes a connector between the Source and GCP, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to GCP and support vm migration data transfer.", - "id": "DatacenterConnector", - "properties": { "bucket": { "description": "Output only. The communication channel between the datacenter connector and GCP.", "readOnly": true, @@ -2460,6 +2513,11 @@ "readOnly": true, "type": "string" }, + "upgradeStatus": { + "$ref": "UpgradeStatus", + "description": "Output only. The status of the current / last upgradeAppliance operation.", + "readOnly": true + }, "version": { "description": "The version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified.", "type": "string" @@ -2485,8 +2543,7 @@ }, "vmwareVms": { "$ref": "VmwareVmsDetails", - "description": "Output only. The description of the VMs in a Source of type Vmware.", - "readOnly": true + "description": "The description of the VMs in a Source of type Vmware." } }, "type": "object" @@ -2516,7 +2573,8 @@ "type": "string" }, "name": { - "description": "The Group name.", + "description": "Output only. The Group name.", + "readOnly": true, "type": "string" }, "updateTime": { @@ -2528,12 +2586,6 @@ }, "type": "object" }, - "InitializingReplicationStep": { - "description": "InitializingReplicationStep contains specific step details.", - "id": "InitializingReplicationStep", - "properties": {}, - "type": "object" - }, "Link": { "description": "Describes a URL link.", "id": "Link", @@ -3160,12 +3212,6 @@ "properties": {}, "type": "object" }, - "PostProcessingStep": { - "description": "PostProcessingStep contains specific step details.", - "id": "PostProcessingStep", - "properties": {}, - "type": "object" - }, "RemoveGroupMigrationRequest": { "description": "Request message for 'RemoveMigration' request.", "id": "RemoveGroupMigrationRequest", @@ -3177,42 +3223,10 @@ }, "type": "object" }, - "ReplicatingStep": { - "description": "ReplicatingStep contains specific step details.", - "id": "ReplicatingStep", - "properties": { - "lastThirtyMinutesAverageBytesPerSecond": { - "description": "The source disks replication rate for the last 30 minutes in bytes per second.", - "format": "int64", - "type": "string" - }, - "lastTwoMinutesAverageBytesPerSecond": { - "description": "The source disks replication rate for the last 2 minutes in bytes per second.", - "format": "int64", - "type": "string" - }, - "replicatedBytes": { - "description": "Replicated bytes in the step.", - "format": "int64", - "type": "string" - }, - "totalBytes": { - "description": "Total bytes to be handled in the step.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "ReplicationCycle": { "description": "ReplicationCycle contains information about the current replication cycle status.", "id": "ReplicationCycle", "properties": { - "endTime": { - "description": "The time the replication cycle has ended.", - "format": "google-datetime", - "type": "string" - }, "progress": { "description": "The current progress in percentage of this cycle.", "format": "int32", @@ -3228,13 +3242,6 @@ "format": "google-datetime", "type": "string" }, - "steps": { - "description": "The cycle's steps list reflecting its progress.", - "items": { - "$ref": "CycleStep" - }, - "type": "array" - }, "totalPauseDuration": { "description": "The accumulated duration the replication cycle was paused.", "format": "google-duration", @@ -3401,7 +3408,8 @@ "type": "string" }, "name": { - "description": "The name of the target project.", + "description": "Output only. The name of the target project.", + "readOnly": true, "type": "string" }, "project": { @@ -3555,6 +3563,57 @@ }, "type": "object" }, + "UpgradeApplianceRequest": { + "description": "Request message for 'UpgradeAppliance' request.", + "id": "UpgradeApplianceRequest", + "properties": { + "requestId": { + "description": "A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "UpgradeStatus": { + "description": "UpgradeStatus contains information about upgradeAppliance operation.", + "id": "UpgradeStatus", + "properties": { + "error": { + "$ref": "Status", + "description": "Provides details on the state of the upgrade operation in case of an error." + }, + "previousVersion": { + "description": "The version from which we upgraded.", + "type": "string" + }, + "startTime": { + "description": "The time the operation was started.", + "format": "google-datetime", + "type": "string" + }, + "state": { + "description": "The state of the upgradeAppliance operation.", + "enum": [ + "STATE_UNSPECIFIED", + "RUNNING", + "FAILED", + "SUCCEEDED" + ], + "enumDescriptions": [ + "The state was not sampled by the health checks yet.", + "The upgrade has started.", + "The upgrade failed.", + "The upgrade finished successfully." + ], + "type": "string" + }, + "version": { + "description": "The version to upgrade to.", + "type": "string" + } + }, + "type": "object" + }, "UtilizationReport": { "description": "Utilization report details the utilization (CPU, memory, etc.) of selected source VMs.", "id": "UtilizationReport", @@ -3827,7 +3886,7 @@ "type": "string" }, "guestDescription": { - "description": "The VM's OS. See for example https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html for types of strings this might hold.", + "description": "The VM's OS. See for example https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html for types of strings this might hold.", "type": "string" }, "memoryMb": { diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index a7fdffc8e02..c826acd3745 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -295,6 +295,45 @@ func (s *AddGroupMigrationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ApplianceVersion: Describes an appliance version. +type ApplianceVersion struct { + // Critical: Determine whether it's critical to upgrade the appliance to + // this version. + Critical bool `json:"critical,omitempty"` + + // ReleaseNotesUri: Link to a page that contains the version release + // notes. + ReleaseNotesUri string `json:"releaseNotesUri,omitempty"` + + // Uri: A link for downloading the version. + Uri string `json:"uri,omitempty"` + + // Version: The appliance version. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Critical") 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. "Critical") 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 *ApplianceVersion) MarshalJSON() ([]byte, error) { + type NoMethod ApplianceVersion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AppliedLicense: AppliedLicense holds the license data returned by // adaptation module report. type AppliedLicense struct { @@ -334,6 +373,41 @@ func (s *AppliedLicense) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AvailableUpdates: Holds informatiom about the available versions for +// upgrade. +type AvailableUpdates struct { + // InPlaceUpdate: The latest version for in place update. The current + // appliance can be updated to this version using the API or m4c CLI. + InPlaceUpdate *ApplianceVersion `json:"inPlaceUpdate,omitempty"` + + // NewDeployableAppliance: The newest deployable version of the + // appliance. The current appliance can't be updated into this version, + // and the owner must manually deploy this OVA to a new appliance. + NewDeployableAppliance *ApplianceVersion `json:"newDeployableAppliance,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InPlaceUpdate") 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. "InPlaceUpdate") 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 *AvailableUpdates) MarshalJSON() ([]byte, error) { + type NoMethod AvailableUpdates + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CancelCloneJobRequest: Request message for 'CancelCloneJob' request. type CancelCloneJobRequest struct { } @@ -375,7 +449,7 @@ type CloneJob struct { // Clone Job's state. Error *Status `json:"error,omitempty"` - // Name: The name of the clone. + // Name: Output only. The name of the clone. Name string `json:"name,omitempty"` // State: Output only. State of the clone job. @@ -795,51 +869,26 @@ func (s *CutoverJob) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CycleStep: CycleStep hold information about a step progress. -type CycleStep struct { - // EndTime: The time the cycle step has ended. - EndTime string `json:"endTime,omitempty"` - - // InitializingReplication: Initializing replication step. - InitializingReplication *InitializingReplicationStep `json:"initializingReplication,omitempty"` - - // PostProcessing: Post processing step. - PostProcessing *PostProcessingStep `json:"postProcessing,omitempty"` - - // Replicating: Replicating step. - Replicating *ReplicatingStep `json:"replicating,omitempty"` - - // StartTime: The time the cycle step has started. - StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty 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. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *CycleStep) MarshalJSON() ([]byte, error) { - type NoMethod CycleStep - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // DatacenterConnector: DatacenterConnector message describes a // connector between the Source and GCP, which is installed on a vmware // datacenter (an OVA vm installed by the user) to connect the // Datacenter to GCP and support vm migration data transfer. type DatacenterConnector struct { + // ApplianceInfrastructureVersion: Output only. Appliance OVA version. + // This is the OVA which is manually installed by the user and contains + // the infrastructure for the automatically updatable components on the + // appliance. + ApplianceInfrastructureVersion string `json:"applianceInfrastructureVersion,omitempty"` + + // ApplianceSoftwareVersion: Output only. Appliance last installed + // update bundle version. This is the version of the automatically + // updatable components on the appliance. + ApplianceSoftwareVersion string `json:"applianceSoftwareVersion,omitempty"` + + // AvailableVersions: Output only. The available versions for updating + // this appliance. + AvailableVersions *AvailableUpdates `json:"availableVersions,omitempty"` + // Bucket: Output only. The communication channel between the datacenter // connector and GCP. Bucket string `json:"bucket,omitempty"` @@ -887,6 +936,10 @@ type DatacenterConnector struct { // an API call. UpdateTime string `json:"updateTime,omitempty"` + // UpgradeStatus: Output only. The status of the current / last + // upgradeAppliance operation. + UpgradeStatus *UpgradeStatus `json:"upgradeStatus,omitempty"` + // Version: The version running in the DatacenterConnector. This is // supplied by the OVA connector during the registration process and can // not be modified. @@ -896,20 +949,22 @@ type DatacenterConnector struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Bucket") 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 is a list of field names (e.g. + // "ApplianceInfrastructureVersion") 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. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. + // "ApplianceInfrastructureVersion") 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:"-"` } @@ -937,8 +992,7 @@ type FetchInventoryResponse struct { // queried (if the result is from the cache). UpdateTime string `json:"updateTime,omitempty"` - // VmwareVms: Output only. The description of the VMs in a Source of - // type Vmware. + // VmwareVms: The description of the VMs in a Source of type Vmware. VmwareVms *VmwareVmsDetails `json:"vmwareVms,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -986,7 +1040,7 @@ type Group struct { // can be updated. DisplayName string `json:"displayName,omitempty"` - // Name: The Group name. + // Name: Output only. The Group name. Name string `json:"name,omitempty"` // UpdateTime: Output only. The update time timestamp. @@ -1019,11 +1073,6 @@ func (s *Group) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// InitializingReplicationStep: InitializingReplicationStep contains -// specific step details. -type InitializingReplicationStep struct { -} - // Link: Describes a URL link. type Link struct { // Description: Describes what the link offers. @@ -1898,11 +1947,6 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) { type PauseMigrationRequest struct { } -// PostProcessingStep: PostProcessingStep contains specific step -// details. -type PostProcessingStep struct { -} - // RemoveGroupMigrationRequest: Request message for 'RemoveMigration' // request. type RemoveGroupMigrationRequest struct { @@ -1932,53 +1976,9 @@ func (s *RemoveGroupMigrationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ReplicatingStep: ReplicatingStep contains specific step details. -type ReplicatingStep struct { - // LastThirtyMinutesAverageBytesPerSecond: The source disks replication - // rate for the last 30 minutes in bytes per second. - LastThirtyMinutesAverageBytesPerSecond int64 `json:"lastThirtyMinutesAverageBytesPerSecond,omitempty,string"` - - // LastTwoMinutesAverageBytesPerSecond: The source disks replication - // rate for the last 2 minutes in bytes per second. - LastTwoMinutesAverageBytesPerSecond int64 `json:"lastTwoMinutesAverageBytesPerSecond,omitempty,string"` - - // ReplicatedBytes: Replicated bytes in the step. - ReplicatedBytes int64 `json:"replicatedBytes,omitempty,string"` - - // TotalBytes: Total bytes to be handled in the step. - TotalBytes int64 `json:"totalBytes,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "LastThirtyMinutesAverageBytesPerSecond") 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. - // "LastThirtyMinutesAverageBytesPerSecond") 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 *ReplicatingStep) MarshalJSON() ([]byte, error) { - type NoMethod ReplicatingStep - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ReplicationCycle: ReplicationCycle contains information about the // current replication cycle status. type ReplicationCycle struct { - // EndTime: The time the replication cycle has ended. - EndTime string `json:"endTime,omitempty"` - // Progress: The current progress in percentage of this cycle. Progress int64 `json:"progress,omitempty"` @@ -1988,14 +1988,11 @@ type ReplicationCycle struct { // StartTime: The time the replication cycle has started. StartTime string `json:"startTime,omitempty"` - // Steps: The cycle's steps list reflecting its progress. - Steps []*CycleStep `json:"steps,omitempty"` - // TotalPauseDuration: The accumulated duration the replication cycle // was paused. TotalPauseDuration string `json:"totalPauseDuration,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndTime") to + // ForceSendFields is a list of field names (e.g. "Progress") 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 @@ -2003,7 +2000,7 @@ type ReplicationCycle struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EndTime") to include in + // NullFields is a list of field names (e.g. "Progress") 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 @@ -2243,7 +2240,7 @@ type TargetProject struct { // Description: The target project's description. Description string `json:"description,omitempty"` - // Name: The name of the target project. + // Name: Output only. The name of the target project. Name string `json:"name,omitempty"` // Project: The target project ID (number) or project name. @@ -2394,6 +2391,95 @@ func (s *TargetVMDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UpgradeApplianceRequest: Request message for 'UpgradeAppliance' +// request. +type UpgradeApplianceRequest struct { + // RequestId: A request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The + // server will guarantee that for at least 60 minutes after the first + // request. For example, consider a situation where you make an initial + // request and t he request times out. If you make the request again + // with the same request ID, the server can check if original operation + // with the same request ID was received, and if so, will ignore the + // second request. This prevents clients from accidentally creating + // duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RequestId") 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. "RequestId") 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 *UpgradeApplianceRequest) MarshalJSON() ([]byte, error) { + type NoMethod UpgradeApplianceRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UpgradeStatus: UpgradeStatus contains information about +// upgradeAppliance operation. +type UpgradeStatus struct { + // Error: Provides details on the state of the upgrade operation in case + // of an error. + Error *Status `json:"error,omitempty"` + + // PreviousVersion: The version from which we upgraded. + PreviousVersion string `json:"previousVersion,omitempty"` + + // StartTime: The time the operation was started. + StartTime string `json:"startTime,omitempty"` + + // State: The state of the upgradeAppliance operation. + // + // Possible values: + // "STATE_UNSPECIFIED" - The state was not sampled by the health + // checks yet. + // "RUNNING" - The upgrade has started. + // "FAILED" - The upgrade failed. + // "SUCCEEDED" - The upgrade finished successfully. + State string `json:"state,omitempty"` + + // Version: The version to upgrade to. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Error") 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. "Error") 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 *UpgradeStatus) MarshalJSON() ([]byte, error) { + type NoMethod UpgradeStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UtilizationReport: Utilization report details the utilization (CPU, // memory, etc.) of selected source VMs. type UtilizationReport struct { @@ -2669,7 +2755,7 @@ type VmwareVmDetails struct { DisplayName string `json:"displayName,omitempty"` // GuestDescription: The VM's OS. See for example - // https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html + // https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html // for types of strings this might hold. GuestDescription string `json:"guestDescription,omitempty"` @@ -3950,7 +4036,7 @@ type ProjectsLocationsGroupsPatchCall struct { // Patch: Updates the parameters of a single Group. // -// - name: The Group name. +// - name: Output only. The Group name. func (r *ProjectsLocationsGroupsService) Patch(name string, group *Group) *ProjectsLocationsGroupsPatchCall { c := &ProjectsLocationsGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4086,7 +4172,7 @@ func (c *ProjectsLocationsGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Op // ], // "parameters": { // "name": { - // "description": "The Group name.", + // "description": "Output only. The Group name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/groups/[^/]+$", // "required": true, @@ -6647,6 +6733,149 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsListCall) Pages(ctx context } } +// method id "vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance": + +type ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall struct { + s *Service + datacenterConnector string + upgradeappliancerequest *UpgradeApplianceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpgradeAppliance: Upgrades the appliance relate to this +// DatacenterConnector to the in-place updateable version. +// +// - datacenterConnector: The DatacenterConnector name. +func (r *ProjectsLocationsSourcesDatacenterConnectorsService) UpgradeAppliance(datacenterConnector string, upgradeappliancerequest *UpgradeApplianceRequest) *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall { + c := &ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.datacenterConnector = datacenterConnector + c.upgradeappliancerequest = upgradeappliancerequest + 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 *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall { + 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 *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) Context(ctx context.Context) *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall { + 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 *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) 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.upgradeappliancerequest) + 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, "v1alpha1/{+datacenterConnector}:upgradeAppliance") + 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{ + "datacenterConnector": c.datacenterConnector, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/datacenterConnectors/{datacenterConnectorsId}:upgradeAppliance", + // "httpMethod": "POST", + // "id": "vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance", + // "parameterOrder": [ + // "datacenterConnector" + // ], + // "parameters": { + // "datacenterConnector": { + // "description": "Required. The DatacenterConnector name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/datacenterConnectors/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+datacenterConnector}:upgradeAppliance", + // "request": { + // "$ref": "UpgradeApplianceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "vmmigration.projects.locations.sources.migratingVms.create": type ProjectsLocationsSourcesMigratingVmsCreateCall struct { @@ -10989,7 +11218,7 @@ type ProjectsLocationsTargetProjectsPatchCall struct { // TargetProject is a global resource; hence the only supported value // for location is `global`. // -// - name: The name of the target project. +// - name: Output only. The name of the target project. func (r *ProjectsLocationsTargetProjectsService) Patch(name string, targetproject *TargetProject) *ProjectsLocationsTargetProjectsPatchCall { c := &ProjectsLocationsTargetProjectsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -11125,7 +11354,7 @@ func (c *ProjectsLocationsTargetProjectsPatchCall) Do(opts ...googleapi.CallOpti // ], // "parameters": { // "name": { - // "description": "The name of the target project.", + // "description": "Output only. The name of the target project.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/targetProjects/[^/]+$", // "required": true,