From 2efcb2ef82ec93741b5a34f6ba89033c4c6ad829 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 6 Apr 2023 08:31:21 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#1932) --- alertcenter/v1beta1/alertcenter-api.json | 4 +- alertcenter/v1beta1/alertcenter-gen.go | 4 +- .../v1alpha/analyticsadmin-api.json | 330 ++++- analyticsadmin/v1alpha/analyticsadmin-gen.go | 1112 +++++++++++++++++ batch/v1/batch-api.json | 40 +- batch/v1/batch-gen.go | 25 +- cloudbuild/v1/cloudbuild-api.json | 6 +- cloudbuild/v1/cloudbuild-gen.go | 6 +- cloudfunctions/v2/cloudfunctions-api.json | 6 +- cloudfunctions/v2/cloudfunctions-gen.go | 19 +- .../v2alpha/cloudfunctions-api.json | 6 +- cloudfunctions/v2alpha/cloudfunctions-gen.go | 19 +- cloudfunctions/v2beta/cloudfunctions-api.json | 6 +- cloudfunctions/v2beta/cloudfunctions-gen.go | 19 +- .../v3/cloudresourcemanager-api.json | 50 +- .../v3/cloudresourcemanager-gen.go | 306 +++++ compute/v0.alpha/compute-api.json | 22 +- compute/v0.alpha/compute-gen.go | 42 +- compute/v1/compute-api.json | 19 +- compute/v1/compute-gen.go | 20 + dataplex/v1/dataplex-api.json | 8 +- dataplex/v1/dataplex-gen.go | 17 +- dns/v1/dns-api.json | 13 +- dns/v1/dns-gen.go | 19 +- dns/v1beta2/dns-api.json | 13 +- dns/v1beta2/dns-gen.go | 19 +- ondemandscanning/v1/ondemandscanning-api.json | 4 +- ondemandscanning/v1/ondemandscanning-gen.go | 3 +- .../v1beta1/ondemandscanning-api.json | 4 +- .../v1beta1/ondemandscanning-gen.go | 3 +- .../v1/paymentsresellersubscription-api.json | 6 +- .../v1/paymentsresellersubscription-gen.go | 4 + privateca/v1/privateca-api.json | 18 +- privateca/v1/privateca-gen.go | 69 +- privateca/v1beta1/privateca-api.json | 4 +- privateca/v1beta1/privateca-gen.go | 4 +- run/v1/run-api.json | 4 +- run/v1/run-gen.go | 1 + searchads360/v0/searchads360-api.json | 38 +- searchads360/v0/searchads360-gen.go | 47 - sqladmin/v1/sqladmin-api.json | 21 +- sqladmin/v1/sqladmin-gen.go | 38 +- sqladmin/v1beta4/sqladmin-api.json | 21 +- sqladmin/v1beta4/sqladmin-gen.go | 38 +- texttospeech/v1/texttospeech-api.json | 4 +- texttospeech/v1/texttospeech-gen.go | 4 +- texttospeech/v1beta1/texttospeech-api.json | 4 +- texttospeech/v1beta1/texttospeech-gen.go | 4 +- vmmigration/v1alpha1/vmmigration-api.json | 20 +- vmmigration/v1alpha1/vmmigration-gen.go | 36 + workflows/v1/workflows-api.json | 40 +- workflows/v1/workflows-gen.go | 52 + 52 files changed, 2391 insertions(+), 250 deletions(-) diff --git a/alertcenter/v1beta1/alertcenter-api.json b/alertcenter/v1beta1/alertcenter-api.json index d4b92921e27..3e32dca6b50 100644 --- a/alertcenter/v1beta1/alertcenter-api.json +++ b/alertcenter/v1beta1/alertcenter-api.json @@ -423,7 +423,7 @@ } } }, - "revision": "20230313", + "revision": "20230403", "rootUrl": "https://alertcenter.googleapis.com/", "schemas": { "AccountSuspensionDetails": { @@ -464,7 +464,7 @@ "type": "object" }, "AccountSuspensionWarning": { - "description": "A warning that the customer's account is about to be suspended.", + "description": "LINT.IfChange A warning that the customer's account is about to be suspended.", "id": "AccountSuspensionWarning", "properties": { "appealWindow": { diff --git a/alertcenter/v1beta1/alertcenter-gen.go b/alertcenter/v1beta1/alertcenter-gen.go index e77bb4da2f3..c8773cd8180 100644 --- a/alertcenter/v1beta1/alertcenter-gen.go +++ b/alertcenter/v1beta1/alertcenter-gen.go @@ -222,8 +222,8 @@ func (s *AccountSuspensionDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AccountSuspensionWarning: A warning that the customer's account is -// about to be suspended. +// AccountSuspensionWarning: LINT.IfChange A warning that the customer's +// account is about to be suspended. type AccountSuspensionWarning struct { // AppealWindow: The amount of time remaining to appeal an imminent // suspension. After this window has elapsed, the account will be diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index fafc1d866ee..f2446d3e127 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -1895,6 +1895,160 @@ } } }, + "channelGroups": { + "methods": { + "create": { + "description": "Creates a ChannelGroup.", + "flatPath": "v1alpha/properties/{propertiesId}/channelGroups", + "httpMethod": "POST", + "id": "analyticsadmin.properties.channelGroups.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The property for which to create a ChannelGroup. Example format: properties/1234", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/channelGroups", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, + "delete": { + "description": "Deletes a ChannelGroup on a property.", + "flatPath": "v1alpha/properties/{propertiesId}/channelGroups/{channelGroupsId}", + "httpMethod": "DELETE", + "id": "analyticsadmin.properties.channelGroups.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The ChannelGroup to delete. Example format: properties/1234/channelGroups/5678", + "location": "path", + "pattern": "^properties/[^/]+/channelGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, + "get": { + "description": "Lookup for a single ChannelGroup.", + "flatPath": "v1alpha/properties/{propertiesId}/channelGroups/{channelGroupsId}", + "httpMethod": "GET", + "id": "analyticsadmin.properties.channelGroups.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The ChannelGroup to get. Example format: properties/1234/channelGroups/5678", + "location": "path", + "pattern": "^properties/[^/]+/channelGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + }, + "list": { + "description": "Lists ChannelGroups on a property.", + "flatPath": "v1alpha/properties/{propertiesId}/channelGroups", + "httpMethod": "GET", + "id": "analyticsadmin.properties.channelGroups.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of resources to return. 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 `ListChannelGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListChannelGroups` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The property for which to list ChannelGroups. Example format: properties/1234", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/channelGroups", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaListChannelGroupsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + }, + "patch": { + "description": "Updates a ChannelGroup.", + "flatPath": "v1alpha/properties/{propertiesId}/channelGroups/{channelGroupsId}", + "httpMethod": "PATCH", + "id": "analyticsadmin.properties.channelGroups.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name for this Channel Group resource. Format: properties/{property}/channelGroups/{channel_group}", + "location": "path", + "pattern": "^properties/[^/]+/channelGroups/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + } + } + }, "conversionEvents": { "methods": { "create": { @@ -3886,7 +4040,7 @@ } } }, - "revision": "20230330", + "revision": "20230405", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -5216,6 +5370,10 @@ "$ref": "GoogleAnalyticsAdminV1alphaBigQueryLink", "description": "A snapshot of a BigQuery link resource in change history." }, + "channelGroup": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup", + "description": "A snapshot of a ChannelGroup resource in change history." + }, "conversionEvent": { "$ref": "GoogleAnalyticsAdminV1alphaConversionEvent", "description": "A snapshot of a ConversionEvent resource in change history." @@ -5326,6 +5484,141 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaChannelGroup": { + "description": "A resource message representing a Channel Group.", + "id": "GoogleAnalyticsAdminV1alphaChannelGroup", + "properties": { + "description": { + "description": "The description of the Channel Group. Max length of 256 characters.", + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the Channel Group. Max length of 80 characters.", + "type": "string" + }, + "groupingRule": { + "description": "Required. The grouping rules of channels. Maximum number of rules is 25.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaGroupingRule" + }, + "type": "array" + }, + "name": { + "description": "Output only. The resource name for this Channel Group resource. Format: properties/{property}/channelGroups/{channel_group}", + "readOnly": true, + "type": "string" + }, + "systemDefined": { + "description": "Output only. Default Channel Group defined by Google, which cannot be updated.", + "readOnly": true, + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaChannelGroupFilter": { + "description": "A specific filter for a single dimension.", + "id": "GoogleAnalyticsAdminV1alphaChannelGroupFilter", + "properties": { + "fieldName": { + "description": "Required. Immutable. The dimension name to filter.", + "type": "string" + }, + "inListFilter": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter", + "description": "A filter for a string dimension that matches a particular list of options." + }, + "stringFilter": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter", + "description": "A filter for a string-type dimension that matches a particular pattern." + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression": { + "description": "A logical expression of Channel Group dimension filters.", + "id": "GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression", + "properties": { + "andGroup": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList", + "description": "A list of expressions to be AND’ed together. It can only contain ChannelGroupFilterExpressions with or_group. This must be set for the top level ChannelGroupFilterExpression." + }, + "filter": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroupFilter", + "description": "A filter on a single dimension. This cannot be set on the top level ChannelGroupFilterExpression." + }, + "notExpression": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression", + "description": "A filter expression to be NOT'ed (that is inverted, complemented). It can only include a dimension_or_metric_filter. This cannot be set on the top level ChannelGroupFilterExpression." + }, + "orGroup": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList", + "description": "A list of expressions to OR’ed together. It cannot contain ChannelGroupFilterExpressions with and_group or or_group." + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList": { + "description": "A list of Channel Group filter expressions.", + "id": "GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList", + "properties": { + "filterExpressions": { + "description": "A list of Channel Group filter expressions.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter": { + "description": "A filter for a string dimension that matches a particular list of options. The match is case insensitive.", + "id": "GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter", + "properties": { + "values": { + "description": "Required. The list of possible string values to match against. Must be non-empty.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter": { + "description": "Filter where the field value is a String. The match is case insensitive.", + "id": "GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter", + "properties": { + "matchType": { + "description": "Required. The match type for the string filter.", + "enum": [ + "MATCH_TYPE_UNSPECIFIED", + "EXACT", + "BEGINS_WITH", + "ENDS_WITH", + "CONTAINS", + "FULL_REGEXP", + "PARTIAL_REGEXP" + ], + "enumDescriptions": [ + "Default match type.", + "Exact match of the string value.", + "Begins with the string value.", + "Ends with the string value.", + "Contains the string value.", + "Full regular expression match with the string value.", + "Partial regular expression match with the string value." + ], + "type": "string" + }, + "value": { + "description": "Required. The string value to be matched against.", + "type": "string" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaConnectedSiteTag": { "description": "Configuration for a specific Connected Site Tag.", "id": "GoogleAnalyticsAdminV1alphaConnectedSiteTag", @@ -6180,6 +6473,21 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaGroupingRule": { + "description": "The rules that govern how traffic is grouped into one channel.", + "id": "GoogleAnalyticsAdminV1alphaGroupingRule", + "properties": { + "displayName": { + "description": "Required. Customer defined display name for the channel.", + "type": "string" + }, + "expression": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression", + "description": "Required. The Filter Expression that defines the Grouping Rule." + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails": { "description": "Status information for a link proposal.", "id": "GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails", @@ -6320,6 +6628,24 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaListChannelGroupsResponse": { + "description": "Response message for ListChannelGroups RPC.", + "id": "GoogleAnalyticsAdminV1alphaListChannelGroupsResponse", + "properties": { + "channelGroups": { + "description": "List of ChannelGroup. These will be ordered stably, but in an arbitrary order.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup" + }, + "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" + }, "GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest": { "description": "Request message for ListConnectedSiteTags RPC.", "id": "GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest", @@ -7036,6 +7362,7 @@ "DATA_STREAM", "ATTRIBUTION_SETTINGS", "EXPANDED_DATA_SET", + "CHANNEL_GROUP", "ENHANCED_MEASUREMENT_SETTINGS" ], "enumDescriptions": [ @@ -7056,6 +7383,7 @@ "DataStream resource", "AttributionSettings resource", "ExpandedDataSet resource", + "ChannelGroup resource", "EnhancedMeasurementSettings resource" ], "type": "string" diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index f2d063dfd18..a67996244e8 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -206,6 +206,7 @@ func NewPropertiesService(s *Service) *PropertiesService { rs.AccessBindings = NewPropertiesAccessBindingsService(s) rs.Audiences = NewPropertiesAudiencesService(s) rs.BigQueryLinks = NewPropertiesBigQueryLinksService(s) + rs.ChannelGroups = NewPropertiesChannelGroupsService(s) rs.ConversionEvents = NewPropertiesConversionEventsService(s) rs.CustomDimensions = NewPropertiesCustomDimensionsService(s) rs.CustomMetrics = NewPropertiesCustomMetricsService(s) @@ -229,6 +230,8 @@ type PropertiesService struct { BigQueryLinks *PropertiesBigQueryLinksService + ChannelGroups *PropertiesChannelGroupsService + ConversionEvents *PropertiesConversionEventsService CustomDimensions *PropertiesCustomDimensionsService @@ -279,6 +282,15 @@ type PropertiesBigQueryLinksService struct { s *Service } +func NewPropertiesChannelGroupsService(s *Service) *PropertiesChannelGroupsService { + rs := &PropertiesChannelGroupsService{s: s} + return rs +} + +type PropertiesChannelGroupsService struct { + s *Service +} + func NewPropertiesConversionEventsService(s *Service) *PropertiesConversionEventsService { rs := &PropertiesConversionEventsService{s: s} return rs @@ -2805,6 +2817,10 @@ type GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource struct // history. BigqueryLink *GoogleAnalyticsAdminV1alphaBigQueryLink `json:"bigqueryLink,omitempty"` + // ChannelGroup: A snapshot of a ChannelGroup resource in change + // history. + ChannelGroup *GoogleAnalyticsAdminV1alphaChannelGroup `json:"channelGroup,omitempty"` + // ConversionEvent: A snapshot of a ConversionEvent resource in change // history. ConversionEvent *GoogleAnalyticsAdminV1alphaConversionEvent `json:"conversionEvent,omitempty"` @@ -2946,6 +2962,241 @@ func (s *GoogleAnalyticsAdminV1alphaChangeHistoryEvent) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaChannelGroup: A resource message +// representing a Channel Group. +type GoogleAnalyticsAdminV1alphaChannelGroup struct { + // Description: The description of the Channel Group. Max length of 256 + // characters. + Description string `json:"description,omitempty"` + + // DisplayName: Required. The display name of the Channel Group. Max + // length of 80 characters. + DisplayName string `json:"displayName,omitempty"` + + // GroupingRule: Required. The grouping rules of channels. Maximum + // number of rules is 25. + GroupingRule []*GoogleAnalyticsAdminV1alphaGroupingRule `json:"groupingRule,omitempty"` + + // Name: Output only. The resource name for this Channel Group resource. + // Format: properties/{property}/channelGroups/{channel_group} + Name string `json:"name,omitempty"` + + // SystemDefined: Output only. Default Channel Group defined by Google, + // which cannot be updated. + SystemDefined bool `json:"systemDefined,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty 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. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAnalyticsAdminV1alphaChannelGroup) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaChannelGroup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaChannelGroupFilter: A specific filter for +// a single dimension. +type GoogleAnalyticsAdminV1alphaChannelGroupFilter struct { + // FieldName: Required. Immutable. The dimension name to filter. + FieldName string `json:"fieldName,omitempty"` + + // InListFilter: A filter for a string dimension that matches a + // particular list of options. + InListFilter *GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter `json:"inListFilter,omitempty"` + + // StringFilter: A filter for a string-type dimension that matches a + // particular pattern. + StringFilter *GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter `json:"stringFilter,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FieldName") 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. "FieldName") 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 *GoogleAnalyticsAdminV1alphaChannelGroupFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaChannelGroupFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression: A logical +// expression of Channel Group dimension filters. +type GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression struct { + // AndGroup: A list of expressions to be AND’ed together. It can only + // contain ChannelGroupFilterExpressions with or_group. This must be set + // for the top level ChannelGroupFilterExpression. + AndGroup *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList `json:"andGroup,omitempty"` + + // Filter: A filter on a single dimension. This cannot be set on the top + // level ChannelGroupFilterExpression. + Filter *GoogleAnalyticsAdminV1alphaChannelGroupFilter `json:"filter,omitempty"` + + // NotExpression: A filter expression to be NOT'ed (that is inverted, + // complemented). It can only include a dimension_or_metric_filter. This + // cannot be set on the top level ChannelGroupFilterExpression. + NotExpression *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression `json:"notExpression,omitempty"` + + // OrGroup: A list of expressions to OR’ed together. It cannot contain + // ChannelGroupFilterExpressions with and_group or or_group. + OrGroup *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList `json:"orGroup,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AndGroup") 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. "AndGroup") 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 *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList: A list +// of Channel Group filter expressions. +type GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList struct { + // FilterExpressions: A list of Channel Group filter expressions. + FilterExpressions []*GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression `json:"filterExpressions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FilterExpressions") + // 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. "FilterExpressions") 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 *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter: A filter +// for a string dimension that matches a particular list of options. The +// match is case insensitive. +type GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter struct { + // Values: Required. The list of possible string values to match + // against. Must be non-empty. + Values []string `json:"values,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Values") 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. "Values") 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 *GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter: Filter +// where the field value is a String. The match is case insensitive. +type GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter struct { + // MatchType: Required. The match type for the string filter. + // + // Possible values: + // "MATCH_TYPE_UNSPECIFIED" - Default match type. + // "EXACT" - Exact match of the string value. + // "BEGINS_WITH" - Begins with the string value. + // "ENDS_WITH" - Ends with the string value. + // "CONTAINS" - Contains the string value. + // "FULL_REGEXP" - Full regular expression match with the string + // value. + // "PARTIAL_REGEXP" - Partial regular expression match with the string + // value. + MatchType string `json:"matchType,omitempty"` + + // Value: Required. The string value to be matched against. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MatchType") 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. "MatchType") 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 *GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaConnectedSiteTag: Configuration for a // specific Connected Site Tag. type GoogleAnalyticsAdminV1alphaConnectedSiteTag struct { @@ -4452,6 +4703,39 @@ func (s *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaGroupingRule: The rules that govern how +// traffic is grouped into one channel. +type GoogleAnalyticsAdminV1alphaGroupingRule struct { + // DisplayName: Required. Customer defined display name for the channel. + DisplayName string `json:"displayName,omitempty"` + + // Expression: Required. The Filter Expression that defines the Grouping + // Rule. + Expression *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression `json:"expression,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 *GoogleAnalyticsAdminV1alphaGroupingRule) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaGroupingRule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails: Status // information for a link proposal. type GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails struct { @@ -4715,6 +4999,45 @@ func (s *GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaListChannelGroupsResponse: Response +// message for ListChannelGroups RPC. +type GoogleAnalyticsAdminV1alphaListChannelGroupsResponse struct { + // ChannelGroups: List of ChannelGroup. These will be ordered stably, + // but in an arbitrary order. + ChannelGroups []*GoogleAnalyticsAdminV1alphaChannelGroup `json:"channelGroups,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. "ChannelGroups") 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. "ChannelGroups") 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 *GoogleAnalyticsAdminV1alphaListChannelGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaListChannelGroupsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest: Request // message for ListConnectedSiteTags RPC. type GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest struct { @@ -5923,6 +6246,7 @@ type GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest struct { // "DATA_STREAM" - DataStream resource // "ATTRIBUTION_SETTINGS" - AttributionSettings resource // "EXPANDED_DATA_SET" - ExpandedDataSet resource + // "CHANNEL_GROUP" - ChannelGroup resource // "ENHANCED_MEASUREMENT_SETTINGS" - EnhancedMeasurementSettings // resource ResourceType []string `json:"resourceType,omitempty"` @@ -15798,6 +16122,794 @@ func (c *PropertiesBigQueryLinksListCall) Pages(ctx context.Context, f func(*Goo } } +// method id "analyticsadmin.properties.channelGroups.create": + +type PropertiesChannelGroupsCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alphachannelgroup *GoogleAnalyticsAdminV1alphaChannelGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a ChannelGroup. +// +// - parent: The property for which to create a ChannelGroup. Example +// format: properties/1234. +func (r *PropertiesChannelGroupsService) Create(parent string, googleanalyticsadminv1alphachannelgroup *GoogleAnalyticsAdminV1alphaChannelGroup) *PropertiesChannelGroupsCreateCall { + c := &PropertiesChannelGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphachannelgroup = googleanalyticsadminv1alphachannelgroup + 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 *PropertiesChannelGroupsCreateCall) Fields(s ...googleapi.Field) *PropertiesChannelGroupsCreateCall { + 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 *PropertiesChannelGroupsCreateCall) Context(ctx context.Context) *PropertiesChannelGroupsCreateCall { + 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 *PropertiesChannelGroupsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesChannelGroupsCreateCall) 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.googleanalyticsadminv1alphachannelgroup) + 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/{+parent}/channelGroups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.channelGroups.create" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaChannelGroup or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleAnalyticsAdminV1alphaChannelGroup.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 *PropertiesChannelGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaChannelGroup, 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 := &GoogleAnalyticsAdminV1alphaChannelGroup{ + 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 ChannelGroup.", + // "flatPath": "v1alpha/properties/{propertiesId}/channelGroups", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.channelGroups.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The property for which to create a ChannelGroup. Example format: properties/1234", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/channelGroups", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.channelGroups.delete": + +type PropertiesChannelGroupsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a ChannelGroup on a property. +// +// - name: The ChannelGroup to delete. Example format: +// properties/1234/channelGroups/5678. +func (r *PropertiesChannelGroupsService) Delete(name string) *PropertiesChannelGroupsDeleteCall { + c := &PropertiesChannelGroupsDeleteCall{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 *PropertiesChannelGroupsDeleteCall) Fields(s ...googleapi.Field) *PropertiesChannelGroupsDeleteCall { + 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 *PropertiesChannelGroupsDeleteCall) Context(ctx context.Context) *PropertiesChannelGroupsDeleteCall { + 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 *PropertiesChannelGroupsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesChannelGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.channelGroups.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *PropertiesChannelGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a ChannelGroup on a property.", + // "flatPath": "v1alpha/properties/{propertiesId}/channelGroups/{channelGroupsId}", + // "httpMethod": "DELETE", + // "id": "analyticsadmin.properties.channelGroups.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The ChannelGroup to delete. Example format: properties/1234/channelGroups/5678", + // "location": "path", + // "pattern": "^properties/[^/]+/channelGroups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.channelGroups.get": + +type PropertiesChannelGroupsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Lookup for a single ChannelGroup. +// +// - name: The ChannelGroup to get. Example format: +// properties/1234/channelGroups/5678. +func (r *PropertiesChannelGroupsService) Get(name string) *PropertiesChannelGroupsGetCall { + c := &PropertiesChannelGroupsGetCall{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 *PropertiesChannelGroupsGetCall) Fields(s ...googleapi.Field) *PropertiesChannelGroupsGetCall { + 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 *PropertiesChannelGroupsGetCall) IfNoneMatch(entityTag string) *PropertiesChannelGroupsGetCall { + 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 *PropertiesChannelGroupsGetCall) Context(ctx context.Context) *PropertiesChannelGroupsGetCall { + 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 *PropertiesChannelGroupsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesChannelGroupsGetCall) 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.channelGroups.get" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaChannelGroup or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleAnalyticsAdminV1alphaChannelGroup.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 *PropertiesChannelGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaChannelGroup, 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 := &GoogleAnalyticsAdminV1alphaChannelGroup{ + 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 ChannelGroup.", + // "flatPath": "v1alpha/properties/{propertiesId}/channelGroups/{channelGroupsId}", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.channelGroups.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The ChannelGroup to get. Example format: properties/1234/channelGroups/5678", + // "location": "path", + // "pattern": "^properties/[^/]+/channelGroups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// method id "analyticsadmin.properties.channelGroups.list": + +type PropertiesChannelGroupsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists ChannelGroups on a property. +// +// - parent: The property for which to list ChannelGroups. Example +// format: properties/1234. +func (r *PropertiesChannelGroupsService) List(parent string) *PropertiesChannelGroupsListCall { + c := &PropertiesChannelGroupsListCall{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. If unspecified, at most 50 resources will be +// returned. The maximum value is 200 (higher values will be coerced to +// the maximum). +func (c *PropertiesChannelGroupsListCall) PageSize(pageSize int64) *PropertiesChannelGroupsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListChannelGroups` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListChannelGroups` must match the call that provided the +// page token. +func (c *PropertiesChannelGroupsListCall) PageToken(pageToken string) *PropertiesChannelGroupsListCall { + 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 *PropertiesChannelGroupsListCall) Fields(s ...googleapi.Field) *PropertiesChannelGroupsListCall { + 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 *PropertiesChannelGroupsListCall) IfNoneMatch(entityTag string) *PropertiesChannelGroupsListCall { + 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 *PropertiesChannelGroupsListCall) Context(ctx context.Context) *PropertiesChannelGroupsListCall { + 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 *PropertiesChannelGroupsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesChannelGroupsListCall) 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}/channelGroups") + 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.channelGroups.list" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaListChannelGroupsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleAnalyticsAdminV1alphaListChannelGroupsResponse.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 *PropertiesChannelGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListChannelGroupsResponse, 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 := &GoogleAnalyticsAdminV1alphaListChannelGroupsResponse{ + 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 ChannelGroups on a property.", + // "flatPath": "v1alpha/properties/{propertiesId}/channelGroups", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.channelGroups.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of resources to return. 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 `ListChannelGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListChannelGroups` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The property for which to list ChannelGroups. Example format: properties/1234", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/channelGroups", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaListChannelGroupsResponse" + // }, + // "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 *PropertiesChannelGroupsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListChannelGroupsResponse) 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.channelGroups.patch": + +type PropertiesChannelGroupsPatchCall struct { + s *Service + name string + googleanalyticsadminv1alphachannelgroup *GoogleAnalyticsAdminV1alphaChannelGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a ChannelGroup. +// +// - name: Output only. The resource name for this Channel Group +// resource. Format: +// properties/{property}/channelGroups/{channel_group}. +func (r *PropertiesChannelGroupsService) Patch(name string, googleanalyticsadminv1alphachannelgroup *GoogleAnalyticsAdminV1alphaChannelGroup) *PropertiesChannelGroupsPatchCall { + c := &PropertiesChannelGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleanalyticsadminv1alphachannelgroup = googleanalyticsadminv1alphachannelgroup + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to be updated. Field names must be in snake case +// (e.g., "field_to_update"). Omitted fields will not be updated. To +// replace the entire entity, use one path with the string "*" to match +// all fields. +func (c *PropertiesChannelGroupsPatchCall) UpdateMask(updateMask string) *PropertiesChannelGroupsPatchCall { + 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 *PropertiesChannelGroupsPatchCall) Fields(s ...googleapi.Field) *PropertiesChannelGroupsPatchCall { + 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 *PropertiesChannelGroupsPatchCall) Context(ctx context.Context) *PropertiesChannelGroupsPatchCall { + 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 *PropertiesChannelGroupsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesChannelGroupsPatchCall) 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.googleanalyticsadminv1alphachannelgroup) + 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/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.channelGroups.patch" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaChannelGroup or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleAnalyticsAdminV1alphaChannelGroup.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 *PropertiesChannelGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaChannelGroup, 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 := &GoogleAnalyticsAdminV1alphaChannelGroup{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a ChannelGroup.", + // "flatPath": "v1alpha/properties/{propertiesId}/channelGroups/{channelGroupsId}", + // "httpMethod": "PATCH", + // "id": "analyticsadmin.properties.channelGroups.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The resource name for this Channel Group resource. Format: properties/{property}/channelGroups/{channel_group}", + // "location": "path", + // "pattern": "^properties/[^/]+/channelGroups/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaChannelGroup" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + // method id "analyticsadmin.properties.conversionEvents.create": type PropertiesConversionEventsCreateCall struct { diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index 637295fd0db..66858954cbf 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -556,7 +556,7 @@ } } }, - "revision": "20230308", + "revision": "20230329", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -721,6 +721,20 @@ "task": { "description": "Task name.", "type": "string" + }, + "taskSource": { + "description": "TaskSource represents the source of the task.", + "enum": [ + "TASK_SOURCE_UNSPECIFIED", + "BATCH_INTERNAL", + "USER" + ], + "enumDescriptions": [ + "Unspecified task source.", + "The AgentTask from this source is generated by Batch server. E.g. all the VMActions are from this source. When Batch Agent execute AgentTask from BATCH_INTERNAL, it will log stdout/err with \"batch_agent_logs\" log name.", + "The AgentTask from this source is provided by Batch users. When Batch Agent execute AgentTask from USER, it will log stdout/err with \"batch_task_logs\" log name." + ], + "type": "string" } }, "type": "object" @@ -1438,15 +1452,17 @@ "ASSIGNED", "RUNNING", "FAILED", - "SUCCEEDED" + "SUCCEEDED", + "UNEXECUTED" ], "enumDescriptions": [ - "unknown state", + "Unknown state.", "The Task is created and waiting for resources.", "The Task is assigned to at least one VM.", "The Task is running.", "The Task has failed.", - "The Task has succeeded." + "The Task has succeeded.", + "The Task has not been executed when the Job finishes." ], "type": "string" }, @@ -1762,15 +1778,17 @@ "ASSIGNED", "RUNNING", "FAILED", - "SUCCEEDED" + "SUCCEEDED", + "UNEXECUTED" ], "enumDescriptions": [ - "unknown state", + "Unknown state.", "The Task is created and waiting for resources.", "The Task is assigned to at least one VM.", "The Task is running.", "The Task has failed.", - "The Task has succeeded." + "The Task has succeeded.", + "The Task has not been executed when the Job finishes." ], "type": "string" }, @@ -1941,15 +1959,17 @@ "ASSIGNED", "RUNNING", "FAILED", - "SUCCEEDED" + "SUCCEEDED", + "UNEXECUTED" ], "enumDescriptions": [ - "unknown state", + "Unknown state.", "The Task is created and waiting for resources.", "The Task is assigned to at least one VM.", "The Task is running.", "The Task has failed.", - "The Task has succeeded." + "The Task has succeeded.", + "The Task has not been executed when the Job finishes." ], "type": "string" }, diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index ff9f946ff02..dce23a53e48 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -418,6 +418,19 @@ type AgentTask struct { // Task: Task name. Task string `json:"task,omitempty"` + // TaskSource: TaskSource represents the source of the task. + // + // Possible values: + // "TASK_SOURCE_UNSPECIFIED" - Unspecified task source. + // "BATCH_INTERNAL" - The AgentTask from this source is generated by + // Batch server. E.g. all the VMActions are from this source. When Batch + // Agent execute AgentTask from BATCH_INTERNAL, it will log stdout/err + // with "batch_agent_logs" log name. + // "USER" - The AgentTask from this source is provided by Batch users. + // When Batch Agent execute AgentTask from USER, it will log stdout/err + // with "batch_task_logs" log name. + TaskSource string `json:"taskSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "IntendedState") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1563,12 +1576,14 @@ type Message struct { // NewTaskState: The new task state. // // Possible values: - // "STATE_UNSPECIFIED" - unknown state + // "STATE_UNSPECIFIED" - Unknown state. // "PENDING" - The Task is created and waiting for resources. // "ASSIGNED" - The Task is assigned to at least one VM. // "RUNNING" - The Task is running. // "FAILED" - The Task has failed. // "SUCCEEDED" - The Task has succeeded. + // "UNEXECUTED" - The Task has not been executed when the Job + // finishes. NewTaskState string `json:"newTaskState,omitempty"` // Type: The message type. @@ -2103,12 +2118,14 @@ type StatusEvent struct { // TaskState: Task State // // Possible values: - // "STATE_UNSPECIFIED" - unknown state + // "STATE_UNSPECIFIED" - Unknown state. // "PENDING" - The Task is created and waiting for resources. // "ASSIGNED" - The Task is assigned to at least one VM. // "RUNNING" - The Task is running. // "FAILED" - The Task has failed. // "SUCCEEDED" - The Task has succeeded. + // "UNEXECUTED" - The Task has not been executed when the Job + // finishes. TaskState string `json:"taskState,omitempty"` // Type: Type of the event. @@ -2378,12 +2395,14 @@ type TaskStatus struct { // State: Task state // // Possible values: - // "STATE_UNSPECIFIED" - unknown state + // "STATE_UNSPECIFIED" - Unknown state. // "PENDING" - The Task is created and waiting for resources. // "ASSIGNED" - The Task is assigned to at least one VM. // "RUNNING" - The Task is running. // "FAILED" - The Task has failed. // "SUCCEEDED" - The Task has succeeded. + // "UNEXECUTED" - The Task has not been executed when the Job + // finishes. State string `json:"state,omitempty"` // StatusEvents: Detailed info about why the state is reached. diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index 4bdbc4261bd..eb2e5f3fd07 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -2295,7 +2295,7 @@ } } }, - "revision": "20230312", + "revision": "20230330", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -3687,7 +3687,7 @@ "GITLAB" ], "enumDescriptions": [ - "The default, unknown repo type.", + "The default, unknown repo type. Don't use it, instead use one of the other repo types.", "A Google Cloud Source Repositories-hosted repo.", "A GitHub-hosted repo not necessarily on \"github.com\" (i.e. GitHub Enterprise).", "A Bitbucket Server-hosted repo.", @@ -4024,7 +4024,7 @@ "GITLAB" ], "enumDescriptions": [ - "The default, unknown repo type.", + "The default, unknown repo type. Don't use it, instead use one of the other repo types.", "A Google Cloud Source Repositories-hosted repo.", "A GitHub-hosted repo not necessarily on \"github.com\" (i.e. GitHub Enterprise).", "A Bitbucket Server-hosted repo.", diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index af38db56bd7..0d10a62d81f 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -2395,7 +2395,8 @@ type GitFileSource struct { // RepoType: See RepoType above. // // Possible values: - // "UNKNOWN" - The default, unknown repo type. + // "UNKNOWN" - The default, unknown repo type. Don't use it, instead + // use one of the other repo types. // "CLOUD_SOURCE_REPOSITORIES" - A Google Cloud Source // Repositories-hosted repo. // "GITHUB" - A GitHub-hosted repo not necessarily on "github.com" @@ -2944,7 +2945,8 @@ type GitRepoSource struct { // RepoType: See RepoType below. // // Possible values: - // "UNKNOWN" - The default, unknown repo type. + // "UNKNOWN" - The default, unknown repo type. Don't use it, instead + // use one of the other repo types. // "CLOUD_SOURCE_REPOSITORIES" - A Google Cloud Source // Repositories-hosted repo. // "GITHUB" - A GitHub-hosted repo not necessarily on "github.com" diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index 8b0605b7436..564e89340e3 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230307", + "revision": "20230330", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -832,7 +832,7 @@ "description": "An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service." }, "kmsKeyName": { - "description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.", + "description": "[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.", "type": "string" }, "labels": { @@ -910,7 +910,7 @@ "id": "GenerateUploadUrlRequest", "properties": { "kmsKeyName": { - "description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. The source code is then copied to a versioned directory in the sources bucket in the consumer project during the function deployment. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. The Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred).", + "description": "[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. The source code is then copied to a versioned directory in the sources bucket in the consumer project during the function deployment. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. The Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred).", "type": "string" } }, diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index 903ffcf005a..4c6bebd7556 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -671,8 +671,9 @@ type Function struct { // that fires events in response to a condition in another service. EventTrigger *EventTrigger `json:"eventTrigger,omitempty"` - // KmsKeyName: Resource name of a KMS crypto key (managed by the user) - // used to encrypt/decrypt function resources. It must match the pattern + // KmsKeyName: [Preview] Resource name of a KMS crypto key (managed by + // the user) used to encrypt/decrypt function resources. It must match + // the pattern // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKey // s/{crypto_key}`. KmsKeyName string `json:"kmsKeyName,omitempty"` @@ -778,13 +779,13 @@ func (s *GenerateDownloadUrlResponse) MarshalJSON() ([]byte, error) { // GenerateUploadUrlRequest: Request of `GenerateSourceUploadUrl` // method. type GenerateUploadUrlRequest struct { - // KmsKeyName: Resource name of a KMS crypto key (managed by the user) - // used to encrypt/decrypt function source code objects in intermediate - // Cloud Storage buckets. When you generate an upload url and upload - // your source code, it gets copied to an intermediate Cloud Storage - // bucket. The source code is then copied to a versioned directory in - // the sources bucket in the consumer project during the function - // deployment. It must match the pattern + // KmsKeyName: [Preview] Resource name of a KMS crypto key (managed by + // the user) used to encrypt/decrypt function source code objects in + // intermediate Cloud Storage buckets. When you generate an upload url + // and upload your source code, it gets copied to an intermediate Cloud + // Storage bucket. The source code is then copied to a versioned + // directory in the sources bucket in the consumer project during the + // function deployment. It must match the pattern // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKey // s/{crypto_key}`. The Google Cloud Functions service account // (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index b3b3db84572..ce1495050d7 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230307", + "revision": "20230330", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -832,7 +832,7 @@ "description": "An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service." }, "kmsKeyName": { - "description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.", + "description": "[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.", "type": "string" }, "labels": { @@ -910,7 +910,7 @@ "id": "GenerateUploadUrlRequest", "properties": { "kmsKeyName": { - "description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. The source code is then copied to a versioned directory in the sources bucket in the consumer project during the function deployment. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. The Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred).", + "description": "[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. The source code is then copied to a versioned directory in the sources bucket in the consumer project during the function deployment. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. The Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred).", "type": "string" } }, diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 6534a51aead..733ff7027eb 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -671,8 +671,9 @@ type Function struct { // that fires events in response to a condition in another service. EventTrigger *EventTrigger `json:"eventTrigger,omitempty"` - // KmsKeyName: Resource name of a KMS crypto key (managed by the user) - // used to encrypt/decrypt function resources. It must match the pattern + // KmsKeyName: [Preview] Resource name of a KMS crypto key (managed by + // the user) used to encrypt/decrypt function resources. It must match + // the pattern // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKey // s/{crypto_key}`. KmsKeyName string `json:"kmsKeyName,omitempty"` @@ -778,13 +779,13 @@ func (s *GenerateDownloadUrlResponse) MarshalJSON() ([]byte, error) { // GenerateUploadUrlRequest: Request of `GenerateSourceUploadUrl` // method. type GenerateUploadUrlRequest struct { - // KmsKeyName: Resource name of a KMS crypto key (managed by the user) - // used to encrypt/decrypt function source code objects in intermediate - // Cloud Storage buckets. When you generate an upload url and upload - // your source code, it gets copied to an intermediate Cloud Storage - // bucket. The source code is then copied to a versioned directory in - // the sources bucket in the consumer project during the function - // deployment. It must match the pattern + // KmsKeyName: [Preview] Resource name of a KMS crypto key (managed by + // the user) used to encrypt/decrypt function source code objects in + // intermediate Cloud Storage buckets. When you generate an upload url + // and upload your source code, it gets copied to an intermediate Cloud + // Storage bucket. The source code is then copied to a versioned + // directory in the sources bucket in the consumer project during the + // function deployment. It must match the pattern // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKey // s/{crypto_key}`. The Google Cloud Functions service account // (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index 7dc75d5eca6..6eaadbe07c9 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230307", + "revision": "20230330", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -832,7 +832,7 @@ "description": "An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service." }, "kmsKeyName": { - "description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.", + "description": "[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.", "type": "string" }, "labels": { @@ -910,7 +910,7 @@ "id": "GenerateUploadUrlRequest", "properties": { "kmsKeyName": { - "description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. The source code is then copied to a versioned directory in the sources bucket in the consumer project during the function deployment. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. The Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred).", + "description": "[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. The source code is then copied to a versioned directory in the sources bucket in the consumer project during the function deployment. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. The Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred).", "type": "string" } }, diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index e7564bb7f6b..5ca23776a5b 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -671,8 +671,9 @@ type Function struct { // that fires events in response to a condition in another service. EventTrigger *EventTrigger `json:"eventTrigger,omitempty"` - // KmsKeyName: Resource name of a KMS crypto key (managed by the user) - // used to encrypt/decrypt function resources. It must match the pattern + // KmsKeyName: [Preview] Resource name of a KMS crypto key (managed by + // the user) used to encrypt/decrypt function resources. It must match + // the pattern // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKey // s/{crypto_key}`. KmsKeyName string `json:"kmsKeyName,omitempty"` @@ -778,13 +779,13 @@ func (s *GenerateDownloadUrlResponse) MarshalJSON() ([]byte, error) { // GenerateUploadUrlRequest: Request of `GenerateSourceUploadUrl` // method. type GenerateUploadUrlRequest struct { - // KmsKeyName: Resource name of a KMS crypto key (managed by the user) - // used to encrypt/decrypt function source code objects in intermediate - // Cloud Storage buckets. When you generate an upload url and upload - // your source code, it gets copied to an intermediate Cloud Storage - // bucket. The source code is then copied to a versioned directory in - // the sources bucket in the consumer project during the function - // deployment. It must match the pattern + // KmsKeyName: [Preview] Resource name of a KMS crypto key (managed by + // the user) used to encrypt/decrypt function source code objects in + // intermediate Cloud Storage buckets. When you generate an upload url + // and upload your source code, it gets copied to an intermediate Cloud + // Storage bucket. The source code is then copied to a versioned + // directory in the sources bucket in the consumer project during the + // function deployment. It must match the pattern // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKey // s/{crypto_key}`. The Google Cloud Functions service account // (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) diff --git a/cloudresourcemanager/v3/cloudresourcemanager-api.json b/cloudresourcemanager/v3/cloudresourcemanager-api.json index 800e39bf5b7..6a6bb2fcb3b 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v3/cloudresourcemanager-api.json @@ -1273,6 +1273,28 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "getNamespaced": { + "description": "Retrieves a TagKey by its namespaced name. This method will return `PERMISSION_DENIED` if the key does not exist or the user does not have permission to view it.", + "flatPath": "v3/tagKeys/namespaced", + "httpMethod": "GET", + "id": "cloudresourcemanager.tagKeys.getNamespaced", + "parameterOrder": [], + "parameters": { + "name": { + "description": "Required. A namespaced tag key name in the format `{parentId}/{tagKeyShort}`, such as `42/foo` for a key with short name \"foo\" under the organization with ID 42 or `r2-d2/bar` for a key with short name \"bar\" under the project `r2-d2`.", + "location": "query", + "type": "string" + } + }, + "path": "v3/tagKeys/namespaced", + "response": { + "$ref": "TagKey" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "list": { "description": "Lists all TagKeys for a parent resource.", "flatPath": "v3/tagKeys", @@ -1519,6 +1541,28 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "getNamespaced": { + "description": "Retrieves a TagValue by its namespaced name. This method will return `PERMISSION_DENIED` if the value does not exist or the user does not have permission to view it.", + "flatPath": "v3/tagValues/namespaced", + "httpMethod": "GET", + "id": "cloudresourcemanager.tagValues.getNamespaced", + "parameterOrder": [], + "parameters": { + "name": { + "description": "Required. A namespaced tag value name in the following format: `{parentId}/{tagKeyShort}/{tagValueShort}` Examples: - `42/foo/abc` for a value with short name \"abc\" under the key with short name \"foo\" under the organization with ID 42 - `r2-d2/bar/xyz` for a value with short name \"xyz\" under the key with short name \"bar\" under the project with ID \"r2-d2\"", + "location": "query", + "type": "string" + } + }, + "path": "v3/tagValues/namespaced", + "response": { + "$ref": "TagValue" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "list": { "description": "Lists all TagValues for a specific TagKey.", "flatPath": "v3/tagValues", @@ -1761,7 +1805,7 @@ } } }, - "revision": "20230219", + "revision": "20230403", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -2751,6 +2795,10 @@ "tagValue": { "description": "The TagValue of the TagBinding. Must be of the form `tagValues/456`.", "type": "string" + }, + "tagValueNamespacedName": { + "description": "The namespaced name for the TagValue of the TagBinding. Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`. For methods that support TagValue namespaced name, only one of tag_value_namespaced_name or tag_value may be filled. Requests with both fields will be rejected.", + "type": "string" } }, "type": "object" diff --git a/cloudresourcemanager/v3/cloudresourcemanager-gen.go b/cloudresourcemanager/v3/cloudresourcemanager-gen.go index 09c0747032c..a64f8cf4602 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v3/cloudresourcemanager-gen.go @@ -2099,6 +2099,14 @@ type TagBinding struct { // `tagValues/456`. TagValue string `json:"tagValue,omitempty"` + // TagValueNamespacedName: The namespaced name for the TagValue of the + // TagBinding. Must be in the format + // `{parent_id}/{tag_key_short_name}/{short_name}`. For methods that + // support TagValue namespaced name, only one of + // tag_value_namespaced_name or tag_value may be filled. Requests with + // both fields will be rejected. + TagValueNamespacedName string `json:"tagValueNamespacedName,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -8863,6 +8871,154 @@ func (c *TagKeysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, err } +// method id "cloudresourcemanager.tagKeys.getNamespaced": + +type TagKeysGetNamespacedCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetNamespaced: Retrieves a TagKey by its namespaced name. This method +// will return `PERMISSION_DENIED` if the key does not exist or the user +// does not have permission to view it. +func (r *TagKeysService) GetNamespaced() *TagKeysGetNamespacedCall { + c := &TagKeysGetNamespacedCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// Name sets the optional parameter "name": Required. A namespaced tag +// key name in the format `{parentId}/{tagKeyShort}`, such as `42/foo` +// for a key with short name "foo" under the organization with ID 42 or +// `r2-d2/bar` for a key with short name "bar" under the project +// `r2-d2`. +func (c *TagKeysGetNamespacedCall) Name(name string) *TagKeysGetNamespacedCall { + c.urlParams_.Set("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 *TagKeysGetNamespacedCall) Fields(s ...googleapi.Field) *TagKeysGetNamespacedCall { + 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 *TagKeysGetNamespacedCall) IfNoneMatch(entityTag string) *TagKeysGetNamespacedCall { + 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 *TagKeysGetNamespacedCall) Context(ctx context.Context) *TagKeysGetNamespacedCall { + 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 *TagKeysGetNamespacedCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TagKeysGetNamespacedCall) 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, "v3/tagKeys/namespaced") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudresourcemanager.tagKeys.getNamespaced" call. +// Exactly one of *TagKey or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *TagKey.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 *TagKeysGetNamespacedCall) Do(opts ...googleapi.CallOption) (*TagKey, 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 := &TagKey{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves a TagKey by its namespaced name. This method will return `PERMISSION_DENIED` if the key does not exist or the user does not have permission to view it.", + // "flatPath": "v3/tagKeys/namespaced", + // "httpMethod": "GET", + // "id": "cloudresourcemanager.tagKeys.getNamespaced", + // "parameterOrder": [], + // "parameters": { + // "name": { + // "description": "Required. A namespaced tag key name in the format `{parentId}/{tagKeyShort}`, such as `42/foo` for a key with short name \"foo\" under the organization with ID 42 or `r2-d2/bar` for a key with short name \"bar\" under the project `r2-d2`.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v3/tagKeys/namespaced", + // "response": { + // "$ref": "TagKey" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + // method id "cloudresourcemanager.tagKeys.list": type TagKeysListCall struct { @@ -10129,6 +10285,156 @@ func (c *TagValuesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, e } +// method id "cloudresourcemanager.tagValues.getNamespaced": + +type TagValuesGetNamespacedCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetNamespaced: Retrieves a TagValue by its namespaced name. This +// method will return `PERMISSION_DENIED` if the value does not exist or +// the user does not have permission to view it. +func (r *TagValuesService) GetNamespaced() *TagValuesGetNamespacedCall { + c := &TagValuesGetNamespacedCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// Name sets the optional parameter "name": Required. A namespaced tag +// value name in the following format: +// `{parentId}/{tagKeyShort}/{tagValueShort}` Examples: - `42/foo/abc` +// for a value with short name "abc" under the key with short name "foo" +// under the organization with ID 42 - `r2-d2/bar/xyz` for a value with +// short name "xyz" under the key with short name "bar" under the +// project with ID "r2-d2" +func (c *TagValuesGetNamespacedCall) Name(name string) *TagValuesGetNamespacedCall { + c.urlParams_.Set("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 *TagValuesGetNamespacedCall) Fields(s ...googleapi.Field) *TagValuesGetNamespacedCall { + 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 *TagValuesGetNamespacedCall) IfNoneMatch(entityTag string) *TagValuesGetNamespacedCall { + 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 *TagValuesGetNamespacedCall) Context(ctx context.Context) *TagValuesGetNamespacedCall { + 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 *TagValuesGetNamespacedCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TagValuesGetNamespacedCall) 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, "v3/tagValues/namespaced") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudresourcemanager.tagValues.getNamespaced" call. +// Exactly one of *TagValue or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *TagValue.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 *TagValuesGetNamespacedCall) Do(opts ...googleapi.CallOption) (*TagValue, 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 := &TagValue{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves a TagValue by its namespaced name. This method will return `PERMISSION_DENIED` if the value does not exist or the user does not have permission to view it.", + // "flatPath": "v3/tagValues/namespaced", + // "httpMethod": "GET", + // "id": "cloudresourcemanager.tagValues.getNamespaced", + // "parameterOrder": [], + // "parameters": { + // "name": { + // "description": "Required. A namespaced tag value name in the following format: `{parentId}/{tagKeyShort}/{tagValueShort}` Examples: - `42/foo/abc` for a value with short name \"abc\" under the key with short name \"foo\" under the organization with ID 42 - `r2-d2/bar/xyz` for a value with short name \"xyz\" under the key with short name \"bar\" under the project with ID \"r2-d2\"", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v3/tagValues/namespaced", + // "response": { + // "$ref": "TagValue" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + // method id "cloudresourcemanager.tagValues.list": type TagValuesListCall struct { diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index b45b4c77b1a..4d069b30794 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -41378,7 +41378,7 @@ } } }, - "revision": "20230322", + "revision": "20230327", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -47093,6 +47093,14 @@ "DiskAsyncReplication": { "id": "DiskAsyncReplication", "properties": { + "consistencyGroupPolicy": { + "description": "[Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.", + "type": "string" + }, + "consistencyGroupPolicyId": { + "description": "[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.", + "type": "string" + }, "disk": { "description": "The other disk asynchronously replicated to or from the current disk. 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 - projects/project/zones/zone/disks/disk - zones/zone/disks/disk ", "type": "string" @@ -69311,11 +69319,15 @@ "NETWORK_ATTACHMENTS", "NETWORK_ENDPOINT_GROUPS", "NETWORK_FIREWALL_POLICIES", + "NET_LB_SECURITY_POLICIES_PER_REGION", + "NET_LB_SECURITY_POLICY_RULES_PER_REGION", + "NET_LB_SECURITY_POLICY_RULE_ATTRIBUTES_PER_REGION", "NODE_GROUPS", "NODE_TEMPLATES", "NVIDIA_A100_80GB_GPUS", "NVIDIA_A100_GPUS", "NVIDIA_K80_GPUS", + "NVIDIA_L4_GPUS", "NVIDIA_P100_GPUS", "NVIDIA_P100_VWS_GPUS", "NVIDIA_P4_GPUS", @@ -69330,6 +69342,7 @@ "PREEMPTIBLE_NVIDIA_A100_80GB_GPUS", "PREEMPTIBLE_NVIDIA_A100_GPUS", "PREEMPTIBLE_NVIDIA_K80_GPUS", + "PREEMPTIBLE_NVIDIA_L4_GPUS", "PREEMPTIBLE_NVIDIA_P100_GPUS", "PREEMPTIBLE_NVIDIA_P100_VWS_GPUS", "PREEMPTIBLE_NVIDIA_P4_GPUS", @@ -69357,6 +69370,7 @@ "ROUTES", "SECURITY_POLICIES", "SECURITY_POLICIES_PER_REGION", + "SECURITY_POLICY_ADVANCED_RULES_PER_REGION", "SECURITY_POLICY_CEVAL_RULES", "SECURITY_POLICY_RULES", "SECURITY_POLICY_RULES_PER_REGION", @@ -69514,6 +69528,12 @@ "", "", "", + "", + "", + "", + "", + "", + "", "The total number of snapshots allowed for a single project.", "", "", diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index 1d8b5e6c51e..7d4f9970ff9 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -10399,6 +10399,16 @@ func (s *DiskAggregatedListWarningData) MarshalJSON() ([]byte, error) { } type DiskAsyncReplication struct { + // ConsistencyGroupPolicy: [Output Only] URL of the + // DiskConsistencyGroupPolicy if replication was started on the disk as + // a member of a group. + ConsistencyGroupPolicy string `json:"consistencyGroupPolicy,omitempty"` + + // ConsistencyGroupPolicyId: [Output Only] ID of the + // DiskConsistencyGroupPolicy if replication was started on the disk as + // a member of a group. + ConsistencyGroupPolicyId string `json:"consistencyGroupPolicyId,omitempty"` + // Disk: The other disk asynchronously replicated to or from the current // disk. You can provide this as a partial or full URL to the resource. // For example, the following are valid values: - @@ -10415,20 +10425,22 @@ type DiskAsyncReplication struct { // identify the exact version of the disk that was used. DiskId string `json:"diskId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Disk") 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. + // "ConsistencyGroupPolicy") 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. "Disk") 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. "ConsistencyGroupPolicy") + // 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:"-"` } @@ -45649,11 +45661,15 @@ type Quota struct { // "NETWORK_ATTACHMENTS" // "NETWORK_ENDPOINT_GROUPS" // "NETWORK_FIREWALL_POLICIES" + // "NET_LB_SECURITY_POLICIES_PER_REGION" + // "NET_LB_SECURITY_POLICY_RULES_PER_REGION" + // "NET_LB_SECURITY_POLICY_RULE_ATTRIBUTES_PER_REGION" // "NODE_GROUPS" // "NODE_TEMPLATES" // "NVIDIA_A100_80GB_GPUS" // "NVIDIA_A100_GPUS" // "NVIDIA_K80_GPUS" + // "NVIDIA_L4_GPUS" // "NVIDIA_P100_GPUS" // "NVIDIA_P100_VWS_GPUS" // "NVIDIA_P4_GPUS" @@ -45668,6 +45684,7 @@ type Quota struct { // "PREEMPTIBLE_NVIDIA_A100_80GB_GPUS" // "PREEMPTIBLE_NVIDIA_A100_GPUS" // "PREEMPTIBLE_NVIDIA_K80_GPUS" + // "PREEMPTIBLE_NVIDIA_L4_GPUS" // "PREEMPTIBLE_NVIDIA_P100_GPUS" // "PREEMPTIBLE_NVIDIA_P100_VWS_GPUS" // "PREEMPTIBLE_NVIDIA_P4_GPUS" @@ -45695,6 +45712,7 @@ type Quota struct { // "ROUTES" // "SECURITY_POLICIES" // "SECURITY_POLICIES_PER_REGION" + // "SECURITY_POLICY_ADVANCED_RULES_PER_REGION" // "SECURITY_POLICY_CEVAL_RULES" // "SECURITY_POLICY_RULES" // "SECURITY_POLICY_RULES_PER_REGION" diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 81059f0deed..5759934392a 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -25807,6 +25807,11 @@ "minimum": "0", "type": "integer" }, + "natName": { + "description": "Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.", + "location": "query", + "type": "string" + }, "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", @@ -32974,7 +32979,7 @@ } } }, - "revision": "20230322", + "revision": "20230327", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -55446,11 +55451,15 @@ "NETWORK_ATTACHMENTS", "NETWORK_ENDPOINT_GROUPS", "NETWORK_FIREWALL_POLICIES", + "NET_LB_SECURITY_POLICIES_PER_REGION", + "NET_LB_SECURITY_POLICY_RULES_PER_REGION", + "NET_LB_SECURITY_POLICY_RULE_ATTRIBUTES_PER_REGION", "NODE_GROUPS", "NODE_TEMPLATES", "NVIDIA_A100_80GB_GPUS", "NVIDIA_A100_GPUS", "NVIDIA_K80_GPUS", + "NVIDIA_L4_GPUS", "NVIDIA_P100_GPUS", "NVIDIA_P100_VWS_GPUS", "NVIDIA_P4_GPUS", @@ -55465,6 +55474,7 @@ "PREEMPTIBLE_NVIDIA_A100_80GB_GPUS", "PREEMPTIBLE_NVIDIA_A100_GPUS", "PREEMPTIBLE_NVIDIA_K80_GPUS", + "PREEMPTIBLE_NVIDIA_L4_GPUS", "PREEMPTIBLE_NVIDIA_P100_GPUS", "PREEMPTIBLE_NVIDIA_P100_VWS_GPUS", "PREEMPTIBLE_NVIDIA_P4_GPUS", @@ -55488,6 +55498,7 @@ "ROUTES", "SECURITY_POLICIES", "SECURITY_POLICIES_PER_REGION", + "SECURITY_POLICY_ADVANCED_RULES_PER_REGION", "SECURITY_POLICY_CEVAL_RULES", "SECURITY_POLICY_RULES", "SECURITY_POLICY_RULES_PER_REGION", @@ -55636,6 +55647,12 @@ "", "", "", + "", + "", + "", + "", + "", + "", "The total number of snapshots allowed for a single project.", "", "", diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index f434f3ca2bb..1cbfdd5619f 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -36922,11 +36922,15 @@ type Quota struct { // "NETWORK_ATTACHMENTS" // "NETWORK_ENDPOINT_GROUPS" // "NETWORK_FIREWALL_POLICIES" + // "NET_LB_SECURITY_POLICIES_PER_REGION" + // "NET_LB_SECURITY_POLICY_RULES_PER_REGION" + // "NET_LB_SECURITY_POLICY_RULE_ATTRIBUTES_PER_REGION" // "NODE_GROUPS" // "NODE_TEMPLATES" // "NVIDIA_A100_80GB_GPUS" // "NVIDIA_A100_GPUS" // "NVIDIA_K80_GPUS" + // "NVIDIA_L4_GPUS" // "NVIDIA_P100_GPUS" // "NVIDIA_P100_VWS_GPUS" // "NVIDIA_P4_GPUS" @@ -36941,6 +36945,7 @@ type Quota struct { // "PREEMPTIBLE_NVIDIA_A100_80GB_GPUS" // "PREEMPTIBLE_NVIDIA_A100_GPUS" // "PREEMPTIBLE_NVIDIA_K80_GPUS" + // "PREEMPTIBLE_NVIDIA_L4_GPUS" // "PREEMPTIBLE_NVIDIA_P100_GPUS" // "PREEMPTIBLE_NVIDIA_P100_VWS_GPUS" // "PREEMPTIBLE_NVIDIA_P4_GPUS" @@ -36964,6 +36969,7 @@ type Quota struct { // "ROUTES" // "SECURITY_POLICIES" // "SECURITY_POLICIES_PER_REGION" + // "SECURITY_POLICY_ADVANCED_RULES_PER_REGION" // "SECURITY_POLICY_CEVAL_RULES" // "SECURITY_POLICY_RULES" // "SECURITY_POLICY_RULES_PER_REGION" @@ -166798,6 +166804,15 @@ func (c *RoutersGetNatMappingInfoCall) MaxResults(maxResults int64) *RoutersGetN return c } +// NatName sets the optional parameter "natName": Name of the nat +// service to filter the Nat Mapping information. If it is omitted, all +// nats for this router will be returned. Name should conform to +// RFC1035. +func (c *RoutersGetNatMappingInfoCall) NatName(natName string) *RoutersGetNatMappingInfoCall { + c.urlParams_.Set("natName", natName) + 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 @@ -166953,6 +166968,11 @@ func (c *RoutersGetNatMappingInfoCall) Do(opts ...googleapi.CallOption) (*VmEndp // "minimum": "0", // "type": "integer" // }, + // "natName": { + // "description": "Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.", + // "location": "query", + // "type": "string" + // }, // "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", diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index 4aebebc61c9..47ae55fdbb9 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -602,7 +602,7 @@ "type": "string" }, "pageSize": { - "description": "Optional. Maximum number of dataScans to return. The service may return fewer than this value. If unspecified, at most 10 scans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "description": "Optional. Maximum number of dataScans to return. The service may return fewer than this value. If unspecified, at most 500 scans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", "format": "int32", "location": "query", "type": "integer" @@ -3990,7 +3990,7 @@ } } }, - "revision": "20230313", + "revision": "20230328", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -4888,7 +4888,7 @@ "description": "Profile information for the corresponding field." }, "type": { - "description": "The field data type. Possible values include: STRING BYTE INT64 INT32 INT16 DOUBLE FLOAT DECIMAL BOOLEAN BINARY TIMESTAMP DATE TIME NULL RECORD", + "description": "The data type retrieved from the schema of the data source. For instance, for a BigQuery native table, it is the BigQuery Table Schema (https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). For a Dataplex Entity, it is the Entity Schema (https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).", "type": "string" } }, @@ -5963,7 +5963,7 @@ "description": "Required. Identifies the storage format of the entity data. It does not apply to entities with data stored in BigQuery." }, "id": { - "description": "Required. A user-provided entity ID. It is mutable, and will be used as the published table name. Specifying a new ID in an update entity request will override the existing value. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores. Must begin with a letter and consist of 256 or fewer characters.", + "description": "Required. A user-provided entity ID. It is mutable, and will be used as the published table name. Specifying a new ID in an update entity request will override the existing value. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores, and consist of 256 or fewer characters.", "type": "string" }, "name": { diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index ff3362de36b..30facadcabc 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1661,9 +1661,12 @@ type GoogleCloudDataplexV1DataProfileResultProfileField struct { // Profile: Profile information for the corresponding field. Profile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo `json:"profile,omitempty"` - // Type: The field data type. Possible values include: STRING BYTE INT64 - // INT32 INT16 DOUBLE FLOAT DECIMAL BOOLEAN BINARY TIMESTAMP DATE TIME - // NULL RECORD + // Type: The data type retrieved from the schema of the data source. For + // instance, for a BigQuery native table, it is the BigQuery Table + // Schema + // (https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). + // For a Dataplex Entity, it is the Entity Schema + // (https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3). Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Mode") to @@ -3275,8 +3278,8 @@ type GoogleCloudDataplexV1Entity struct { // Id: Required. A user-provided entity ID. It is mutable, and will be // used as the published table name. Specifying a new ID in an update // entity request will override the existing value. The ID must contain - // only letters (a-z, A-Z), numbers (0-9), and underscores. Must begin - // with a letter and consist of 256 or fewer characters. + // only letters (a-z, A-Z), numbers (0-9), and underscores, and consist + // of 256 or fewer characters. Id string `json:"id,omitempty"` // Name: Output only. The resource name of the entity, of the form: @@ -9402,7 +9405,7 @@ func (c *ProjectsLocationsDataScansListCall) OrderBy(orderBy string) *ProjectsLo // PageSize sets the optional parameter "pageSize": Maximum number of // dataScans to return. The service may return fewer than this value. If -// unspecified, at most 10 scans will be returned. The maximum value is +// unspecified, at most 500 scans will be returned. The maximum value is // 1000; values above 1000 will be coerced to 1000. func (c *ProjectsLocationsDataScansListCall) PageSize(pageSize int64) *ProjectsLocationsDataScansListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) @@ -9538,7 +9541,7 @@ func (c *ProjectsLocationsDataScansListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "pageSize": { - // "description": "Optional. Maximum number of dataScans to return. The service may return fewer than this value. If unspecified, at most 10 scans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "description": "Optional. Maximum number of dataScans to return. The service may return fewer than this value. If unspecified, at most 500 scans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", // "format": "int32", // "location": "query", // "type": "integer" diff --git a/dns/v1/dns-api.json b/dns/v1/dns-api.json index 0a86c9ffb17..3cea8f8c8fb 100644 --- a/dns/v1/dns-api.json +++ b/dns/v1/dns-api.json @@ -1824,7 +1824,7 @@ } } }, - "revision": "20230126", + "revision": "20230330", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -3109,7 +3109,7 @@ "id": "RRSetRoutingPolicyLoadBalancerTarget", "properties": { "ipAddress": { - "description": "The frontend IP address of the", + "description": "The frontend IP address of the Load Balancer to health check.", "type": "string" }, "ipProtocol": { @@ -3130,6 +3130,7 @@ "type": "string" }, "loadBalancerType": { + "description": "The type of Load Balancer specified by this target. Must match the configuration of the Load Balancer located at the LoadBalancerTarget's IP address/port and region.", "enum": [ "none", "regionalL4ilb" @@ -3141,19 +3142,19 @@ "type": "string" }, "networkUrl": { - "description": "The fully qualified url of the network on which the ILB is", + "description": "The fully qualified url of the network on which the ILB is present. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}", "type": "string" }, "port": { - "description": "Load Balancer to health check. The configured port of the Load Balancer.", + "description": "The configured port of the Load Balancer.", "type": "string" }, "project": { - "description": "present. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} The project ID in which the ILB exists.", + "description": "The project ID in which the ILB exists.", "type": "string" }, "region": { - "description": "The region for regional ILBs.", + "description": "The region in which the ILB exists.", "type": "string" } }, diff --git a/dns/v1/dns-gen.go b/dns/v1/dns-gen.go index 79b21cda8c9..4b144d7f4ea 100644 --- a/dns/v1/dns-gen.go +++ b/dns/v1/dns-gen.go @@ -2492,7 +2492,8 @@ func (s *RRSetRoutingPolicyHealthCheckTargets) MarshalJSON() ([]byte, error) { } type RRSetRoutingPolicyLoadBalancerTarget struct { - // IpAddress: The frontend IP address of the + // IpAddress: The frontend IP address of the Load Balancer to health + // check. IpAddress string `json:"ipAddress,omitempty"` // Possible values: @@ -2503,25 +2504,27 @@ type RRSetRoutingPolicyLoadBalancerTarget struct { Kind string `json:"kind,omitempty"` + // LoadBalancerType: The type of Load Balancer specified by this target. + // Must match the configuration of the Load Balancer located at the + // LoadBalancerTarget's IP address/port and region. + // // Possible values: // "none" // "regionalL4ilb" LoadBalancerType string `json:"loadBalancerType,omitempty"` // NetworkUrl: The fully qualified url of the network on which the ILB - // is + // is present. This should be formatted like + // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} NetworkUrl string `json:"networkUrl,omitempty"` - // Port: Load Balancer to health check. The configured port of the Load - // Balancer. + // Port: The configured port of the Load Balancer. Port string `json:"port,omitempty"` - // Project: present. This should be formatted like - // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} - // The project ID in which the ILB exists. + // Project: The project ID in which the ILB exists. Project string `json:"project,omitempty"` - // Region: The region for regional ILBs. + // Region: The region in which the ILB exists. Region string `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. "IpAddress") to diff --git a/dns/v1beta2/dns-api.json b/dns/v1beta2/dns-api.json index 7868c1b847c..fcffdf0442b 100644 --- a/dns/v1beta2/dns-api.json +++ b/dns/v1beta2/dns-api.json @@ -1821,7 +1821,7 @@ } } }, - "revision": "20230126", + "revision": "20230330", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -3112,7 +3112,7 @@ "id": "RRSetRoutingPolicyLoadBalancerTarget", "properties": { "ipAddress": { - "description": "The frontend IP address of the", + "description": "The frontend IP address of the Load Balancer to health check.", "type": "string" }, "ipProtocol": { @@ -3133,6 +3133,7 @@ "type": "string" }, "loadBalancerType": { + "description": "The type of Load Balancer specified by this target. Must match the configuration of the Load Balancer located at the LoadBalancerTarget's IP address/port and region.", "enum": [ "none", "regionalL4ilb" @@ -3144,19 +3145,19 @@ "type": "string" }, "networkUrl": { - "description": "The fully qualified url of the network on which the ILB is", + "description": "The fully qualified url of the network on which the ILB is present. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}", "type": "string" }, "port": { - "description": "Load Balancer to health check. The configured port of the Load Balancer.", + "description": "The configured port of the Load Balancer.", "type": "string" }, "project": { - "description": "present. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} The project ID in which the ILB exists.", + "description": "The project ID in which the ILB exists.", "type": "string" }, "region": { - "description": "The region for regional ILBs.", + "description": "The region in which the ILB exists.", "type": "string" } }, diff --git a/dns/v1beta2/dns-gen.go b/dns/v1beta2/dns-gen.go index 6c63885b921..fd1cb8ab9ea 100644 --- a/dns/v1beta2/dns-gen.go +++ b/dns/v1beta2/dns-gen.go @@ -2496,7 +2496,8 @@ func (s *RRSetRoutingPolicyHealthCheckTargets) MarshalJSON() ([]byte, error) { } type RRSetRoutingPolicyLoadBalancerTarget struct { - // IpAddress: The frontend IP address of the + // IpAddress: The frontend IP address of the Load Balancer to health + // check. IpAddress string `json:"ipAddress,omitempty"` // Possible values: @@ -2507,25 +2508,27 @@ type RRSetRoutingPolicyLoadBalancerTarget struct { Kind string `json:"kind,omitempty"` + // LoadBalancerType: The type of Load Balancer specified by this target. + // Must match the configuration of the Load Balancer located at the + // LoadBalancerTarget's IP address/port and region. + // // Possible values: // "none" // "regionalL4ilb" LoadBalancerType string `json:"loadBalancerType,omitempty"` // NetworkUrl: The fully qualified url of the network on which the ILB - // is + // is present. This should be formatted like + // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} NetworkUrl string `json:"networkUrl,omitempty"` - // Port: Load Balancer to health check. The configured port of the Load - // Balancer. + // Port: The configured port of the Load Balancer. Port string `json:"port,omitempty"` - // Project: present. This should be formatted like - // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} - // The project ID in which the ILB exists. + // Project: The project ID in which the ILB exists. Project string `json:"project,omitempty"` - // Region: The region for regional ILBs. + // Region: The region in which the ILB exists. Region string `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. "IpAddress") to diff --git a/ondemandscanning/v1/ondemandscanning-api.json b/ondemandscanning/v1/ondemandscanning-api.json index 4d45300ea37..e7122fcc88a 100644 --- a/ondemandscanning/v1/ondemandscanning-api.json +++ b/ondemandscanning/v1/ondemandscanning-api.json @@ -339,7 +339,7 @@ } } }, - "revision": "20230327", + "revision": "20230403", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AliasContext": { @@ -1744,7 +1744,7 @@ }, "binary": { "$ref": "Binary", - "description": "The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See https://b.corp.google.com/issues/175908657#comment15" + "description": "The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See b/175908657#comment15." }, "cpeUri": { "description": "The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which the vulnerability may manifest. Examples include distro or storage location for vulnerable jar.", diff --git a/ondemandscanning/v1/ondemandscanning-gen.go b/ondemandscanning/v1/ondemandscanning-gen.go index f0033ace4c2..b60574e0faa 100644 --- a/ondemandscanning/v1/ondemandscanning-gen.go +++ b/ondemandscanning/v1/ondemandscanning-gen.go @@ -2425,8 +2425,7 @@ type PackageData struct { // different than the binary itself. Historically if they've differed, // we've stored the name of the source and its version in the // package/version fields, but we should also store the binary package - // info, as that's what's actually installed. See - // https://b.corp.google.com/issues/175908657#comment15 + // info, as that's what's actually installed. See b/175908657#comment15. Binary *Binary `json:"binary,omitempty"` // CpeUri: The cpe_uri in [cpe format] diff --git a/ondemandscanning/v1beta1/ondemandscanning-api.json b/ondemandscanning/v1beta1/ondemandscanning-api.json index d419dfd6acf..c0bd053dd19 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-api.json +++ b/ondemandscanning/v1beta1/ondemandscanning-api.json @@ -339,7 +339,7 @@ } } }, - "revision": "20230327", + "revision": "20230403", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AliasContext": { @@ -1740,7 +1740,7 @@ }, "binary": { "$ref": "Binary", - "description": "The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See https://b.corp.google.com/issues/175908657#comment15" + "description": "The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See b/175908657#comment15." }, "cpeUri": { "description": "The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which the vulnerability may manifest. Examples include distro or storage location for vulnerable jar.", diff --git a/ondemandscanning/v1beta1/ondemandscanning-gen.go b/ondemandscanning/v1beta1/ondemandscanning-gen.go index cf8e6c9cd9e..a78f95372ef 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-gen.go +++ b/ondemandscanning/v1beta1/ondemandscanning-gen.go @@ -2419,8 +2419,7 @@ type PackageData struct { // different than the binary itself. Historically if they've differed, // we've stored the name of the source and its version in the // package/version fields, but we should also store the binary package - // info, as that's what's actually installed. See - // https://b.corp.google.com/issues/175908657#comment15 + // info, as that's what's actually installed. See b/175908657#comment15. Binary *Binary `json:"binary,omitempty"` // CpeUri: The cpe_uri in [cpe format] diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 58386cb0191..e3e1f33d364 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -396,7 +396,7 @@ } } }, - "revision": "20230309", + "revision": "20230404", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -433,6 +433,7 @@ "CANCELLATION_REASON_ACCOUNT_CLOSED", "CANCELLATION_REASON_UPGRADE_DOWNGRADE", "CANCELLATION_REASON_USER_DELINQUENCY", + "CANCELLATION_REASON_SYSTEM_ERROR", "CANCELLATION_REASON_OTHER" ], "enumDescriptions": [ @@ -444,6 +445,7 @@ "User account closed.", "Used for notification only, do not use in Cancel API. Cancellation due to upgrade or downgrade.", "Cancellation due to user delinquency", + "Cancellation due to an unrecoverable system error.", "Other reason." ], "type": "string" @@ -1046,6 +1048,7 @@ "CANCELLATION_REASON_ACCOUNT_CLOSED", "CANCELLATION_REASON_UPGRADE_DOWNGRADE", "CANCELLATION_REASON_USER_DELINQUENCY", + "CANCELLATION_REASON_SYSTEM_ERROR", "CANCELLATION_REASON_OTHER" ], "enumDescriptions": [ @@ -1057,6 +1060,7 @@ "User account closed.", "Used for notification only, do not use in Cancel API. Cancellation due to upgrade or downgrade.", "Cancellation due to user delinquency", + "Cancellation due to an unrecoverable system error.", "Other reason." ], "type": "string" diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index 1256281c1ab..81d5db19504 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -228,6 +228,8 @@ type GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest struct { // downgrade. // "CANCELLATION_REASON_USER_DELINQUENCY" - Cancellation due to user // delinquency + // "CANCELLATION_REASON_SYSTEM_ERROR" - Cancellation due to an + // unrecoverable system error. // "CANCELLATION_REASON_OTHER" - Other reason. CancellationReason string `json:"cancellationReason,omitempty"` @@ -1198,6 +1200,8 @@ type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails st // downgrade. // "CANCELLATION_REASON_USER_DELINQUENCY" - Cancellation due to user // delinquency + // "CANCELLATION_REASON_SYSTEM_ERROR" - Cancellation due to an + // unrecoverable system error. // "CANCELLATION_REASON_OTHER" - Other reason. Reason string `json:"reason,omitempty"` diff --git a/privateca/v1/privateca-api.json b/privateca/v1/privateca-api.json index cd1f73be747..66345432278 100644 --- a/privateca/v1/privateca-api.json +++ b/privateca/v1/privateca-api.json @@ -226,6 +226,11 @@ "name" ], "parameters": { + "ignoreDependentResources": { + "description": "Optional. This field allows this pool to be deleted even if it's being depended on by another resource. However, doing so may result in unintended and unrecoverable effects on any dependent resource(s) since the pool will no longer be able to issue certificates.", + "location": "query", + "type": "boolean" + }, "name": { "description": "Required. The resource name for this CaPool in the format `projects/*/locations/*/caPools/*`.", "location": "path", @@ -556,6 +561,11 @@ "location": "query", "type": "boolean" }, + "ignoreDependentResources": { + "description": "Optional. This field allows this ca to be deleted even if it's being depended on by another resource. However, doing so may result in unintended and unrecoverable effects on any dependent resource(s) since the CA will no longer be able to issue certificates.", + "location": "query", + "type": "boolean" + }, "name": { "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.", "location": "path", @@ -1595,7 +1605,7 @@ } } }, - "revision": "20230315", + "revision": "20230403", "rootUrl": "https://privateca.googleapis.com/", "schemas": { "AccessUrls": { @@ -2280,6 +2290,10 @@ "description": "Request message for CertificateAuthorityService.DisableCertificateAuthority.", "id": "DisableCertificateAuthorityRequest", "properties": { + "ignoreDependentResources": { + "description": "Optional. This field allows this CA to be disabled even if it's being depended on by another resource. However, doing so may result in unintended and unrecoverable effects on any dependent resource(s) since the CA will no longer be able to issue certificates.", + "type": "boolean" + }, "requestId": { "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. 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).", "type": "string" @@ -3024,7 +3038,7 @@ ], "enumDescriptions": [ "Unknown repair action.", - "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel. For more information - go/ccfe-delete-on-upsert, go/ccfe-reconciliation-protocol-ug#apply_delete", + "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel.", "This resource could not be repaired but the repair should be tried again at a later time. This can happen if there is a dependency that needs to be resolved first- e.g. if a parent resource must be repaired before a child resource." ], "type": "string" diff --git a/privateca/v1/privateca-gen.go b/privateca/v1/privateca-gen.go index 187e4c0a5b0..0ffccdc84b9 100644 --- a/privateca/v1/privateca-gen.go +++ b/privateca/v1/privateca-gen.go @@ -1302,6 +1302,13 @@ func (s *CertificateTemplate) MarshalJSON() ([]byte, error) { // DisableCertificateAuthorityRequest: Request message for // CertificateAuthorityService.DisableCertificateAuthority. type DisableCertificateAuthorityRequest struct { + // IgnoreDependentResources: Optional. This field allows this CA to be + // disabled even if it's being depended on by another resource. However, + // doing so may result in unintended and unrecoverable effects on any + // dependent resource(s) since the CA will no longer be able to issue + // certificates. + IgnoreDependentResources bool `json:"ignoreDependentResources,omitempty"` + // RequestId: Optional. An ID to identify requests. Specify a unique // request ID so that if you must retry your request, the server will // know to ignore the request if it has already been completed. The @@ -1316,20 +1323,22 @@ type DisableCertificateAuthorityRequest struct { // (00000000-0000-0000-0000-000000000000). RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "RequestId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "IgnoreDependentResources") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RequestId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IgnoreDependentResources") + // 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:"-"` } @@ -2716,9 +2725,7 @@ type ReconciliationOperationMetadata struct { // "UNKNOWN_REPAIR_ACTION" - Unknown repair action. // "DELETE" - The resource has to be deleted. When using this bit, the // CLH should fail the operation. DEPRECATED. Instead use - // DELETE_RESOURCE OperationSignal in SideChannel. For more information - // - go/ccfe-delete-on-upsert, - // go/ccfe-reconciliation-protocol-ug#apply_delete + // DELETE_RESOURCE OperationSignal in SideChannel. // "RETRY" - This resource could not be repaired but the repair should // be tried again at a later time. This can happen if there is a // dependency that needs to be resolved first- e.g. if a parent resource @@ -4042,6 +4049,17 @@ func (r *ProjectsLocationsCaPoolsService) Delete(name string) *ProjectsLocations return c } +// IgnoreDependentResources sets the optional parameter +// "ignoreDependentResources": This field allows this pool to be deleted +// even if it's being depended on by another resource. However, doing so +// may result in unintended and unrecoverable effects on any dependent +// resource(s) since the pool will no longer be able to issue +// certificates. +func (c *ProjectsLocationsCaPoolsDeleteCall) IgnoreDependentResources(ignoreDependentResources bool) *ProjectsLocationsCaPoolsDeleteCall { + c.urlParams_.Set("ignoreDependentResources", fmt.Sprint(ignoreDependentResources)) + return c +} + // RequestId sets the optional parameter "requestId": An 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 @@ -4153,6 +4171,11 @@ func (c *ProjectsLocationsCaPoolsDeleteCall) Do(opts ...googleapi.CallOption) (* // "name" // ], // "parameters": { + // "ignoreDependentResources": { + // "description": "Optional. This field allows this pool to be deleted even if it's being depended on by another resource. However, doing so may result in unintended and unrecoverable effects on any dependent resource(s) since the pool will no longer be able to issue certificates.", + // "location": "query", + // "type": "boolean" + // }, // "name": { // "description": "Required. The resource name for this CaPool in the format `projects/*/locations/*/caPools/*`.", // "location": "path", @@ -5694,6 +5717,17 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesDeleteCall) IgnoreActiveC return c } +// IgnoreDependentResources sets the optional parameter +// "ignoreDependentResources": This field allows this ca to be deleted +// even if it's being depended on by another resource. However, doing so +// may result in unintended and unrecoverable effects on any dependent +// resource(s) since the CA will no longer be able to issue +// certificates. +func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesDeleteCall) IgnoreDependentResources(ignoreDependentResources bool) *ProjectsLocationsCaPoolsCertificateAuthoritiesDeleteCall { + c.urlParams_.Set("ignoreDependentResources", fmt.Sprint(ignoreDependentResources)) + return c +} + // RequestId sets the optional parameter "requestId": An 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 @@ -5820,6 +5854,11 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesDeleteCall) Do(opts ...go // "location": "query", // "type": "boolean" // }, + // "ignoreDependentResources": { + // "description": "Optional. This field allows this ca to be deleted even if it's being depended on by another resource. However, doing so may result in unintended and unrecoverable effects on any dependent resource(s) since the CA will no longer be able to issue certificates.", + // "location": "query", + // "type": "boolean" + // }, // "name": { // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.", // "location": "path", diff --git a/privateca/v1beta1/privateca-api.json b/privateca/v1beta1/privateca-api.json index 3e00be6bd85..fefd3079726 100644 --- a/privateca/v1beta1/privateca-api.json +++ b/privateca/v1beta1/privateca-api.json @@ -580,7 +580,7 @@ } } }, - "revision": "20230315", + "revision": "20230403", "rootUrl": "https://privateca.googleapis.com/", "schemas": { "AuditConfig": { @@ -841,7 +841,7 @@ ], "enumDescriptions": [ "Unknown repair action.", - "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel. For more information - go/ccfe-delete-on-upsert, go/ccfe-reconciliation-protocol-ug#apply_delete", + "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel.", "This resource could not be repaired but the repair should be tried again at a later time. This can happen if there is a dependency that needs to be resolved first- e.g. if a parent resource must be repaired before a child resource." ], "type": "string" diff --git a/privateca/v1beta1/privateca-gen.go b/privateca/v1beta1/privateca-gen.go index 22e9accf768..57e5e7f056c 100644 --- a/privateca/v1beta1/privateca-gen.go +++ b/privateca/v1beta1/privateca-gen.go @@ -766,9 +766,7 @@ type ReconciliationOperationMetadata struct { // "UNKNOWN_REPAIR_ACTION" - Unknown repair action. // "DELETE" - The resource has to be deleted. When using this bit, the // CLH should fail the operation. DEPRECATED. Instead use - // DELETE_RESOURCE OperationSignal in SideChannel. For more information - // - go/ccfe-delete-on-upsert, - // go/ccfe-reconciliation-protocol-ug#apply_delete + // DELETE_RESOURCE OperationSignal in SideChannel. // "RETRY" - This resource could not be repaired but the repair should // be tried again at a later time. This can happen if there is a // dependency that needs to be resolved first- e.g. if a parent resource diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 2c6809e658b..beb3f3d8a0f 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2289,7 +2289,7 @@ } } }, - "revision": "20230305", + "revision": "20230402", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -3543,7 +3543,7 @@ "additionalProperties": { "type": "string" }, - "description": "Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution. Execution. More info: https://kubernetes.io/docs/user-guide/annotations", + "description": "Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution. Execution. More info: https://kubernetes.io/docs/user-guide/annotations", "type": "object" }, "clusterName": { diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 636b6713018..077a859409b 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -2627,6 +2627,7 @@ type ObjectMeta struct { // `run.googleapis.com/execution-environment`: Revision, Execution. * // `run.googleapis.com/gc-traffic-tags`: Service. * // `run.googleapis.com/ingress`: Service. * + // `run.googleapis.com/launch-stage`: Service, Job. * // `run.googleapis.com/network-interfaces`: Revision, Execution. * // `run.googleapis.com/post-key-revocation-action-type`: Revision. * // `run.googleapis.com/secrets`: Revision, Execution. * diff --git a/searchads360/v0/searchads360-api.json b/searchads360/v0/searchads360-api.json index 3c8f014626f..e03c32afa18 100644 --- a/searchads360/v0/searchads360-api.json +++ b/searchads360/v0/searchads360-api.json @@ -271,7 +271,7 @@ } } }, - "revision": "20230330", + "revision": "20230405", "rootUrl": "https://searchads360.googleapis.com/", "schemas": { "GoogleAdsSearchads360V0Common__AgeRangeInfo": { @@ -999,38 +999,6 @@ }, "type": "object" }, - "GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo": { - "description": "A Search Ads 360 text ad.", - "id": "GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo", - "properties": { - "adTrackId": { - "description": "The tracking id of the ad.", - "format": "int64", - "type": "string" - }, - "description1": { - "description": "The first line of the ad's description.", - "type": "string" - }, - "description2": { - "description": "The second line of the ad's description.", - "type": "string" - }, - "displayMobileUrl": { - "description": "The displayed mobile URL of the ad.", - "type": "string" - }, - "displayUrl": { - "description": "The displayed URL of the ad.", - "type": "string" - }, - "headline": { - "description": "The headline of the ad.", - "type": "string" - } - }, - "type": "object" - }, "GoogleAdsSearchads360V0Common__Segments": { "description": "Segment only fields.", "id": "GoogleAdsSearchads360V0Common__Segments", @@ -2308,10 +2276,6 @@ "description": "Immutable. The resource name of the ad. Ad resource names have the form: `customers/{customer_id}/ads/{ad_id}`", "type": "string" }, - "textAd": { - "$ref": "GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo", - "description": "Immutable. Details pertaining to a text ad." - }, "type": { "description": "Output only. The type of ad.", "enum": [ diff --git a/searchads360/v0/searchads360-gen.go b/searchads360/v0/searchads360-gen.go index 2bed88fc3db..d8508c6170d 100644 --- a/searchads360/v0/searchads360-gen.go +++ b/searchads360/v0/searchads360-gen.go @@ -1294,50 +1294,6 @@ func (s *GoogleAdsSearchads360V0Common__RealTimeBiddingSetting) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo: A Search Ads -// 360 text ad. -type GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo struct { - // AdTrackId: The tracking id of the ad. - AdTrackId int64 `json:"adTrackId,omitempty,string"` - - // Description1: The first line of the ad's description. - Description1 string `json:"description1,omitempty"` - - // Description2: The second line of the ad's description. - Description2 string `json:"description2,omitempty"` - - // DisplayMobileUrl: The displayed mobile URL of the ad. - DisplayMobileUrl string `json:"displayMobileUrl,omitempty"` - - // DisplayUrl: The displayed URL of the ad. - DisplayUrl string `json:"displayUrl,omitempty"` - - // Headline: The headline of the ad. - Headline string `json:"headline,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdTrackId") 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. "AdTrackId") 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 *GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleAdsSearchads360V0Common__Segments: Segment only fields. type GoogleAdsSearchads360V0Common__Segments struct { // ConversionAction: Resource name of the conversion action. @@ -3143,9 +3099,6 @@ type GoogleAdsSearchads360V0Resources__Ad struct { // names have the form: `customers/{customer_id}/ads/{ad_id}` ResourceName string `json:"resourceName,omitempty"` - // TextAd: Immutable. Details pertaining to a text ad. - TextAd *GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo `json:"textAd,omitempty"` - // Type: Output only. The type of ad. // // Possible values: diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index 730cfa375b0..a87782715a0 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -2023,7 +2023,7 @@ } } }, - "revision": "20230309", + "revision": "20230403", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2050,6 +2050,18 @@ }, "type": "object" }, + "AdvancedMachineFeatures": { + "description": "Specifies options for controlling advanced machine features.", + "id": "AdvancedMachineFeatures", + "properties": { + "threadsPerCore": { + "description": "The number of threads per physical core.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "ApiWarning": { "description": "An Admin API warning message.", "id": "ApiWarning", @@ -2537,10 +2549,11 @@ "id": "DatabaseInstance", "properties": { "availableMaintenanceVersions": { - "description": "List all maintenance versions applicable on the instance", + "description": "Output only. List all maintenance versions applicable on the instance", "items": { "type": "string" }, + "readOnly": true, "type": "array" }, "backendType": { @@ -4256,6 +4269,10 @@ "$ref": "SqlActiveDirectoryConfig", "description": "Active Directory configuration, relevant only for Cloud SQL for SQL Server." }, + "advancedMachineFeatures": { + "$ref": "AdvancedMachineFeatures", + "description": "Specifies advance machine configuration for the instance relevant only for SQL Server." + }, "authorizedGaeApplications": { "description": "The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.", "items": { diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 0a3ba7224bd..f66444b0009 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -315,6 +315,36 @@ func (s *AclEntry) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AdvancedMachineFeatures: Specifies options for controlling advanced +// machine features. +type AdvancedMachineFeatures struct { + // ThreadsPerCore: The number of threads per physical core. + ThreadsPerCore int64 `json:"threadsPerCore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ThreadsPerCore") 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. "ThreadsPerCore") 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 *AdvancedMachineFeatures) MarshalJSON() ([]byte, error) { + type NoMethod AdvancedMachineFeatures + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ApiWarning: An Admin API warning message. type ApiWarning struct { // Code: Code to uniquely identify the warning type. @@ -959,8 +989,8 @@ func (s *DatabaseFlags) MarshalJSON() ([]byte, error) { // DatabaseInstance: A Cloud SQL instance resource. type DatabaseInstance struct { - // AvailableMaintenanceVersions: List all maintenance versions - // applicable on the instance + // AvailableMaintenanceVersions: Output only. List all maintenance + // versions applicable on the instance AvailableMaintenanceVersions []string `json:"availableMaintenanceVersions,omitempty"` // BackendType: The backend type. `SECOND_GEN`: Cloud SQL database @@ -3584,6 +3614,10 @@ type Settings struct { // for Cloud SQL for SQL Server. ActiveDirectoryConfig *SqlActiveDirectoryConfig `json:"activeDirectoryConfig,omitempty"` + // AdvancedMachineFeatures: Specifies advance machine configuration for + // the instance relevant only for SQL Server. + AdvancedMachineFeatures *AdvancedMachineFeatures `json:"advancedMachineFeatures,omitempty"` + // AuthorizedGaeApplications: The App Engine app IDs that can access // this instance. (Deprecated) Applied to First Generation instances // only. diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 2b38bb6fc21..e475a0deef9 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -2023,7 +2023,7 @@ } } }, - "revision": "20230309", + "revision": "20230403", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2050,6 +2050,18 @@ }, "type": "object" }, + "AdvancedMachineFeatures": { + "description": "Specifies options for controlling advanced machine features.", + "id": "AdvancedMachineFeatures", + "properties": { + "threadsPerCore": { + "description": "The number of threads per physical core.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "ApiWarning": { "description": "An Admin API warning message.", "id": "ApiWarning", @@ -2537,10 +2549,11 @@ "id": "DatabaseInstance", "properties": { "availableMaintenanceVersions": { - "description": "List all maintenance versions applicable on the instance", + "description": "Output only. List all maintenance versions applicable on the instance", "items": { "type": "string" }, + "readOnly": true, "type": "array" }, "backendType": { @@ -4256,6 +4269,10 @@ "$ref": "SqlActiveDirectoryConfig", "description": "Active Directory configuration, relevant only for Cloud SQL for SQL Server." }, + "advancedMachineFeatures": { + "$ref": "AdvancedMachineFeatures", + "description": "Specifies advance machine configuration for the instance relevant only for SQL Server." + }, "authorizedGaeApplications": { "description": "The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.", "items": { diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index ab42509461b..cf48447471b 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -315,6 +315,36 @@ func (s *AclEntry) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AdvancedMachineFeatures: Specifies options for controlling advanced +// machine features. +type AdvancedMachineFeatures struct { + // ThreadsPerCore: The number of threads per physical core. + ThreadsPerCore int64 `json:"threadsPerCore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ThreadsPerCore") 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. "ThreadsPerCore") 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 *AdvancedMachineFeatures) MarshalJSON() ([]byte, error) { + type NoMethod AdvancedMachineFeatures + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ApiWarning: An Admin API warning message. type ApiWarning struct { // Code: Code to uniquely identify the warning type. @@ -958,8 +988,8 @@ func (s *DatabaseFlags) MarshalJSON() ([]byte, error) { // DatabaseInstance: A Cloud SQL instance resource. type DatabaseInstance struct { - // AvailableMaintenanceVersions: List all maintenance versions - // applicable on the instance + // AvailableMaintenanceVersions: Output only. List all maintenance + // versions applicable on the instance AvailableMaintenanceVersions []string `json:"availableMaintenanceVersions,omitempty"` // BackendType: The backend type. `SECOND_GEN`: Cloud SQL database @@ -3584,6 +3614,10 @@ type Settings struct { // for Cloud SQL for SQL Server. ActiveDirectoryConfig *SqlActiveDirectoryConfig `json:"activeDirectoryConfig,omitempty"` + // AdvancedMachineFeatures: Specifies advance machine configuration for + // the instance relevant only for SQL Server. + AdvancedMachineFeatures *AdvancedMachineFeatures `json:"advancedMachineFeatures,omitempty"` + // AuthorizedGaeApplications: The App Engine app IDs that can access // this instance. (Deprecated) Applied to First Generation instances // only. diff --git a/texttospeech/v1/texttospeech-api.json b/texttospeech/v1/texttospeech-api.json index 97984eaeca1..cbecb52ee58 100644 --- a/texttospeech/v1/texttospeech-api.json +++ b/texttospeech/v1/texttospeech-api.json @@ -176,7 +176,7 @@ ], "parameters": { "parent": { - "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", + "description": "The resource states of the request in the form of `projects/*/locations/*`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -318,7 +318,7 @@ } } }, - "revision": "20230306", + "revision": "20230403", "rootUrl": "https://texttospeech.googleapis.com/", "schemas": { "AudioConfig": { diff --git a/texttospeech/v1/texttospeech-gen.go b/texttospeech/v1/texttospeech-gen.go index 273b0c32b83..e0bed256776 100644 --- a/texttospeech/v1/texttospeech-gen.go +++ b/texttospeech/v1/texttospeech-gen.go @@ -1218,7 +1218,7 @@ type ProjectsLocationsSynthesizeLongAudioCall struct { // SynthesizeLongAudio: Synthesizes long form text asynchronously. // // - parent: The resource states of the request in the form of -// `projects/*/locations/*/voices/*`. +// `projects/*/locations/*`. func (r *ProjectsLocationsService) SynthesizeLongAudio(parent string, synthesizelongaudiorequest *SynthesizeLongAudioRequest) *ProjectsLocationsSynthesizeLongAudioCall { c := &ProjectsLocationsSynthesizeLongAudioCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1326,7 +1326,7 @@ func (c *ProjectsLocationsSynthesizeLongAudioCall) Do(opts ...googleapi.CallOpti // ], // "parameters": { // "parent": { - // "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", + // "description": "The resource states of the request in the form of `projects/*/locations/*`.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, diff --git a/texttospeech/v1beta1/texttospeech-api.json b/texttospeech/v1beta1/texttospeech-api.json index 810aa8bb33c..6148dd69dc9 100644 --- a/texttospeech/v1beta1/texttospeech-api.json +++ b/texttospeech/v1beta1/texttospeech-api.json @@ -119,7 +119,7 @@ ], "parameters": { "parent": { - "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", + "description": "The resource states of the request in the form of `projects/*/locations/*`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -261,7 +261,7 @@ } } }, - "revision": "20230306", + "revision": "20230403", "rootUrl": "https://texttospeech.googleapis.com/", "schemas": { "AudioConfig": { diff --git a/texttospeech/v1beta1/texttospeech-gen.go b/texttospeech/v1beta1/texttospeech-gen.go index 752d68d8415..15609a3f5e5 100644 --- a/texttospeech/v1beta1/texttospeech-gen.go +++ b/texttospeech/v1beta1/texttospeech-gen.go @@ -970,7 +970,7 @@ type ProjectsLocationsSynthesizeLongAudioCall struct { // SynthesizeLongAudio: Synthesizes long form text asynchronously. // // - parent: The resource states of the request in the form of -// `projects/*/locations/*/voices/*`. +// `projects/*/locations/*`. func (r *ProjectsLocationsService) SynthesizeLongAudio(parent string, synthesizelongaudiorequest *SynthesizeLongAudioRequest) *ProjectsLocationsSynthesizeLongAudioCall { c := &ProjectsLocationsSynthesizeLongAudioCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1078,7 +1078,7 @@ func (c *ProjectsLocationsSynthesizeLongAudioCall) Do(opts ...googleapi.CallOpti // ], // "parameters": { // "parent": { - // "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", + // "description": "The resource states of the request in the form of `projects/*/locations/*`.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, diff --git a/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index e0db51b9920..a1435df06d1 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20230323", + "revision": "20230330", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { @@ -2766,6 +2766,19 @@ }, "type": "object" }, + "CutoverForecast": { + "description": "CutoverForecast holds information about future CutoverJobs of a MigratingVm.", + "id": "CutoverForecast", + "properties": { + "estimatedCutoverJobDuration": { + "description": "Output only. Estimation of the CutoverJob duration.", + "format": "google-duration", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "CutoverJob": { "description": "CutoverJob message describes a cutover of a migrating VM. The CutoverJob is the operation of shutting down the VM, creating a snapshot and clonning the VM using the replicated snapshot.", "id": "CutoverJob", @@ -3485,6 +3498,11 @@ "description": "Output only. Details of the current running replication cycle.", "readOnly": true }, + "cutoverForecast": { + "$ref": "CutoverForecast", + "description": "Output only. Provides details of future CutoverJobs of a MigratingVm. Set to empty when cutover forecast is unavailable.", + "readOnly": true + }, "description": { "description": "The description attached to the migrating VM by the user.", "type": "string" diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index f98ebd28228..1f2a029d630 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -1165,6 +1165,38 @@ func (s *ComputeScheduling) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CutoverForecast: CutoverForecast holds information about future +// CutoverJobs of a MigratingVm. +type CutoverForecast struct { + // EstimatedCutoverJobDuration: Output only. Estimation of the + // CutoverJob duration. + EstimatedCutoverJobDuration string `json:"estimatedCutoverJobDuration,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EstimatedCutoverJobDuration") 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. + // "EstimatedCutoverJobDuration") 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 *CutoverForecast) MarshalJSON() ([]byte, error) { + type NoMethod CutoverForecast + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CutoverJob: CutoverJob message describes a cutover of a migrating VM. // The CutoverJob is the operation of shutting down the VM, creating a // snapshot and clonning the VM using the replicated snapshot. @@ -2148,6 +2180,10 @@ type MigratingVm struct { // replication cycle. CurrentSyncInfo *ReplicationCycle `json:"currentSyncInfo,omitempty"` + // CutoverForecast: Output only. Provides details of future CutoverJobs + // of a MigratingVm. Set to empty when cutover forecast is unavailable. + CutoverForecast *CutoverForecast `json:"cutoverForecast,omitempty"` + // Description: The description attached to the migrating VM by the // user. Description string `json:"description,omitempty"` diff --git a/workflows/v1/workflows-api.json b/workflows/v1/workflows-api.json index ccfd0e01a0c..17d16b99833 100644 --- a/workflows/v1/workflows-api.json +++ b/workflows/v1/workflows-api.json @@ -449,7 +449,7 @@ } } }, - "revision": "20230322", + "revision": "20230329", "rootUrl": "https://workflows.googleapis.com/", "schemas": { "Empty": { @@ -617,6 +617,29 @@ }, "type": "object" }, + "StateError": { + "description": "Describes an error related to the current state of the workflow.", + "id": "StateError", + "properties": { + "details": { + "description": "Provides specifics about the error.", + "type": "string" + }, + "type": { + "description": "The type of this state error.", + "enum": [ + "TYPE_UNSPECIFIED", + "KMS_ERROR" + ], + "enumDescriptions": [ + "No type specified.", + "Caused by an issue with KMS." + ], + "type": "string" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -670,6 +693,10 @@ "readOnly": true, "type": "string" }, + "cryptoKeyName": { + "description": "Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted.", + "type": "string" + }, "description": { "description": "Description of the workflow provided by the user. Must be at most 1000 unicode characters long.", "type": "string" @@ -708,15 +735,22 @@ "description": "Output only. State of the workflow deployment.", "enum": [ "STATE_UNSPECIFIED", - "ACTIVE" + "ACTIVE", + "UNAVAILABLE" ], "enumDescriptions": [ "Invalid state.", - "The workflow has been deployed successfully and is serving." + "The workflow has been deployed successfully and is serving.", + "Workflow data is unavailable. See the `state_error` field." ], "readOnly": true, "type": "string" }, + "stateError": { + "$ref": "StateError", + "description": "Output only. Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.", + "readOnly": true + }, "updateTime": { "description": "Output only. The timestamp for when the workflow was last updated.", "format": "google-datetime", diff --git a/workflows/v1/workflows-gen.go b/workflows/v1/workflows-gen.go index 118a2475b63..857c418be67 100644 --- a/workflows/v1/workflows-gen.go +++ b/workflows/v1/workflows-gen.go @@ -461,6 +461,42 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// StateError: Describes an error related to the current state of the +// workflow. +type StateError struct { + // Details: Provides specifics about the error. + Details string `json:"details,omitempty"` + + // Type: The type of this state error. + // + // Possible values: + // "TYPE_UNSPECIFIED" - No type specified. + // "KMS_ERROR" - Caused by an issue with KMS. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Details") 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. "Details") 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 *StateError) MarshalJSON() ([]byte, error) { + type NoMethod StateError + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Status: The `Status` type defines a logical error model that is // suitable for different programming environments, including REST APIs // and RPC APIs. It is used by gRPC (https://github.com/grpc). Each @@ -525,6 +561,15 @@ type Workflow struct { // created. CreateTime string `json:"createTime,omitempty"` + // CryptoKeyName: Optional. The resource name of a KMS crypto key used + // to encrypt or decrypt the data associated with the workflow. Format: + // projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/ + // {cryptoKey} Using `-` as a wildcard for the `{project}` or not + // providing one at all will infer the project from the account. If not + // provided, data associated with the workflow will not be + // CMEK-encrypted. + CryptoKeyName string `json:"cryptoKeyName,omitempty"` + // Description: Description of the workflow provided by the user. Must // be at most 1000 unicode characters long. Description string `json:"description,omitempty"` @@ -574,8 +619,15 @@ type Workflow struct { // "STATE_UNSPECIFIED" - Invalid state. // "ACTIVE" - The workflow has been deployed successfully and is // serving. + // "UNAVAILABLE" - Workflow data is unavailable. See the `state_error` + // field. State string `json:"state,omitempty"` + // StateError: Output only. Error regarding the state of the workflow. + // For example, this field will have error details if the execution data + // is unavailable due to revoked KMS key permissions. + StateError *StateError `json:"stateError,omitempty"` + // UpdateTime: Output only. The timestamp for when the workflow was last // updated. UpdateTime string `json:"updateTime,omitempty"`