From 0386e0fba6d3ca3073953a1a8a95f658bc223d09 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 4 Jan 2025 00:26:25 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2947) --- analyticshub/v1/analyticshub-api.json | 76 ++++++++++- analyticshub/v1/analyticshub-gen.go | 121 +++++++++++++++++- analyticshub/v1beta1/analyticshub-api.json | 30 ++++- analyticshub/v1beta1/analyticshub-gen.go | 58 ++++++++- .../v1/androidenterprise-api.json | 44 +------ androidenterprise/v1/androidenterprise-gen.go | 97 ++++---------- androidpublisher/v3/androidpublisher-api.json | 4 +- androidpublisher/v3/androidpublisher-gen.go | 3 +- chat/v1/chat-api.json | 59 ++++++++- chat/v1/chat-gen.go | 100 +++++++++++++-- cloudsupport/v2/cloudsupport-api.json | 4 +- cloudsupport/v2/cloudsupport-gen.go | 5 +- cloudsupport/v2beta/cloudsupport-api.json | 4 +- cloudsupport/v2beta/cloudsupport-gen.go | 5 +- firebaseml/v2beta/firebaseml-api.json | 38 +++++- firebaseml/v2beta/firebaseml-gen.go | 70 ++++++++++ places/v1/places-api.json | 4 +- places/v1/places-gen.go | 2 +- retail/v2/retail-api.json | 4 +- retail/v2/retail-gen.go | 5 +- retail/v2alpha/retail-api.json | 4 +- retail/v2alpha/retail-gen.go | 5 +- retail/v2beta/retail-api.json | 4 +- retail/v2beta/retail-gen.go | 5 +- serviceusage/v1beta1/serviceusage-api.json | 20 ++- serviceusage/v1beta1/serviceusage-gen.go | 18 ++- testing/v1/testing-api.json | 4 +- testing/v1/testing-gen.go | 3 +- youtube/v3/youtube-api.json | 4 +- youtube/v3/youtube-gen.go | 2 +- 30 files changed, 625 insertions(+), 177 deletions(-) diff --git a/analyticshub/v1/analyticshub-api.json b/analyticshub/v1/analyticshub-api.json index 190f6a852bf..6e3483b5f83 100644 --- a/analyticshub/v1/analyticshub-api.json +++ b/analyticshub/v1/analyticshub-api.json @@ -1022,11 +1022,11 @@ } } }, - "revision": "20241028", + "revision": "20241213", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AnalyticsHubSubscriptionInfo": { - "description": "Information about an associated Analytics Hub subscription (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).", + "description": "Information about an associated [Analytics Hub subscription](https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).", "id": "AnalyticsHubSubscriptionInfo", "properties": { "listing": { @@ -1501,6 +1501,68 @@ }, "type": "object" }, + "GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo": { + "description": "Commercial info contains the information about the commercial data products associated with the listing.", + "id": "GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo", + "properties": { + "cloudMarketplace": { + "$ref": "GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo", + "description": "Output only. Details of the Marketplace Data Product associated with the Listing.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo": { + "description": "Specifies the details of the Marketplace Data Product associated with the Listing.", + "id": "GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo", + "properties": { + "commercialState": { + "description": "Output only. Commercial state of the Marketplace Data Product.", + "enum": [ + "COMMERCIAL_STATE_UNSPECIFIED", + "ONBOARDING", + "ACTIVE" + ], + "enumDescriptions": [ + "Commercialization is incomplete and cannot be used.", + "Commercialization has been initialized.", + "Commercialization is complete and available for use." + ], + "readOnly": true, + "type": "string" + }, + "service": { + "description": "Output only. Resource name of the commercial service associated with the Marketplace Data Product. e.g. example.com", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo": { + "description": "Commercial info metadata for this subscription.", + "id": "GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo", + "properties": { + "cloudMarketplace": { + "$ref": "GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo", + "description": "Output only. This is set when the subscription is commercialised via Cloud Marketplace.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo": { + "description": "Cloud Marketplace commercial metadata for this subscription.", + "id": "GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo", + "properties": { + "order": { + "description": "Resource name of the Marketplace Order.", + "type": "string" + } + }, + "type": "object" + }, "GooglePubsubV1Subscription": { "description": "A subscription resource. If none of `push_config`, `bigquery_config`, or `cloud_storage_config` is set, then the subscriber will pull and ack messages using API methods. At most one of these fields may be set.", "id": "GooglePubsubV1Subscription", @@ -1770,6 +1832,11 @@ }, "type": "array" }, + "commercialInfo": { + "$ref": "GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo", + "description": "Output only. Commercial info contains the information about the commercial data products associated with the listing.", + "readOnly": true + }, "dataProvider": { "$ref": "DataProvider", "description": "Optional. Details of the data provider who owns the source data." @@ -2284,6 +2351,11 @@ "description": "A subscription represents a subscribers' access to a particular set of published data. It contains references to associated listings, data exchanges, and linked datasets.", "id": "Subscription", "properties": { + "commercialInfo": { + "$ref": "GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo", + "description": "Output only. This is set if this is a commercial subscription i.e. if this subscription was created from subscribing to a commercial listing.", + "readOnly": true + }, "creationTime": { "description": "Output only. Timestamp when the subscription was created.", "format": "google-datetime", diff --git a/analyticshub/v1/analyticshub-gen.go b/analyticshub/v1/analyticshub-gen.go index def7a6d206f..62414f334b0 100644 --- a/analyticshub/v1/analyticshub-gen.go +++ b/analyticshub/v1/analyticshub-gen.go @@ -1080,6 +1080,112 @@ func (s GetPolicyOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo: Commercial info +// contains the information about the commercial data products associated with +// the listing. +type GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo struct { + // CloudMarketplace: Output only. Details of the Marketplace Data Product + // associated with the Listing. + CloudMarketplace *GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo `json:"cloudMarketplace,omitempty"` + // ForceSendFields is a list of field names (e.g. "CloudMarketplace") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CloudMarketplace") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceI +// nfo: Specifies the details of the Marketplace Data Product associated with +// the Listing. +type GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo struct { + // CommercialState: Output only. Commercial state of the Marketplace Data + // Product. + // + // Possible values: + // "COMMERCIAL_STATE_UNSPECIFIED" - Commercialization is incomplete and + // cannot be used. + // "ONBOARDING" - Commercialization has been initialized. + // "ACTIVE" - Commercialization is complete and available for use. + CommercialState string `json:"commercialState,omitempty"` + // Service: Output only. Resource name of the commercial service associated + // with the Marketplace Data Product. e.g. example.com + Service string `json:"service,omitempty"` + // ForceSendFields is a list of field names (e.g. "CommercialState") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CommercialState") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo: Commercial info +// metadata for this subscription. +type GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo struct { + // CloudMarketplace: Output only. This is set when the subscription is + // commercialised via Cloud Marketplace. + CloudMarketplace *GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo `json:"cloudMarketplace,omitempty"` + // ForceSendFields is a list of field names (e.g. "CloudMarketplace") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CloudMarketplace") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketp +// laceInfo: Cloud Marketplace commercial metadata for this subscription. +type GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo struct { + // Order: Resource name of the Marketplace Order. + Order string `json:"order,omitempty"` + // ForceSendFields is a list of field names (e.g. "Order") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Order") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GooglePubsubV1Subscription: A subscription resource. If none of // `push_config`, `bigquery_config`, or `cloud_storage_config` is set, then the // subscriber will pull and ack messages using API methods. At most one of @@ -1418,6 +1524,9 @@ type Listing struct { // "CATEGORY_TRANSPORTATION_AND_LOGISTICS" // "CATEGORY_TRAVEL_AND_TOURISM" Categories []string `json:"categories,omitempty"` + // CommercialInfo: Output only. Commercial info contains the information about + // the commercial data products associated with the listing. + CommercialInfo *GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo `json:"commercialInfo,omitempty"` // DataProvider: Optional. Details of the data provider who owns the source // data. DataProvider *DataProvider `json:"dataProvider,omitempty"` @@ -2201,6 +2310,10 @@ func (s SubscribeListingResponse) MarshalJSON() ([]byte, error) { // particular set of published data. It contains references to associated // listings, data exchanges, and linked datasets. type Subscription struct { + // CommercialInfo: Output only. This is set if this is a commercial + // subscription i.e. if this subscription was created from subscribing to a + // commercial listing. + CommercialInfo *GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo `json:"commercialInfo,omitempty"` // CreationTime: Output only. Timestamp when the subscription was created. CreationTime string `json:"creationTime,omitempty"` // DataExchange: Output only. Resource name of the source Data Exchange. e.g. @@ -2253,15 +2366,15 @@ type Subscription struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTime") to + // ForceSendFields is a list of field names (e.g. "CommercialInfo") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreationTime") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "CommercialInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/analyticshub/v1beta1/analyticshub-api.json b/analyticshub/v1beta1/analyticshub-api.json index 2a6dd602443..c9eb6cd5d63 100644 --- a/analyticshub/v1beta1/analyticshub-api.json +++ b/analyticshub/v1beta1/analyticshub-api.json @@ -695,7 +695,7 @@ } } }, - "revision": "20241028", + "revision": "20241213", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AuditConfig": { @@ -779,6 +779,18 @@ }, "type": "object" }, + "CommercialInfo": { + "description": "Commercial info metadata for this subscription.", + "id": "CommercialInfo", + "properties": { + "cloudMarketplace": { + "$ref": "GoogleCloudMarketplaceInfo", + "description": "Output only. This is set when the subscription is commercialised via Cloud Marketplace.", + "readOnly": true + } + }, + "type": "object" + }, "DataExchange": { "description": "A data exchange is a container that lets you share data. Along with the descriptive information about the data exchange, it contains listings that reference shared datasets.", "id": "DataExchange", @@ -930,6 +942,17 @@ }, "type": "object" }, + "GoogleCloudMarketplaceInfo": { + "description": "Cloud Marketplace commercial metadata for this subscription.", + "id": "GoogleCloudMarketplaceInfo", + "properties": { + "order": { + "description": "Resource name of the Marketplace Order.", + "type": "string" + } + }, + "type": "object" + }, "LinkedResource": { "description": "Reference to a linked resource tracked by this Subscription.", "id": "LinkedResource", @@ -1292,6 +1315,11 @@ "description": "A subscription represents a subscribers' access to a particular set of published data. It contains references to associated listings, data exchanges, and linked datasets.", "id": "Subscription", "properties": { + "commercialInfo": { + "$ref": "CommercialInfo", + "description": "Output only. This is set if this is a commercial subscription i.e. if this subscription was created from subscribing to a commercial listing.", + "readOnly": true + }, "creationTime": { "description": "Output only. Timestamp when the subscription was created.", "format": "google-datetime", diff --git a/analyticshub/v1beta1/analyticshub-gen.go b/analyticshub/v1beta1/analyticshub-gen.go index 0db811f8c6b..ad997f3133b 100644 --- a/analyticshub/v1beta1/analyticshub-gen.go +++ b/analyticshub/v1beta1/analyticshub-gen.go @@ -451,6 +451,29 @@ func (s Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CommercialInfo: Commercial info metadata for this subscription. +type CommercialInfo struct { + // CloudMarketplace: Output only. This is set when the subscription is + // commercialised via Cloud Marketplace. + CloudMarketplace *GoogleCloudMarketplaceInfo `json:"cloudMarketplace,omitempty"` + // ForceSendFields is a list of field names (e.g. "CloudMarketplace") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CloudMarketplace") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CommercialInfo) MarshalJSON() ([]byte, error) { + type NoMethod CommercialInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DataExchange: A data exchange is a container that lets you share data. Along // with the descriptive information about the data exchange, it contains // listings that reference shared datasets. @@ -705,6 +728,29 @@ func (s GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference) Marsh return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudMarketplaceInfo: Cloud Marketplace commercial metadata for this +// subscription. +type GoogleCloudMarketplaceInfo struct { + // Order: Resource name of the Marketplace Order. + Order string `json:"order,omitempty"` + // ForceSendFields is a list of field names (e.g. "Order") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Order") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudMarketplaceInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudMarketplaceInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LinkedResource: Reference to a linked resource tracked by this Subscription. type LinkedResource struct { // LinkedDataset: Output only. Name of the linked dataset, e.g. @@ -1208,6 +1254,10 @@ type SubscribeListingResponse struct { // particular set of published data. It contains references to associated // listings, data exchanges, and linked datasets. type Subscription struct { + // CommercialInfo: Output only. This is set if this is a commercial + // subscription i.e. if this subscription was created from subscribing to a + // commercial listing. + CommercialInfo *CommercialInfo `json:"commercialInfo,omitempty"` // CreationTime: Output only. Timestamp when the subscription was created. CreationTime string `json:"creationTime,omitempty"` // DataExchange: Output only. Resource name of the source Data Exchange. e.g. @@ -1257,15 +1307,15 @@ type Subscription struct { State string `json:"state,omitempty"` // SubscriberContact: Output only. Email of the subscriber. SubscriberContact string `json:"subscriberContact,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreationTime") to + // ForceSendFields is a list of field names (e.g. "CommercialInfo") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreationTime") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "CommercialInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/androidenterprise/v1/androidenterprise-api.json b/androidenterprise/v1/androidenterprise-api.json index d926080e50f..fcc4320ee3b 100644 --- a/androidenterprise/v1/androidenterprise-api.json +++ b/androidenterprise/v1/androidenterprise-api.json @@ -392,32 +392,6 @@ "enterpriseId" ], "parameters": { - "enrollmentToken.duration": { - "description": "[Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.", - "format": "google-duration", - "location": "query", - "type": "string" - }, - "enrollmentToken.enrollmentTokenType": { - "description": "[Required] The type of the enrollment token.", - "enum": [ - "enrollmentTokenTypeUnspecified", - "userlessDevice", - "userDevice" - ], - "enumDescriptions": [ - "The value is unused.", - "The enrollment token is for a userless device.", - "The enrollment token is for a user device." - ], - "location": "query", - "type": "string" - }, - "enrollmentToken.token": { - "description": "The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.", - "location": "query", - "type": "string" - }, "enterpriseId": { "description": "Required. The ID of the enterprise.", "location": "path", @@ -426,8 +400,11 @@ } }, "path": "androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken", + "request": { + "$ref": "EnrollmentToken" + }, "response": { - "$ref": "CreateEnrollmentTokenResponse" + "$ref": "EnrollmentToken" }, "scopes": [ "https://www.googleapis.com/auth/androidenterprise" @@ -2665,7 +2642,7 @@ } } }, - "revision": "20241217", + "revision": "20250102", "rootUrl": "https://androidenterprise.googleapis.com/", "schemas": { "Administrator": { @@ -3159,17 +3136,6 @@ }, "type": "object" }, - "CreateEnrollmentTokenResponse": { - "description": "Response message for create enrollment token.", - "id": "CreateEnrollmentTokenResponse", - "properties": { - "enrollmentToken": { - "$ref": "EnrollmentToken", - "description": "[Required] The created enrollment token." - } - }, - "type": "object" - }, "Device": { "description": "A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.", "id": "Device", diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index 9c4d52905eb..8fcac4c034d 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -990,31 +990,6 @@ func (s ConfigurationVariables) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreateEnrollmentTokenResponse: Response message for create enrollment token. -type CreateEnrollmentTokenResponse struct { - // EnrollmentToken: [Required] The created enrollment token. - EnrollmentToken *EnrollmentToken `json:"enrollmentToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EnrollmentToken") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EnrollmentToken") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CreateEnrollmentTokenResponse) MarshalJSON() ([]byte, error) { - type NoMethod CreateEnrollmentTokenResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Device: A Devices resource represents a mobile device managed by the EMM and // belonging to a specific enterprise user. type Device struct { @@ -1211,6 +1186,9 @@ type EnrollmentToken struct { // Token: The token value that's passed to the device and authorizes the device // to enroll. This is a read-only field generated by the server. Token string `json:"token,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Duration") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4298,11 +4276,12 @@ func (c *EnterprisesCompleteSignupCall) Do(opts ...googleapi.CallOption) (*Enter } type EnterprisesCreateEnrollmentTokenCall struct { - s *Service - enterpriseId string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header + s *Service + enterpriseId string + enrollmenttoken *EnrollmentToken + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } // CreateEnrollmentToken: Returns a token for device enrollment. The DPC can @@ -4311,42 +4290,10 @@ type EnterprisesCreateEnrollmentTokenCall struct { // be generated for each device or reused across multiple devices. // // - enterpriseId: The ID of the enterprise. -func (r *EnterprisesService) CreateEnrollmentToken(enterpriseId string) *EnterprisesCreateEnrollmentTokenCall { +func (r *EnterprisesService) CreateEnrollmentToken(enterpriseId string, enrollmenttoken *EnrollmentToken) *EnterprisesCreateEnrollmentTokenCall { c := &EnterprisesCreateEnrollmentTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.enterpriseId = enterpriseId - return c -} - -// EnrollmentTokenDuration sets the optional parameter -// "enrollmentToken.duration": [Optional] The length of time the enrollment -// token is valid, ranging from 1 minute to `Durations.MAX_VALUE` -// (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), -// approximately 10,000 years. If not specified, the default duration is 1 -// hour. -func (c *EnterprisesCreateEnrollmentTokenCall) EnrollmentTokenDuration(enrollmentTokenDuration string) *EnterprisesCreateEnrollmentTokenCall { - c.urlParams_.Set("enrollmentToken.duration", enrollmentTokenDuration) - return c -} - -// EnrollmentTokenEnrollmentTokenType sets the optional parameter -// "enrollmentToken.enrollmentTokenType": [Required] The type of the enrollment -// token. -// -// Possible values: -// -// "enrollmentTokenTypeUnspecified" - The value is unused. -// "userlessDevice" - The enrollment token is for a userless device. -// "userDevice" - The enrollment token is for a user device. -func (c *EnterprisesCreateEnrollmentTokenCall) EnrollmentTokenEnrollmentTokenType(enrollmentTokenEnrollmentTokenType string) *EnterprisesCreateEnrollmentTokenCall { - c.urlParams_.Set("enrollmentToken.enrollmentTokenType", enrollmentTokenEnrollmentTokenType) - return c -} - -// EnrollmentTokenToken sets the optional parameter "enrollmentToken.token": -// The token value that's passed to the device and authorizes the device to -// enroll. This is a read-only field generated by the server. -func (c *EnterprisesCreateEnrollmentTokenCall) EnrollmentTokenToken(enrollmentTokenToken string) *EnterprisesCreateEnrollmentTokenCall { - c.urlParams_.Set("enrollmentToken.token", enrollmentTokenToken) + c.enrollmenttoken = enrollmenttoken return c } @@ -4374,12 +4321,16 @@ func (c *EnterprisesCreateEnrollmentTokenCall) Header() http.Header { } func (c *EnterprisesCreateEnrollmentTokenCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.enrollmenttoken) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -4387,17 +4338,17 @@ func (c *EnterprisesCreateEnrollmentTokenCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "androidenterprise.enterprises.createEnrollmentToken", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "androidenterprise.enterprises.createEnrollmentToken", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "androidenterprise.enterprises.createEnrollmentToken" call. // Any non-2xx status code is an error. Response headers are in either -// *CreateEnrollmentTokenResponse.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 *EnterprisesCreateEnrollmentTokenCall) Do(opts ...googleapi.CallOption) (*CreateEnrollmentTokenResponse, error) { +// *EnrollmentToken.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 *EnterprisesCreateEnrollmentTokenCall) Do(opts ...googleapi.CallOption) (*EnrollmentToken, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4416,7 +4367,7 @@ func (c *EnterprisesCreateEnrollmentTokenCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &CreateEnrollmentTokenResponse{ + ret := &EnrollmentToken{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index bcc8e3f8ade..5d0c11981d4 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -4732,7 +4732,7 @@ } } }, - "revision": "20241217", + "revision": "20250102", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Abi": { @@ -7582,7 +7582,7 @@ "type": "object" }, "OfferTag": { - "description": "Represents a custom tag specified for base plans and subscription offers.", + "description": "Represents a custom tag specified for a product offer.", "id": "OfferTag", "properties": { "tag": { diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 42e52c54ffc..340d5bc4f6b 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -4292,8 +4292,7 @@ func (s OfferDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OfferTag: Represents a custom tag specified for base plans and subscription -// offers. +// OfferTag: Represents a custom tag specified for a product offer. type OfferTag struct { // Tag: Must conform with RFC-1034. That is, this string can only contain // lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 561b0c5536e..d564c4bb134 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -1344,7 +1344,7 @@ } } }, - "revision": "20241217", + "revision": "20241229", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -2169,6 +2169,10 @@ "description": "An action that describes the behavior when the form is submitted. For example, you can invoke an Apps Script script to handle the form. If the action is triggered, the form values are sent to the server. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", "id": "GoogleAppsCardV1Action", "properties": { + "allWidgetsAreRequired": { + "description": "Optional. If this is true, then all widgets are considered required by this action. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", + "type": "boolean" + }, "function": { "description": "A custom function to invoke when the containing element is clicked or otherwise activated. For example usage, see [Read form data](https://developers.google.com/workspace/chat/read-form-data).", "type": "string" @@ -2207,6 +2211,13 @@ "persistValues": { "description": "Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. To let the user make changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `NONE`. For [card messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) in Chat apps, you must also set the action's [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) to `UPDATE_MESSAGE` and use the same [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) from the card that contained the action. If `false`, the form values are cleared when the action is triggered. To prevent the user from making changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `SPINNER`.", "type": "boolean" + }, + "requiredWidgets": { + "description": "Optional. Fill this list with the names of widgets that this Action needs for a valid submission. If the widgets listed here don't have a value when this Action is invoked, the form submission is aborted. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -2650,7 +2661,7 @@ "type": "object" }, "GoogleAppsCardV1DateTimePicker": { - "description": "Lets users input a date, a time, or both a date and a time. For an example in Google Chat apps, see [Let a user pick a date and time](https://developers.google.com/workspace/chat/design-interactive-card-dialog#let_a_user_pick_a_date_and_time). Users can input text or use the picker to select dates and times. If users input an invalid date or time, the picker shows an error that prompts users to input the information correctly. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", + "description": "Lets users input a date, a time, or both a date and a time. Supports form submission validation. When `Action.all_widgets_are_required` is set to `true` or this widget is specified in `Action.required_widgets`, the submission action is blocked unless a value is selected. For an example in Google Chat apps, see [Let a user pick a date and time](https://developers.google.com/workspace/chat/design-interactive-card-dialog#let_a_user_pick_a_date_and_time). Users can input text or use the picker to select dates and times. If users input an invalid date or time, the picker shows an error that prompts users to input the information correctly. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", "id": "GoogleAppsCardV1DateTimePicker", "properties": { "label": { @@ -3119,7 +3130,7 @@ "type": "object" }, "GoogleAppsCardV1SelectionInput": { - "description": "A widget that creates one or more UI items that users can select. For example, a dropdown menu or checkboxes. You can use this widget to collect data that can be predicted or enumerated. For an example in Google Chat apps, see [Add selectable UI elements](/workspace/chat/design-interactive-card-dialog#add_selectable_ui_elements). Chat apps can process the value of items that users select or input. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data). To collect undefined or abstract data from users, use the TextInput widget. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", + "description": "A widget that creates one or more UI items that users can select. Supports form submission validation for `dropdown` and `multiselect` menus only. When `Action.all_widgets_are_required` is set to `true` or this widget is specified in `Action.required_widgets`, the submission action is blocked unless a value is selected. For example, a dropdown menu or checkboxes. You can use this widget to collect data that can be predicted or enumerated. For an example in Google Chat apps, see [Add selectable UI elements](/workspace/chat/design-interactive-card-dialog#add_selectable_ui_elements). Chat apps can process the value of items that users select or input. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data). To collect undefined or abstract data from users, use the TextInput widget. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", "id": "GoogleAppsCardV1SelectionInput", "properties": { "externalDataSource": { @@ -3270,7 +3281,7 @@ "type": "object" }, "GoogleAppsCardV1TextInput": { - "description": "A field in which users can enter text. Supports suggestions and on-change actions. For an example in Google Chat apps, see [Add a field in which a user can enter text](https://developers.google.com/workspace/chat/design-interactive-card-dialog#add_a_field_in_which_a_user_can_enter_text). Chat apps receive and can process the value of entered text during form input events. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data). When you need to collect undefined or abstract data from users, use a text input. To collect defined or enumerated data from users, use the SelectionInput widget. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", + "description": "A field in which users can enter text. Supports suggestions and on-change actions. Supports form submission validation. When `Action.all_widgets_are_required` is set to `true` or this widget is specified in `Action.required_widgets`, the submission action is blocked unless a value is entered. For an example in Google Chat apps, see [Add a field in which a user can enter text](https://developers.google.com/workspace/chat/design-interactive-card-dialog#add_a_field_in_which_a_user_can_enter_text). Chat apps receive and can process the value of entered text during form input events. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data). When you need to collect undefined or abstract data from users, use a text input. To collect defined or enumerated data from users, use the SelectionInput widget. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", "id": "GoogleAppsCardV1TextInput", "properties": { "autoCompleteAction": { @@ -3313,6 +3324,10 @@ ], "type": "string" }, + "validation": { + "$ref": "GoogleAppsCardV1Validation", + "description": "Specify the input format validation necessary for this text field. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):" + }, "value": { "description": "The value entered by a user, returned as part of a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).", "type": "string" @@ -3336,6 +3351,38 @@ }, "type": "object" }, + "GoogleAppsCardV1Validation": { + "description": "Represents the necessary data for validating the widget it's attached to. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", + "id": "GoogleAppsCardV1Validation", + "properties": { + "characterLimit": { + "description": "Specify the character limit for text input widgets. Note that this is only used for text input and is ignored for other widgets. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", + "format": "int32", + "type": "integer" + }, + "inputType": { + "description": "Specify the type of the input widgets. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", + "enum": [ + "INPUT_TYPE_UNSPECIFIED", + "TEXT", + "INTEGER", + "FLOAT", + "EMAIL", + "EMOJI_PICKER" + ], + "enumDescriptions": [ + "Unspecified type. Do not use.", + "Regular text that accepts all characters.", + "An integer value.", + "A float value.", + "An email address.", + "A emoji selected from system-provided emoji picker." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleAppsCardV1Widget": { "description": "Each card is made up of widgets. A widget is a composite object that can represent one of text, images, buttons, and other object types.", "id": "GoogleAppsCardV1Widget", @@ -4579,10 +4626,10 @@ }, "permissionSettings": { "$ref": "PermissionSettings", - "description": "Optional. Space permission settings for existing spaces. Input for updating exact space permission settings, where existing permission settings are replaced. Output lists current permission settings." + "description": "Optional. Space permission settings for existing spaces. Input for updating exact space permission settings, where existing permission settings are replaced. Output lists current permission settings. Reading and updating permission settings supports: - In [Developer Preview](https://developers.google.com/workspace/preview), [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) with the `chat.app.spaces` scope. Only populated and settable when the Chat app created the space. - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)" }, "predefinedPermissionSettings": { - "description": "Optional. Input only. Predefined space permission settings, input only when creating a space. If the field is not set, a collaboration space is created. After you create the space, settings are populated in the `PermissionSettings` field.", + "description": "Optional. Input only. Predefined space permission settings, input only when creating a space. If the field is not set, a collaboration space is created. After you create the space, settings are populated in the `PermissionSettings` field. Setting predefined permission settings supports: - In [Developer Preview](https://developers.google.com/workspace/preview), [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) with the `chat.app.spaces` or `chat.app.spaces.create` scopes. - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)", "enum": [ "PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED", "COLLABORATION_SPACE", diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 4b1e4b46b71..7b242a17c0f 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1665,6 +1665,10 @@ func (s FormAction) MarshalJSON() ([]byte, error) { // server. Google Workspace Add-ons and Chat apps // (https://developers.google.com/workspace/extend): type GoogleAppsCardV1Action struct { + // AllWidgetsAreRequired: Optional. If this is true, then all widgets are + // considered required by this action. Google Workspace Add-ons and Chat apps + // (https://developers.google.com/workspace/extend): + AllWidgetsAreRequired bool `json:"allWidgetsAreRequired,omitempty"` // Function: A custom function to invoke when the containing element is clicked // or otherwise activated. For example usage, see Read form data // (https://developers.google.com/workspace/chat/read-form-data). @@ -1718,15 +1722,21 @@ type GoogleAppsCardV1Action struct { // (https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) // to `SPINNER`. PersistValues bool `json:"persistValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "Function") to + // RequiredWidgets: Optional. Fill this list with the names of widgets that + // this Action needs for a valid submission. If the widgets listed here don't + // have a value when this Action is invoked, the form submission is aborted. + // Google Workspace Add-ons and Chat apps + // (https://developers.google.com/workspace/extend): + RequiredWidgets []string `json:"requiredWidgets,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllWidgetsAreRequired") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Function") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AllWidgetsAreRequired") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -2403,8 +2413,11 @@ func (s GoogleAppsCardV1Columns) MarshalJSON() ([]byte, error) { } // GoogleAppsCardV1DateTimePicker: Lets users input a date, a time, or both a -// date and a time. For an example in Google Chat apps, see Let a user pick a -// date and time +// date and a time. Supports form submission validation. When +// `Action.all_widgets_are_required` is set to `true` or this widget is +// specified in `Action.required_widgets`, the submission action is blocked +// unless a value is selected. For an example in Google Chat apps, see Let a +// user pick a date and time // (https://developers.google.com/workspace/chat/design-interactive-card-dialog#let_a_user_pick_a_date_and_time). // Users can input text or use the picker to select dates and times. If users // input an invalid date or time, the picker shows an error that prompts users @@ -3099,9 +3112,13 @@ func (s GoogleAppsCardV1Section) MarshalJSON() ([]byte, error) { } // GoogleAppsCardV1SelectionInput: A widget that creates one or more UI items -// that users can select. For example, a dropdown menu or checkboxes. You can -// use this widget to collect data that can be predicted or enumerated. For an -// example in Google Chat apps, see Add selectable UI elements +// that users can select. Supports form submission validation for `dropdown` +// and `multiselect` menus only. When `Action.all_widgets_are_required` is set +// to `true` or this widget is specified in `Action.required_widgets`, the +// submission action is blocked unless a value is selected. For example, a +// dropdown menu or checkboxes. You can use this widget to collect data that +// can be predicted or enumerated. For an example in Google Chat apps, see Add +// selectable UI elements // (/workspace/chat/design-interactive-card-dialog#add_selectable_ui_elements). // Chat apps can process the value of items that users select or input. For // details about working with form inputs, see Receive form data @@ -3335,8 +3352,11 @@ func (s GoogleAppsCardV1SwitchControl) MarshalJSON() ([]byte, error) { } // GoogleAppsCardV1TextInput: A field in which users can enter text. Supports -// suggestions and on-change actions. For an example in Google Chat apps, see -// Add a field in which a user can enter text +// suggestions and on-change actions. Supports form submission validation. When +// `Action.all_widgets_are_required` is set to `true` or this widget is +// specified in `Action.required_widgets`, the submission action is blocked +// unless a value is entered. For an example in Google Chat apps, see Add a +// field in which a user can enter text // (https://developers.google.com/workspace/chat/design-interactive-card-dialog#add_a_field_in_which_a_user_can_enter_text). // Chat apps receive and can process the value of entered text during form // input events. For details about working with form inputs, see Receive form @@ -3398,6 +3418,10 @@ type GoogleAppsCardV1TextInput struct { // "MULTIPLE_LINE" - The text input field has a fixed height of multiple // lines. Type string `json:"type,omitempty"` + // Validation: Specify the input format validation necessary for this text + // field. Google Workspace Add-ons and Chat apps + // (https://developers.google.com/workspace/extend): + Validation *GoogleAppsCardV1Validation `json:"validation,omitempty"` // Value: The value entered by a user, returned as part of a form input event. // For details about working with form inputs, see Receive form data // (https://developers.google.com/workspace/chat/read-form-data). @@ -3458,6 +3482,44 @@ func (s GoogleAppsCardV1TextParagraph) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleAppsCardV1Validation: Represents the necessary data for validating the +// widget it's attached to. Google Workspace Add-ons and Chat apps +// (https://developers.google.com/workspace/extend): +type GoogleAppsCardV1Validation struct { + // CharacterLimit: Specify the character limit for text input widgets. Note + // that this is only used for text input and is ignored for other widgets. + // Google Workspace Add-ons and Chat apps + // (https://developers.google.com/workspace/extend): + CharacterLimit int64 `json:"characterLimit,omitempty"` + // InputType: Specify the type of the input widgets. Google Workspace Add-ons + // and Chat apps (https://developers.google.com/workspace/extend): + // + // Possible values: + // "INPUT_TYPE_UNSPECIFIED" - Unspecified type. Do not use. + // "TEXT" - Regular text that accepts all characters. + // "INTEGER" - An integer value. + // "FLOAT" - A float value. + // "EMAIL" - An email address. + // "EMOJI_PICKER" - A emoji selected from system-provided emoji picker. + InputType string `json:"inputType,omitempty"` + // ForceSendFields is a list of field names (e.g. "CharacterLimit") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CharacterLimit") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleAppsCardV1Validation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAppsCardV1Validation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleAppsCardV1Widget: Each card is made up of widgets. A widget is a // composite object that can represent one of text, images, buttons, and other // object types. @@ -5214,11 +5276,25 @@ type Space struct { // PermissionSettings: Optional. Space permission settings for existing spaces. // Input for updating exact space permission settings, where existing // permission settings are replaced. Output lists current permission settings. + // Reading and updating permission settings supports: - In Developer Preview + // (https://developers.google.com/workspace/preview), App authentication + // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // with administrator approval (https://support.google.com/a?p=chat-app-auth) + // with the `chat.app.spaces` scope. Only populated and settable when the Chat + // app created the space. - User authentication + // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) PermissionSettings *PermissionSettings `json:"permissionSettings,omitempty"` // PredefinedPermissionSettings: Optional. Input only. Predefined space // permission settings, input only when creating a space. If the field is not // set, a collaboration space is created. After you create the space, settings - // are populated in the `PermissionSettings` field. + // are populated in the `PermissionSettings` field. Setting predefined + // permission settings supports: - In Developer Preview + // (https://developers.google.com/workspace/preview), App authentication + // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // with administrator approval (https://support.google.com/a?p=chat-app-auth) + // with the `chat.app.spaces` or `chat.app.spaces.create` scopes. - User + // authentication + // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) // // Possible values: // "PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED" - Unspecified. Don't use. diff --git a/cloudsupport/v2/cloudsupport-api.json b/cloudsupport/v2/cloudsupport-api.json index f4adfe85186..81be3c8e9b1 100644 --- a/cloudsupport/v2/cloudsupport-api.json +++ b/cloudsupport/v2/cloudsupport-api.json @@ -382,7 +382,7 @@ ], "parameters": { "pageSize": { - "description": "The maximum number of attachments fetched with each request. If not provided, the default is 10. The maximum page size that will be returned is 100.", + "description": "The maximum number of attachments fetched with each request. If not provided, the default is 10. The maximum page size that will be returned is 100. The size of each page can be smaller than the requested page size and can include zero. For example, you could request 100 attachments on one page, receive 0, and then on the next page, receive 90.", "format": "int32", "location": "query", "type": "integer" @@ -552,7 +552,7 @@ } } }, - "revision": "20241218", + "revision": "20241231", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { diff --git a/cloudsupport/v2/cloudsupport-gen.go b/cloudsupport/v2/cloudsupport-gen.go index b0050640c73..1af0bcf82c4 100644 --- a/cloudsupport/v2/cloudsupport-gen.go +++ b/cloudsupport/v2/cloudsupport-gen.go @@ -2284,7 +2284,10 @@ func (r *CasesAttachmentsService) List(parent string) *CasesAttachmentsListCall // PageSize sets the optional parameter "pageSize": The maximum number of // attachments fetched with each request. If not provided, the default is 10. -// The maximum page size that will be returned is 100. +// The maximum page size that will be returned is 100. The size of each page +// can be smaller than the requested page size and can include zero. For +// example, you could request 100 attachments on one page, receive 0, and then +// on the next page, receive 90. func (c *CasesAttachmentsListCall) PageSize(pageSize int64) *CasesAttachmentsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c diff --git a/cloudsupport/v2beta/cloudsupport-api.json b/cloudsupport/v2beta/cloudsupport-api.json index ed5bfc9c8d6..afa0304a169 100644 --- a/cloudsupport/v2beta/cloudsupport-api.json +++ b/cloudsupport/v2beta/cloudsupport-api.json @@ -449,7 +449,7 @@ ], "parameters": { "pageSize": { - "description": "The maximum number of attachments fetched with each request. If not provided, the default is 10. The maximum page size that will be returned is 100.", + "description": "The maximum number of attachments fetched with each request. If not provided, the default is 10. The maximum page size that will be returned is 100. The size of each page can be smaller than the requested page size and can include zero. For example, you could request 100 attachments on one page, receive 0, and then on the next page, receive 90.", "format": "int32", "location": "query", "type": "integer" @@ -619,7 +619,7 @@ } } }, - "revision": "20241218", + "revision": "20241231", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index 25fb36b7568..01edd36906e 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -2628,7 +2628,10 @@ func (r *CasesAttachmentsService) List(parent string) *CasesAttachmentsListCall // PageSize sets the optional parameter "pageSize": The maximum number of // attachments fetched with each request. If not provided, the default is 10. -// The maximum page size that will be returned is 100. +// The maximum page size that will be returned is 100. The size of each page +// can be smaller than the requested page size and can include zero. For +// example, you could request 100 attachments on one page, receive 0, and then +// on the next page, receive 90. func (c *CasesAttachmentsListCall) PageSize(pageSize int64) *CasesAttachmentsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 5a549333a01..0834a228009 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20241217", + "revision": "20241231", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -1307,6 +1307,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RetrievalConfig": { + "description": "Retrieval config.", + "id": "GoogleCloudAiplatformV1beta1RetrievalConfig", + "properties": { + "languageCode": { + "description": "The language code of the user.", + "type": "string" + }, + "latLng": { + "$ref": "LatLng", + "description": "The location of the user." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RetrievalMetadata": { "description": "Metadata related to retrieval in the grounding flow.", "id": "GoogleCloudAiplatformV1beta1RetrievalMetadata", @@ -1699,6 +1714,10 @@ "functionCallingConfig": { "$ref": "GoogleCloudAiplatformV1beta1FunctionCallingConfig", "description": "Optional. Function calling config." + }, + "retrievalConfig": { + "$ref": "GoogleCloudAiplatformV1beta1RetrievalConfig", + "description": "Optional. Retrieval config." } }, "type": "object" @@ -1804,6 +1823,23 @@ }, "type": "object" }, + "LatLng": { + "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.", + "id": "LatLng", + "properties": { + "latitude": { + "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].", + "format": "double", + "type": "number" + }, + "longitude": { + "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "ModelOperationMetadata": { "description": "This is returned in the longrunning operations for create/update.", "id": "ModelOperationMetadata", diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index ae73273224e..571cab3dac6 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -1681,6 +1681,30 @@ func (s GoogleCloudAiplatformV1beta1Retrieval) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RetrievalConfig: Retrieval config. +type GoogleCloudAiplatformV1beta1RetrievalConfig struct { + // LanguageCode: The language code of the user. + LanguageCode string `json:"languageCode,omitempty"` + // LatLng: The location of the user. + LatLng *LatLng `json:"latLng,omitempty"` + // ForceSendFields is a list of field names (e.g. "LanguageCode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "LanguageCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1RetrievalConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RetrievalConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RetrievalMetadata: Metadata related to retrieval // in the grounding flow. type GoogleCloudAiplatformV1beta1RetrievalMetadata struct { @@ -2093,6 +2117,8 @@ type GoogleCloudAiplatformV1beta1ToolCodeExecution struct { type GoogleCloudAiplatformV1beta1ToolConfig struct { // FunctionCallingConfig: Optional. Function calling config. FunctionCallingConfig *GoogleCloudAiplatformV1beta1FunctionCallingConfig `json:"functionCallingConfig,omitempty"` + // RetrievalConfig: Optional. Retrieval config. + RetrievalConfig *GoogleCloudAiplatformV1beta1RetrievalConfig `json:"retrievalConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "FunctionCallingConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -2267,6 +2293,50 @@ func (s GoogleCloudAiplatformV1beta1VoiceConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LatLng: An object that represents a latitude/longitude pair. This is +// expressed as a pair of doubles to represent degrees latitude and degrees +// longitude. Unless specified otherwise, this object must conform to the WGS84 +// standard. Values must be within normalized ranges. +type LatLng struct { + // Latitude: The latitude in degrees. It must be in the range [-90.0, +90.0]. + Latitude float64 `json:"latitude,omitempty"` + // Longitude: The longitude in degrees. It must be in the range [-180.0, + // +180.0]. + Longitude float64 `json:"longitude,omitempty"` + // ForceSendFields is a list of field names (e.g. "Latitude") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Latitude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LatLng) MarshalJSON() ([]byte, error) { + type NoMethod LatLng + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *LatLng) UnmarshalJSON(data []byte) error { + type NoMethod LatLng + var s1 struct { + Latitude gensupport.JSONFloat64 `json:"latitude"` + Longitude gensupport.JSONFloat64 `json:"longitude"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Latitude = float64(s1.Latitude) + s.Longitude = float64(s1.Longitude) + return nil +} + // ModelOperationMetadata: This is returned in the longrunning operations for // create/update. type ModelOperationMetadata struct { diff --git a/places/v1/places-api.json b/places/v1/places-api.json index 587f5fbbc84..4b781f83b89 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -280,7 +280,7 @@ } } }, - "revision": "20241117", + "revision": "20241231", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -1231,7 +1231,7 @@ }, "regularOpeningHours": { "$ref": "GoogleMapsPlacesV1PlaceOpeningHours", - "description": "The regular hours of operation. Note that if a place is always open (24 hours), the `close` field will not be set. Clients can rely on always open (24 hours) being represented as an `open` period containing day with value `0`, hour with value `0`, and minute with value `0`." + "description": "The regular hours of operation. Note that if a place is always open (24 hours), the `close` field will not be set. Clients can rely on always open (24 hours) being represented as an `open` period containing `day` with value `0`, `hour` with value `0`, and `minute` with value `0`." }, "regularSecondaryOpeningHours": { "description": "Contains an array of entries for information about regular secondary hours of a business. Secondary hours are different from a business's main hours. For example, a restaurant can specify drive through hours or delivery hours as its secondary hours. This field populates the type subfield, which draws from a predefined list of opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place.", diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index 3f86e4609d5..eaad73963ef 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -1455,7 +1455,7 @@ type GoogleMapsPlacesV1Place struct { // RegularOpeningHours: The regular hours of operation. Note that if a place is // always open (24 hours), the `close` field will not be set. Clients can rely // on always open (24 hours) being represented as an `open` period containing - // day with value `0`, hour with value `0`, and minute with value `0`. + // `day` with value `0`, `hour` with value `0`, and `minute` with value `0`. RegularOpeningHours *GoogleMapsPlacesV1PlaceOpeningHours `json:"regularOpeningHours,omitempty"` // RegularSecondaryOpeningHours: Contains an array of entries for information // about regular secondary hours of a business. Secondary hours are different diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 682da451a9c..11adffdbd23 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -2223,7 +2223,7 @@ } } }, - "revision": "20241220", + "revision": "20241231", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2869,7 +2869,7 @@ "id": "GoogleCloudRetailV2ColorInfo", "properties": { "colorFamilies": { - "description": "The standard color families. Strongly recommended to use the following standard color groups: \"Red\", \"Pink\", \"Orange\", \"Yellow\", \"Purple\", \"Green\", \"Cyan\", \"Blue\", \"Brown\", \"White\", \"Gray\", \"Black\" and \"Mixed\". Normally it is expected to have only 1 color family. May consider using single \"Mixed\" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).", + "description": "The standard color families. Strongly recommended to use the following standard color groups: \"Red\", \"Pink\", \"Orange\", \"Yellow\", \"Purple\", \"Green\", \"Cyan\", \"Blue\", \"Brown\", \"White\", \"Gray\", \"Black\" and \"Mixed\". Normally it is expected to have only 1 color family. May consider using single \"Mixed\" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color). The colorFamilies field as a system attribute is not a required field but strongly recommended to be specified. Google Search models treat this field as more important than a custom product attribute when specified.", "items": { "type": "string" }, diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index e7d1679bb86..9c7bd50f322 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -1353,7 +1353,10 @@ type GoogleCloudRetailV2ColorInfo struct { // 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google // Merchant Center property color // (https://support.google.com/merchants/answer/6324487). Schema.org property - // Product.color (https://schema.org/color). + // Product.color (https://schema.org/color). The colorFamilies field as a + // system attribute is not a required field but strongly recommended to be + // specified. Google Search models treat this field as more important than a + // custom product attribute when specified. ColorFamilies []string `json:"colorFamilies,omitempty"` // Colors: The color display names, which may be different from standard color // family names, such as the color aliases used in the website frontend. diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 44a2472cb62..dbce02ae07c 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -2744,7 +2744,7 @@ } } }, - "revision": "20241220", + "revision": "20241231", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4180,7 +4180,7 @@ "id": "GoogleCloudRetailV2alphaColorInfo", "properties": { "colorFamilies": { - "description": "The standard color families. Strongly recommended to use the following standard color groups: \"Red\", \"Pink\", \"Orange\", \"Yellow\", \"Purple\", \"Green\", \"Cyan\", \"Blue\", \"Brown\", \"White\", \"Gray\", \"Black\" and \"Mixed\". Normally it is expected to have only 1 color family. May consider using single \"Mixed\" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).", + "description": "The standard color families. Strongly recommended to use the following standard color groups: \"Red\", \"Pink\", \"Orange\", \"Yellow\", \"Purple\", \"Green\", \"Cyan\", \"Blue\", \"Brown\", \"White\", \"Gray\", \"Black\" and \"Mixed\". Normally it is expected to have only 1 color family. May consider using single \"Mixed\" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color). The colorFamilies field as a system attribute is not a required field but strongly recommended to be specified. Google Search models treat this field as more important than a custom product attribute when specified.", "items": { "type": "string" }, diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index d4cbd297393..2122c221d69 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -2521,7 +2521,10 @@ type GoogleCloudRetailV2alphaColorInfo struct { // 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google // Merchant Center property color // (https://support.google.com/merchants/answer/6324487). Schema.org property - // Product.color (https://schema.org/color). + // Product.color (https://schema.org/color). The colorFamilies field as a + // system attribute is not a required field but strongly recommended to be + // specified. Google Search models treat this field as more important than a + // custom product attribute when specified. ColorFamilies []string `json:"colorFamilies,omitempty"` // Colors: The color display names, which may be different from standard color // family names, such as the color aliases used in the website frontend. diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 070cca6ab22..4d69a401359 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -2368,7 +2368,7 @@ } } }, - "revision": "20241220", + "revision": "20241231", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4523,7 +4523,7 @@ "id": "GoogleCloudRetailV2betaColorInfo", "properties": { "colorFamilies": { - "description": "The standard color families. Strongly recommended to use the following standard color groups: \"Red\", \"Pink\", \"Orange\", \"Yellow\", \"Purple\", \"Green\", \"Cyan\", \"Blue\", \"Brown\", \"White\", \"Gray\", \"Black\" and \"Mixed\". Normally it is expected to have only 1 color family. May consider using single \"Mixed\" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).", + "description": "The standard color families. Strongly recommended to use the following standard color groups: \"Red\", \"Pink\", \"Orange\", \"Yellow\", \"Purple\", \"Green\", \"Cyan\", \"Blue\", \"Brown\", \"White\", \"Gray\", \"Black\" and \"Mixed\". Normally it is expected to have only 1 color family. May consider using single \"Mixed\" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color). The colorFamilies field as a system attribute is not a required field but strongly recommended to be specified. Google Search models treat this field as more important than a custom product attribute when specified.", "items": { "type": "string" }, diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index cadb7a7a125..a45cec1fc3b 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -3490,7 +3490,10 @@ type GoogleCloudRetailV2betaColorInfo struct { // 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google // Merchant Center property color // (https://support.google.com/merchants/answer/6324487). Schema.org property - // Product.color (https://schema.org/color). + // Product.color (https://schema.org/color). The colorFamilies field as a + // system attribute is not a required field but strongly recommended to be + // specified. Google Search models treat this field as more important than a + // custom product attribute when specified. ColorFamilies []string `json:"colorFamilies,omitempty"` // Colors: The color display names, which may be different from standard color // family names, such as the color aliases used in the website frontend. diff --git a/serviceusage/v1beta1/serviceusage-api.json b/serviceusage/v1beta1/serviceusage-api.json index e3a1daf1824..5af7c35d662 100644 --- a/serviceusage/v1beta1/serviceusage-api.json +++ b/serviceusage/v1beta1/serviceusage-api.json @@ -964,7 +964,7 @@ } } }, - "revision": "20241205", + "revision": "20241219", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -1040,12 +1040,14 @@ "enum": [ "ANALYSIS_TYPE_UNSPECIFIED", "ANALYSIS_TYPE_DEPENDENCY", - "ANALYSIS_TYPE_RESOURCE_USAGE" + "ANALYSIS_TYPE_RESOURCE_USAGE", + "ANALYSIS_TYPE_RESOURCE_EXISTENCE" ], "enumDescriptions": [ "Unspecified analysis type. Do not use.", "The analysis of service dependencies.", - "The analysis of service resource usage." + "The analysis of service resource usage.", + "The analysis of service resource existence." ], "readOnly": true, "type": "string" @@ -2882,14 +2884,20 @@ "description": "Output only. The type of impact.", "enum": [ "IMPACT_TYPE_UNSPECIFIED", - "DEPENDENCY_MISSING_DEPENDENCIES" + "DEPENDENCY_MISSING_DEPENDENCIES", + "RESOURCE_EXISTENCE_PROJECT" ], "enumDescriptions": [ - "Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE ...", - "Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY" + "Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE Block 3 - Impact Type of ANALYSIS_TYPE_RESOURCE_EXISTENCE ...", + "Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY", + "Block 3 - Impact Type of ANALYSIS_TYPE_RESOURCE_EXISTENCE" ], "readOnly": true, "type": "string" + }, + "parent": { + "description": "The parent resource that the analysis is based on and the service name that the analysis is for. Example: `projects/100/services/compute.googleapis.com`, folders/101/services/compute.googleapis.com` and `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same as the parent resource of the analyzed policy. However, for some analysis types, the parent can be different. For example, for resource existence analysis, if the parent resource of the analyzed policy is a folder or an organization, the parent resource here can still be the project that contains the resources.", + "type": "string" } }, "type": "object" diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index ec5262806c4..eae0cbf70b0 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -330,6 +330,8 @@ type Analysis struct { // "ANALYSIS_TYPE_UNSPECIFIED" - Unspecified analysis type. Do not use. // "ANALYSIS_TYPE_DEPENDENCY" - The analysis of service dependencies. // "ANALYSIS_TYPE_RESOURCE_USAGE" - The analysis of service resource usage. + // "ANALYSIS_TYPE_RESOURCE_EXISTENCE" - The analysis of service resource + // existence. AnalysisType string `json:"analysisType,omitempty"` // DisplayName: Output only. The user friendly display name of the analysis // type. E.g. service dependency analysis, service resource usage analysis, @@ -2820,10 +2822,24 @@ type Impact struct { // "IMPACT_TYPE_UNSPECIFIED" - Reserved Blocks (Block n contains codes from // 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of // ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of - // ANALYSIS_TYPE_RESOURCE_USAGE ... + // ANALYSIS_TYPE_RESOURCE_USAGE Block 3 - Impact Type of + // ANALYSIS_TYPE_RESOURCE_EXISTENCE ... // "DEPENDENCY_MISSING_DEPENDENCIES" - Block 1 - Impact Type of // ANALYSIS_TYPE_DEPENDENCY + // "RESOURCE_EXISTENCE_PROJECT" - Block 3 - Impact Type of + // ANALYSIS_TYPE_RESOURCE_EXISTENCE ImpactType string `json:"impactType,omitempty"` + // Parent: The parent resource that the analysis is based on and the service + // name that the analysis is for. Example: + // `projects/100/services/compute.googleapis.com`, + // folders/101/services/compute.googleapis.com` and + // `organizations/102/services/compute.googleapis.com`. Usually, the parent + // resource here is same as the parent resource of the analyzed policy. + // However, for some analysis types, the parent can be different. For example, + // for resource existence analysis, if the parent resource of the analyzed + // policy is a folder or an organization, the parent resource here can still be + // the project that contains the resources. + Parent string `json:"parent,omitempty"` // ForceSendFields is a list of field names (e.g. "Detail") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See diff --git a/testing/v1/testing-api.json b/testing/v1/testing-api.json index cd2b5ba5894..2c5c202dbea 100644 --- a/testing/v1/testing-api.json +++ b/testing/v1/testing-api.json @@ -449,7 +449,7 @@ } } }, - "revision": "20241105", + "revision": "20241231", "rootUrl": "https://testing.googleapis.com/", "schemas": { "Account": { @@ -1573,7 +1573,7 @@ }, "roboScript": { "$ref": "FileReference", - "description": "An optional Roboscript to customize the crawl. See https://firebase.google.com/docs/test-lab/android/robo-scripts-reference for more information about Roboscripts." + "description": "An optional Roboscript to customize the crawl. See https://firebase.google.com/docs/test-lab/android/robo-scripts-reference for more information about Roboscripts. The maximum allowed file size of the roboscript is 10MiB." } }, "type": "object" diff --git a/testing/v1/testing-gen.go b/testing/v1/testing-gen.go index 6ed632b481c..99ef069363e 100644 --- a/testing/v1/testing-gen.go +++ b/testing/v1/testing-gen.go @@ -1534,7 +1534,8 @@ type IosRoboTest struct { AppIpa *FileReference `json:"appIpa,omitempty"` // RoboScript: An optional Roboscript to customize the crawl. See // https://firebase.google.com/docs/test-lab/android/robo-scripts-reference for - // more information about Roboscripts. + // more information about Roboscripts. The maximum allowed file size of the + // roboscript is 10MiB. RoboScript *FileReference `json:"roboScript,omitempty"` // ForceSendFields is a list of field names (e.g. "AppBundleId") to // unconditionally include in API requests. By default, fields with empty or diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 5e898ab78c6..e5d1d31c539 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -4072,7 +4072,7 @@ } } }, - "revision": "20241203", + "revision": "20250101", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -12219,7 +12219,7 @@ "type": "object" }, "VideoSuggestionsTagSuggestion": { - "description": "A single tag suggestion with it's relevance information.", + "description": "A single tag suggestion with its relevance information.", "id": "VideoSuggestionsTagSuggestion", "properties": { "categoryRestricts": { diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 62516fd25b4..cd04643e324 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -8531,7 +8531,7 @@ func (s VideoSuggestions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// VideoSuggestionsTagSuggestion: A single tag suggestion with it's relevance +// VideoSuggestionsTagSuggestion: A single tag suggestion with its relevance // information. type VideoSuggestionsTagSuggestion struct { // CategoryRestricts: A set of video categories for which the tag is relevant.