diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 215e33aef3a..81483d55883 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -1179,6 +1179,73 @@ } } }, + "bigQueryLinks": { + "methods": { + "get": { + "description": "Lookup for a single BigQuery Link.", + "flatPath": "v1alpha/properties/{propertiesId}/bigQueryLinks/{bigQueryLinksId}", + "httpMethod": "GET", + "id": "analyticsadmin.properties.bigQueryLinks.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the BigQuery link to lookup. Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: properties/123/bigQueryLinks/456", + "location": "path", + "pattern": "^properties/[^/]+/bigQueryLinks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaBigQueryLink" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + }, + "list": { + "description": "Lists BigQuery Links on a property.", + "flatPath": "v1alpha/properties/{propertiesId}/bigQueryLinks", + "httpMethod": "GET", + "id": "analyticsadmin.properties.bigQueryLinks.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListBigQueryLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBigQueryLinks` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the property to list BigQuery links under. Format: properties/{property_id} Example: properties/1234", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/bigQueryLinks", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + } + } + }, "conversionEvents": { "methods": { "create": { @@ -2956,7 +3023,7 @@ } } }, - "revision": "20221201", + "revision": "20221205", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -5088,6 +5155,24 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse": { + "description": "Response message for ListBigQueryLinks RPC", + "id": "GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse", + "properties": { + "bigqueryLinks": { + "description": "List of BigQueryLinks.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaBigQueryLink" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaListConversionEventsResponse": { "description": "Response message for ListConversionEvents RPC.", "id": "GoogleAnalyticsAdminV1alphaListConversionEventsResponse", diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 0b1b48fd7aa..0ef67a5921b 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -191,6 +191,7 @@ type AccountsUserLinksService struct { func NewPropertiesService(s *Service) *PropertiesService { rs := &PropertiesService{s: s} rs.Audiences = NewPropertiesAudiencesService(s) + rs.BigQueryLinks = NewPropertiesBigQueryLinksService(s) rs.ConversionEvents = NewPropertiesConversionEventsService(s) rs.CustomDimensions = NewPropertiesCustomDimensionsService(s) rs.CustomMetrics = NewPropertiesCustomMetricsService(s) @@ -209,6 +210,8 @@ type PropertiesService struct { Audiences *PropertiesAudiencesService + BigQueryLinks *PropertiesBigQueryLinksService + ConversionEvents *PropertiesConversionEventsService CustomDimensions *PropertiesCustomDimensionsService @@ -239,6 +242,15 @@ type PropertiesAudiencesService struct { s *Service } +func NewPropertiesBigQueryLinksService(s *Service) *PropertiesBigQueryLinksService { + rs := &PropertiesBigQueryLinksService{s: s} + return rs +} + +type PropertiesBigQueryLinksService struct { + s *Service +} + func NewPropertiesConversionEventsService(s *Service) *PropertiesConversionEventsService { rs := &PropertiesConversionEventsService{s: s} return rs @@ -2415,6 +2427,10 @@ type GoogleAnalyticsAdminV1alphaBigQueryLink struct { // linked Google Cloud project. StreamingExportEnabled bool `json:"streamingExportEnabled,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -4001,6 +4017,44 @@ func (s *GoogleAnalyticsAdminV1alphaListAudiencesResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse: Response +// message for ListBigQueryLinks RPC +type GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse struct { + // BigqueryLinks: List of BigQueryLinks. + BigqueryLinks []*GoogleAnalyticsAdminV1alphaBigQueryLink `json:"bigqueryLinks,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + 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. "BigqueryLinks") 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. "BigqueryLinks") 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 *GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaListConversionEventsResponse: Response // message for ListConversionEvents RPC. type GoogleAnalyticsAdminV1alphaListConversionEventsResponse struct { @@ -10952,6 +11006,358 @@ func (c *PropertiesAudiencesPatchCall) Do(opts ...googleapi.CallOption) (*Google } +// method id "analyticsadmin.properties.bigQueryLinks.get": + +type PropertiesBigQueryLinksGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Lookup for a single BigQuery Link. +// +// - name: The name of the BigQuery link to lookup. Format: +// properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: +// properties/123/bigQueryLinks/456. +func (r *PropertiesBigQueryLinksService) Get(name string) *PropertiesBigQueryLinksGetCall { + c := &PropertiesBigQueryLinksGetCall{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 *PropertiesBigQueryLinksGetCall) Fields(s ...googleapi.Field) *PropertiesBigQueryLinksGetCall { + 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 *PropertiesBigQueryLinksGetCall) IfNoneMatch(entityTag string) *PropertiesBigQueryLinksGetCall { + 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 *PropertiesBigQueryLinksGetCall) Context(ctx context.Context) *PropertiesBigQueryLinksGetCall { + 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 *PropertiesBigQueryLinksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesBigQueryLinksGetCall) 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, "v1alpha/{+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 "analyticsadmin.properties.bigQueryLinks.get" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaBigQueryLink or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleAnalyticsAdminV1alphaBigQueryLink.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 *PropertiesBigQueryLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBigQueryLink, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaBigQueryLink{ + 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": "Lookup for a single BigQuery Link.", + // "flatPath": "v1alpha/properties/{propertiesId}/bigQueryLinks/{bigQueryLinksId}", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.bigQueryLinks.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the BigQuery link to lookup. Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: properties/123/bigQueryLinks/456", + // "location": "path", + // "pattern": "^properties/[^/]+/bigQueryLinks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaBigQueryLink" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// method id "analyticsadmin.properties.bigQueryLinks.list": + +type PropertiesBigQueryLinksListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists BigQuery Links on a property. +// +// - parent: The name of the property to list BigQuery links under. +// Format: properties/{property_id} Example: properties/1234. +func (r *PropertiesBigQueryLinksService) List(parent string) *PropertiesBigQueryLinksListCall { + c := &PropertiesBigQueryLinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of resources to return. The service may return fewer than this value, +// even if there are additional pages. If unspecified, at most 50 +// resources will be returned. The maximum value is 200; (higher values +// will be coerced to the maximum) +func (c *PropertiesBigQueryLinksListCall) PageSize(pageSize int64) *PropertiesBigQueryLinksListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListBigQueryLinks` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListBigQueryLinks` must match the call that provided the +// page token. +func (c *PropertiesBigQueryLinksListCall) PageToken(pageToken string) *PropertiesBigQueryLinksListCall { + 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 *PropertiesBigQueryLinksListCall) Fields(s ...googleapi.Field) *PropertiesBigQueryLinksListCall { + 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 *PropertiesBigQueryLinksListCall) IfNoneMatch(entityTag string) *PropertiesBigQueryLinksListCall { + 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 *PropertiesBigQueryLinksListCall) Context(ctx context.Context) *PropertiesBigQueryLinksListCall { + 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 *PropertiesBigQueryLinksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesBigQueryLinksListCall) 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, "v1alpha/{+parent}/bigQueryLinks") + 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 "analyticsadmin.properties.bigQueryLinks.list" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse.ServerResponse.H +// eader 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 *PropertiesBigQueryLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse{ + 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 BigQuery Links on a property.", + // "flatPath": "v1alpha/properties/{propertiesId}/bigQueryLinks", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.bigQueryLinks.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListBigQueryLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBigQueryLinks` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the property to list BigQuery links under. Format: properties/{property_id} Example: properties/1234", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/bigQueryLinks", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *PropertiesBigQueryLinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse) 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 "analyticsadmin.properties.conversionEvents.create": type PropertiesConversionEventsCreateCall struct { diff --git a/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json b/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json index 3941fffdc47..6fa84e5c7eb 100644 --- a/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json +++ b/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json @@ -825,7 +825,7 @@ } } }, - "revision": "20221031", + "revision": "20221203", "rootUrl": "https://androiddeviceprovisioning.googleapis.com/", "schemas": { "ClaimDeviceRequest": { @@ -1192,7 +1192,7 @@ "type": "string" }, "ownerCompanyId": { - "description": "The ID of the Customer that purchased the Android device.", + "description": "The ID of the Customer that purchased the device.", "format": "int64", "type": "string" }, @@ -1264,7 +1264,7 @@ "type": "string" }, "model": { - "description": "The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175?hl=en#identify_compatible).", + "description": "The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible).", "type": "string" }, "serialNumber": { @@ -1728,7 +1728,7 @@ "id": "PerDeviceStatusInBatch", "properties": { "deviceId": { - "description": "If processing succeeds, the device ID of the Android device.", + "description": "If processing succeeds, the device ID of the device.", "format": "int64", "type": "string" }, diff --git a/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go b/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go index c6a7291c505..0473d4bc4dc 100644 --- a/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go +++ b/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go @@ -897,8 +897,7 @@ type DeviceClaim struct { // that owns the Chrome OS device. GoogleWorkspaceCustomerId string `json:"googleWorkspaceCustomerId,omitempty"` - // OwnerCompanyId: The ID of the Customer that purchased the Android - // device. + // OwnerCompanyId: The ID of the Customer that purchased the device. OwnerCompanyId int64 `json:"ownerCompanyId,omitempty,string"` // ResellerId: The ID of the reseller that claimed the device. @@ -979,7 +978,7 @@ type DeviceIdentifier struct { // Model: The device model's name. Allowed values are listed in Android // models (/zero-touch/resources/manufacturer-names#model-names) and // Chrome OS models - // (https://support.google.com/chrome/a/answer/10130175?hl=en#identify_compatible). + // (https://support.google.com/chrome/a/answer/10130175#identify_compatible). Model string `json:"model,omitempty"` // SerialNumber: The manufacturer's serial number for the device. This @@ -1752,8 +1751,7 @@ func (s *PartnerUnclaim) MarshalJSON() ([]byte, error) { // PerDeviceStatusInBatch: Captures the processing status for each // device in the operation. type PerDeviceStatusInBatch struct { - // DeviceId: If processing succeeds, the device ID of the Android - // device. + // DeviceId: If processing succeeds, the device ID of the device. DeviceId int64 `json:"deviceId,omitempty,string"` // ErrorIdentifier: If processing fails, the error type. diff --git a/cloudasset/v1/cloudasset-api.json b/cloudasset/v1/cloudasset-api.json index 21f365ca5e9..23945237dde 100644 --- a/cloudasset/v1/cloudasset-api.json +++ b/cloudasset/v1/cloudasset-api.json @@ -763,7 +763,7 @@ ] }, "analyzeOrgPolicyGovernedAssets": { - "description": "Analyzes organization policies governed assets (GCP resources or policies) under a scope. This RPC supports custom constraints and the following 10 canned constraints: * storage.uniformBucketLevelAccess * iam.disableServiceAccountKeyCreation * iam.allowedPolicyMemberDomains * compute.vmExternalIpAccess * appengine.enforceServiceAccountActAsCheck * gcp.resourceLocations * compute.trustedImageProjects * compute.skipDefaultNetworkCreation * compute.requireOsLogin * compute.disableNestedVirtualization This RPC only returns either: * resources of types supported by [searchable asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types), or * IAM policies.", + "description": "Analyzes organization policies governed assets (GCP resources or policies) under a scope. This RPC supports custom constraints and the following 10 canned constraints: * storage.uniformBucketLevelAccess * iam.disableServiceAccountKeyCreation * iam.allowedPolicyMemberDomains * compute.vmExternalIpAccess * appengine.enforceServiceAccountActAsCheck * gcp.resourceLocations * compute.trustedImageProjects * compute.skipDefaultNetworkCreation * compute.requireOsLogin * compute.disableNestedVirtualization This RPC only returns either resources of types supported by [searchable asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types), or IAM policies.", "flatPath": "v1/{v1Id}/{v1Id1}:analyzeOrgPolicyGovernedAssets", "httpMethod": "GET", "id": "cloudasset.analyzeOrgPolicyGovernedAssets", @@ -1095,7 +1095,7 @@ } } }, - "revision": "20221114", + "revision": "20221201", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AccessSelector": { diff --git a/cloudasset/v1/cloudasset-gen.go b/cloudasset/v1/cloudasset-gen.go index b57ceca845f..df55fe87e1b 100644 --- a/cloudasset/v1/cloudasset-gen.go +++ b/cloudasset/v1/cloudasset-gen.go @@ -10041,10 +10041,10 @@ type V1AnalyzeOrgPolicyGovernedAssetsCall struct { // appengine.enforceServiceAccountActAsCheck * gcp.resourceLocations * // compute.trustedImageProjects * compute.skipDefaultNetworkCreation * // compute.requireOsLogin * compute.disableNestedVirtualization This RPC -// only returns either: * resources of types supported by searchable -// asset types +// only returns either resources of types supported by searchable asset +// types // (https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types), -// or * IAM policies. +// or IAM policies. // // - scope: The organization to scope the request. Only organization // policies within the scope will be analyzed. The output assets will @@ -10198,7 +10198,7 @@ func (c *V1AnalyzeOrgPolicyGovernedAssetsCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Analyzes organization policies governed assets (GCP resources or policies) under a scope. This RPC supports custom constraints and the following 10 canned constraints: * storage.uniformBucketLevelAccess * iam.disableServiceAccountKeyCreation * iam.allowedPolicyMemberDomains * compute.vmExternalIpAccess * appengine.enforceServiceAccountActAsCheck * gcp.resourceLocations * compute.trustedImageProjects * compute.skipDefaultNetworkCreation * compute.requireOsLogin * compute.disableNestedVirtualization This RPC only returns either: * resources of types supported by [searchable asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types), or * IAM policies.", + // "description": "Analyzes organization policies governed assets (GCP resources or policies) under a scope. This RPC supports custom constraints and the following 10 canned constraints: * storage.uniformBucketLevelAccess * iam.disableServiceAccountKeyCreation * iam.allowedPolicyMemberDomains * compute.vmExternalIpAccess * appengine.enforceServiceAccountActAsCheck * gcp.resourceLocations * compute.trustedImageProjects * compute.skipDefaultNetworkCreation * compute.requireOsLogin * compute.disableNestedVirtualization This RPC only returns either resources of types supported by [searchable asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types), or IAM policies.", // "flatPath": "v1/{v1Id}/{v1Id1}:analyzeOrgPolicyGovernedAssets", // "httpMethod": "GET", // "id": "cloudasset.analyzeOrgPolicyGovernedAssets", diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index 2b210a58c62..68de4f735e3 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221027", + "revision": "20221129", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1760,6 +1760,10 @@ "description": "Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.", "type": "boolean" }, + "availableCpu": { + "description": "The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: \"1\" indicates 1 vCPU", + "type": "string" + }, "availableMemory": { "description": "The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.", "type": "string" @@ -1792,6 +1796,11 @@ "format": "int32", "type": "integer" }, + "maxInstanceRequestConcurrency": { + "description": "Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.", + "format": "int32", + "type": "integer" + }, "minInstanceCount": { "description": "The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.", "format": "int32", @@ -1817,7 +1826,7 @@ "type": "array" }, "securityLevel": { - "description": "Optional. Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.", + "description": "Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.", "enum": [ "SECURITY_LEVEL_UNSPECIFIED", "SECURE_ALWAYS", diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index 6523a083005..2ba0832a0bd 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -1963,6 +1963,13 @@ type ServiceConfig struct { // will be returned if the latest revision is serving 100% of traffic. AllTrafficOnLatestRevision bool `json:"allTrafficOnLatestRevision,omitempty"` + // AvailableCpu: The number of CPUs used in a single container instance. + // Default value is calculated from available memory. Supports the same + // values as Cloud Run, see + // https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements + // Example: "1" indicates 1 vCPU + AvailableCpu string `json:"availableCpu,omitempty"` + // AvailableMemory: The amount of memory available for a function. // Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is // supplied the value is interpreted as bytes. See @@ -1997,6 +2004,10 @@ type ServiceConfig struct { // more details. MaxInstanceCount int64 `json:"maxInstanceCount,omitempty"` + // MaxInstanceRequestConcurrency: Sets the maximum number of concurrent + // requests that each instance can receive. Defaults to 1. + MaxInstanceRequestConcurrency int64 `json:"maxInstanceRequestConcurrency,omitempty"` + // MinInstanceCount: The limit on the minimum number of function // instances that may coexist at a given time. Function instances are // kept in idle state for a short period after they finished executing @@ -2017,10 +2028,10 @@ type ServiceConfig struct { // SecretVolumes: Secret volumes configuration. SecretVolumes []*SecretVolume `json:"secretVolumes,omitempty"` - // SecurityLevel: Optional. Security level configure whether the - // function only accepts https. This configuration is only applicable to - // 1st Gen functions with Http trigger. By default https is optional for - // 1st Gen functions; 2nd Gen functions are https ONLY. + // SecurityLevel: Security level configure whether the function only + // accepts https. This configuration is only applicable to 1st Gen + // functions with Http trigger. By default https is optional for 1st Gen + // functions; 2nd Gen functions are https ONLY. // // Possible values: // "SECURITY_LEVEL_UNSPECIFIED" - Unspecified. diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index cbc87190444..e3650203c57 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221027", + "revision": "20221129", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1760,6 +1760,10 @@ "description": "Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.", "type": "boolean" }, + "availableCpu": { + "description": "The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: \"1\" indicates 1 vCPU", + "type": "string" + }, "availableMemory": { "description": "The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.", "type": "string" @@ -1792,6 +1796,11 @@ "format": "int32", "type": "integer" }, + "maxInstanceRequestConcurrency": { + "description": "Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.", + "format": "int32", + "type": "integer" + }, "minInstanceCount": { "description": "The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.", "format": "int32", @@ -1817,7 +1826,7 @@ "type": "array" }, "securityLevel": { - "description": "Optional. Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.", + "description": "Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.", "enum": [ "SECURITY_LEVEL_UNSPECIFIED", "SECURE_ALWAYS", diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 647f6c3b68b..2cda1d680bf 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -1963,6 +1963,13 @@ type ServiceConfig struct { // will be returned if the latest revision is serving 100% of traffic. AllTrafficOnLatestRevision bool `json:"allTrafficOnLatestRevision,omitempty"` + // AvailableCpu: The number of CPUs used in a single container instance. + // Default value is calculated from available memory. Supports the same + // values as Cloud Run, see + // https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements + // Example: "1" indicates 1 vCPU + AvailableCpu string `json:"availableCpu,omitempty"` + // AvailableMemory: The amount of memory available for a function. // Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is // supplied the value is interpreted as bytes. See @@ -1997,6 +2004,10 @@ type ServiceConfig struct { // more details. MaxInstanceCount int64 `json:"maxInstanceCount,omitempty"` + // MaxInstanceRequestConcurrency: Sets the maximum number of concurrent + // requests that each instance can receive. Defaults to 1. + MaxInstanceRequestConcurrency int64 `json:"maxInstanceRequestConcurrency,omitempty"` + // MinInstanceCount: The limit on the minimum number of function // instances that may coexist at a given time. Function instances are // kept in idle state for a short period after they finished executing @@ -2017,10 +2028,10 @@ type ServiceConfig struct { // SecretVolumes: Secret volumes configuration. SecretVolumes []*SecretVolume `json:"secretVolumes,omitempty"` - // SecurityLevel: Optional. Security level configure whether the - // function only accepts https. This configuration is only applicable to - // 1st Gen functions with Http trigger. By default https is optional for - // 1st Gen functions; 2nd Gen functions are https ONLY. + // SecurityLevel: Security level configure whether the function only + // accepts https. This configuration is only applicable to 1st Gen + // functions with Http trigger. By default https is optional for 1st Gen + // functions; 2nd Gen functions are https ONLY. // // Possible values: // "SECURITY_LEVEL_UNSPECIFIED" - Unspecified. diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index c75880d0a8f..99f2ac0b9d6 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221027", + "revision": "20221129", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1760,6 +1760,10 @@ "description": "Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.", "type": "boolean" }, + "availableCpu": { + "description": "The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: \"1\" indicates 1 vCPU", + "type": "string" + }, "availableMemory": { "description": "The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.", "type": "string" @@ -1792,6 +1796,11 @@ "format": "int32", "type": "integer" }, + "maxInstanceRequestConcurrency": { + "description": "Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.", + "format": "int32", + "type": "integer" + }, "minInstanceCount": { "description": "The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.", "format": "int32", @@ -1817,7 +1826,7 @@ "type": "array" }, "securityLevel": { - "description": "Optional. Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.", + "description": "Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.", "enum": [ "SECURITY_LEVEL_UNSPECIFIED", "SECURE_ALWAYS", diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 909e13444e8..df02922c166 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -1963,6 +1963,13 @@ type ServiceConfig struct { // will be returned if the latest revision is serving 100% of traffic. AllTrafficOnLatestRevision bool `json:"allTrafficOnLatestRevision,omitempty"` + // AvailableCpu: The number of CPUs used in a single container instance. + // Default value is calculated from available memory. Supports the same + // values as Cloud Run, see + // https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements + // Example: "1" indicates 1 vCPU + AvailableCpu string `json:"availableCpu,omitempty"` + // AvailableMemory: The amount of memory available for a function. // Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is // supplied the value is interpreted as bytes. See @@ -1997,6 +2004,10 @@ type ServiceConfig struct { // more details. MaxInstanceCount int64 `json:"maxInstanceCount,omitempty"` + // MaxInstanceRequestConcurrency: Sets the maximum number of concurrent + // requests that each instance can receive. Defaults to 1. + MaxInstanceRequestConcurrency int64 `json:"maxInstanceRequestConcurrency,omitempty"` + // MinInstanceCount: The limit on the minimum number of function // instances that may coexist at a given time. Function instances are // kept in idle state for a short period after they finished executing @@ -2017,10 +2028,10 @@ type ServiceConfig struct { // SecretVolumes: Secret volumes configuration. SecretVolumes []*SecretVolume `json:"secretVolumes,omitempty"` - // SecurityLevel: Optional. Security level configure whether the - // function only accepts https. This configuration is only applicable to - // 1st Gen functions with Http trigger. By default https is optional for - // 1st Gen functions; 2nd Gen functions are https ONLY. + // SecurityLevel: Security level configure whether the function only + // accepts https. This configuration is only applicable to 1st Gen + // functions with Http trigger. By default https is optional for 1st Gen + // functions; 2nd Gen functions are https ONLY. // // Possible values: // "SECURITY_LEVEL_UNSPECIFIED" - Unspecified. diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index 42adc053aa2..f369bf53bef 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -2077,7 +2077,7 @@ } } }, - "revision": "20221108", + "revision": "20221129", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "AbuseReportingConfig": { @@ -2875,6 +2875,7 @@ "SCAN_SUCCEEDED_WARN", "SCAN_SUCCEEDED_AUDIT_ONLY", "SCAN_FAILURE_EXCEPTION", + "SCAN_FAILURE_RULE_FETCH_FAILED", "SCAN_FAILURE_TIMEOUT", "SCAN_FAILURE_ALL_RULES_FAILED", "SCAN_FAILURE_ILLEGAL_STATE_FOR_ATTACHMENTS", @@ -2902,6 +2903,7 @@ "Violation is detected. The user will be warned, and the violation will be logged to BIP.", "Violation is detected and will be logged to BIP (no user-facing action performed).", "Rule fetch and evaluation were attempted but an exception occurred.", + "Rule fetch was attempted but failed, so rule evaluation could not be performed.", "Rule fetch and evaluation were attempted but the scanning timed out.", "Rule fetch completed and evaluation were attempted, but all of the rules failed to be evaluated.", "An IllegalStateException is thrown when executing DLP on attachments. This could happen if the space row is missing.", @@ -5850,11 +5852,6 @@ "readOnly": true, "type": "integer" }, - "mediaBackendInfo": { - "description": "Output only. Information about the media backend for the currently ongoing conference in the meeting space. The media backend information will only be filled in for clients that are supposed to present the information. The information should be displayed in a debug panel and is only intended for internal debugging purposes. If the string is empty nothing should be displayed about the media backend. Deprecated because media backend is always MEDIA_ROUTER since Dec 2018.", - "readOnly": true, - "type": "string" - }, "organizationName": { "description": "Output only. The name or description of the organization or domain that the organizer belongs to. The expected use of this in clients is to present messages like \"John Doe (outside of Google.com) is trying to join this call\", where \"Google.com\" is the organization name. The field will be empty if the organization name could not be determined, possibly because of a backend error.", "readOnly": true, @@ -6408,7 +6405,8 @@ "CO_ACTIVITY_APP_HEADSUP", "CO_ACTIVITY_APP_KAHOOT", "CO_ACTIVITY_APP_GQUEUES", - "CO_ACTIVITY_APP_YOU_TUBE_MUSIC" + "CO_ACTIVITY_APP_YOU_TUBE_MUSIC", + "CO_ACTIVITY_APP_SAMSUNG_NOTES" ], "enumDescriptions": [ "Should never be used.", @@ -6418,7 +6416,8 @@ "HeadsUp game.", "Kahoot! educational software.", "GQueues task manager.", - "YouTube Music" + "YouTube Music", + "Samsung Notes" ], "type": "string" } @@ -7129,6 +7128,7 @@ "SCAN_SUCCEEDED_WARN", "SCAN_SUCCEEDED_AUDIT_ONLY", "SCAN_FAILURE_EXCEPTION", + "SCAN_FAILURE_RULE_FETCH_FAILED", "SCAN_FAILURE_TIMEOUT", "SCAN_FAILURE_ALL_RULES_FAILED", "SCAN_FAILURE_ILLEGAL_STATE_FOR_ATTACHMENTS", @@ -7156,6 +7156,7 @@ "Violation is detected. The user will be warned, and the violation will be logged to BIP.", "Violation is detected and will be logged to BIP (no user-facing action performed).", "Rule fetch and evaluation were attempted but an exception occurred.", + "Rule fetch was attempted but failed, so rule evaluation could not be performed.", "Rule fetch and evaluation were attempted but the scanning timed out.", "Rule fetch completed and evaluation were attempted, but all of the rules failed to be evaluated.", "An IllegalStateException is thrown when executing DLP on attachments. This could happen if the space row is missing.", @@ -7492,6 +7493,33 @@ }, "type": "object" }, + "DynamiteMessagesScoringInfo": { + "description": "This is the proto for holding message level scoring information. This data is used for logging in query-api server and for testing purposes.", + "id": "DynamiteMessagesScoringInfo", + "properties": { + "finalScore": { + "format": "double", + "type": "number" + }, + "freshnessScore": { + "format": "double", + "type": "number" + }, + "joinedSpaceAffinityScore": { + "format": "double", + "type": "number" + }, + "messageAgeInDays": { + "format": "double", + "type": "number" + }, + "topicalityScore": { + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "DynamiteSpacesScoringInfo": { "description": "This is the proto for holding space level scoring information. This data is used for logging in query-api server and for testing purposes.", "id": "DynamiteSpacesScoringInfo", @@ -12627,9 +12655,9 @@ ], "enumDescriptions": [ "Default case, should never be used. If this data is encountered in the DB any request should throw an exception.", - "No one can mutate the entity.", - "Only the creator of an entity can mutate it.", - "Every human member of a space or the creator can mutate the entity." + "No one except for the message creator/origin pair can mutate. This permission checks both gaia id and the request origin. Request origin can be Chat API or Chat UI. Mutation is allowed iff both attributes of the request match the original message creation. Use case: this allows historical 1P apps lock down message edit permission i.e. In Chat UI, humans cannot edit their messages created via these 1P apps. Do not use this for additional use cases.", + "The message creator can mutate regardless of request origin. Use case: for messages created by human via Chat UI or Chat API. These messages can be mutated by the same human user via Chat UI or via any app on Chat API.", + "Every human member of a space or the creator can mutate the entity. This excludes app acting on behalf of human via Chat API. Use case: This is to enable humans to delete messages created by apps." ], "type": "string" }, @@ -12656,6 +12684,7 @@ "SCAN_SUCCEEDED_WARN", "SCAN_SUCCEEDED_AUDIT_ONLY", "SCAN_FAILURE_EXCEPTION", + "SCAN_FAILURE_RULE_FETCH_FAILED", "SCAN_FAILURE_TIMEOUT", "SCAN_FAILURE_ALL_RULES_FAILED", "SCAN_FAILURE_ILLEGAL_STATE_FOR_ATTACHMENTS", @@ -12683,6 +12712,7 @@ "Violation is detected. The user will be warned, and the violation will be logged to BIP.", "Violation is detected and will be logged to BIP (no user-facing action performed).", "Rule fetch and evaluation were attempted but an exception occurred.", + "Rule fetch was attempted but failed, so rule evaluation could not be performed.", "Rule fetch and evaluation were attempted but the scanning timed out.", "Rule fetch completed and evaluation were attempted, but all of the rules failed to be evaluated.", "An IllegalStateException is thrown when executing DLP on attachments. This could happen if the space row is missing.", @@ -12719,9 +12749,9 @@ ], "enumDescriptions": [ "Default case, should never be used. If this data is encountered in the DB any request should throw an exception.", - "No one can mutate the entity.", - "Only the creator of an entity can mutate it.", - "Every human member of a space or the creator can mutate the entity." + "No one except for the message creator/origin pair can mutate. This permission checks both gaia id and the request origin. Request origin can be Chat API or Chat UI. Mutation is allowed iff both attributes of the request match the original message creation. Use case: this allows historical 1P apps lock down message edit permission i.e. In Chat UI, humans cannot edit their messages created via these 1P apps. Do not use this for additional use cases.", + "The message creator can mutate regardless of request origin. Use case: for messages created by human via Chat UI or Chat API. These messages can be mutated by the same human user via Chat UI or via any app on Chat API.", + "Every human member of a space or the creator can mutate the entity. This excludes app acting on behalf of human via Chat API. Use case: This is to enable humans to delete messages created by apps." ], "type": "string" }, @@ -12866,6 +12896,24 @@ "$ref": "AppsDynamiteSharedRetentionSettings", "description": "The retention settings of the message." }, + "richTextFormattingType": { + "description": "Used by clients to correctly log format type for message creation due to complexity with client side optimistic update (see go/content-metric-post-send-logging for details). Currently, only set by server in the message or topic creation path.", + "enum": [ + "NONE", + "MARKDOWN", + "FORMAT_ANNOTATIONS", + "FORMAT_ANNOTATIONS_IGNORED", + "FORMAT_ANNOTATIONS_IGNORED_WITH_MARKDOWN" + ], + "enumDescriptions": [ + "", + "The formatting was specified as *markdown characters* in message text.", + "The formatting was specified as {@link com.google.apps.dynamite.v1.shared.FormatMetadata} annotations.", + "The client sent the format annotations, but didn't set the accept_format_annotations field to true. This shouldn't happen, but there might be some old clients that end up here.", + "A combination of MARKDOWN and FORMAT_ANNOTATIONS_IGNORED." + ], + "type": "string" + }, "secondaryMessageKey": { "description": "A client-specified string that can be used to uniquely identify a message in a space, in lieu of `id.message_id`.", "type": "string" @@ -16533,6 +16581,10 @@ "description": "Link to the deletion policy webpage for the bot. Configured by Pantheon, may be empty.", "type": "string" }, + "gwmUrl": { + "description": "Link to GWM page of the app. May be empty.", + "type": "string" + }, "privacyPolicyUrl": { "description": "Link to the privacy policy webpage for the bot. May be empty.", "type": "string" @@ -17560,24 +17612,6 @@ "format": "int32", "type": "integer" }, - "linkType": { - "description": "NEXT TAG : 18", - "enum": [ - "UNDEFINED", - "AUTO_DETECTED_PLAIN_TEXT", - "RICH_TEXT", - "MARKDOWN", - "NO_ASSOCIATED_TEXT" - ], - "enumDescriptions": [ - "", - "Set by the server, when it detects a URL in the message text", - "Set by the client, when the user adds a link via the rich-text editing (RTE) toolbar", - "Set by the server, when it detects a URL in markdown-syntax in the message text", - "Set by the server when a URL annotation received from client has 0 length and 0 start index" - ], - "type": "string" - }, "mimeType": { "description": "Mime type of the content (Currently mapped from Page Render Service ItemType) Note that this is not necessarily the mime type of the http resource. For example a text/html from youtube or vimeo may actually be classified as a video type. Then we shall mark it as video/* since we don't know exactly what type of video it is.", "type": "string" @@ -17605,13 +17639,15 @@ "urlSource": { "enum": [ "URL_SOURCE_UNKNOWN", - "USER_SUPPLIED_URL", - "SERVER_SUPPLIED_POLICY_VIOLATION" + "SERVER_SUPPLIED_POLICY_VIOLATION", + "AUTO_DETECTED_PLAIN_TEXT", + "RICH_TEXT" ], "enumDescriptions": [ "", "", - "" + "Set by the server, when it detects a URL in the message text", + "Set by the client, when the user adds a link as a custom hyperlink. Validated by the server and persisted in storage." ], "type": "string" } diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index b240c7c4aa7..4fbcc4839ee 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -1614,6 +1614,8 @@ type AppsDynamiteSharedBackendUploadMetadata struct { // logged to BIP (no user-facing action performed). // "SCAN_FAILURE_EXCEPTION" - Rule fetch and evaluation were attempted // but an exception occurred. + // "SCAN_FAILURE_RULE_FETCH_FAILED" - Rule fetch was attempted but + // failed, so rule evaluation could not be performed. // "SCAN_FAILURE_TIMEOUT" - Rule fetch and evaluation were attempted // but the scanning timed out. // "SCAN_FAILURE_ALL_RULES_FAILED" - Rule fetch completed and @@ -6242,16 +6244,6 @@ type CallInfo struct { // clients should be aware that the information may be stale. MaxJoinedDevices int64 `json:"maxJoinedDevices,omitempty"` - // MediaBackendInfo: Output only. Information about the media backend - // for the currently ongoing conference in the meeting space. The media - // backend information will only be filled in for clients that are - // supposed to present the information. The information should be - // displayed in a debug panel and is only intended for internal - // debugging purposes. If the string is empty nothing should be - // displayed about the media backend. Deprecated because media backend - // is always MEDIA_ROUTER since Dec 2018. - MediaBackendInfo string `json:"mediaBackendInfo,omitempty"` - // OrganizationName: Output only. The name or description of the // organization or domain that the organizer belongs to. The expected // use of this in clients is to present messages like "John Doe (outside @@ -7137,6 +7129,7 @@ type CoActivity struct { // "CO_ACTIVITY_APP_KAHOOT" - Kahoot! educational software. // "CO_ACTIVITY_APP_GQUEUES" - GQueues task manager. // "CO_ACTIVITY_APP_YOU_TUBE_MUSIC" - YouTube Music + // "CO_ACTIVITY_APP_SAMSUNG_NOTES" - Samsung Notes CoActivityApp string `json:"coActivityApp,omitempty"` // ForceSendFields is a list of field names (e.g. "ActivityTitle") to @@ -8645,6 +8638,8 @@ type DlpScanSummary struct { // logged to BIP (no user-facing action performed). // "SCAN_FAILURE_EXCEPTION" - Rule fetch and evaluation were attempted // but an exception occurred. + // "SCAN_FAILURE_RULE_FETCH_FAILED" - Rule fetch was attempted but + // failed, so rule evaluation could not be performed. // "SCAN_FAILURE_TIMEOUT" - Rule fetch and evaluation were attempted // but the scanning timed out. // "SCAN_FAILURE_ALL_RULES_FAILED" - Rule fetch completed and @@ -9186,6 +9181,65 @@ func (s *DriveTimeSpanRestrict) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DynamiteMessagesScoringInfo: This is the proto for holding message +// level scoring information. This data is used for logging in query-api +// server and for testing purposes. +type DynamiteMessagesScoringInfo struct { + FinalScore float64 `json:"finalScore,omitempty"` + + FreshnessScore float64 `json:"freshnessScore,omitempty"` + + JoinedSpaceAffinityScore float64 `json:"joinedSpaceAffinityScore,omitempty"` + + MessageAgeInDays float64 `json:"messageAgeInDays,omitempty"` + + TopicalityScore float64 `json:"topicalityScore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FinalScore") 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. "FinalScore") 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 *DynamiteMessagesScoringInfo) MarshalJSON() ([]byte, error) { + type NoMethod DynamiteMessagesScoringInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *DynamiteMessagesScoringInfo) UnmarshalJSON(data []byte) error { + type NoMethod DynamiteMessagesScoringInfo + var s1 struct { + FinalScore gensupport.JSONFloat64 `json:"finalScore"` + FreshnessScore gensupport.JSONFloat64 `json:"freshnessScore"` + JoinedSpaceAffinityScore gensupport.JSONFloat64 `json:"joinedSpaceAffinityScore"` + MessageAgeInDays gensupport.JSONFloat64 `json:"messageAgeInDays"` + TopicalityScore gensupport.JSONFloat64 `json:"topicalityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.FinalScore = float64(s1.FinalScore) + s.FreshnessScore = float64(s1.FreshnessScore) + s.JoinedSpaceAffinityScore = float64(s1.JoinedSpaceAffinityScore) + s.MessageAgeInDays = float64(s1.MessageAgeInDays) + s.TopicalityScore = float64(s1.TopicalityScore) + return nil +} + // DynamiteSpacesScoringInfo: This is the proto for holding space level // scoring information. This data is used for logging in query-api // server and for testing purposes. @@ -16124,10 +16178,21 @@ type Message struct { // "PERMISSION_UNSPECIFIED" - Default case, should never be used. If // this data is encountered in the DB any request should throw an // exception. - // "PERMISSION_NO_ONE" - No one can mutate the entity. - // "PERMISSION_CREATOR" - Only the creator of an entity can mutate it. + // "PERMISSION_NO_ONE" - No one except for the message creator/origin + // pair can mutate. This permission checks both gaia id and the request + // origin. Request origin can be Chat API or Chat UI. Mutation is + // allowed iff both attributes of the request match the original message + // creation. Use case: this allows historical 1P apps lock down message + // edit permission i.e. In Chat UI, humans cannot edit their messages + // created via these 1P apps. Do not use this for additional use cases. + // "PERMISSION_CREATOR" - The message creator can mutate regardless of + // request origin. Use case: for messages created by human via Chat UI + // or Chat API. These messages can be mutated by the same human user via + // Chat UI or via any app on Chat API. // "PERMISSION_MEMBER" - Every human member of a space or the creator - // can mutate the entity. + // can mutate the entity. This excludes app acting on behalf of human + // via Chat API. Use case: This is to enable humans to delete messages + // created by apps. DeletableBy string `json:"deletableBy,omitempty"` // DeleteTime: Time when the Message was deleted in microseconds. This @@ -16163,6 +16228,8 @@ type Message struct { // logged to BIP (no user-facing action performed). // "SCAN_FAILURE_EXCEPTION" - Rule fetch and evaluation were attempted // but an exception occurred. + // "SCAN_FAILURE_RULE_FETCH_FAILED" - Rule fetch was attempted but + // failed, so rule evaluation could not be performed. // "SCAN_FAILURE_TIMEOUT" - Rule fetch and evaluation were attempted // but the scanning timed out. // "SCAN_FAILURE_ALL_RULES_FAILED" - Rule fetch completed and @@ -16236,10 +16303,21 @@ type Message struct { // "PERMISSION_UNSPECIFIED" - Default case, should never be used. If // this data is encountered in the DB any request should throw an // exception. - // "PERMISSION_NO_ONE" - No one can mutate the entity. - // "PERMISSION_CREATOR" - Only the creator of an entity can mutate it. + // "PERMISSION_NO_ONE" - No one except for the message creator/origin + // pair can mutate. This permission checks both gaia id and the request + // origin. Request origin can be Chat API or Chat UI. Mutation is + // allowed iff both attributes of the request match the original message + // creation. Use case: this allows historical 1P apps lock down message + // edit permission i.e. In Chat UI, humans cannot edit their messages + // created via these 1P apps. Do not use this for additional use cases. + // "PERMISSION_CREATOR" - The message creator can mutate regardless of + // request origin. Use case: for messages created by human via Chat UI + // or Chat API. These messages can be mutated by the same human user via + // Chat UI or via any app on Chat API. // "PERMISSION_MEMBER" - Every human member of a space or the creator - // can mutate the entity. + // can mutate the entity. This excludes app acting on behalf of human + // via Chat API. Use case: This is to enable humans to delete messages + // created by apps. EditableBy string `json:"editableBy,omitempty"` // FallbackText: A plain-text description of the attachment, used when @@ -16371,6 +16449,25 @@ type Message struct { // RetentionSettings: The retention settings of the message. RetentionSettings *AppsDynamiteSharedRetentionSettings `json:"retentionSettings,omitempty"` + // RichTextFormattingType: Used by clients to correctly log format type + // for message creation due to complexity with client side optimistic + // update (see go/content-metric-post-send-logging for details). + // Currently, only set by server in the message or topic creation path. + // + // Possible values: + // "NONE" + // "MARKDOWN" - The formatting was specified as *markdown characters* + // in message text. + // "FORMAT_ANNOTATIONS" - The formatting was specified as {@link + // com.google.apps.dynamite.v1.shared.FormatMetadata} annotations. + // "FORMAT_ANNOTATIONS_IGNORED" - The client sent the format + // annotations, but didn't set the accept_format_annotations field to + // true. This shouldn't happen, but there might be some old clients that + // end up here. + // "FORMAT_ANNOTATIONS_IGNORED_WITH_MARKDOWN" - A combination of + // MARKDOWN and FORMAT_ANNOTATIONS_IGNORED. + RichTextFormattingType string `json:"richTextFormattingType,omitempty"` + // SecondaryMessageKey: A client-specified string that can be used to // uniquely identify a message in a space, in lieu of `id.message_id`. SecondaryMessageKey string `json:"secondaryMessageKey,omitempty"` @@ -22401,6 +22498,9 @@ type SupportUrls struct { // Configured by Pantheon, may be empty. DeletionPolicyUrl string `json:"deletionPolicyUrl,omitempty"` + // GwmUrl: Link to GWM page of the app. May be empty. + GwmUrl string `json:"gwmUrl,omitempty"` + // PrivacyPolicyUrl: Link to the privacy policy webpage for the bot. May // be empty. PrivacyPolicyUrl string `json:"privacyPolicyUrl,omitempty"` @@ -24187,20 +24287,6 @@ type UrlMetadata struct { // IntImageWidth: Dimensions of the image: width. IntImageWidth int64 `json:"intImageWidth,omitempty"` - // LinkType: NEXT TAG : 18 - // - // Possible values: - // "UNDEFINED" - // "AUTO_DETECTED_PLAIN_TEXT" - Set by the server, when it detects a - // URL in the message text - // "RICH_TEXT" - Set by the client, when the user adds a link via the - // rich-text editing (RTE) toolbar - // "MARKDOWN" - Set by the server, when it detects a URL in - // markdown-syntax in the message text - // "NO_ASSOCIATED_TEXT" - Set by the server when a URL annotation - // received from client has 0 length and 0 start index - LinkType string `json:"linkType,omitempty"` - // MimeType: Mime type of the content (Currently mapped from Page Render // Service ItemType) Note that this is not necessarily the mime type of // the http resource. For example a text/html from youtube or vimeo may @@ -24226,8 +24312,11 @@ type UrlMetadata struct { // Possible values: // "URL_SOURCE_UNKNOWN" - // "USER_SUPPLIED_URL" // "SERVER_SUPPLIED_POLICY_VIOLATION" + // "AUTO_DETECTED_PLAIN_TEXT" - Set by the server, when it detects a + // URL in the message text + // "RICH_TEXT" - Set by the client, when the user adds a link as a + // custom hyperlink. Validated by the server and persisted in storage. UrlSource string `json:"urlSource,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") to diff --git a/composer/v1/composer-api.json b/composer/v1/composer-api.json index c5b503c37c6..8c6243fe01e 100644 --- a/composer/v1/composer-api.json +++ b/composer/v1/composer-api.json @@ -225,6 +225,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "loadSnapshot": { + "description": "Loads a snapshot of a Cloud Composer environment. As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}:loadSnapshot", + "httpMethod": "POST", + "id": "composer.projects.locations.environments.loadSnapshot", + "parameterOrder": [ + "environment" + ], + "parameters": { + "environment": { + "description": "The resource name of the target environment in the form: \"projects/{projectId}/locations/{locationId}/environments/{environmentId}\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/environments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+environment}:loadSnapshot", + "request": { + "$ref": "LoadSnapshotRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Update an environment.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}", @@ -258,6 +286,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "saveSnapshot": { + "description": "Creates a snapshots of a Cloud Composer environment. As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}:saveSnapshot", + "httpMethod": "POST", + "id": "composer.projects.locations.environments.saveSnapshot", + "parameterOrder": [ + "environment" + ], + "parameters": { + "environment": { + "description": "The resource name of the source environment in the form: \"projects/{projectId}/locations/{locationId}/environments/{environmentId}\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/environments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+environment}:saveSnapshot", + "request": { + "$ref": "SaveSnapshotRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -406,7 +462,7 @@ } } }, - "revision": "20221012", + "revision": "20221130", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AllowedIpRange": { @@ -649,6 +705,10 @@ "$ref": "PrivateEnvironmentConfig", "description": "The configuration used for the Private IP Cloud Composer environment." }, + "recoveryConfig": { + "$ref": "RecoveryConfig", + "description": "Optional. The Recovery settings configuration of an environment. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer." + }, "softwareConfig": { "$ref": "SoftwareConfig", "description": "The configuration settings for software inside the environment." @@ -783,6 +843,33 @@ }, "type": "object" }, + "LoadSnapshotRequest": { + "description": "Request to load a snapshot into a Cloud Composer environment.", + "id": "LoadSnapshotRequest", + "properties": { + "skipAirflowOverridesSetting": { + "description": "Whether or not to skip setting Airflow overrides when loading the environment's state.", + "type": "boolean" + }, + "skipEnvironmentVariablesSetting": { + "description": "Whether or not to skip setting environment variables when loading the environment's state.", + "type": "boolean" + }, + "skipGcsDataCopying": { + "description": "Whether or not to skip copying Cloud Storage data when loading the environment's state.", + "type": "boolean" + }, + "skipPypiPackagesInstallation": { + "description": "Whether or not to skip installing Pypi packages when loading the environment's state.", + "type": "boolean" + }, + "snapshotPath": { + "description": "A Cloud Storage path to a snapshot to load, e.g.: \"gs://my-bucket/snapshots/project_location_environment_timestamp\".", + "type": "string" + } + }, + "type": "object" + }, "LoadSnapshotResponse": { "description": "Response to LoadSnapshotRequest.", "id": "LoadSnapshotResponse", @@ -1074,6 +1161,28 @@ }, "type": "object" }, + "RecoveryConfig": { + "description": "The Recovery settings of an environment.", + "id": "RecoveryConfig", + "properties": { + "scheduledSnapshotsConfig": { + "$ref": "ScheduledSnapshotsConfig", + "description": "Optional. The configuration for scheduled snapshot creation mechanism." + } + }, + "type": "object" + }, + "SaveSnapshotRequest": { + "description": "Request to create a snapshot of a Cloud Composer environment.", + "id": "SaveSnapshotRequest", + "properties": { + "snapshotLocation": { + "description": "Location in a Cloud Storage where the snapshot is going to be stored, e.g.: \"gs://my-bucket/snapshots\".", + "type": "string" + } + }, + "type": "object" + }, "SaveSnapshotResponse": { "description": "Response to SaveSnapshotRequest.", "id": "SaveSnapshotResponse", @@ -1085,6 +1194,29 @@ }, "type": "object" }, + "ScheduledSnapshotsConfig": { + "description": "The configuration for scheduled snapshot creation mechanism.", + "id": "ScheduledSnapshotsConfig", + "properties": { + "enabled": { + "description": "Optional. Whether scheduled snapshots creation is enabled.", + "type": "boolean" + }, + "snapshotCreationSchedule": { + "description": "Optional. The cron expression representing the time when snapshots creation mechanism runs. This field is subject to additional validation around frequency of execution.", + "type": "string" + }, + "snapshotLocation": { + "description": "Optional. The Cloud Storage location for storing automatically created snapshots.", + "type": "string" + }, + "timeZone": { + "description": "Optional. Time zone that sets the context to interpret snapshot_creation_schedule.", + "type": "string" + } + }, + "type": "object" + }, "SchedulerResource": { "description": "Configuration for resources used by Airflow schedulers.", "id": "SchedulerResource", diff --git a/composer/v1/composer-gen.go b/composer/v1/composer-gen.go index f6b1799db71..04a8cda9dff 100644 --- a/composer/v1/composer-gen.go +++ b/composer/v1/composer-gen.go @@ -582,6 +582,11 @@ type EnvironmentConfig struct { // Cloud Composer environment. PrivateEnvironmentConfig *PrivateEnvironmentConfig `json:"privateEnvironmentConfig,omitempty"` + // RecoveryConfig: Optional. The Recovery settings configuration of an + // environment. This field is supported for Cloud Composer environments + // in versions composer-2.*.*-airflow-*.*.* and newer. + RecoveryConfig *RecoveryConfig `json:"recoveryConfig,omitempty"` + // SoftwareConfig: The configuration settings for software inside the // environment. SoftwareConfig *SoftwareConfig `json:"softwareConfig,omitempty"` @@ -855,6 +860,54 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LoadSnapshotRequest: Request to load a snapshot into a Cloud Composer +// environment. +type LoadSnapshotRequest struct { + // SkipAirflowOverridesSetting: Whether or not to skip setting Airflow + // overrides when loading the environment's state. + SkipAirflowOverridesSetting bool `json:"skipAirflowOverridesSetting,omitempty"` + + // SkipEnvironmentVariablesSetting: Whether or not to skip setting + // environment variables when loading the environment's state. + SkipEnvironmentVariablesSetting bool `json:"skipEnvironmentVariablesSetting,omitempty"` + + // SkipGcsDataCopying: Whether or not to skip copying Cloud Storage data + // when loading the environment's state. + SkipGcsDataCopying bool `json:"skipGcsDataCopying,omitempty"` + + // SkipPypiPackagesInstallation: Whether or not to skip installing Pypi + // packages when loading the environment's state. + SkipPypiPackagesInstallation bool `json:"skipPypiPackagesInstallation,omitempty"` + + // SnapshotPath: A Cloud Storage path to a snapshot to load, e.g.: + // "gs://my-bucket/snapshots/project_location_environment_timestamp". + SnapshotPath string `json:"snapshotPath,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "SkipAirflowOverridesSetting") 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. + // "SkipAirflowOverridesSetting") 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 *LoadSnapshotRequest) MarshalJSON() ([]byte, error) { + type NoMethod LoadSnapshotRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LoadSnapshotResponse: Response to LoadSnapshotRequest. type LoadSnapshotResponse struct { } @@ -1360,6 +1413,68 @@ func (s *PrivateEnvironmentConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RecoveryConfig: The Recovery settings of an environment. +type RecoveryConfig struct { + // ScheduledSnapshotsConfig: Optional. The configuration for scheduled + // snapshot creation mechanism. + ScheduledSnapshotsConfig *ScheduledSnapshotsConfig `json:"scheduledSnapshotsConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ScheduledSnapshotsConfig") 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. "ScheduledSnapshotsConfig") + // 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 *RecoveryConfig) MarshalJSON() ([]byte, error) { + type NoMethod RecoveryConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SaveSnapshotRequest: Request to create a snapshot of a Cloud Composer +// environment. +type SaveSnapshotRequest struct { + // SnapshotLocation: Location in a Cloud Storage where the snapshot is + // going to be stored, e.g.: "gs://my-bucket/snapshots". + SnapshotLocation string `json:"snapshotLocation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SnapshotLocation") 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. "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 []string `json:"-"` +} + +func (s *SaveSnapshotRequest) MarshalJSON() ([]byte, error) { + type NoMethod SaveSnapshotRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SaveSnapshotResponse: Response to SaveSnapshotRequest. type SaveSnapshotResponse struct { // SnapshotPath: The fully-resolved Cloud Storage path of the created @@ -1391,6 +1506,48 @@ func (s *SaveSnapshotResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ScheduledSnapshotsConfig: The configuration for scheduled snapshot +// creation mechanism. +type ScheduledSnapshotsConfig struct { + // Enabled: Optional. Whether scheduled snapshots creation is enabled. + Enabled bool `json:"enabled,omitempty"` + + // SnapshotCreationSchedule: Optional. The cron expression representing + // the time when snapshots creation mechanism runs. This field is + // subject to additional validation around frequency of execution. + SnapshotCreationSchedule string `json:"snapshotCreationSchedule,omitempty"` + + // SnapshotLocation: Optional. The Cloud Storage location for storing + // automatically created snapshots. + SnapshotLocation string `json:"snapshotLocation,omitempty"` + + // TimeZone: Optional. Time zone that sets the context to interpret + // snapshot_creation_schedule. + TimeZone string `json:"timeZone,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 *ScheduledSnapshotsConfig) MarshalJSON() ([]byte, error) { + type NoMethod ScheduledSnapshotsConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SchedulerResource: Configuration for resources used by Airflow // schedulers. type SchedulerResource struct { @@ -2431,6 +2588,153 @@ func (c *ProjectsLocationsEnvironmentsListCall) Pages(ctx context.Context, f fun } } +// method id "composer.projects.locations.environments.loadSnapshot": + +type ProjectsLocationsEnvironmentsLoadSnapshotCall struct { + s *Service + environment string + loadsnapshotrequest *LoadSnapshotRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// LoadSnapshot: Loads a snapshot of a Cloud Composer environment. As a +// result of this operation, a snapshot of environment's specified in +// LoadSnapshotRequest is loaded into the environment. +// +// - environment: The resource name of the target environment in the +// form: +// "projects/{projectId}/locations/{locationId}/environments/{environme +// ntId}". +func (r *ProjectsLocationsEnvironmentsService) LoadSnapshot(environment string, loadsnapshotrequest *LoadSnapshotRequest) *ProjectsLocationsEnvironmentsLoadSnapshotCall { + c := &ProjectsLocationsEnvironmentsLoadSnapshotCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.environment = environment + c.loadsnapshotrequest = loadsnapshotrequest + 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 *ProjectsLocationsEnvironmentsLoadSnapshotCall) Fields(s ...googleapi.Field) *ProjectsLocationsEnvironmentsLoadSnapshotCall { + 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 *ProjectsLocationsEnvironmentsLoadSnapshotCall) Context(ctx context.Context) *ProjectsLocationsEnvironmentsLoadSnapshotCall { + 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 *ProjectsLocationsEnvironmentsLoadSnapshotCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEnvironmentsLoadSnapshotCall) 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.loadsnapshotrequest) + 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/{+environment}:loadSnapshot") + 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{ + "environment": c.environment, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "composer.projects.locations.environments.loadSnapshot" 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 *ProjectsLocationsEnvironmentsLoadSnapshotCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &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": "Loads a snapshot of a Cloud Composer environment. As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}:loadSnapshot", + // "httpMethod": "POST", + // "id": "composer.projects.locations.environments.loadSnapshot", + // "parameterOrder": [ + // "environment" + // ], + // "parameters": { + // "environment": { + // "description": "The resource name of the target environment in the form: \"projects/{projectId}/locations/{locationId}/environments/{environmentId}\"", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/environments/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+environment}:loadSnapshot", + // "request": { + // "$ref": "LoadSnapshotRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "composer.projects.locations.environments.patch": type ProjectsLocationsEnvironmentsPatchCall struct { @@ -2670,6 +2974,153 @@ func (c *ProjectsLocationsEnvironmentsPatchCall) Do(opts ...googleapi.CallOption } +// method id "composer.projects.locations.environments.saveSnapshot": + +type ProjectsLocationsEnvironmentsSaveSnapshotCall struct { + s *Service + environment string + savesnapshotrequest *SaveSnapshotRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SaveSnapshot: Creates a snapshots of a Cloud Composer environment. As +// a result of this operation, snapshot of environment's state is stored +// in a location specified in the SaveSnapshotRequest. +// +// - environment: The resource name of the source environment in the +// form: +// "projects/{projectId}/locations/{locationId}/environments/{environme +// ntId}". +func (r *ProjectsLocationsEnvironmentsService) SaveSnapshot(environment string, savesnapshotrequest *SaveSnapshotRequest) *ProjectsLocationsEnvironmentsSaveSnapshotCall { + c := &ProjectsLocationsEnvironmentsSaveSnapshotCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.environment = environment + c.savesnapshotrequest = savesnapshotrequest + 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 *ProjectsLocationsEnvironmentsSaveSnapshotCall) Fields(s ...googleapi.Field) *ProjectsLocationsEnvironmentsSaveSnapshotCall { + 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 *ProjectsLocationsEnvironmentsSaveSnapshotCall) Context(ctx context.Context) *ProjectsLocationsEnvironmentsSaveSnapshotCall { + 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 *ProjectsLocationsEnvironmentsSaveSnapshotCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEnvironmentsSaveSnapshotCall) 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.savesnapshotrequest) + 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/{+environment}:saveSnapshot") + 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{ + "environment": c.environment, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "composer.projects.locations.environments.saveSnapshot" 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 *ProjectsLocationsEnvironmentsSaveSnapshotCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &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": "Creates a snapshots of a Cloud Composer environment. As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}:saveSnapshot", + // "httpMethod": "POST", + // "id": "composer.projects.locations.environments.saveSnapshot", + // "parameterOrder": [ + // "environment" + // ], + // "parameters": { + // "environment": { + // "description": "The resource name of the source environment in the form: \"projects/{projectId}/locations/{locationId}/environments/{environmentId}\"", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/environments/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+environment}:saveSnapshot", + // "request": { + // "$ref": "SaveSnapshotRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "composer.projects.locations.imageVersions.list": type ProjectsLocationsImageVersionsListCall struct { diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 27875271774..b1267e80e94 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -12575,6 +12575,11 @@ "location": "query", "type": "string" }, + "withExtendedNotifications": { + "description": "Determines whether the customers receive notifications before migration. Only applicable to SF vms.", + "location": "query", + "type": "boolean" + }, "zone": { "description": "The name of the zone for this request.", "location": "path", @@ -12701,7 +12706,7 @@ ], "parameters": { "discardLocalSsd": { - "description": "If true, discard the contents of any attached localSSD partitions. Default value is false (== preserve localSSD data).", + "description": "If true, discard the contents of any attached localSSD partitions. Default value is false.", "location": "query", "type": "boolean" }, @@ -12753,7 +12758,7 @@ ], "parameters": { "discardLocalSsd": { - "description": "If true, discard the contents of any attached localSSD partitions. Default value is false (== preserve localSSD data).", + "description": "If true, discard the contents of any attached localSSD partitions. Default value is false.", "location": "query", "type": "boolean" }, @@ -14464,7 +14469,7 @@ "interconnects": { "methods": { "delete": { - "description": "Deletes the specified interconnect.", + "description": "Deletes the specified Interconnect.", "flatPath": "projects/{project}/global/interconnects/{interconnect}", "httpMethod": "DELETE", "id": "compute.interconnects.delete", @@ -14503,7 +14508,7 @@ ] }, "get": { - "description": "Returns the specified interconnect. Get a list of available interconnects by making a list() request.", + "description": "Returns the specified Interconnect. Get a list of available Interconnects by making a list() request.", "flatPath": "projects/{project}/global/interconnects/{interconnect}", "httpMethod": "GET", "id": "compute.interconnects.get", @@ -14538,7 +14543,7 @@ ] }, "getDiagnostics": { - "description": "Returns the interconnectDiagnostics for the specified interconnect.", + "description": "Returns the interconnectDiagnostics for the specified Interconnect.", "flatPath": "projects/{project}/global/interconnects/{interconnect}/getDiagnostics", "httpMethod": "GET", "id": "compute.interconnects.getDiagnostics", @@ -14614,7 +14619,7 @@ ] }, "getMacsecConfig": { - "description": "Returns the interconnectMacsecConfig for the specified interconnect.", + "description": "Returns the interconnectMacsecConfig for the specified Interconnect.", "flatPath": "projects/{project}/global/interconnects/{interconnect}/getMacsecConfig", "httpMethod": "GET", "id": "compute.interconnects.getMacsecConfig", @@ -14649,7 +14654,7 @@ ] }, "insert": { - "description": "Creates a Interconnect in the specified project using the data included in the request.", + "description": "Creates an Interconnect in the specified project using the data included in the request.", "flatPath": "projects/{project}/global/interconnects", "httpMethod": "POST", "id": "compute.interconnects.insert", @@ -14683,7 +14688,7 @@ ] }, "list": { - "description": "Retrieves the list of interconnect available to the specified project.", + "description": "Retrieves the list of Interconnects available to the specified project.", "flatPath": "projects/{project}/global/interconnects", "httpMethod": "GET", "id": "compute.interconnects.list", @@ -14738,7 +14743,7 @@ ] }, "patch": { - "description": "Updates the specified interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": "Updates the specified Interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", "flatPath": "projects/{project}/global/interconnects/{interconnect}", "httpMethod": "PATCH", "id": "compute.interconnects.patch", @@ -31771,6 +31776,62 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "patch": { + "description": "Modify the specified resource policy.", + "flatPath": "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}", + "httpMethod": "PATCH", + "id": "compute.resourcePolicies.patch", + "parameterOrder": [ + "project", + "region", + "resourcePolicy" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional 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. For example, consider a situation where you make an initial request and the 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).", + "location": "query", + "type": "string" + }, + "resourcePolicy": { + "description": "Id of the resource policy to patch.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "update_mask indicates fields to be updated as part of this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}", + "request": { + "$ref": "ResourcePolicy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", "flatPath": "projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy", @@ -39745,6 +39806,66 @@ }, "zoneQueuedResources": { "methods": { + "aggregatedList": { + "description": "Retrieves an aggregated list of all of the queued resources in a project across all zones.", + "flatPath": "projects/{project}/aggregated/queuedResources", + "httpMethod": "GET", + "id": "compute.zoneQueuedResources.aggregatedList", + "parameterOrder": [ + "project" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.", + "location": "query", + "type": "string" + }, + "includeAllScopes": { + "description": "Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.", + "location": "query", + "type": "boolean" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/aggregated/queuedResources", + "response": { + "$ref": "QueuedResourcesAggregatedList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, "cancel": { "description": "Cancels a QueuedResource. Only a resource in ACCEPTED state may be cancelled.", "flatPath": "projects/{project}/zones/{zone}/queuedResources/{queuedResource}/cancel", @@ -40082,7 +40203,7 @@ } } }, - "revision": "20221101", + "revision": "20221126", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -41554,7 +41675,7 @@ "type": "string" }, "replicaZones": { - "description": "URLs of the zones where the disk should be replicated to. Only applicable for regional resources.", + "description": "URLs of the zones where the disk should be replicated to. Only applicable for regional resources. Replica zones must have 1 zone same as the instance zone.", "items": { "type": "string" }, @@ -42464,7 +42585,7 @@ "type": "string" }, "capacityScaler": { - "description": "A multiplier applied to the backend's target capacity of its balancing mode. The default value is 1, which means the group serves up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger than 0 and smaller than 0.1. You cannot configure a setting of 0 when there is only one backend attached to the backend service.", + "description": "A multiplier applied to the backend's target capacity of its balancing mode. The default value is 1, which means the group serves up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger than 0 and smaller than 0.1. You cannot configure a setting of 0 when there is only one backend attached to the backend service. Not available with backends that don't support using a balancingMode. This includes backends such as global internet NEGs, regional serverless NEGs, and PSC NEGs.", "format": "float", "type": "number" }, @@ -43691,7 +43812,7 @@ "type": "boolean" }, "optional": { - "description": "This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL.", + "description": "Deprecated in favor of optionalMode. This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL.", "enum": [ "CUSTOM", "EXCLUDE_ALL_OPTIONAL", @@ -43707,12 +43828,28 @@ "type": "string" }, "optionalFields": { - "description": "This field can only be specified if logging is enabled for this backend service and \"logConfig.optional\" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace", + "description": "This field can only be specified if logging is enabled for this backend service and \"logConfig.optionalMode\" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace", "items": { "type": "string" }, "type": "array" }, + "optionalMode": { + "description": "This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL.", + "enum": [ + "CUSTOM", + "EXCLUDE_ALL_OPTIONAL", + "INCLUDE_ALL_OPTIONAL", + "UNSPECIFIED_OPTIONAL_MODE" + ], + "enumDescriptions": [ + "A subset of optional fields.", + "None optional fields.", + "All optional fields.", + "" + ], + "type": "string" + }, "sampleRate": { "description": "This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.", "format": "float", @@ -46476,7 +46613,7 @@ "id": "DisksStopAsyncReplicationRequest", "properties": { "asyncSecondaryDisk": { - "description": "The secondary disk to stop asynchronous replication to. Supplied if and only if the target disk is a primary disk in an asynchronously replicated pair. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk ", + "description": "[Deprecated] The secondary disk to stop asynchronous replication to. This field will not be included in the beta or v1 APIs and will be removed from the alpha API in the near future.", "type": "string" } }, @@ -46582,7 +46719,7 @@ "type": "object" }, "reason": { - "description": "The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match /[A-Z0-9_]+/.", + "description": "The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.", "type": "string" } }, @@ -47363,7 +47500,7 @@ "type": "string" }, "name": { - "description": "Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by GCP which uniquely identifies the Organization Firewall Policy.", + "description": "Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy.", "type": "string" }, "parent": { @@ -47824,7 +47961,7 @@ "type": "string" }, "allPorts": { - "description": "This field is used along with the backend_service field for Internal TCP/UDP Load Balancing or Network Load Balancing, or with the target field for internal and external TargetInstance. You can only use one of ports and port_range, or allPorts. The three are mutually exclusive. For TCP, UDP and SCTP traffic, packets addressed to any ports will be forwarded to the target or backendService.", + "description": "This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal and external protocol forwarding. Set this field to true to allow packets addressed to any port or packets lacking destination port information (for example, UDP fragments after the first fragment) to be forwarded to the backends configured with this forwarding rule. The ports, port_range, and allPorts fields are mutually exclusive.", "type": "boolean" }, "allowGlobalAccess": { @@ -47839,6 +47976,10 @@ "description": "Identifies the backend service to which the forwarding rule sends traffic. Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must be omitted for all other load balancer types.", "type": "string" }, + "baseForwardingRule": { + "description": "[Output Only] The URL for the corresponding base Forwarding Rule. By base Forwarding Rule, we mean the Forwarding Rule that has the same IP address, protocol, and port settings with the current Forwarding Rule, but without sourceIPRanges specified. Always empty if the current Forwarding Rule does not have sourceIPRanges specified.", + "type": "string" + }, "creationTimestamp": { "description": "[Output Only] Creation timestamp in RFC3339 text format.", "type": "string" @@ -47951,11 +48092,11 @@ "type": "boolean" }, "portRange": { - "description": "This field can be used only if: - Load balancing scheme is one of EXTERNAL, INTERNAL_SELF_MANAGED or INTERNAL_MANAGED - IPProtocol is one of TCP, UDP, or SCTP. Packets addressed to ports in the specified range will be forwarded to target or backend_service. You can only use one of ports, port_range, or allPorts. The three are mutually exclusive. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint ports. Some types of forwarding target have constraints on the acceptable ports. For more information, see [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#port_specifications). @pattern: \\\\d+(?:-\\\\d+)?", + "description": "This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By backend service-based network load balancers, target pool-based network load balancers, internal proxy load balancers, external proxy load balancers, Traffic Director, external protocol forwarding, and Classic VPN. Some products have restrictions on what ports can be used. See port specifications for details. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The ports, port_range, and allPorts fields are mutually exclusive. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. @pattern: \\\\d+(?:-\\\\d+)?", "type": "string" }, "ports": { - "description": "The ports field is only supported when the forwarding rule references a backend_service directly. Only packets addressed to the [specified list of ports]((https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#port_specifications)) are forwarded to backends. You can only use one of ports and port_range, or allPorts. The three are mutually exclusive. You can specify a list of up to five ports, which can be non-contiguous. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint ports. @pattern: \\\\d+(?:-\\\\d+)?", + "description": "This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal protocol forwarding. You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. The ports, port_range, and allPorts fields are mutually exclusive. @pattern: \\\\d+(?:-\\\\d+)?", "items": { "type": "string" }, @@ -49690,14 +49831,14 @@ "type": "string" }, "healthChecks": { - "description": "A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more than 10. HealthCheck resources must have portSpecification=USE_SERVING_PORT or portSpecification=USE_FIXED_PORT. For regional HealthCheckService, the HealthCheck must be regional and in the same region. For global HealthCheckService, HealthCheck must be global. Mix of regional and global HealthChecks is not supported. Multiple regional HealthChecks must belong to the same region. Regional HealthChecks must belong to the same region as zones of NEGs.", + "description": "A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more than 10 for regional HealthCheckService, and not more than 1 for global HealthCheckService. HealthCheck resources must have portSpecification=USE_SERVING_PORT or portSpecification=USE_FIXED_PORT. For regional HealthCheckService, the HealthCheck must be regional and in the same region. For global HealthCheckService, HealthCheck must be global. Mix of regional and global HealthChecks is not supported. Multiple regional HealthChecks must belong to the same region. Regional HealthChecks must belong to the same region as zones of NetworkEndpointGroups. For global HealthCheckService using global INTERNET_IP_PORT NetworkEndpointGroups, the global HealthChecks must specify sourceRegions, and HealthChecks that specify sourceRegions can only be used with global INTERNET_IP_PORT NetworkEndpointGroups.", "items": { "type": "string" }, "type": "array" }, "healthStatusAggregationPolicy": { - "description": "Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. .", + "description": "Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . This is only allowed with regional HealthCheckService.", "enum": [ "AND", "NO_AGGREGATION" @@ -49736,7 +49877,7 @@ "type": "string" }, "networkEndpointGroups": { - "description": "A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For regional HealthCheckService, NEGs must be in zones in the region of the HealthCheckService.", + "description": "A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For regional HealthCheckService, NEGs must be in zones in the region of the HealthCheckService. For global HealthCheckServices, the NetworkEndpointGroups must be global INTERNET_IP_PORT.", "items": { "type": "string" }, @@ -51746,7 +51887,7 @@ }, "instanceEncryptionKey": { "$ref": "CustomerEncryptionKey", - "description": "Encrypts or decrypts data for an instance with a customer-supplied encryption key. If you are creating a new instance, this field encrypts the local SSD and in-memory contents of the instance using a key that you provide. If you are restarting an instance protected with a customer-supplied encryption key, you must provide the correct key in order to successfully restart the instance. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key and you do not need to provide a key to start the instance later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt local SSDs and in-memory content in a managed instance group." + "description": "Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation." }, "keyRevocationActionType": { "description": "KeyRevocationActionType of the instance. Supported options are \"STOP\" and \"NONE\". The default value is \"NONE\" if it is not specified.", @@ -52919,6 +53060,18 @@ "InstanceGroupManagerInstanceLifecyclePolicy": { "id": "InstanceGroupManagerInstanceLifecyclePolicy", "properties": { + "defaultActionOnFailure": { + "description": "Defines behaviour for all instance or failures", + "enum": [ + "DO_NOTHING", + "REPAIR" + ], + "enumDescriptions": [ + "If any of the MIG's VMs is not running, or is failing, no repair action will be taken.", + "*[Default]* If any of the MIG's VMs is not running - for example, a VM cannot be created during a scale out or a VM fails – then the group will retry until it creates that VM successfully. For more information about how a MIG manages its VMs, see What is a managed instance.\"" + ], + "type": "string" + }, "forceUpdateOnRepair": { "description": "A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. ", "enum": [ @@ -56579,18 +56732,6 @@ "$ref": "InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange" }, "type": "array" - }, - "networkConnectivityCenter": { - "description": "[Output Only] Network Connectivity Center constraints, which can take one of the following values: NCC_UNCONSTRAINED, NCC_SPOKE_REQUIRED", - "enum": [ - "NCC_SPOKE_REQUIRED", - "NCC_UNCONSTRAINED" - ], - "enumDescriptions": [ - "If NCC_SPOKE_REQUIRED, the attachment is disabled until the attachment is included in a Network Connectivity Center spoke. This is true for attachments on Cross-Cloud Interconnect connections.", - "UNCONSTRAINED means there is no constraint." - ], - "type": "string" } }, "type": "object" @@ -56896,13 +57037,11 @@ "description": "The aggregation type of the bundle interface.", "enum": [ "BUNDLE_AGGREGATION_TYPE_LACP", - "BUNDLE_AGGREGATION_TYPE_STATIC", - "BUNDLE_AGGREGATION_TYPE_UNSPECIFIED" + "BUNDLE_AGGREGATION_TYPE_STATIC" ], "enumDescriptions": [ "LACP is enabled.", - "LACP is disabled.", - "" + "LACP is disabled." ], "type": "string" }, @@ -56910,12 +57049,10 @@ "description": "The operational status of the bundle interface.", "enum": [ "BUNDLE_OPERATIONAL_STATUS_DOWN", - "BUNDLE_OPERATIONAL_STATUS_UNSPECIFIED", "BUNDLE_OPERATIONAL_STATUS_UP" ], "enumDescriptions": [ "If bundleAggregationType is LACP: LACP is not established and/or all links in the bundle have DOWN operational status. If bundleAggregationType is STATIC: one or more links in the bundle has DOWN operational status.", - "", "If bundleAggregationType is LACP: LACP is established and at least one link in the bundle has UP operational status. If bundleAggregationType is STATIC: all links in the bundle (typically just one) have UP operational status." ], "type": "string" @@ -57033,12 +57170,10 @@ "description": "The operational status of the link.", "enum": [ "LINK_OPERATIONAL_STATUS_DOWN", - "LINK_OPERATIONAL_STATUS_UNSPECIFIED", "LINK_OPERATIONAL_STATUS_UP" ], "enumDescriptions": [ "The interface is unable to communicate with the remote end.", - "", "The interface has low level communication with the remote end." ], "type": "string" @@ -63938,7 +64073,7 @@ }, "resendInterval": { "$ref": "Duration", - "description": "Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed." + "description": "Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints." }, "retryDurationSec": { "description": "How much time (in seconds) is spent attempting notification retries until a successful response is received. Default is 30s. Limit is 20m (1200s). Must be a positive number.", @@ -67137,6 +67272,235 @@ }, "type": "object" }, + "QueuedResourcesAggregatedList": { + "id": "QueuedResourcesAggregatedList", + "properties": { + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "additionalProperties": { + "$ref": "QueuedResourcesScopedList", + "description": "Name of the scope containing this set of queued resources." + }, + "description": "A list of QueuedResourcesScopedList resources.", + "type": "object" + }, + "kind": { + "default": "compute#queuedResources", + "description": "[Output Only] Type of resource. Always compute#queuedResourcesAggregatedList for lists of QueuedResource.", + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for this resource.", + "type": "string" + }, + "unreachables": { + "description": "[Output Only] Unreachable resources.", + "items": { + "type": "string" + }, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "QueuedResourcesScopedList": { + "id": "QueuedResourcesScopedList", + "properties": { + "queuedResources": { + "description": "List of QueuedResources contained in this scope.", + "items": { + "$ref": "QueuedResource" + }, + "type": "array" + }, + "warning": { + "description": "Informational warning which replaces the list of backend services when the list is empty.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "QueuingPolicy": { "description": "Queuing parameters for the requested deferred capacity.", "id": "QueuingPolicy", @@ -67206,8 +67570,12 @@ "EXTERNAL_VPN_GATEWAYS", "FIREWALLS", "FORWARDING_RULES", + "GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES", "GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES", + "GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES", "GLOBAL_INTERNAL_ADDRESSES", + "GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES", + "GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES", "GPUS_ALL_REGIONS", "HEALTH_CHECKS", "IMAGES", @@ -67270,7 +67638,11 @@ "PUBLIC_DELEGATED_PREFIXES", "QUEUED_RESOURCES", "REGIONAL_AUTOSCALERS", + "REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES", + "REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES", "REGIONAL_INSTANCE_GROUP_MANAGERS", + "REGIONAL_INTERNAL_LB_BACKEND_SERVICES", + "REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES", "RESERVATIONS", "RESOURCE_POLICIES", "ROUTERS", @@ -67420,6 +67792,14 @@ "", "", "", + "", + "", + "", + "", + "", + "", + "", + "", "The total number of snapshots allowed for a single project.", "", "", @@ -67918,7 +68298,7 @@ "id": "RegionDisksStopAsyncReplicationRequest", "properties": { "asyncSecondaryDisk": { - "description": "The secondary disk to stop asynchronous replication to. Supplied if and only if the target disk is a primary disk in an asynchronously replicated pair. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk ", + "description": "[Deprecated] The secondary disk to stop asynchronous replication to. This field will not be included in the beta or v1 APIs and will be removed from the alpha API in the near future.", "type": "string" } }, @@ -69515,7 +69895,7 @@ "type": "string" }, "type": { - "description": "Type of resource for which this commitment applies. Possible values are VCPU and MEMORY", + "description": "Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.", "enum": [ "ACCELERATOR", "LOCAL_SSD", @@ -73748,6 +74128,13 @@ ], "type": "string" }, + "enforceOnKeyConfigs": { + "description": "If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.", + "items": { + "$ref": "SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig" + }, + "type": "array" + }, "enforceOnKeyName": { "description": "Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.", "type": "string" @@ -73771,6 +74158,42 @@ }, "type": "object" }, + "SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig": { + "id": "SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig", + "properties": { + "enforceOnKeyName": { + "description": "Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.", + "type": "string" + }, + "enforceOnKeyType": { + "description": "Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if \"enforceOnKeyConfigs\" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under \"enforceOnKeyName\". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under \"enforceOnKeyName\". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. ", + "enum": [ + "ALL", + "ALL_IPS", + "HTTP_COOKIE", + "HTTP_HEADER", + "HTTP_PATH", + "IP", + "REGION_CODE", + "SNI", + "XFF_IP" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "SecurityPolicyRuleRateLimitOptionsRpcStatus": { "description": "Simplified google.rpc.Status type (omitting details).", "id": "SecurityPolicyRuleRateLimitOptionsRpcStatus", diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index 1ac8674f7c6..be1d8e80139 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -3507,7 +3507,8 @@ type AttachedDiskInitializeParams struct { ProvisionedThroughput int64 `json:"provisionedThroughput,omitempty,string"` // ReplicaZones: URLs of the zones where the disk should be replicated - // to. Only applicable for regional resources. + // to. Only applicable for regional resources. Replica zones must have 1 + // zone same as the instance zone. ReplicaZones []string `json:"replicaZones,omitempty"` // ResourceManagerTags: Resource manager tags to be bound to the disk. @@ -5107,7 +5108,9 @@ type Backend struct { // offering 0% of its available capacity. The valid ranges are 0.0 and // [0.1,1.0]. You cannot configure a setting larger than 0 and smaller // than 0.1. You cannot configure a setting of 0 when there is only one - // backend attached to the backend service. + // backend attached to the backend service. Not available with backends + // that don't support using a balancingMode. This includes backends such + // as global internet NEGs, regional serverless NEGs, and PSC NEGs. CapacityScaler float64 `json:"capacityScaler,omitempty"` // Description: An optional description of this resource. Provide this @@ -7226,11 +7229,11 @@ type BackendServiceLogConfig struct { // traffic served by this backend service. The default value is false. Enable bool `json:"enable,omitempty"` - // Optional: This field can only be specified if logging is enabled for - // this backend service. Configures whether all, none or a subset of - // optional fields should be added to the reported logs. One of - // [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is - // EXCLUDE_ALL_OPTIONAL. + // Optional: Deprecated in favor of optionalMode. This field can only be + // specified if logging is enabled for this backend service. Configures + // whether all, none or a subset of optional fields should be added to + // the reported logs. One of [INCLUDE_ALL_OPTIONAL, + // EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. // // Possible values: // "CUSTOM" - A subset of optional fields. @@ -7240,12 +7243,25 @@ type BackendServiceLogConfig struct { Optional string `json:"optional,omitempty"` // OptionalFields: This field can only be specified if logging is - // enabled for this backend service and "logConfig.optional" was set to - // CUSTOM. Contains a list of optional fields you want to include in the - // logs. For example: serverInstance, serverGkeDetails.cluster, + // enabled for this backend service and "logConfig.optionalMode" was set + // to CUSTOM. Contains a list of optional fields you want to include in + // the logs. For example: serverInstance, serverGkeDetails.cluster, // serverGkeDetails.pod.podNamespace OptionalFields []string `json:"optionalFields,omitempty"` + // OptionalMode: This field can only be specified if logging is enabled + // for this backend service. Configures whether all, none or a subset of + // optional fields should be added to the reported logs. One of + // [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is + // EXCLUDE_ALL_OPTIONAL. + // + // Possible values: + // "CUSTOM" - A subset of optional fields. + // "EXCLUDE_ALL_OPTIONAL" - None optional fields. + // "INCLUDE_ALL_OPTIONAL" - All optional fields. + // "UNSPECIFIED_OPTIONAL_MODE" + OptionalMode string `json:"optionalMode,omitempty"` + // SampleRate: This field can only be specified if logging is enabled // for this backend service. The value of the field must be in [0, 1]. // This configures the sampling rate of requests to the load balancer @@ -11559,17 +11575,10 @@ func (s *DisksStartAsyncReplicationRequest) MarshalJSON() ([]byte, error) { } type DisksStopAsyncReplicationRequest struct { - // AsyncSecondaryDisk: The secondary disk to stop asynchronous - // replication to. Supplied if and only if the target disk is a primary - // disk in an asynchronously replicated pair. You can provide this as a - // partial or full URL to the resource. For example, the following are - // valid values: - - // https://www.googleapis.com/compute/v1/projects/project/zones/zone - // /disks/disk - - // https://www.googleapis.com/compute/v1/projects/project/regions/region - // /disks/disk - projects/project/zones/zone/disks/disk - - // projects/project/regions/region/disks/disk - zones/zone/disks/disk - - // regions/region/disks/disk + // AsyncSecondaryDisk: [Deprecated] The secondary disk to stop + // asynchronous replication to. This field will not be included in the + // beta or v1 APIs and will be removed from the alpha API in the near + // future. AsyncSecondaryDisk string `json:"asyncSecondaryDisk,omitempty"` // ForceSendFields is a list of field names (e.g. "AsyncSecondaryDisk") @@ -11814,7 +11823,8 @@ type ErrorInfo struct { // Reason: The reason of the error. This is a constant value that // identifies the proximate cause of the error. Error reasons are unique // within a particular domain of errors. This should be at most 63 - // characters and match /[A-Z0-9_]+/. + // characters and match a regular expression of `A-Z+[A-Z0-9]`, which + // represents UPPER_SNAKE_CASE. Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") to @@ -13087,8 +13097,8 @@ type FirewallPolicy struct { Kind string `json:"kind,omitempty"` // Name: Name of the resource. For Organization Firewall Policies it's a - // [Output Only] numeric ID allocated by GCP which uniquely identifies - // the Organization Firewall Policy. + // [Output Only] numeric ID allocated by Google Cloud which uniquely + // identifies the Organization Firewall Policy. Name string `json:"name,omitempty"` // Parent: [Output Only] The parent of the firewall policy. This field @@ -13772,12 +13782,14 @@ type ForwardingRule struct { // "UDP" IPProtocol string `json:"IPProtocol,omitempty"` - // AllPorts: This field is used along with the backend_service field for - // Internal TCP/UDP Load Balancing or Network Load Balancing, or with - // the target field for internal and external TargetInstance. You can - // only use one of ports and port_range, or allPorts. The three are - // mutually exclusive. For TCP, UDP and SCTP traffic, packets addressed - // to any ports will be forwarded to the target or backendService. + // AllPorts: This field can only be used: - If IPProtocol is one of TCP, + // UDP, or SCTP. - By internal TCP/UDP load balancers, backend + // service-based network load balancers, and internal and external + // protocol forwarding. Set this field to true to allow packets + // addressed to any port or packets lacking destination port information + // (for example, UDP fragments after the first fragment) to be forwarded + // to the backends configured with this forwarding rule. The ports, + // port_range, and allPorts fields are mutually exclusive. AllPorts bool `json:"allPorts,omitempty"` // AllowGlobalAccess: This field is used along with the backend_service @@ -13797,6 +13809,14 @@ type ForwardingRule struct { // load balancer types. BackendService string `json:"backendService,omitempty"` + // BaseForwardingRule: [Output Only] The URL for the corresponding base + // Forwarding Rule. By base Forwarding Rule, we mean the Forwarding Rule + // that has the same IP address, protocol, and port settings with the + // current Forwarding Rule, but without sourceIPRanges specified. Always + // empty if the current Forwarding Rule does not have sourceIPRanges + // specified. + BaseForwardingRule string `json:"baseForwardingRule,omitempty"` + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` @@ -13932,28 +13952,37 @@ type ForwardingRule struct { // Non-PSC forwarding rules do not use this field. NoAutomateDnsZone bool `json:"noAutomateDnsZone,omitempty"` - // PortRange: This field can be used only if: - Load balancing scheme is - // one of EXTERNAL, INTERNAL_SELF_MANAGED or INTERNAL_MANAGED - - // IPProtocol is one of TCP, UDP, or SCTP. Packets addressed to ports in - // the specified range will be forwarded to target or backend_service. - // You can only use one of ports, port_range, or allPorts. The three are - // mutually exclusive. Forwarding rules with the same [IPAddress, - // IPProtocol] pair must have disjoint ports. Some types of forwarding - // target have constraints on the acceptable ports. For more - // information, see Port specifications - // (https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#port_specifications). - // @pattern: \\d+(?:-\\d+)? + // PortRange: This field can only be used: - If IPProtocol is one of + // TCP, UDP, or SCTP. - By backend service-based network load balancers, + // target pool-based network load balancers, internal proxy load + // balancers, external proxy load balancers, Traffic Director, external + // protocol forwarding, and Classic VPN. Some products have restrictions + // on what ports can be used. See port specifications for details. Only + // packets addressed to ports in the specified range will be forwarded + // to the backends configured with this forwarding rule. The ports, + // port_range, and allPorts fields are mutually exclusive. For external + // forwarding rules, two or more forwarding rules cannot use the same + // [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. + // For internal forwarding rules within the same VPC network, two or + // more forwarding rules cannot use the same [IPAddress, IPProtocol] + // pair, and cannot have overlapping portRanges. @pattern: + // \\d+(?:-\\d+)? PortRange string `json:"portRange,omitempty"` - // Ports: The ports field is only supported when the forwarding rule - // references a backend_service directly. Only packets addressed to the - // specified list of ports - // ((https://cloud.google.com/load-balancing/docs/forwarding-rule-concept - // s#port_specifications)) are forwarded to backends. You can only use - // one of ports and port_range, or allPorts. The three are mutually - // exclusive. You can specify a list of up to five ports, which can be - // non-contiguous. Forwarding rules with the same [IPAddress, - // IPProtocol] pair must have disjoint ports. @pattern: \\d+(?:-\\d+)? + // Ports: This field can only be used: - If IPProtocol is one of TCP, + // UDP, or SCTP. - By internal TCP/UDP load balancers, backend + // service-based network load balancers, and internal protocol + // forwarding. You can specify a list of up to five ports by number, + // separated by commas. The ports can be contiguous or discontiguous. + // Only packets addressed to these ports will be forwarded to the + // backends configured with this forwarding rule. For external + // forwarding rules, two or more forwarding rules cannot use the same + // [IPAddress, IPProtocol] pair, and cannot share any values defined in + // ports. For internal forwarding rules within the same VPC network, two + // or more forwarding rules cannot use the same [IPAddress, IPProtocol] + // pair, and cannot share any values defined in ports. The ports, + // port_range, and allPorts fields are mutually exclusive. @pattern: + // \\d+(?:-\\d+)? Ports []string `json:"ports,omitempty"` // PscConnectionId: [Output Only] The PSC connection id of the PSC @@ -16747,14 +16776,20 @@ type HealthCheckService struct { Fingerprint string `json:"fingerprint,omitempty"` // HealthChecks: A list of URLs to the HealthCheck resources. Must have - // at least one HealthCheck, and not more than 10. HealthCheck resources - // must have portSpecification=USE_SERVING_PORT or + // at least one HealthCheck, and not more than 10 for regional + // HealthCheckService, and not more than 1 for global + // HealthCheckService. HealthCheck resources must have + // portSpecification=USE_SERVING_PORT or // portSpecification=USE_FIXED_PORT. For regional HealthCheckService, // the HealthCheck must be regional and in the same region. For global // HealthCheckService, HealthCheck must be global. Mix of regional and // global HealthChecks is not supported. Multiple regional HealthChecks // must belong to the same region. Regional HealthChecks must belong to - // the same region as zones of NEGs. + // the same region as zones of NetworkEndpointGroups. For global + // HealthCheckService using global INTERNET_IP_PORT + // NetworkEndpointGroups, the global HealthChecks must specify + // sourceRegions, and HealthChecks that specify sourceRegions can only + // be used with global INTERNET_IP_PORT NetworkEndpointGroups. HealthChecks []string `json:"healthChecks,omitempty"` // HealthStatusAggregationPolicy: Optional. Policy for how the results @@ -16764,6 +16799,7 @@ type HealthCheckService struct { // service. - AND. If any health check of an endpoint reports UNHEALTHY, // then UNHEALTHY is the HealthState of the endpoint. If all health // checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . + // This is only allowed with regional HealthCheckService. // // Possible values: // "AND" - If any backend's health check reports UNHEALTHY, then @@ -16814,7 +16850,8 @@ type HealthCheckService struct { // NetworkEndpointGroups: A list of URLs to the NetworkEndpointGroup // resources. Must not have more than 100. For regional // HealthCheckService, NEGs must be in zones in the region of the - // HealthCheckService. + // HealthCheckService. For global HealthCheckServices, the + // NetworkEndpointGroups must be global INTERNET_IP_PORT. NetworkEndpointGroups []string `json:"networkEndpointGroups,omitempty"` // NotificationEndpoints: A list of URLs to the NotificationEndpoint @@ -20123,18 +20160,13 @@ type Instance struct { // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` - // InstanceEncryptionKey: Encrypts or decrypts data for an instance with - // a customer-supplied encryption key. If you are creating a new - // instance, this field encrypts the local SSD and in-memory contents of - // the instance using a key that you provide. If you are restarting an - // instance protected with a customer-supplied encryption key, you must - // provide the correct key in order to successfully restart the - // instance. If you do not provide an encryption key when creating the - // instance, then the local SSD and in-memory contents will be encrypted - // using an automatically generated key and you do not need to provide a - // key to start the instance later. Instance templates do not store - // customer-supplied encryption keys, so you cannot use your own keys to - // encrypt local SSDs and in-memory content in a managed instance group. + // InstanceEncryptionKey: Encrypts suspended data for an instance with a + // customer-managed encryption key. If you are creating a new instance, + // this field will encrypt the local SSD and in-memory contents of the + // instance during the suspend operation. If you do not provide an + // encryption key when creating the instance, then the local SSD and + // in-memory contents will be encrypted using an automatically generated + // key during the suspend operation. InstanceEncryptionKey *CustomerEncryptionKey `json:"instanceEncryptionKey,omitempty"` // KeyRevocationActionType: KeyRevocationActionType of the instance. @@ -21769,6 +21801,19 @@ func (s *InstanceGroupManagerAutoHealingPolicyAutoHealingTriggers) MarshalJSON() } type InstanceGroupManagerInstanceLifecyclePolicy struct { + // DefaultActionOnFailure: Defines behaviour for all instance or + // failures + // + // Possible values: + // "DO_NOTHING" - If any of the MIG's VMs is not running, or is + // failing, no repair action will be taken. + // "REPAIR" - *[Default]* If any of the MIG's VMs is not running - for + // example, a VM cannot be created during a scale out or a VM fails – + // then the group will retry until it creates that VM successfully. For + // more information about how a MIG manages its VMs, see What is a + // managed instance." + DefaultActionOnFailure string `json:"defaultActionOnFailure,omitempty"` + // ForceUpdateOnRepair: A bit indicating whether to forcefully apply the // group's latest configuration when repairing a VM. Valid options are: // - NO (default): If configuration updates are available, they are not @@ -21795,18 +21840,19 @@ type InstanceGroupManagerInstanceLifecyclePolicy struct { // initialization on them. MetadataBasedReadinessSignal *InstanceGroupManagerInstanceLifecyclePolicyMetadataBasedReadinessSignal `json:"metadataBasedReadinessSignal,omitempty"` - // ForceSendFields is a list of field names (e.g. "ForceUpdateOnRepair") - // 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. + // "DefaultActionOnFailure") 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. "ForceUpdateOnRepair") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the + // NullFields is a list of field names (e.g. "DefaultActionOnFailure") + // 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. @@ -27760,18 +27806,6 @@ type InterconnectAttachmentConfigurationConstraints struct { // recommend. BgpPeerAsnRanges []*InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange `json:"bgpPeerAsnRanges,omitempty"` - // NetworkConnectivityCenter: [Output Only] Network Connectivity Center - // constraints, which can take one of the following values: - // NCC_UNCONSTRAINED, NCC_SPOKE_REQUIRED - // - // Possible values: - // "NCC_SPOKE_REQUIRED" - If NCC_SPOKE_REQUIRED, the attachment is - // disabled until the attachment is included in a Network Connectivity - // Center spoke. This is true for attachments on Cross-Cloud - // Interconnect connections. - // "NCC_UNCONSTRAINED" - UNCONSTRAINED means there is no constraint. - NetworkConnectivityCenter string `json:"networkConnectivityCenter,omitempty"` - // ForceSendFields is a list of field names (e.g. "BgpMd5") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -28316,7 +28350,6 @@ type InterconnectDiagnostics struct { // Possible values: // "BUNDLE_AGGREGATION_TYPE_LACP" - LACP is enabled. // "BUNDLE_AGGREGATION_TYPE_STATIC" - LACP is disabled. - // "BUNDLE_AGGREGATION_TYPE_UNSPECIFIED" BundleAggregationType string `json:"bundleAggregationType,omitempty"` // BundleOperationalStatus: The operational status of the bundle @@ -28327,7 +28360,6 @@ type InterconnectDiagnostics struct { // LACP: LACP is not established and/or all links in the bundle have // DOWN operational status. If bundleAggregationType is STATIC: one or // more links in the bundle has DOWN operational status. - // "BUNDLE_OPERATIONAL_STATUS_UNSPECIFIED" // "BUNDLE_OPERATIONAL_STATUS_UP" - If bundleAggregationType is LACP: // LACP is established and at least one link in the bundle has UP // operational status. If bundleAggregationType is STATIC: all links in @@ -28531,7 +28563,6 @@ type InterconnectDiagnosticsLinkStatus struct { // Possible values: // "LINK_OPERATIONAL_STATUS_DOWN" - The interface is unable to // communicate with the remote end. - // "LINK_OPERATIONAL_STATUS_UNSPECIFIED" // "LINK_OPERATIONAL_STATUS_UP" - The interface has low level // communication with the remote end. OperationalStatus string `json:"operationalStatus,omitempty"` @@ -39246,7 +39277,8 @@ type NotificationEndpointGrpcSettings struct { // ResendInterval: Optional. This field is used to configure how often // to send a full update of all non-healthy backends. If unspecified, // full updates are not sent. If specified, must be in the range between - // 600 seconds to 3600 seconds. Nanos are disallowed. + // 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set + // for regional notification endpoints. ResendInterval *Duration `json:"resendInterval,omitempty"` // RetryDurationSec: How much time (in seconds) is spent attempting @@ -44299,6 +44331,366 @@ func (s *QueuedResourceStatusFailedDataErrorErrorsErrorDetails) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type QueuedResourcesAggregatedList struct { + // Id: [Output Only] Unique identifier for the resource; defined by the + // server. + Id string `json:"id,omitempty"` + + // Items: A list of QueuedResourcesScopedList resources. + Items map[string]QueuedResourcesScopedList `json:"items,omitempty"` + + // Kind: [Output Only] Type of resource. Always + // compute#queuedResourcesAggregatedList for lists of QueuedResource. + Kind string `json:"kind,omitempty"` + + // NextPageToken: [Output Only] This token allows you to get the next + // page of results for list requests. If the number of results is larger + // than maxResults, use the nextPageToken as a value for the query + // parameter pageToken in the next list request. Subsequent list + // requests will have their own nextPageToken to continue paging through + // the results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // SelfLink: [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + + // Unreachables: [Output Only] Unreachable resources. + Unreachables []string `json:"unreachables,omitempty"` + + // Warning: [Output Only] Informational warning message. + Warning *QueuedResourcesAggregatedListWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") 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 *QueuedResourcesAggregatedList) MarshalJSON() ([]byte, error) { + type NoMethod QueuedResourcesAggregatedList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// QueuedResourcesAggregatedListWarning: [Output Only] Informational +// warning message. +type QueuedResourcesAggregatedListWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in + // the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV + // backend service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's + // nextHopInstance URL refers to an instance that does not have an ipv6 + // interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + + // Data: [Output Only] Metadata about this warning in key: value format. + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } + Data []*QueuedResourcesAggregatedListWarningData `json:"data,omitempty"` + + // Message: [Output Only] A human-readable description of the warning + // code. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty 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. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *QueuedResourcesAggregatedListWarning) MarshalJSON() ([]byte, error) { + type NoMethod QueuedResourcesAggregatedListWarning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type QueuedResourcesAggregatedListWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning + // being returned. For example, for warnings where there are no results + // in a list request for a particular zone, this key might be scope and + // the key value might be the zone name. Other examples might be a key + // indicating a deprecated resource and a suggested replacement, or a + // warning about invalid network settings (for example, if an instance + // attempts to perform IP forwarding but is not enabled for IP + // forwarding). + Key string `json:"key,omitempty"` + + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 *QueuedResourcesAggregatedListWarningData) MarshalJSON() ([]byte, error) { + type NoMethod QueuedResourcesAggregatedListWarningData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type QueuedResourcesScopedList struct { + // QueuedResources: List of QueuedResources contained in this scope. + QueuedResources []*QueuedResource `json:"queuedResources,omitempty"` + + // Warning: Informational warning which replaces the list of backend + // services when the list is empty. + Warning *QueuedResourcesScopedListWarning `json:"warning,omitempty"` + + // ForceSendFields is a list of field names (e.g. "QueuedResources") 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. "QueuedResources") 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 *QueuedResourcesScopedList) MarshalJSON() ([]byte, error) { + type NoMethod QueuedResourcesScopedList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// QueuedResourcesScopedListWarning: Informational warning which +// replaces the list of backend services when the list is empty. +type QueuedResourcesScopedListWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in + // the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV + // backend service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's + // nextHopInstance URL refers to an instance that does not have an ipv6 + // interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + + // Data: [Output Only] Metadata about this warning in key: value format. + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } + Data []*QueuedResourcesScopedListWarningData `json:"data,omitempty"` + + // Message: [Output Only] A human-readable description of the warning + // code. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty 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. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *QueuedResourcesScopedListWarning) MarshalJSON() ([]byte, error) { + type NoMethod QueuedResourcesScopedListWarning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type QueuedResourcesScopedListWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning + // being returned. For example, for warnings where there are no results + // in a list request for a particular zone, this key might be scope and + // the key value might be the zone name. Other examples might be a key + // indicating a deprecated resource and a suggested replacement, or a + // warning about invalid network settings (for example, if an instance + // attempts to perform IP forwarding but is not enabled for IP + // forwarding). + Key string `json:"key,omitempty"` + + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 *QueuedResourcesScopedListWarningData) MarshalJSON() ([]byte, error) { + type NoMethod QueuedResourcesScopedListWarningData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // QueuingPolicy: Queuing parameters for the requested deferred // capacity. type QueuingPolicy struct { @@ -44383,8 +44775,12 @@ type Quota struct { // "EXTERNAL_VPN_GATEWAYS" // "FIREWALLS" // "FORWARDING_RULES" + // "GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES" // "GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES" + // "GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES" // "GLOBAL_INTERNAL_ADDRESSES" + // "GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES" + // "GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES" // "GPUS_ALL_REGIONS" // "HEALTH_CHECKS" // "IMAGES" @@ -44447,7 +44843,11 @@ type Quota struct { // "PUBLIC_DELEGATED_PREFIXES" // "QUEUED_RESOURCES" // "REGIONAL_AUTOSCALERS" + // "REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES" + // "REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES" // "REGIONAL_INSTANCE_GROUP_MANAGERS" + // "REGIONAL_INTERNAL_LB_BACKEND_SERVICES" + // "REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES" // "RESERVATIONS" // "RESOURCE_POLICIES" // "ROUTERS" @@ -45295,17 +45695,10 @@ func (s *RegionDisksStartAsyncReplicationRequest) MarshalJSON() ([]byte, error) } type RegionDisksStopAsyncReplicationRequest struct { - // AsyncSecondaryDisk: The secondary disk to stop asynchronous - // replication to. Supplied if and only if the target disk is a primary - // disk in an asynchronously replicated pair. You can provide this as a - // partial or full URL to the resource. For example, the following are - // valid values: - - // https://www.googleapis.com/compute/v1/projects/project/zones/zone - // /disks/disk - - // https://www.googleapis.com/compute/v1/projects/project/regions/region - // /disks/disk - projects/project/zones/zone/disks/disk - - // projects/project/regions/region/disks/disk - zones/zone/disks/disk - - // regions/region/disks/disk + // AsyncSecondaryDisk: [Deprecated] The secondary disk to stop + // asynchronous replication to. This field will not be included in the + // beta or v1 APIs and will be removed from the alpha API in the near + // future. AsyncSecondaryDisk string `json:"asyncSecondaryDisk,omitempty"` // ForceSendFields is a list of field names (e.g. "AsyncSecondaryDisk") @@ -48024,7 +48417,7 @@ type ResourceCommitment struct { Amount int64 `json:"amount,omitempty,string"` // Type: Type of resource for which this commitment applies. Possible - // values are VCPU and MEMORY + // values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. // // Possible values: // "ACCELERATOR" @@ -54241,6 +54634,13 @@ type SecurityPolicyRuleRateLimitOptions struct { // "XFF_IP" EnforceOnKey string `json:"enforceOnKey,omitempty"` + // EnforceOnKeyConfigs: If specified, any combination of values of + // enforce_on_key_type/enforce_on_key_name is treated as the key on + // which ratelimit threshold/action is enforced. You can specify up to 3 + // enforce_on_key_configs. If enforce_on_key_configs is specified, + // enforce_on_key must not be specified. + EnforceOnKeyConfigs []*SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig `json:"enforceOnKeyConfigs,omitempty"` + // EnforceOnKeyName: Rate limit key name applicable only for the // following key types: HTTP_HEADER -- Name of the HTTP header whose // value is taken as the key value. HTTP_COOKIE -- Name of the HTTP @@ -54291,6 +54691,72 @@ func (s *SecurityPolicyRuleRateLimitOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig struct { + // EnforceOnKeyName: Rate limit key name applicable only for the + // following key types: HTTP_HEADER -- Name of the HTTP header whose + // value is taken as the key value. HTTP_COOKIE -- Name of the HTTP + // cookie whose value is taken as the key value. + EnforceOnKeyName string `json:"enforceOnKeyName,omitempty"` + + // EnforceOnKeyType: Determines the key to enforce the + // rate_limit_threshold on. Possible values are: - ALL: A single rate + // limit threshold is applied to all the requests matching this rule. + // This is the default value if "enforceOnKeyConfigs" is not configured. + // - IP: The source IP address of the request is the key. Each IP has + // this limit enforced separately. - HTTP_HEADER: The value of the HTTP + // header whose name is configured under "enforceOnKeyName". The key + // value is truncated to the first 128 bytes of the header value. If no + // such header is present in the request, the key type defaults to ALL. + // - XFF_IP: The first IP address (i.e. the originating client IP + // address) specified in the list of IPs under X-Forwarded-For HTTP + // header. If no such header is present or the value is not a valid IP, + // the key defaults to the source IP address of the request i.e. key + // type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is + // configured under "enforceOnKeyName". The key value is truncated to + // the first 128 bytes of the cookie value. If no such cookie is present + // in the request, the key type defaults to ALL. - HTTP_PATH: The URL + // path of the HTTP request. The key value is truncated to the first 128 + // bytes. - SNI: Server name indication in the TLS session of the HTTPS + // request. The key value is truncated to the first 128 bytes. The key + // type defaults to ALL on a HTTP session. - REGION_CODE: The + // country/region from which the request originates. + // + // Possible values: + // "ALL" + // "ALL_IPS" + // "HTTP_COOKIE" + // "HTTP_HEADER" + // "HTTP_PATH" + // "IP" + // "REGION_CODE" + // "SNI" + // "XFF_IP" + EnforceOnKeyType string `json:"enforceOnKeyType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EnforceOnKeyName") 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. "EnforceOnKeyName") 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 *SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig) MarshalJSON() ([]byte, error) { + type NoMethod SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SecurityPolicyRuleRateLimitOptionsRpcStatus: Simplified // google.rpc.Status type (omitting details). type SecurityPolicyRuleRateLimitOptionsRpcStatus struct { @@ -121894,6 +122360,14 @@ func (c *InstancesSimulateMaintenanceEventCall) RequestId(requestId string) *Ins return c } +// WithExtendedNotifications sets the optional parameter +// "withExtendedNotifications": Determines whether the customers receive +// notifications before migration. Only applicable to SF vms. +func (c *InstancesSimulateMaintenanceEventCall) WithExtendedNotifications(withExtendedNotifications bool) *InstancesSimulateMaintenanceEventCall { + c.urlParams_.Set("withExtendedNotifications", fmt.Sprint(withExtendedNotifications)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -122011,6 +122485,11 @@ func (c *InstancesSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) // "location": "query", // "type": "string" // }, + // "withExtendedNotifications": { + // "description": "Determines whether the customers receive notifications before migration. Only applicable to SF vms.", + // "location": "query", + // "type": "boolean" + // }, // "zone": { // "description": "The name of the zone for this request.", // "location": "path", @@ -122432,7 +122911,7 @@ func (r *InstancesService) Stop(project string, zone string, instance string) *I // DiscardLocalSsd sets the optional parameter "discardLocalSsd": If // true, discard the contents of any attached localSSD partitions. -// Default value is false (== preserve localSSD data). +// Default value is false. func (c *InstancesStopCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesStopCall { c.urlParams_.Set("discardLocalSsd", fmt.Sprint(discardLocalSsd)) return c @@ -122553,7 +123032,7 @@ func (c *InstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) // ], // "parameters": { // "discardLocalSsd": { - // "description": "If true, discard the contents of any attached localSSD partitions. Default value is false (== preserve localSSD data).", + // "description": "If true, discard the contents of any attached localSSD partitions. Default value is false.", // "location": "query", // "type": "boolean" // }, @@ -122630,7 +123109,7 @@ func (r *InstancesService) Suspend(project string, zone string, instance string) // DiscardLocalSsd sets the optional parameter "discardLocalSsd": If // true, discard the contents of any attached localSSD partitions. -// Default value is false (== preserve localSSD data). +// Default value is false. func (c *InstancesSuspendCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesSuspendCall { c.urlParams_.Set("discardLocalSsd", fmt.Sprint(discardLocalSsd)) return c @@ -122751,7 +123230,7 @@ func (c *InstancesSuspendCall) Do(opts ...googleapi.CallOption) (*Operation, err // ], // "parameters": { // "discardLocalSsd": { - // "description": "If true, discard the contents of any attached localSSD partitions. Default value is false (== preserve localSSD data).", + // "description": "If true, discard the contents of any attached localSSD partitions. Default value is false.", // "location": "query", // "type": "boolean" // }, @@ -129478,7 +129957,7 @@ type InterconnectsDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified interconnect. +// Delete: Deletes the specified Interconnect. // // - interconnect: Name of the interconnect to delete. // - project: Project ID for this request. @@ -129592,7 +130071,7 @@ func (c *InterconnectsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, } return ret, nil // { - // "description": "Deletes the specified interconnect.", + // "description": "Deletes the specified Interconnect.", // "flatPath": "projects/{project}/global/interconnects/{interconnect}", // "httpMethod": "DELETE", // "id": "compute.interconnects.delete", @@ -129645,8 +130124,8 @@ type InterconnectsGetCall struct { header_ http.Header } -// Get: Returns the specified interconnect. Get a list of available -// interconnects by making a list() request. +// Get: Returns the specified Interconnect. Get a list of available +// Interconnects by making a list() request. // // - interconnect: Name of the interconnect to return. // - project: Project ID for this request. @@ -129757,7 +130236,7 @@ func (c *InterconnectsGetCall) Do(opts ...googleapi.CallOption) (*Interconnect, } return ret, nil // { - // "description": "Returns the specified interconnect. Get a list of available interconnects by making a list() request.", + // "description": "Returns the specified Interconnect. Get a list of available Interconnects by making a list() request.", // "flatPath": "projects/{project}/global/interconnects/{interconnect}", // "httpMethod": "GET", // "id": "compute.interconnects.get", @@ -129807,7 +130286,7 @@ type InterconnectsGetDiagnosticsCall struct { } // GetDiagnostics: Returns the interconnectDiagnostics for the specified -// interconnect. +// Interconnect. // // - interconnect: Name of the interconnect resource to query. // - project: Project ID for this request. @@ -129919,7 +130398,7 @@ func (c *InterconnectsGetDiagnosticsCall) Do(opts ...googleapi.CallOption) (*Int } return ret, nil // { - // "description": "Returns the interconnectDiagnostics for the specified interconnect.", + // "description": "Returns the interconnectDiagnostics for the specified Interconnect.", // "flatPath": "projects/{project}/global/interconnects/{interconnect}/getDiagnostics", // "httpMethod": "GET", // "id": "compute.interconnects.getDiagnostics", @@ -130143,7 +130622,7 @@ type InterconnectsGetMacsecConfigCall struct { } // GetMacsecConfig: Returns the interconnectMacsecConfig for the -// specified interconnect. +// specified Interconnect. // // - interconnect: Name of the interconnect resource to query. // - project: Project ID for this request. @@ -130255,7 +130734,7 @@ func (c *InterconnectsGetMacsecConfigCall) Do(opts ...googleapi.CallOption) (*In } return ret, nil // { - // "description": "Returns the interconnectMacsecConfig for the specified interconnect.", + // "description": "Returns the interconnectMacsecConfig for the specified Interconnect.", // "flatPath": "projects/{project}/global/interconnects/{interconnect}/getMacsecConfig", // "httpMethod": "GET", // "id": "compute.interconnects.getMacsecConfig", @@ -130303,7 +130782,7 @@ type InterconnectsInsertCall struct { header_ http.Header } -// Insert: Creates a Interconnect in the specified project using the +// Insert: Creates an Interconnect in the specified project using the // data included in the request. // // - project: Project ID for this request. @@ -130421,7 +130900,7 @@ func (c *InterconnectsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, } return ret, nil // { - // "description": "Creates a Interconnect in the specified project using the data included in the request.", + // "description": "Creates an Interconnect in the specified project using the data included in the request.", // "flatPath": "projects/{project}/global/interconnects", // "httpMethod": "POST", // "id": "compute.interconnects.insert", @@ -130468,7 +130947,7 @@ type InterconnectsListCall struct { header_ http.Header } -// List: Retrieves the list of interconnect available to the specified +// List: Retrieves the list of Interconnects available to the specified // project. // // - project: Project ID for this request. @@ -130659,7 +131138,7 @@ func (c *InterconnectsListCall) Do(opts ...googleapi.CallOption) (*InterconnectL } return ret, nil // { - // "description": "Retrieves the list of interconnect available to the specified project.", + // "description": "Retrieves the list of Interconnects available to the specified project.", // "flatPath": "projects/{project}/global/interconnects", // "httpMethod": "GET", // "id": "compute.interconnects.list", @@ -130749,7 +131228,7 @@ type InterconnectsPatchCall struct { header_ http.Header } -// Patch: Updates the specified interconnect with the data included in +// Patch: Updates the specified Interconnect with the data included in // the request. This method supports PATCH semantics and uses the JSON // merge patch format and processing rules. // @@ -130871,7 +131350,7 @@ func (c *InterconnectsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, e } return ret, nil // { - // "description": "Updates the specified interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + // "description": "Updates the specified Interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", // "flatPath": "projects/{project}/global/interconnects/{interconnect}", // "httpMethod": "PATCH", // "id": "compute.interconnects.patch", @@ -201192,6 +201671,207 @@ func (c *ResourcePoliciesListCall) Pages(ctx context.Context, f func(*ResourcePo } } +// method id "compute.resourcePolicies.patch": + +type ResourcePoliciesPatchCall struct { + s *Service + project string + region string + resourcePolicy string + resourcepolicy *ResourcePolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Modify the specified resource policy. +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - resourcePolicy: Id of the resource policy to patch. +func (r *ResourcePoliciesService) Patch(project string, region string, resourcePolicy string, resourcepolicy *ResourcePolicy) *ResourcePoliciesPatchCall { + c := &ResourcePoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.resourcePolicy = resourcePolicy + c.resourcepolicy = resourcepolicy + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// 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. For example, consider a +// situation where you make an initial request and the 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). +func (c *ResourcePoliciesPatchCall) RequestId(requestId string) *ResourcePoliciesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": update_mask +// indicates fields to be updated as part of this request. +func (c *ResourcePoliciesPatchCall) UpdateMask(updateMask string) *ResourcePoliciesPatchCall { + 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 *ResourcePoliciesPatchCall) Fields(s ...googleapi.Field) *ResourcePoliciesPatchCall { + 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 *ResourcePoliciesPatchCall) Context(ctx context.Context) *ResourcePoliciesPatchCall { + 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 *ResourcePoliciesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ResourcePoliciesPatchCall) 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.resourcepolicy) + 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, "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}") + 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{ + "project": c.project, + "region": c.region, + "resourcePolicy": c.resourcePolicy, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.resourcePolicies.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 *ResourcePoliciesPatchCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &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": "Modify the specified resource policy.", + // "flatPath": "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}", + // "httpMethod": "PATCH", + // "id": "compute.resourcePolicies.patch", + // "parameterOrder": [ + // "project", + // "region", + // "resourcePolicy" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "Name of the region for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional 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. For example, consider a situation where you make an initial request and the 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).", + // "location": "query", + // "type": "string" + // }, + // "resourcePolicy": { + // "description": "Id of the resource policy to patch.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "update_mask indicates fields to be updated as part of this request.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}", + // "request": { + // "$ref": "ResourcePolicy" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.resourcePolicies.setIamPolicy": type ResourcePoliciesSetIamPolicyCall struct { @@ -235354,6 +236034,304 @@ func (c *ZoneOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, e } +// method id "compute.zoneQueuedResources.aggregatedList": + +type ZoneQueuedResourcesAggregatedListCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// AggregatedList: Retrieves an aggregated list of all of the queued +// resources in a project across all zones. +// +// - project: Project ID for this request. +func (r *ZoneQueuedResourcesService) AggregatedList(project string) *ZoneQueuedResourcesAggregatedListCall { + c := &ZoneQueuedResourcesAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most Compute resources +// support two types of filter expressions: expressions that support +// regular expressions and expressions that follow API improvement +// proposal AIP-160. If you want to use AIP-160, your expression must +// specify the field name, an operator, and the value that you want to +// use for filtering. The value must be a string, a number, or a +// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` +// or `:`. For example, if you are filtering Compute Engine instances, +// you can exclude instances named `example-instance` by specifying +// `name != example-instance`. The `:` operator can be used with string +// fields to match substrings. For non-string fields it is equivalent to +// the `=` operator. The `:*` comparison can be used to test whether a +// key has been defined. For example, to find all objects with `owner` +// label use: ``` labels.owner:* ``` You can also filter nested fields. +// For example, you could specify `scheduling.automaticRestart = false` +// to include instances only if they are not scheduled for automatic +// restarts. You can use filtering on nested fields to filter based on +// resource labels. To filter on multiple expressions, provide each +// separate expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` If you want to use a +// regular expression, use the `eq` (equal) or `ne` (not equal) operator +// against a single un-parenthesized expression with or without quotes +// or against multiple parenthesized expressions. Examples: `fieldname +// eq unquoted literal` `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" `(fieldname1 eq literal) +// (fieldname2 ne "literal")` The literal value is interpreted as a +// regular expression using Google RE2 library syntax. The literal value +// must match the entire field. For example, to filter for instances +// that do not end with name "instance", you would use `name ne +// .*instance`. +func (c *ZoneQueuedResourcesAggregatedListCall) Filter(filter string) *ZoneQueuedResourcesAggregatedListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// IncludeAllScopes sets the optional parameter "includeAllScopes": +// Indicates whether every visible scope for each scope type (zone, +// region, global) should be included in the response. For new resource +// types added after this field, the flag has no effect as new resource +// types will always include every visible scope for each scope type in +// response. For resource types which predate this field, if this flag +// is omitted or false, only scopes of the scope types where the +// resource type is expected to be found will be included. +func (c *ZoneQueuedResourcesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *ZoneQueuedResourcesAggregatedListCall { + c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum +// number of results per page that should be returned. If the number of +// available results is larger than `maxResults`, Compute Engine returns +// a `nextPageToken` that can be used to get the next page of results in +// subsequent list requests. Acceptable values are `0` to `500`, +// inclusive. (Default: `500`) +func (c *ZoneQueuedResourcesAggregatedListCall) MaxResults(maxResults int64) *ZoneQueuedResourcesAggregatedListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sorts list results by +// a certain order. By default, results are returned in alphanumerical +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. +func (c *ZoneQueuedResourcesAggregatedListCall) OrderBy(orderBy string) *ZoneQueuedResourcesAggregatedListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Set `pageToken` to the `nextPageToken` returned by a +// previous list request to get the next page of results. +func (c *ZoneQueuedResourcesAggregatedListCall) PageToken(pageToken string) *ZoneQueuedResourcesAggregatedListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false. +func (c *ZoneQueuedResourcesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ZoneQueuedResourcesAggregatedListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + 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 *ZoneQueuedResourcesAggregatedListCall) Fields(s ...googleapi.Field) *ZoneQueuedResourcesAggregatedListCall { + 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 *ZoneQueuedResourcesAggregatedListCall) IfNoneMatch(entityTag string) *ZoneQueuedResourcesAggregatedListCall { + 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 *ZoneQueuedResourcesAggregatedListCall) Context(ctx context.Context) *ZoneQueuedResourcesAggregatedListCall { + 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 *ZoneQueuedResourcesAggregatedListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ZoneQueuedResourcesAggregatedListCall) 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, "projects/{project}/aggregated/queuedResources") + 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{ + "project": c.project, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.zoneQueuedResources.aggregatedList" call. +// Exactly one of *QueuedResourcesAggregatedList or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *QueuedResourcesAggregatedList.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 *ZoneQueuedResourcesAggregatedListCall) Do(opts ...googleapi.CallOption) (*QueuedResourcesAggregatedList, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &QueuedResourcesAggregatedList{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves an aggregated list of all of the queued resources in a project across all zones.", + // "flatPath": "projects/{project}/aggregated/queuedResources", + // "httpMethod": "GET", + // "id": "compute.zoneQueuedResources.aggregatedList", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "filter": { + // "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.", + // "location": "query", + // "type": "string" + // }, + // "includeAllScopes": { + // "description": "Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.", + // "location": "query", + // "type": "boolean" + // }, + // "maxResults": { + // "default": "500", + // "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + // "format": "uint32", + // "location": "query", + // "minimum": "0", + // "type": "integer" + // }, + // "orderBy": { + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "location": "query", + // "type": "string" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "projects/{project}/aggregated/queuedResources", + // "response": { + // "$ref": "QueuedResourcesAggregatedList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ZoneQueuedResourcesAggregatedListCall) Pages(ctx context.Context, f func(*QueuedResourcesAggregatedList) 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 "compute.zoneQueuedResources.cancel": type ZoneQueuedResourcesCancelCall struct { diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index bc235503b6c..7dcf582a9d9 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -3418,7 +3418,7 @@ } } }, - "revision": "20221113", + "revision": "20221130", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -4379,7 +4379,7 @@ "description": "Table rule which evaluates whether the provided expression is true." }, "threshold": { - "description": "Optional. The minimum ratio of passing_rows / total_rows required to pass this rule. Default = 1.0", + "description": "Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of 0.0, 1.00 indicates default value (i.e. 1.0)", "format": "double", "type": "number" }, @@ -4603,6 +4603,11 @@ "$ref": "GoogleCloudDataplexV1DataScanExecutionSpec", "description": "Optional. DataScan execution settings. If not specified, the fields under it will use their default values." }, + "executionStatus": { + "$ref": "GoogleCloudDataplexV1DataScanExecutionStatus", + "description": "Output only. Status of the data scan execution.", + "readOnly": true + }, "labels": { "additionalProperties": { "type": "string" @@ -4814,6 +4819,23 @@ }, "type": "object" }, + "GoogleCloudDataplexV1DataScanExecutionStatus": { + "description": "Status of the data scan execution.", + "id": "GoogleCloudDataplexV1DataScanExecutionStatus", + "properties": { + "latestJobEndTime": { + "description": "The time when the latest DataScanJob ended.", + "format": "google-datetime", + "type": "string" + }, + "latestJobStartTime": { + "description": "The time when the latest DataScanJob started.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1DataScanJob": { "description": "A DataScanJob represents an instance of a data scan.", "id": "GoogleCloudDataplexV1DataScanJob", @@ -6419,6 +6441,10 @@ "readOnly": true, "type": "string" }, + "iceberg": { + "$ref": "GoogleCloudDataplexV1StorageFormatIcebergOptions", + "description": "Optional. Additional information about iceberg tables." + }, "json": { "$ref": "GoogleCloudDataplexV1StorageFormatJsonOptions", "description": "Optional. Additional information about CSV formatted data." @@ -6454,6 +6480,17 @@ }, "type": "object" }, + "GoogleCloudDataplexV1StorageFormatIcebergOptions": { + "description": "Describes Iceberg data format.", + "id": "GoogleCloudDataplexV1StorageFormatIcebergOptions", + "properties": { + "metadataLocation": { + "description": "Optional. The location of where the iceberg metadata is present, must be within the table path", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1StorageFormatJsonOptions": { "description": "Describes JSON data format.", "id": "GoogleCloudDataplexV1StorageFormatJsonOptions", diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 7c8d12e50d3..bc87ba05999 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1856,7 +1856,8 @@ type GoogleCloudDataplexV1DataQualityRule struct { TableConditionExpectation *GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation `json:"tableConditionExpectation,omitempty"` // Threshold: Optional. The minimum ratio of passing_rows / total_rows - // required to pass this rule. Default = 1.0 + // required to pass this rule, with a range of 0.0, 1.00 indicates + // default value (i.e. 1.0) Threshold float64 `json:"threshold,omitempty"` // UniquenessExpectation: ColumnAggregate rule which evaluates whether @@ -2265,6 +2266,9 @@ type GoogleCloudDataplexV1DataScan struct { // specified, the fields under it will use their default values. ExecutionSpec *GoogleCloudDataplexV1DataScanExecutionSpec `json:"executionSpec,omitempty"` + // ExecutionStatus: Output only. Status of the data scan execution. + ExecutionStatus *GoogleCloudDataplexV1DataScanExecutionStatus `json:"executionStatus,omitempty"` + // Labels: Optional. User-defined labels for the scan. Labels map[string]string `json:"labels,omitempty"` @@ -2518,6 +2522,39 @@ func (s *GoogleCloudDataplexV1DataScanExecutionSpec) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDataplexV1DataScanExecutionStatus: Status of the data scan +// execution. +type GoogleCloudDataplexV1DataScanExecutionStatus struct { + // LatestJobEndTime: The time when the latest DataScanJob ended. + LatestJobEndTime string `json:"latestJobEndTime,omitempty"` + + // LatestJobStartTime: The time when the latest DataScanJob started. + LatestJobStartTime string `json:"latestJobStartTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LatestJobEndTime") 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. "LatestJobEndTime") 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 *GoogleCloudDataplexV1DataScanExecutionStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataScanExecutionStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1DataScanJob: A DataScanJob represents an // instance of a data scan. type GoogleCloudDataplexV1DataScanJob struct { @@ -4706,6 +4743,9 @@ type GoogleCloudDataplexV1StorageFormat struct { // "UNKNOWN" - Data of an unknown format. Format string `json:"format,omitempty"` + // Iceberg: Optional. Additional information about iceberg tables. + Iceberg *GoogleCloudDataplexV1StorageFormatIcebergOptions `json:"iceberg,omitempty"` + // Json: Optional. Additional information about CSV formatted data. Json *GoogleCloudDataplexV1StorageFormatJsonOptions `json:"json,omitempty"` @@ -4786,6 +4826,37 @@ func (s *GoogleCloudDataplexV1StorageFormatCsvOptions) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDataplexV1StorageFormatIcebergOptions: Describes Iceberg +// data format. +type GoogleCloudDataplexV1StorageFormatIcebergOptions struct { + // MetadataLocation: Optional. The location of where the iceberg + // metadata is present, must be within the table path + MetadataLocation string `json:"metadataLocation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MetadataLocation") 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. "MetadataLocation") 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 *GoogleCloudDataplexV1StorageFormatIcebergOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1StorageFormatIcebergOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1StorageFormatJsonOptions: Describes JSON data // format. type GoogleCloudDataplexV1StorageFormatJsonOptions struct { diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index 28855d2be39..e9b0a1a3745 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -8491,7 +8491,7 @@ } } }, - "revision": "20221201", + "revision": "20221205", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -9164,7 +9164,7 @@ "type": "string" }, "assignedTargetingOptionIdAlias": { - "description": "Output only. An alias for the assigned targeting option id field. This field is only supported for targeting types with enum targeting enabled. This value can be used in place of the assignedTargetingOptionId required for GET and DELETE targeting methods. An alias for the assignedTargetingOptionId. This value can be used in place of `assignedTargetingOptionId` when retrieving or deleting existing targeting. This field will only be supported for assigned targeting options of the following targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", + "description": "Output only. An alias for the assigned targeting option id field. This field is only supported for targeting types with enum targeting enabled. This value can be used in place of the assignedTargetingOptionId required for GET and DELETE targeting methods. An alias for the assignedTargetingOptionId. This value can be used in place of `assignedTargetingOptionId` when retrieving or deleting existing targeting. This field will only be supported for all assigned targeting options of the following targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` This field is also supported for line item assigned targeting options of the following targeting types: * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`", "readOnly": true, "type": "string" }, diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index 5aab1fb0e36..83f1ff6dd2d 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -1775,10 +1775,8 @@ type AssignedTargetingOption struct { // targeting methods. An alias for the assignedTargetingOptionId. This // value can be used in place of `assignedTargetingOptionId` when // retrieving or deleting existing targeting. This field will only be - // supported for assigned targeting options of the following targeting - // types: * `TARGETING_TYPE_AGE_RANGE` * - // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * - // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * + // supported for all assigned targeting options of the following + // targeting types: * `TARGETING_TYPE_AGE_RANGE` * // `TARGETING_TYPE_DEVICE_TYPE` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * @@ -1787,6 +1785,10 @@ type AssignedTargetingOption struct { // `TARGETING_TYPE_PARENTAL_STATUS` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * // `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` + // This field is also supported for line item assigned targeting options + // of the following targeting types: * + // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * + // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` AssignedTargetingOptionIdAlias string `json:"assignedTargetingOptionIdAlias,omitempty"` // AudienceGroupDetails: Audience targeting details. This field will be diff --git a/metastore/v1/metastore-api.json b/metastore/v1/metastore-api.json index 9e5544fbf89..fc2ae6112da 100644 --- a/metastore/v1/metastore-api.json +++ b/metastore/v1/metastore-api.json @@ -1259,7 +1259,7 @@ } } }, - "revision": "20221103", + "revision": "20221130", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AuditConfig": { @@ -1327,7 +1327,7 @@ "type": "string" }, "name": { - "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id}", + "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id}", "type": "string" } }, @@ -2464,6 +2464,7 @@ "id": "TelemetryConfig", "properties": { "logFormat": { + "description": "The output format of the Dataproc Metastore service's logs.", "enum": [ "LOG_FORMAT_UNSPECIFIED", "LEGACY", diff --git a/metastore/v1/metastore-gen.go b/metastore/v1/metastore-gen.go index c40df9c1cc7..0fb4c348346 100644 --- a/metastore/v1/metastore-gen.go +++ b/metastore/v1/metastore-gen.go @@ -338,9 +338,9 @@ type BackendMetastore struct { // Name: The relative resource name of the metastore that is being // federated. The formats of the relative resource names for the - // currently supported metastores are listed below: Dataplex: - // projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: - // projects/{project_id} Dataproc Metastore: + // currently supported metastores are listed below: Dataplex + // projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery + // projects/{project_id} Dataproc Metastore // projects/{project_id}/locations/{location}/services/{service_id} Name string `json:"name,omitempty"` @@ -2111,6 +2111,9 @@ func (s *Status) MarshalJSON() ([]byte, error) { // TelemetryConfig: Telemetry Configuration for the Dataproc Metastore // service. type TelemetryConfig struct { + // LogFormat: The output format of the Dataproc Metastore service's + // logs. + // // Possible values: // "LOG_FORMAT_UNSPECIFIED" - The LOG_FORMAT is not set. // "LEGACY" - Logging output uses the legacy textPayload format. diff --git a/metastore/v1alpha/metastore-api.json b/metastore/v1alpha/metastore-api.json index c3f3b13486b..a2db4571a82 100644 --- a/metastore/v1alpha/metastore-api.json +++ b/metastore/v1alpha/metastore-api.json @@ -543,6 +543,34 @@ }, "services": { "methods": { + "alterLocation": { + "description": "Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:alterLocation", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.alterLocation", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+service}:alterLocation", + "request": { + "$ref": "AlterMetadataResourceLocationRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a metastore service in a project and location.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services", @@ -741,6 +769,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "moveTableToDatabase": { + "description": "Move a table to another database.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:moveTableToDatabase", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.moveTableToDatabase", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+service}:moveTableToDatabase", + "request": { + "$ref": "MoveTableToDatabaseRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates the parameters of a single service.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}", @@ -780,6 +836,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "queryMetadata": { + "description": "Query DPMS metadata.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:queryMetadata", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.queryMetadata", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+service}:queryMetadata", + "request": { + "$ref": "QueryMetadataRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "removeIamPolicy": { "description": "Removes the attached IAM policies for a resource", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/{servicesId1}:removeIamPolicy", @@ -1467,9 +1551,24 @@ } } }, - "revision": "20221012", + "revision": "20221130", "rootUrl": "https://metastore.googleapis.com/", "schemas": { + "AlterMetadataResourceLocationRequest": { + "description": "Request message for DataprocMetastore.AlterMetadataResourceLocation.", + "id": "AlterMetadataResourceLocationRequest", + "properties": { + "locationUri": { + "description": "Required. The new location URI for the metadata resource.", + "type": "string" + }, + "resourceName": { + "description": "Required. The relative metadata resource name in the following format.databases/{database_id} or databases/{database_id}/tables/{table_id} or databases/{database_id}/tables/{table_id}/partitions/{partition_id}", + "type": "string" + } + }, + "type": "object" + }, "AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", "id": "AuditConfig", @@ -1560,7 +1659,7 @@ "type": "string" }, "name": { - "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id}", + "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id}", "type": "string" } }, @@ -2337,6 +2436,25 @@ }, "type": "object" }, + "MoveTableToDatabaseRequest": { + "description": "Request message for DataprocMetastore.MoveTableToDatabase.", + "id": "MoveTableToDatabaseRequest", + "properties": { + "dbName": { + "description": "Required. The name of the database where the table resides.", + "type": "string" + }, + "destinationDbName": { + "description": "Required. The name of the database where the table should be moved.", + "type": "string" + }, + "tableName": { + "description": "Required. The name of the table to be moved.", + "type": "string" + } + }, + "type": "object" + }, "NetworkConfig": { "description": "Network configuration for the Dataproc Metastore service.", "id": "NetworkConfig", @@ -2461,6 +2579,28 @@ }, "type": "object" }, + "QueryMetadataRequest": { + "description": "Request message for DataprocMetastore.QueryMetadata.", + "id": "QueryMetadataRequest", + "properties": { + "query": { + "description": "Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.", + "type": "string" + } + }, + "type": "object" + }, + "QueryMetadataResponse": { + "description": "Response message for DataprocMetastore.QueryMetadata.", + "id": "QueryMetadataResponse", + "properties": { + "resultManifestUri": { + "description": "The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with QueryMetadataResponse. The content of the URI is not retriable until the long-running operation query against the metadata finishes.", + "type": "string" + } + }, + "type": "object" + }, "RemoveIamPolicyRequest": { "description": "Request message for DataprocMetastore.RemoveIamPolicy.", "id": "RemoveIamPolicyRequest", @@ -2472,7 +2612,7 @@ "id": "RemoveIamPolicyResponse", "properties": { "success": { - "description": "whether related policies are removed", + "description": "True if the policy is successfully removed.", "type": "boolean" } }, @@ -2784,6 +2924,7 @@ "id": "TelemetryConfig", "properties": { "logFormat": { + "description": "The output format of the Dataproc Metastore service's logs.", "enum": [ "LOG_FORMAT_UNSPECIFIED", "LEGACY", diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index b2ec22eeb6a..05d081d101e 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -242,6 +242,42 @@ type ProjectsLocationsServicesMetadataImportsService struct { s *APIService } +// AlterMetadataResourceLocationRequest: Request message for +// DataprocMetastore.AlterMetadataResourceLocation. +type AlterMetadataResourceLocationRequest struct { + // LocationUri: Required. The new location URI for the metadata + // resource. + LocationUri string `json:"locationUri,omitempty"` + + // ResourceName: Required. The relative metadata resource name in the + // following format.databases/{database_id} or + // databases/{database_id}/tables/{table_id} or + // databases/{database_id}/tables/{table_id}/partitions/{partition_id} + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LocationUri") 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. "LocationUri") 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 *AlterMetadataResourceLocationRequest) MarshalJSON() ([]byte, error) { + type NoMethod AlterMetadataResourceLocationRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must @@ -394,9 +430,9 @@ type BackendMetastore struct { // Name: The relative resource name of the metastore that is being // federated. The formats of the relative resource names for the - // currently supported metastores are listed below: Dataplex: - // projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: - // projects/{project_id} Dataproc Metastore: + // currently supported metastores are listed below: Dataplex + // projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery + // projects/{project_id} Dataproc Metastore // projects/{project_id}/locations/{location}/services/{service_id} Name string `json:"name,omitempty"` @@ -1676,6 +1712,42 @@ func (s *MetadataManagementActivity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MoveTableToDatabaseRequest: Request message for +// DataprocMetastore.MoveTableToDatabase. +type MoveTableToDatabaseRequest struct { + // DbName: Required. The name of the database where the table resides. + DbName string `json:"dbName,omitempty"` + + // DestinationDbName: Required. The name of the database where the table + // should be moved. + DestinationDbName string `json:"destinationDbName,omitempty"` + + // TableName: Required. The name of the table to be moved. + TableName string `json:"tableName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DbName") 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. "DbName") 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 *MoveTableToDatabaseRequest) MarshalJSON() ([]byte, error) { + type NoMethod MoveTableToDatabaseRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // NetworkConfig: Network configuration for the Dataproc Metastore // service. type NetworkConfig struct { @@ -1928,6 +2000,69 @@ func (s *Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QueryMetadataRequest: Request message for +// DataprocMetastore.QueryMetadata. +type QueryMetadataRequest struct { + // Query: Required. A read-only SQL query to execute against the + // metadata database. The query cannot change or mutate the data. + Query string `json:"query,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Query") 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. "Query") 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 *QueryMetadataRequest) MarshalJSON() ([]byte, error) { + type NoMethod QueryMetadataRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// QueryMetadataResponse: Response message for +// DataprocMetastore.QueryMetadata. +type QueryMetadataResponse struct { + // ResultManifestUri: The manifest URI is link to a JSON instance in + // Cloud Storage. This instance manifests immediately along with + // QueryMetadataResponse. The content of the URI is not retriable until + // the long-running operation query against the metadata finishes. + ResultManifestUri string `json:"resultManifestUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResultManifestUri") + // 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. "ResultManifestUri") 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 *QueryMetadataResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryMetadataResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RemoveIamPolicyRequest: Request message for // DataprocMetastore.RemoveIamPolicy. type RemoveIamPolicyRequest struct { @@ -1936,7 +2071,7 @@ type RemoveIamPolicyRequest struct { // RemoveIamPolicyResponse: Response message for // DataprocMetastore.RemoveIamPolicy. type RemoveIamPolicyResponse struct { - // Success: whether related policies are removed + // Success: True if the policy is successfully removed. Success bool `json:"success,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -2351,6 +2486,9 @@ func (s *Status) MarshalJSON() ([]byte, error) { // TelemetryConfig: Telemetry Configuration for the Dataproc Metastore // service. type TelemetryConfig struct { + // LogFormat: The output format of the Dataproc Metastore service's + // logs. + // // Possible values: // "LOG_FORMAT_UNSPECIFIED" - The LOG_FORMAT is not set. // "LEGACY" - Logging output uses the legacy textPayload format. @@ -4661,6 +4799,154 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( } } +// method id "metastore.projects.locations.services.alterLocation": + +type ProjectsLocationsServicesAlterLocationCall struct { + s *APIService + service string + altermetadataresourcelocationrequest *AlterMetadataResourceLocationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AlterLocation: Alter metadata resource location. The metadata +// resource can be a database, table, or partition. This functionality +// only updates the parent directory for the respective metadata +// resource and does not transfer any existing data to the new location. +// +// - service: The relative resource name of the metastore service to +// mutate metadata, in the following +// format:projects/{project_id}/locations/{location_id}/services/{servi +// ce_id}. +func (r *ProjectsLocationsServicesService) AlterLocation(service string, altermetadataresourcelocationrequest *AlterMetadataResourceLocationRequest) *ProjectsLocationsServicesAlterLocationCall { + c := &ProjectsLocationsServicesAlterLocationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.service = service + c.altermetadataresourcelocationrequest = altermetadataresourcelocationrequest + 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 *ProjectsLocationsServicesAlterLocationCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesAlterLocationCall { + 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 *ProjectsLocationsServicesAlterLocationCall) Context(ctx context.Context) *ProjectsLocationsServicesAlterLocationCall { + 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 *ProjectsLocationsServicesAlterLocationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesAlterLocationCall) 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.altermetadataresourcelocationrequest) + 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, "v1alpha/{+service}:alterLocation") + 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{ + "service": c.service, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.alterLocation" 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 *ProjectsLocationsServicesAlterLocationCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &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": "Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:alterLocation", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.services.alterLocation", + // "parameterOrder": [ + // "service" + // ], + // "parameters": { + // "service": { + // "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+service}:alterLocation", + // "request": { + // "$ref": "AlterMetadataResourceLocationRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "metastore.projects.locations.services.create": type ProjectsLocationsServicesCreateCall struct { @@ -5690,6 +5976,151 @@ func (c *ProjectsLocationsServicesListCall) Pages(ctx context.Context, f func(*L } } +// method id "metastore.projects.locations.services.moveTableToDatabase": + +type ProjectsLocationsServicesMoveTableToDatabaseCall struct { + s *APIService + service string + movetabletodatabaserequest *MoveTableToDatabaseRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// MoveTableToDatabase: Move a table to another database. +// +// - service: The relative resource name of the metastore service to +// mutate metadata, in the following +// format:projects/{project_id}/locations/{location_id}/services/{servi +// ce_id}. +func (r *ProjectsLocationsServicesService) MoveTableToDatabase(service string, movetabletodatabaserequest *MoveTableToDatabaseRequest) *ProjectsLocationsServicesMoveTableToDatabaseCall { + c := &ProjectsLocationsServicesMoveTableToDatabaseCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.service = service + c.movetabletodatabaserequest = movetabletodatabaserequest + 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 *ProjectsLocationsServicesMoveTableToDatabaseCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesMoveTableToDatabaseCall { + 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 *ProjectsLocationsServicesMoveTableToDatabaseCall) Context(ctx context.Context) *ProjectsLocationsServicesMoveTableToDatabaseCall { + 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 *ProjectsLocationsServicesMoveTableToDatabaseCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesMoveTableToDatabaseCall) 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.movetabletodatabaserequest) + 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, "v1alpha/{+service}:moveTableToDatabase") + 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{ + "service": c.service, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.moveTableToDatabase" 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 *ProjectsLocationsServicesMoveTableToDatabaseCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &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": "Move a table to another database.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:moveTableToDatabase", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.services.moveTableToDatabase", + // "parameterOrder": [ + // "service" + // ], + // "parameters": { + // "service": { + // "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+service}:moveTableToDatabase", + // "request": { + // "$ref": "MoveTableToDatabaseRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "metastore.projects.locations.services.patch": type ProjectsLocationsServicesPatchCall struct { @@ -5871,6 +6302,151 @@ func (c *ProjectsLocationsServicesPatchCall) Do(opts ...googleapi.CallOption) (* } +// method id "metastore.projects.locations.services.queryMetadata": + +type ProjectsLocationsServicesQueryMetadataCall struct { + s *APIService + service string + querymetadatarequest *QueryMetadataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// QueryMetadata: Query DPMS metadata. +// +// - service: The relative resource name of the metastore service to +// query metadata, in the following +// format:projects/{project_id}/locations/{location_id}/services/{servi +// ce_id}. +func (r *ProjectsLocationsServicesService) QueryMetadata(service string, querymetadatarequest *QueryMetadataRequest) *ProjectsLocationsServicesQueryMetadataCall { + c := &ProjectsLocationsServicesQueryMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.service = service + c.querymetadatarequest = querymetadatarequest + 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 *ProjectsLocationsServicesQueryMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesQueryMetadataCall { + 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 *ProjectsLocationsServicesQueryMetadataCall) Context(ctx context.Context) *ProjectsLocationsServicesQueryMetadataCall { + 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 *ProjectsLocationsServicesQueryMetadataCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesQueryMetadataCall) 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.querymetadatarequest) + 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, "v1alpha/{+service}:queryMetadata") + 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{ + "service": c.service, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.queryMetadata" 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 *ProjectsLocationsServicesQueryMetadataCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &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": "Query DPMS metadata.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:queryMetadata", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.services.queryMetadata", + // "parameterOrder": [ + // "service" + // ], + // "parameters": { + // "service": { + // "description": "Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+service}:queryMetadata", + // "request": { + // "$ref": "QueryMetadataRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "metastore.projects.locations.services.removeIamPolicy": type ProjectsLocationsServicesRemoveIamPolicyCall struct { diff --git a/metastore/v1beta/metastore-api.json b/metastore/v1beta/metastore-api.json index 903f6d106c1..7bcb8112278 100644 --- a/metastore/v1beta/metastore-api.json +++ b/metastore/v1beta/metastore-api.json @@ -543,6 +543,34 @@ }, "services": { "methods": { + "alterLocation": { + "description": "Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:alterLocation", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.alterLocation", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+service}:alterLocation", + "request": { + "$ref": "AlterMetadataResourceLocationRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a metastore service in a project and location.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services", @@ -741,6 +769,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "moveTableToDatabase": { + "description": "Move a table to another database.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:moveTableToDatabase", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.moveTableToDatabase", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+service}:moveTableToDatabase", + "request": { + "$ref": "MoveTableToDatabaseRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates the parameters of a single service.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}", @@ -780,6 +836,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "queryMetadata": { + "description": "Query DPMS metadata.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:queryMetadata", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.queryMetadata", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+service}:queryMetadata", + "request": { + "$ref": "QueryMetadataRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "removeIamPolicy": { "description": "Removes the attached IAM policies for a resource", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/{servicesId1}:removeIamPolicy", @@ -1467,9 +1551,24 @@ } } }, - "revision": "20221012", + "revision": "20221130", "rootUrl": "https://metastore.googleapis.com/", "schemas": { + "AlterMetadataResourceLocationRequest": { + "description": "Request message for DataprocMetastore.AlterMetadataResourceLocation.", + "id": "AlterMetadataResourceLocationRequest", + "properties": { + "locationUri": { + "description": "Required. The new location URI for the metadata resource.", + "type": "string" + }, + "resourceName": { + "description": "Required. The relative metadata resource name in the following format.databases/{database_id} or databases/{database_id}/tables/{table_id} or databases/{database_id}/tables/{table_id}/partitions/{partition_id}", + "type": "string" + } + }, + "type": "object" + }, "AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", "id": "AuditConfig", @@ -1560,7 +1659,7 @@ "type": "string" }, "name": { - "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id}", + "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id}", "type": "string" } }, @@ -2337,6 +2436,25 @@ }, "type": "object" }, + "MoveTableToDatabaseRequest": { + "description": "Request message for DataprocMetastore.MoveTableToDatabase.", + "id": "MoveTableToDatabaseRequest", + "properties": { + "dbName": { + "description": "Required. The name of the database where the table resides.", + "type": "string" + }, + "destinationDbName": { + "description": "Required. The name of the database where the table should be moved.", + "type": "string" + }, + "tableName": { + "description": "Required. The name of the table to be moved.", + "type": "string" + } + }, + "type": "object" + }, "NetworkConfig": { "description": "Network configuration for the Dataproc Metastore service.", "id": "NetworkConfig", @@ -2461,6 +2579,28 @@ }, "type": "object" }, + "QueryMetadataRequest": { + "description": "Request message for DataprocMetastore.QueryMetadata.", + "id": "QueryMetadataRequest", + "properties": { + "query": { + "description": "Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.", + "type": "string" + } + }, + "type": "object" + }, + "QueryMetadataResponse": { + "description": "Response message for DataprocMetastore.QueryMetadata.", + "id": "QueryMetadataResponse", + "properties": { + "resultManifestUri": { + "description": "The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with QueryMetadataResponse. The content of the URI is not retriable until the long-running operation query against the metadata finishes.", + "type": "string" + } + }, + "type": "object" + }, "RemoveIamPolicyRequest": { "description": "Request message for DataprocMetastore.RemoveIamPolicy.", "id": "RemoveIamPolicyRequest", @@ -2472,7 +2612,7 @@ "id": "RemoveIamPolicyResponse", "properties": { "success": { - "description": "whether related policies are removed", + "description": "True if the policy is successfully removed.", "type": "boolean" } }, @@ -2784,6 +2924,7 @@ "id": "TelemetryConfig", "properties": { "logFormat": { + "description": "The output format of the Dataproc Metastore service's logs.", "enum": [ "LOG_FORMAT_UNSPECIFIED", "LEGACY", diff --git a/metastore/v1beta/metastore-gen.go b/metastore/v1beta/metastore-gen.go index f3fa513d809..549d838003d 100644 --- a/metastore/v1beta/metastore-gen.go +++ b/metastore/v1beta/metastore-gen.go @@ -242,6 +242,42 @@ type ProjectsLocationsServicesMetadataImportsService struct { s *APIService } +// AlterMetadataResourceLocationRequest: Request message for +// DataprocMetastore.AlterMetadataResourceLocation. +type AlterMetadataResourceLocationRequest struct { + // LocationUri: Required. The new location URI for the metadata + // resource. + LocationUri string `json:"locationUri,omitempty"` + + // ResourceName: Required. The relative metadata resource name in the + // following format.databases/{database_id} or + // databases/{database_id}/tables/{table_id} or + // databases/{database_id}/tables/{table_id}/partitions/{partition_id} + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LocationUri") 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. "LocationUri") 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 *AlterMetadataResourceLocationRequest) MarshalJSON() ([]byte, error) { + type NoMethod AlterMetadataResourceLocationRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must @@ -394,9 +430,9 @@ type BackendMetastore struct { // Name: The relative resource name of the metastore that is being // federated. The formats of the relative resource names for the - // currently supported metastores are listed below: Dataplex: - // projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: - // projects/{project_id} Dataproc Metastore: + // currently supported metastores are listed below: Dataplex + // projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery + // projects/{project_id} Dataproc Metastore // projects/{project_id}/locations/{location}/services/{service_id} Name string `json:"name,omitempty"` @@ -1676,6 +1712,42 @@ func (s *MetadataManagementActivity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MoveTableToDatabaseRequest: Request message for +// DataprocMetastore.MoveTableToDatabase. +type MoveTableToDatabaseRequest struct { + // DbName: Required. The name of the database where the table resides. + DbName string `json:"dbName,omitempty"` + + // DestinationDbName: Required. The name of the database where the table + // should be moved. + DestinationDbName string `json:"destinationDbName,omitempty"` + + // TableName: Required. The name of the table to be moved. + TableName string `json:"tableName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DbName") 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. "DbName") 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 *MoveTableToDatabaseRequest) MarshalJSON() ([]byte, error) { + type NoMethod MoveTableToDatabaseRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // NetworkConfig: Network configuration for the Dataproc Metastore // service. type NetworkConfig struct { @@ -1928,6 +2000,69 @@ func (s *Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QueryMetadataRequest: Request message for +// DataprocMetastore.QueryMetadata. +type QueryMetadataRequest struct { + // Query: Required. A read-only SQL query to execute against the + // metadata database. The query cannot change or mutate the data. + Query string `json:"query,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Query") 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. "Query") 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 *QueryMetadataRequest) MarshalJSON() ([]byte, error) { + type NoMethod QueryMetadataRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// QueryMetadataResponse: Response message for +// DataprocMetastore.QueryMetadata. +type QueryMetadataResponse struct { + // ResultManifestUri: The manifest URI is link to a JSON instance in + // Cloud Storage. This instance manifests immediately along with + // QueryMetadataResponse. The content of the URI is not retriable until + // the long-running operation query against the metadata finishes. + ResultManifestUri string `json:"resultManifestUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResultManifestUri") + // 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. "ResultManifestUri") 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 *QueryMetadataResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryMetadataResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RemoveIamPolicyRequest: Request message for // DataprocMetastore.RemoveIamPolicy. type RemoveIamPolicyRequest struct { @@ -1936,7 +2071,7 @@ type RemoveIamPolicyRequest struct { // RemoveIamPolicyResponse: Response message for // DataprocMetastore.RemoveIamPolicy. type RemoveIamPolicyResponse struct { - // Success: whether related policies are removed + // Success: True if the policy is successfully removed. Success bool `json:"success,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -2351,6 +2486,9 @@ func (s *Status) MarshalJSON() ([]byte, error) { // TelemetryConfig: Telemetry Configuration for the Dataproc Metastore // service. type TelemetryConfig struct { + // LogFormat: The output format of the Dataproc Metastore service's + // logs. + // // Possible values: // "LOG_FORMAT_UNSPECIFIED" - The LOG_FORMAT is not set. // "LEGACY" - Logging output uses the legacy textPayload format. @@ -4661,6 +4799,154 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( } } +// method id "metastore.projects.locations.services.alterLocation": + +type ProjectsLocationsServicesAlterLocationCall struct { + s *APIService + service string + altermetadataresourcelocationrequest *AlterMetadataResourceLocationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AlterLocation: Alter metadata resource location. The metadata +// resource can be a database, table, or partition. This functionality +// only updates the parent directory for the respective metadata +// resource and does not transfer any existing data to the new location. +// +// - service: The relative resource name of the metastore service to +// mutate metadata, in the following +// format:projects/{project_id}/locations/{location_id}/services/{servi +// ce_id}. +func (r *ProjectsLocationsServicesService) AlterLocation(service string, altermetadataresourcelocationrequest *AlterMetadataResourceLocationRequest) *ProjectsLocationsServicesAlterLocationCall { + c := &ProjectsLocationsServicesAlterLocationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.service = service + c.altermetadataresourcelocationrequest = altermetadataresourcelocationrequest + 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 *ProjectsLocationsServicesAlterLocationCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesAlterLocationCall { + 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 *ProjectsLocationsServicesAlterLocationCall) Context(ctx context.Context) *ProjectsLocationsServicesAlterLocationCall { + 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 *ProjectsLocationsServicesAlterLocationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesAlterLocationCall) 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.altermetadataresourcelocationrequest) + 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/{+service}:alterLocation") + 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{ + "service": c.service, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.alterLocation" 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 *ProjectsLocationsServicesAlterLocationCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &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": "Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:alterLocation", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.services.alterLocation", + // "parameterOrder": [ + // "service" + // ], + // "parameters": { + // "service": { + // "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+service}:alterLocation", + // "request": { + // "$ref": "AlterMetadataResourceLocationRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "metastore.projects.locations.services.create": type ProjectsLocationsServicesCreateCall struct { @@ -5690,6 +5976,151 @@ func (c *ProjectsLocationsServicesListCall) Pages(ctx context.Context, f func(*L } } +// method id "metastore.projects.locations.services.moveTableToDatabase": + +type ProjectsLocationsServicesMoveTableToDatabaseCall struct { + s *APIService + service string + movetabletodatabaserequest *MoveTableToDatabaseRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// MoveTableToDatabase: Move a table to another database. +// +// - service: The relative resource name of the metastore service to +// mutate metadata, in the following +// format:projects/{project_id}/locations/{location_id}/services/{servi +// ce_id}. +func (r *ProjectsLocationsServicesService) MoveTableToDatabase(service string, movetabletodatabaserequest *MoveTableToDatabaseRequest) *ProjectsLocationsServicesMoveTableToDatabaseCall { + c := &ProjectsLocationsServicesMoveTableToDatabaseCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.service = service + c.movetabletodatabaserequest = movetabletodatabaserequest + 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 *ProjectsLocationsServicesMoveTableToDatabaseCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesMoveTableToDatabaseCall { + 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 *ProjectsLocationsServicesMoveTableToDatabaseCall) Context(ctx context.Context) *ProjectsLocationsServicesMoveTableToDatabaseCall { + 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 *ProjectsLocationsServicesMoveTableToDatabaseCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesMoveTableToDatabaseCall) 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.movetabletodatabaserequest) + 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/{+service}:moveTableToDatabase") + 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{ + "service": c.service, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.moveTableToDatabase" 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 *ProjectsLocationsServicesMoveTableToDatabaseCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &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": "Move a table to another database.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:moveTableToDatabase", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.services.moveTableToDatabase", + // "parameterOrder": [ + // "service" + // ], + // "parameters": { + // "service": { + // "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+service}:moveTableToDatabase", + // "request": { + // "$ref": "MoveTableToDatabaseRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "metastore.projects.locations.services.patch": type ProjectsLocationsServicesPatchCall struct { @@ -5871,6 +6302,151 @@ func (c *ProjectsLocationsServicesPatchCall) Do(opts ...googleapi.CallOption) (* } +// method id "metastore.projects.locations.services.queryMetadata": + +type ProjectsLocationsServicesQueryMetadataCall struct { + s *APIService + service string + querymetadatarequest *QueryMetadataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// QueryMetadata: Query DPMS metadata. +// +// - service: The relative resource name of the metastore service to +// query metadata, in the following +// format:projects/{project_id}/locations/{location_id}/services/{servi +// ce_id}. +func (r *ProjectsLocationsServicesService) QueryMetadata(service string, querymetadatarequest *QueryMetadataRequest) *ProjectsLocationsServicesQueryMetadataCall { + c := &ProjectsLocationsServicesQueryMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.service = service + c.querymetadatarequest = querymetadatarequest + 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 *ProjectsLocationsServicesQueryMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesQueryMetadataCall { + 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 *ProjectsLocationsServicesQueryMetadataCall) Context(ctx context.Context) *ProjectsLocationsServicesQueryMetadataCall { + 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 *ProjectsLocationsServicesQueryMetadataCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesQueryMetadataCall) 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.querymetadatarequest) + 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/{+service}:queryMetadata") + 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{ + "service": c.service, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.services.queryMetadata" 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 *ProjectsLocationsServicesQueryMetadataCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &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": "Query DPMS metadata.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:queryMetadata", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.services.queryMetadata", + // "parameterOrder": [ + // "service" + // ], + // "parameters": { + // "service": { + // "description": "Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+service}:queryMetadata", + // "request": { + // "$ref": "QueryMetadataRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "metastore.projects.locations.services.removeIamPolicy": type ProjectsLocationsServicesRemoveIamPolicyCall struct { diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index 31a6e577631..674cbcee402 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20221025", + "revision": "20221117", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -656,6 +656,40 @@ }, "type": "object" }, + "AppEngineVersionEndpoint": { + "description": "Wrapper for app engine service version attributes.", + "id": "AppEngineVersionEndpoint", + "properties": { + "uri": { + "description": "An [App Engine](https://cloud.google.com/appengine) [service version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) name.", + "type": "string" + } + }, + "type": "object" + }, + "AppEngineVersionInfo": { + "description": "For display only. Metadata associated with an App Engine version.", + "id": "AppEngineVersionInfo", + "properties": { + "displayName": { + "description": "Name of an App Engine version.", + "type": "string" + }, + "environment": { + "description": "App Engine execution environment for a version.", + "type": "string" + }, + "runtime": { + "description": "Runtime of the App Engine version.", + "type": "string" + }, + "uri": { + "description": "URI of an App Engine version.", + "type": "string" + } + }, + "type": "object" + }, "AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", "id": "AuditConfig", @@ -767,6 +801,40 @@ }, "type": "object" }, + "CloudRunRevisionEndpoint": { + "description": "Wrapper for Cloud Run revision attributes.", + "id": "CloudRunRevisionEndpoint", + "properties": { + "uri": { + "description": "A [Cloud Run](https://cloud.google.com/run) [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) URI. The format is: projects/{project}/locations/{location}/revisions/{revision}", + "type": "string" + } + }, + "type": "object" + }, + "CloudRunRevisionInfo": { + "description": "For display only. Metadata associated with a Cloud Run revision.", + "id": "CloudRunRevisionInfo", + "properties": { + "displayName": { + "description": "Name of a Cloud Run revision.", + "type": "string" + }, + "location": { + "description": "Location in which this revision is deployed.", + "type": "string" + }, + "serviceUri": { + "description": "URI of Cloud Run service this revision belongs to.", + "type": "string" + }, + "uri": { + "description": "URI of a Cloud Run revision.", + "type": "string" + } + }, + "type": "object" + }, "CloudSQLInstanceInfo": { "description": "For display only. Metadata associated with a Cloud SQL instance.", "id": "CloudSQLInstanceInfo", @@ -939,7 +1007,8 @@ "CLOUD_FUNCTION_NOT_ACTIVE", "VPC_CONNECTOR_NOT_SET", "VPC_CONNECTOR_NOT_RUNNING", - "PSC_CONNECTION_NOT_ACCEPTED" + "PSC_CONNECTION_NOT_ACCEPTED", + "CLOUD_RUN_REVISION_NOT_READY" ], "enumDescriptions": [ "Cause is unspecified.", @@ -976,7 +1045,8 @@ "Packet could be dropped because the Cloud Function is not in an active status.", "Packet could be dropped because no VPC connector is set.", "Packet could be dropped because the VPC connector is not in a running state.", - "The Private Service Connect endpoint is in a project that is not approved to connect to the service." + "The Private Service Connect endpoint is in a project that is not approved to connect to the service.", + "Packet sent from a Cloud Run revision that is not ready." ], "type": "string" }, @@ -997,10 +1067,18 @@ "description": "Source or destination of the Connectivity Test.", "id": "Endpoint", "properties": { + "appEngineVersion": { + "$ref": "AppEngineVersionEndpoint", + "description": "An [App Engine](https://cloud.google.com/appengine) [service version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions)." + }, "cloudFunction": { "$ref": "CloudFunctionEndpoint", "description": "A [Cloud Function](https://cloud.google.com/functions)." }, + "cloudRunRevision": { + "$ref": "CloudRunRevisionEndpoint", + "description": "A [Cloud Run](https://cloud.google.com/run) [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)" + }, "cloudSqlInstance": { "description": "A [Cloud SQL](https://cloud.google.com/sql) instance URI.", "type": "string" @@ -1848,6 +1926,10 @@ "$ref": "AbortInfo", "description": "Display information of the final state \"abort\" and reason." }, + "appEngineVersion": { + "$ref": "AppEngineVersionInfo", + "description": "Display information of an App Engine service version." + }, "causesDrop": { "description": "This is a step that leads to the final state Drop.", "type": "boolean" @@ -1856,6 +1938,10 @@ "$ref": "CloudFunctionInfo", "description": "Display information of a Cloud Function." }, + "cloudRunRevision": { + "$ref": "CloudRunRevisionInfo", + "description": "Display information of a Cloud Run revision." + }, "cloudSqlInstance": { "$ref": "CloudSQLInstanceInfo", "description": "Display information of a Cloud SQL instance." @@ -1922,6 +2008,8 @@ "START_FROM_GKE_MASTER", "START_FROM_CLOUD_SQL_INSTANCE", "START_FROM_CLOUD_FUNCTION", + "START_FROM_APP_ENGINE_VERSION", + "START_FROM_CLOUD_RUN_REVISION", "APPLY_INGRESS_FIREWALL_RULE", "APPLY_EGRESS_FIREWALL_RULE", "APPLY_ROUTE", @@ -1949,6 +2037,8 @@ "Initial state: packet originating from a Google Kubernetes Engine cluster master. A GKEMasterInfo is populated with starting instance information.", "Initial state: packet originating from a Cloud SQL instance. A CloudSQLInstanceInfo is populated with starting instance information.", "Initial state: packet originating from a Cloud Function. A CloudFunctionInfo is populated with starting function information.", + "Initial state: packet originating from an App Engine service version. An AppEngineVersionInfo is populated with starting version information.", + "Initial state: packet originating from a Cloud Run revision. A CloudRunRevisionInfo is populated with starting revision information.", "Config checking state: verify ingress firewall rule.", "Config checking state: verify egress firewall rule.", "Config checking state: verify route.", diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index f443ea876f4..00473ec8876 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -277,6 +277,75 @@ func (s *AbortInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AppEngineVersionEndpoint: Wrapper for app engine service version +// attributes. +type AppEngineVersionEndpoint struct { + // Uri: An App Engine (https://cloud.google.com/appengine) [service + // version](https://cloud.google.com/appengine/docs/admin-api/reference/r + // est/v1/apps.services.versions) name. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Uri") 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. "Uri") 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 *AppEngineVersionEndpoint) MarshalJSON() ([]byte, error) { + type NoMethod AppEngineVersionEndpoint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppEngineVersionInfo: For display only. Metadata associated with an +// App Engine version. +type AppEngineVersionInfo struct { + // DisplayName: Name of an App Engine version. + DisplayName string `json:"displayName,omitempty"` + + // Environment: App Engine execution environment for a version. + Environment string `json:"environment,omitempty"` + + // Runtime: Runtime of the App Engine version. + Runtime string `json:"runtime,omitempty"` + + // Uri: URI of an App Engine version. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") 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. "DisplayName") 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 *AppEngineVersionInfo) MarshalJSON() ([]byte, error) { + type NoMethod AppEngineVersionInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must @@ -524,6 +593,75 @@ func (s *CloudFunctionInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudRunRevisionEndpoint: Wrapper for Cloud Run revision attributes. +type CloudRunRevisionEndpoint struct { + // Uri: A Cloud Run (https://cloud.google.com/run) + // [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespa + // ces.revisions/get) URI. The format is: + // projects/{project}/locations/{location}/revisions/{revision} + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Uri") 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. "Uri") 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 *CloudRunRevisionEndpoint) MarshalJSON() ([]byte, error) { + type NoMethod CloudRunRevisionEndpoint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudRunRevisionInfo: For display only. Metadata associated with a +// Cloud Run revision. +type CloudRunRevisionInfo struct { + // DisplayName: Name of a Cloud Run revision. + DisplayName string `json:"displayName,omitempty"` + + // Location: Location in which this revision is deployed. + Location string `json:"location,omitempty"` + + // ServiceUri: URI of Cloud Run service this revision belongs to. + ServiceUri string `json:"serviceUri,omitempty"` + + // Uri: URI of a Cloud Run revision. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") 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. "DisplayName") 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 *CloudRunRevisionInfo) MarshalJSON() ([]byte, error) { + type NoMethod CloudRunRevisionInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CloudSQLInstanceInfo: For display only. Metadata associated with a // Cloud SQL instance. type CloudSQLInstanceInfo struct { @@ -817,6 +955,8 @@ type DropInfo struct { // "PSC_CONNECTION_NOT_ACCEPTED" - The Private Service Connect // endpoint is in a project that is not approved to connect to the // service. + // "CLOUD_RUN_REVISION_NOT_READY" - Packet sent from a Cloud Run + // revision that is not ready. Cause string `json:"cause,omitempty"` // ResourceUri: URI of the resource that caused the drop. @@ -858,9 +998,20 @@ type Empty struct { // Endpoint: Source or destination of the Connectivity Test. type Endpoint struct { + // AppEngineVersion: An App Engine (https://cloud.google.com/appengine) + // [service + // version](https://cloud.google.com/appengine/docs/admin-api/reference/r + // est/v1/apps.services.versions). + AppEngineVersion *AppEngineVersionEndpoint `json:"appEngineVersion,omitempty"` + // CloudFunction: A Cloud Function (https://cloud.google.com/functions). CloudFunction *CloudFunctionEndpoint `json:"cloudFunction,omitempty"` + // CloudRunRevision: A Cloud Run (https://cloud.google.com/run) + // [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespa + // ces.revisions/get) + CloudRunRevision *CloudRunRevisionEndpoint `json:"cloudRunRevision,omitempty"` + // CloudSqlInstance: A Cloud SQL (https://cloud.google.com/sql) instance // URI. CloudSqlInstance string `json:"cloudSqlInstance,omitempty"` @@ -909,7 +1060,7 @@ type Endpoint struct { // project. ProjectId string `json:"projectId,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudFunction") to + // ForceSendFields is a list of field names (e.g. "AppEngineVersion") 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 @@ -917,12 +1068,13 @@ type Endpoint struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CloudFunction") 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. "AppEngineVersion") 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:"-"` } @@ -2102,12 +2254,19 @@ type Step struct { // Abort: Display information of the final state "abort" and reason. Abort *AbortInfo `json:"abort,omitempty"` + // AppEngineVersion: Display information of an App Engine service + // version. + AppEngineVersion *AppEngineVersionInfo `json:"appEngineVersion,omitempty"` + // CausesDrop: This is a step that leads to the final state Drop. CausesDrop bool `json:"causesDrop,omitempty"` // CloudFunction: Display information of a Cloud Function. CloudFunction *CloudFunctionInfo `json:"cloudFunction,omitempty"` + // CloudRunRevision: Display information of a Cloud Run revision. + CloudRunRevision *CloudRunRevisionInfo `json:"cloudRunRevision,omitempty"` + // CloudSqlInstance: Display information of a Cloud SQL instance. CloudSqlInstance *CloudSQLInstanceInfo `json:"cloudSqlInstance,omitempty"` @@ -2179,6 +2338,12 @@ type Step struct { // "START_FROM_CLOUD_FUNCTION" - Initial state: packet originating // from a Cloud Function. A CloudFunctionInfo is populated with starting // function information. + // "START_FROM_APP_ENGINE_VERSION" - Initial state: packet originating + // from an App Engine service version. An AppEngineVersionInfo is + // populated with starting version information. + // "START_FROM_CLOUD_RUN_REVISION" - Initial state: packet originating + // from a Cloud Run revision. A CloudRunRevisionInfo is populated with + // starting revision information. // "APPLY_INGRESS_FIREWALL_RULE" - Config checking state: verify // ingress firewall rule. // "APPLY_EGRESS_FIREWALL_RULE" - Config checking state: verify egress diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 595fd2293af..22dad5cd7d8 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -2402,7 +2402,7 @@ } } }, - "revision": "20221116", + "revision": "20221121", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "Backup": { @@ -2724,7 +2724,7 @@ "Unspecified. Do not use.", "This is the default option for CopyBackup when encryption_config is not specified. For example, if the source backup is using `Customer_Managed_Encryption`, the backup will be using the same Cloud KMS key as the source backup.", "Use Google default encryption.", - "Use customer managed encryption. If specified, `kms_key_name` must contain a valid Cloud KMS key." + "Use customer managed encryption. If specified, either `kms_key_name` or `kms_key_names` must contain valid Cloud KMS key(s)." ], "type": "string" }, @@ -2850,6 +2850,11 @@ "type": "string" }, "type": "array" + }, + "protoDescriptors": { + "description": "Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements in 'extra_statements' above. Contains a protobuf-serialized [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). To generate it, [install](https://grpc.io/docs/protoc-installation/) and run `protoc` with --include_imports and --descriptor_set_out. For example, to generate for moon/shot/app.proto, run \"\"\" $protoc --proto_path=/app_path --proto_path=/lib_path \\ --include_imports \\ --descriptor_set_out=descriptors.data \\ moon/shot/app.proto \"\"\" For more details, see protobuffer [self description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).", + "format": "byte", + "type": "string" } }, "type": "object" @@ -3346,6 +3351,11 @@ "description": "The response for GetDatabaseDdl.", "id": "GetDatabaseDdlResponse", "properties": { + "protoDescriptors": { + "description": "Proto descriptors stored in the database. Contains a protobuf-serialized [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). For more details, see protobuffer [self description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).", + "format": "byte", + "type": "string" + }, "statements": { "description": "A list of formatted DDL statements defining the schema of the database specified in the request.", "items": { @@ -5129,7 +5139,9 @@ "ARRAY", "STRUCT", "NUMERIC", - "JSON" + "JSON", + "PROTO", + "ENUM" ], "enumDescriptions": [ "Not specified.", @@ -5143,10 +5155,16 @@ "Encoded as `list`, where the list elements are represented according to array_element_type.", "Encoded as `list`, where list element `i` is represented according to [struct_type.fields[i]][google.spanner.v1.StructType.fields].", "Encoded as `string`, in decimal format or scientific notation format. Decimal format: `[+-]Digits[.[Digits]]` or `+-.Digits` Scientific notation: `[+-]Digits[.[Digits]][ExponentIndicator[+-]Digits]` or `+-.Digits[ExponentIndicator[+-]Digits]` (ExponentIndicator is `\"e\"` or `\"E\"`)", - "Encoded as a JSON-formatted `string` as described in RFC 7159. The following rules are applied when parsing JSON input: - Whitespace characters are not preserved. - If a JSON object has duplicate keys, only the first key is preserved. - Members of a JSON object are not guaranteed to have their order preserved. - JSON array elements will have their order preserved." + "Encoded as a JSON-formatted `string` as described in RFC 7159. The following rules are applied when parsing JSON input: - Whitespace characters are not preserved. - If a JSON object has duplicate keys, only the first key is preserved. - Members of a JSON object are not guaranteed to have their order preserved. - JSON array elements will have their order preserved.", + "Encoded as a base64-encoded `string`, as described in RFC 4648, section 4.", + "Encoded as `string`, in decimal format." ], "type": "string" }, + "protoTypeFqn": { + "description": "If code == PROTO or code == ENUM, then `proto_type_fqn` is the fully qualified name of the proto type representing the proto/enum definition.", + "type": "string" + }, "structType": { "$ref": "StructType", "description": "If code == STRUCT, then `struct_type` provides type information for the struct's fields." @@ -5214,6 +5232,11 @@ "description": "If empty, the new update request is assigned an automatically-generated operation ID. Otherwise, `operation_id` is used to construct the name of the resulting Operation. Specifying an explicit operation ID simplifies determining whether the statements were executed in the event that the UpdateDatabaseDdl call is replayed, or the return value is otherwise lost: the database and `operation_id` fields can be combined to form the name of the resulting longrunning.Operation: `/operations/`. `operation_id` should be unique within the database, and must be a valid identifier: `a-z*`. Note that automatically-generated operation IDs always begin with an underscore. If the named operation already exists, UpdateDatabaseDdl returns `ALREADY_EXISTS`.", "type": "string" }, + "protoDescriptors": { + "description": "Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements. Contains a protobuf-serialized [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). To generate it, [install](https://grpc.io/docs/protoc-installation/) and run `protoc` with --include_imports and --descriptor_set_out. For example, to generate for moon/shot/app.proto, run \"\"\" $protoc --proto_path=/app_path --proto_path=/lib_path \\ --include_imports \\ --descriptor_set_out=descriptors.data \\ moon/shot/app.proto \"\"\" For more details, see protobuffer [self description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).", + "format": "byte", + "type": "string" + }, "statements": { "description": "Required. DDL statements to be applied to the database.", "items": { diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index 77d111a6cbf..cd26cc70f6d 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -902,7 +902,8 @@ type CopyBackupEncryptionConfig struct { // the backup will be using the same Cloud KMS key as the source backup. // "GOOGLE_DEFAULT_ENCRYPTION" - Use Google default encryption. // "CUSTOMER_MANAGED_ENCRYPTION" - Use customer managed encryption. If - // specified, `kms_key_name` must contain a valid Cloud KMS key. + // specified, either `kms_key_name` or `kms_key_names` must contain + // valid Cloud KMS key(s). EncryptionType string `json:"encryptionType,omitempty"` // KmsKeyName: Optional. The Cloud KMS key that will be used to protect @@ -1143,6 +1144,19 @@ type CreateDatabaseRequest struct { // created. ExtraStatements []string `json:"extraStatements,omitempty"` + // ProtoDescriptors: Optional. Proto descriptors used by CREATE/ALTER + // PROTO BUNDLE statements in 'extra_statements' above. Contains a + // protobuf-serialized google.protobuf.FileDescriptorSet + // (https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + // To generate it, install (https://grpc.io/docs/protoc-installation/) + // and run `protoc` with --include_imports and --descriptor_set_out. For + // example, to generate for moon/shot/app.proto, run """ $protoc + // --proto_path=/app_path --proto_path=/lib_path \ --include_imports \ + // --descriptor_set_out=descriptors.data \ moon/shot/app.proto """ For + // more details, see protobuffer self description + // (https://developers.google.com/protocol-buffers/docs/techniques#self-description). + ProtoDescriptors string `json:"protoDescriptors,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateStatement") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2059,6 +2073,13 @@ func (s *FreeInstanceMetadata) MarshalJSON() ([]byte, error) { // GetDatabaseDdlResponse: The response for GetDatabaseDdl. type GetDatabaseDdlResponse struct { + // ProtoDescriptors: Proto descriptors stored in the database. Contains + // a protobuf-serialized google.protobuf.FileDescriptorSet + // (https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + // For more details, see protobuffer self description + // (https://developers.google.com/protocol-buffers/docs/techniques#self-description). + ProtoDescriptors string `json:"protoDescriptors,omitempty"` + // Statements: A list of formatted DDL statements defining the schema of // the database specified in the request. Statements []string `json:"statements,omitempty"` @@ -2067,7 +2088,7 @@ type GetDatabaseDdlResponse struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Statements") to + // ForceSendFields is a list of field names (e.g. "ProtoDescriptors") 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 @@ -2075,12 +2096,13 @@ type GetDatabaseDdlResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Statements") 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. "ProtoDescriptors") 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:"-"` } @@ -5618,8 +5640,16 @@ type Type struct { // duplicate keys, only the first key is preserved. - Members of a JSON // object are not guaranteed to have their order preserved. - JSON array // elements will have their order preserved. + // "PROTO" - Encoded as a base64-encoded `string`, as described in RFC + // 4648, section 4. + // "ENUM" - Encoded as `string`, in decimal format. Code string `json:"code,omitempty"` + // ProtoTypeFqn: If code == PROTO or code == ENUM, then `proto_type_fqn` + // is the fully qualified name of the proto type representing the + // proto/enum definition. + ProtoTypeFqn string `json:"protoTypeFqn,omitempty"` + // StructType: If code == STRUCT, then `struct_type` provides type // information for the struct's fields. StructType *StructType `json:"structType,omitempty"` @@ -5752,6 +5782,19 @@ type UpdateDatabaseDdlRequest struct { // UpdateDatabaseDdl returns `ALREADY_EXISTS`. OperationId string `json:"operationId,omitempty"` + // ProtoDescriptors: Optional. Proto descriptors used by CREATE/ALTER + // PROTO BUNDLE statements. Contains a protobuf-serialized + // google.protobuf.FileDescriptorSet + // (https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + // To generate it, install (https://grpc.io/docs/protoc-installation/) + // and run `protoc` with --include_imports and --descriptor_set_out. For + // example, to generate for moon/shot/app.proto, run """ $protoc + // --proto_path=/app_path --proto_path=/lib_path \ --include_imports \ + // --descriptor_set_out=descriptors.data \ moon/shot/app.proto """ For + // more details, see protobuffer self description + // (https://developers.google.com/protocol-buffers/docs/techniques#self-description). + ProtoDescriptors string `json:"protoDescriptors,omitempty"` + // Statements: Required. DDL statements to be applied to the database. Statements []string `json:"statements,omitempty"` diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index 6cd5407f1bf..8fd94028695 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -1773,6 +1773,11 @@ "name" ], "parameters": { + "host": { + "description": "Host of a user of the instance.", + "location": "query", + "type": "string" + }, "instance": { "description": "Database instance ID. This does not include the project ID.", "location": "path", @@ -1780,7 +1785,7 @@ "type": "string" }, "name": { - "description": "User of the instance. If the database user has a host, this is specified as {username}@{host} else as {username}.", + "description": "User of the instance.", "location": "path", "required": true, "type": "string" @@ -1916,7 +1921,7 @@ } } }, - "revision": "20221104", + "revision": "20221116", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2857,6 +2862,21 @@ "description": "Database instance export context.", "id": "ExportContext", "properties": { + "bakExportOptions": { + "description": "Options for exporting BAK files (SQL Server-only)", + "properties": { + "stripeCount": { + "description": "Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.", + "format": "int32", + "type": "integer" + }, + "striped": { + "description": "Whether or not the export should be striped.", + "type": "boolean" + } + }, + "type": "object" + }, "csvExportOptions": { "description": "Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.", "properties": { @@ -3177,6 +3197,10 @@ } }, "type": "object" + }, + "striped": { + "description": "Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.", + "type": "boolean" } }, "type": "object" @@ -3450,6 +3474,10 @@ }, "type": "array" }, + "enablePrivatePathForGoogleCloudServices": { + "description": "Controls connectivity to private IP instances from Google services, such as BigQuery.", + "type": "boolean" + }, "ipv4Enabled": { "description": "Whether the instance is assigned a public IP address or not.", "type": "boolean" @@ -3935,7 +3963,7 @@ "type": "integer" }, "passwordChangeInterval": { - "description": "Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL.", + "description": "Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.", "format": "google-duration", "type": "string" }, diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 49e513f0cf4..12c4aab94d2 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -1535,6 +1535,9 @@ func (s *DiskEncryptionStatus) MarshalJSON() ([]byte, error) { // ExportContext: Database instance export context. type ExportContext struct { + // BakExportOptions: Options for exporting BAK files (SQL Server-only) + BakExportOptions *ExportContextBakExportOptions `json:"bakExportOptions,omitempty"` + // CsvExportOptions: Options for exporting data as CSV. `MySQL` and // `PostgreSQL` instances only. CsvExportOptions *ExportContextCsvExportOptions `json:"csvExportOptions,omitempty"` @@ -1576,7 +1579,7 @@ type ExportContext struct { // contents are compressed. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "CsvExportOptions") to + // ForceSendFields is a list of field names (e.g. "BakExportOptions") 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 @@ -1584,7 +1587,7 @@ type ExportContext struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CsvExportOptions") to + // NullFields is a list of field names (e.g. "BakExportOptions") 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 @@ -1600,6 +1603,40 @@ func (s *ExportContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ExportContextBakExportOptions: Options for exporting BAK files (SQL +// Server-only) +type ExportContextBakExportOptions struct { + // StripeCount: Option for specifying how many stripes to use for the + // export. If blank, and the value of the striped field is true, the + // number of stripes is automatically chosen. + StripeCount int64 `json:"stripeCount,omitempty"` + + // Striped: Whether or not the export should be striped. + Striped bool `json:"striped,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StripeCount") 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. "StripeCount") 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 *ExportContextBakExportOptions) MarshalJSON() ([]byte, error) { + type NoMethod ExportContextBakExportOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ExportContextCsvExportOptions: Options for exporting data as CSV. // `MySQL` and `PostgreSQL` instances only. type ExportContextCsvExportOptions struct { @@ -2052,6 +2089,10 @@ func (s *ImportContext) MarshalJSON() ([]byte, error) { type ImportContextBakImportOptions struct { EncryptionOptions *ImportContextBakImportOptionsEncryptionOptions `json:"encryptionOptions,omitempty"` + // Striped: Whether or not the backup set being restored is striped. + // Applies only to Cloud SQL for SQL Server. + Striped bool `json:"striped,omitempty"` + // ForceSendFields is a list of field names (e.g. "EncryptionOptions") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2581,6 +2622,10 @@ type IpConfiguration struct { // as 'slash' notation (for example: `157.197.200.0/24`). AuthorizedNetworks []*AclEntry `json:"authorizedNetworks,omitempty"` + // EnablePrivatePathForGoogleCloudServices: Controls connectivity to + // private IP instances from Google services, such as BigQuery. + EnablePrivatePathForGoogleCloudServices bool `json:"enablePrivatePathForGoogleCloudServices,omitempty"` + // Ipv4Enabled: Whether the instance is assigned a public IP address or // not. Ipv4Enabled bool `json:"ipv4Enabled,omitempty"` @@ -3235,7 +3280,7 @@ type PasswordValidationPolicy struct { MinLength int64 `json:"minLength,omitempty"` // PasswordChangeInterval: Minimum interval after which the password can - // be changed. This flag is only supported for PostgresSQL. + // be changed. This flag is only supported for PostgreSQL. PasswordChangeInterval string `json:"passwordChangeInterval,omitempty"` // ReuseInterval: Number of previous passwords that cannot be reused. @@ -11992,8 +12037,7 @@ type UsersGetCall struct { // // - instance: Database instance ID. This does not include the project // ID. -// - name: User of the instance. If the database user has a host, this -// is specified as {username}@{host} else as {username}. +// - name: User of the instance. // - project: Project ID of the project that contains the instance. func (r *UsersService) Get(project string, instance string, name string) *UsersGetCall { c := &UsersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -12003,6 +12047,13 @@ func (r *UsersService) Get(project string, instance string, name string) *UsersG return c } +// Host sets the optional parameter "host": Host of a user of the +// instance. +func (c *UsersGetCall) Host(host string) *UsersGetCall { + c.urlParams_.Set("host", host) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -12114,6 +12165,11 @@ func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { // "name" // ], // "parameters": { + // "host": { + // "description": "Host of a user of the instance.", + // "location": "query", + // "type": "string" + // }, // "instance": { // "description": "Database instance ID. This does not include the project ID.", // "location": "path", @@ -12121,7 +12177,7 @@ func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { // "type": "string" // }, // "name": { - // "description": "User of the instance. If the database user has a host, this is specified as {username}@{host} else as {username}.", + // "description": "User of the instance.", // "location": "path", // "required": true, // "type": "string" diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index e126ac0aef9..59147d40806 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -1773,6 +1773,11 @@ "name" ], "parameters": { + "host": { + "description": "Host of a user of the instance.", + "location": "query", + "type": "string" + }, "instance": { "description": "Database instance ID. This does not include the project ID.", "location": "path", @@ -1780,7 +1785,7 @@ "type": "string" }, "name": { - "description": "User of the instance. If the database user has a host, this is specified as {username}@{host} else as {username}.", + "description": "User of the instance.", "location": "path", "required": true, "type": "string" @@ -1916,7 +1921,7 @@ } } }, - "revision": "20221104", + "revision": "20221116", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2857,6 +2862,21 @@ "description": "Database instance export context.", "id": "ExportContext", "properties": { + "bakExportOptions": { + "description": "Options for exporting BAK files (SQL Server-only)", + "properties": { + "stripeCount": { + "description": "Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.", + "format": "int32", + "type": "integer" + }, + "striped": { + "description": "Whether or not the export should be striped.", + "type": "boolean" + } + }, + "type": "object" + }, "csvExportOptions": { "description": "Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.", "properties": { @@ -3177,6 +3197,10 @@ } }, "type": "object" + }, + "striped": { + "description": "Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.", + "type": "boolean" } }, "type": "object" @@ -3450,6 +3474,10 @@ }, "type": "array" }, + "enablePrivatePathForGoogleCloudServices": { + "description": "Controls connectivity to private IP instances from Google services, such as BigQuery.", + "type": "boolean" + }, "ipv4Enabled": { "description": "Whether the instance is assigned a public IP address or not.", "type": "boolean" @@ -3935,7 +3963,7 @@ "type": "integer" }, "passwordChangeInterval": { - "description": "Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL.", + "description": "Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.", "format": "google-duration", "type": "string" }, diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index e53fc57dc74..015acd581bb 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -1534,6 +1534,9 @@ func (s *DiskEncryptionStatus) MarshalJSON() ([]byte, error) { // ExportContext: Database instance export context. type ExportContext struct { + // BakExportOptions: Options for exporting BAK files (SQL Server-only) + BakExportOptions *ExportContextBakExportOptions `json:"bakExportOptions,omitempty"` + // CsvExportOptions: Options for exporting data as CSV. `MySQL` and // `PostgreSQL` instances only. CsvExportOptions *ExportContextCsvExportOptions `json:"csvExportOptions,omitempty"` @@ -1575,7 +1578,7 @@ type ExportContext struct { // contents are compressed. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "CsvExportOptions") to + // ForceSendFields is a list of field names (e.g. "BakExportOptions") 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 @@ -1583,7 +1586,7 @@ type ExportContext struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CsvExportOptions") to + // NullFields is a list of field names (e.g. "BakExportOptions") 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 @@ -1599,6 +1602,40 @@ func (s *ExportContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ExportContextBakExportOptions: Options for exporting BAK files (SQL +// Server-only) +type ExportContextBakExportOptions struct { + // StripeCount: Option for specifying how many stripes to use for the + // export. If blank, and the value of the striped field is true, the + // number of stripes is automatically chosen. + StripeCount int64 `json:"stripeCount,omitempty"` + + // Striped: Whether or not the export should be striped. + Striped bool `json:"striped,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StripeCount") 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. "StripeCount") 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 *ExportContextBakExportOptions) MarshalJSON() ([]byte, error) { + type NoMethod ExportContextBakExportOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ExportContextCsvExportOptions: Options for exporting data as CSV. // `MySQL` and `PostgreSQL` instances only. type ExportContextCsvExportOptions struct { @@ -2052,6 +2089,10 @@ func (s *ImportContext) MarshalJSON() ([]byte, error) { type ImportContextBakImportOptions struct { EncryptionOptions *ImportContextBakImportOptionsEncryptionOptions `json:"encryptionOptions,omitempty"` + // Striped: Whether or not the backup set being restored is striped. + // Applies only to Cloud SQL for SQL Server. + Striped bool `json:"striped,omitempty"` + // ForceSendFields is a list of field names (e.g. "EncryptionOptions") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2581,6 +2622,10 @@ type IpConfiguration struct { // as 'slash' notation (for example: `157.197.200.0/24`). AuthorizedNetworks []*AclEntry `json:"authorizedNetworks,omitempty"` + // EnablePrivatePathForGoogleCloudServices: Controls connectivity to + // private IP instances from Google services, such as BigQuery. + EnablePrivatePathForGoogleCloudServices bool `json:"enablePrivatePathForGoogleCloudServices,omitempty"` + // Ipv4Enabled: Whether the instance is assigned a public IP address or // not. Ipv4Enabled bool `json:"ipv4Enabled,omitempty"` @@ -3235,7 +3280,7 @@ type PasswordValidationPolicy struct { MinLength int64 `json:"minLength,omitempty"` // PasswordChangeInterval: Minimum interval after which the password can - // be changed. This flag is only supported for PostgresSQL. + // be changed. This flag is only supported for PostgreSQL. PasswordChangeInterval string `json:"passwordChangeInterval,omitempty"` // ReuseInterval: Number of previous passwords that cannot be reused. @@ -11987,8 +12032,7 @@ type UsersGetCall struct { // // - instance: Database instance ID. This does not include the project // ID. -// - name: User of the instance. If the database user has a host, this -// is specified as {username}@{host} else as {username}. +// - name: User of the instance. // - project: Project ID of the project that contains the instance. func (r *UsersService) Get(project string, instance string, name string) *UsersGetCall { c := &UsersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -11998,6 +12042,13 @@ func (r *UsersService) Get(project string, instance string, name string) *UsersG return c } +// Host sets the optional parameter "host": Host of a user of the +// instance. +func (c *UsersGetCall) Host(host string) *UsersGetCall { + c.urlParams_.Set("host", host) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -12109,6 +12160,11 @@ func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { // "name" // ], // "parameters": { + // "host": { + // "description": "Host of a user of the instance.", + // "location": "query", + // "type": "string" + // }, // "instance": { // "description": "Database instance ID. This does not include the project ID.", // "location": "path", @@ -12116,7 +12172,7 @@ func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { // "type": "string" // }, // "name": { - // "description": "User of the instance. If the database user has a host, this is specified as {username}@{host} else as {username}.", + // "description": "User of the instance.", // "location": "path", // "required": true, // "type": "string" diff --git a/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index ae32a68af6e..a4ab7ee051f 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -1972,9 +1972,24 @@ } } }, - "revision": "20221103", + "revision": "20221126", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { + "AccessKeyCredentials": { + "description": "Message describing AWS Credentials using access key id and secret.", + "id": "AccessKeyCredentials", + "properties": { + "accessKeyId": { + "description": "AWS access key ID.", + "type": "string" + }, + "secretAccessKey": { + "description": "Input only. AWS secret access key.", + "type": "string" + } + }, + "type": "object" + }, "AdaptingOSStep": { "description": "AdaptingOSStep contains specific step details.", "id": "AdaptingOSStep", @@ -2076,6 +2091,10 @@ "description": "AwsSourceDetails message describes a specific source details for the AWS source type.", "id": "AwsSourceDetails", "properties": { + "accessKeyCreds": { + "$ref": "AccessKeyCredentials", + "description": "AWS Credentials using access key id and secret." + }, "accessKeyId": { "description": "AWS access key ID.", "type": "string" @@ -2096,6 +2115,13 @@ }, "type": "array" }, + "inventoryTagList": { + "description": "AWS resource tags to limit the scope of the source inventory.", + "items": { + "$ref": "Tag" + }, + "type": "array" + }, "inventoryTags": { "additionalProperties": { "type": "string" @@ -4022,6 +4048,21 @@ }, "type": "object" }, + "Tag": { + "description": "Tag is an AWS tag representation.", + "id": "Tag", + "properties": { + "key": { + "description": "Key of tag.", + "type": "string" + }, + "value": { + "description": "Value of tag.", + "type": "string" + } + }, + "type": "object" + }, "TargetProject": { "description": "TargetProject message represents a target Compute Engine project for a migration or a clone.", "id": "TargetProject", diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index fdb14d611b8..a0ed5f2252f 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -278,6 +278,38 @@ type ProjectsLocationsTargetProjectsService struct { s *Service } +// AccessKeyCredentials: Message describing AWS Credentials using access +// key id and secret. +type AccessKeyCredentials struct { + // AccessKeyId: AWS access key ID. + AccessKeyId string `json:"accessKeyId,omitempty"` + + // SecretAccessKey: Input only. AWS secret access key. + SecretAccessKey string `json:"secretAccessKey,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessKeyId") 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. "AccessKeyId") 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 *AccessKeyCredentials) MarshalJSON() ([]byte, error) { + type NoMethod AccessKeyCredentials + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AdaptingOSStep: AdaptingOSStep contains specific step details. type AdaptingOSStep struct { } @@ -459,6 +491,9 @@ func (s *AwsSecurityGroup) MarshalJSON() ([]byte, error) { // AwsSourceDetails: AwsSourceDetails message describes a specific // source details for the AWS source type. type AwsSourceDetails struct { + // AccessKeyCreds: AWS Credentials using access key id and secret. + AccessKeyCreds *AccessKeyCredentials `json:"accessKeyCreds,omitempty"` + // AccessKeyId: AWS access key ID. AccessKeyId string `json:"accessKeyId,omitempty"` @@ -474,6 +509,10 @@ type AwsSourceDetails struct { // scope of the source inventory. InventorySecurityGroupNames []string `json:"inventorySecurityGroupNames,omitempty"` + // InventoryTagList: AWS resource tags to limit the scope of the source + // inventory. + InventoryTagList []*Tag `json:"inventoryTagList,omitempty"` + // InventoryTags: Deprecated: AWS resource tags to limit the scope of // the source inventory. Use inventory_tag_list instead. InventoryTags map[string]string `json:"inventoryTags,omitempty"` @@ -504,7 +543,7 @@ type AwsSourceDetails struct { // "ACTIVE" - The source exists and its credentials were verified. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessKeyId") to + // ForceSendFields is a list of field names (e.g. "AccessKeyCreds") 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 @@ -512,12 +551,13 @@ type AwsSourceDetails struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AccessKeyId") 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. "AccessKeyCreds") 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:"-"` } @@ -2823,6 +2863,37 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Tag: Tag is an AWS tag representation. +type Tag struct { + // Key: Key of tag. + Key string `json:"key,omitempty"` + + // Value: Value of tag. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 *Tag) MarshalJSON() ([]byte, error) { + type NoMethod Tag + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // TargetProject: TargetProject message represents a target Compute // Engine project for a migration or a clone. type TargetProject struct {