From eb19e51658053a8d7605a04159aff24dc6341cda Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 27 Feb 2024 08:12:30 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- compute/v0.alpha/compute-api.json | 9 +- compute/v0.alpha/compute-gen.go | 20 ++++- content/v2.1/content-api.json | 4 +- content/v2.1/content-gen.go | 2 +- .../v1/networkconnectivity-api.json | 12 ++- .../v1/networkconnectivity-gen.go | 8 ++ .../v1/paymentsresellersubscription-api.json | 17 ++-- .../v1/paymentsresellersubscription-gen.go | 45 ++++++---- privateca/v1/privateca-api.json | 17 +++- privateca/v1/privateca-gen.go | 37 ++++++++ redis/v1/redis-api.json | 4 +- redis/v1/redis-gen.go | 3 +- .../v1/streetviewpublish-api.json | 8 +- streetviewpublish/v1/streetviewpublish-gen.go | 1 + tasks/v1/tasks-api.json | 4 +- tasks/v1/tasks-gen.go | 5 +- youtube/v3/youtube-api.json | 23 ++++- youtube/v3/youtube-gen.go | 89 ++++++++++++++++++- 18 files changed, 263 insertions(+), 45 deletions(-) diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 1057518d248..fb2c79bf803 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -43897,7 +43897,7 @@ } } }, - "revision": "20240218", + "revision": "20240220", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -85315,7 +85315,7 @@ "type": "string" }, "propagatedConnectionLimit": { - "description": "The number of VPCs to which this endpoint is allowed to be propagated per accept list resource (project or network). For ACCEPT_AUTOMATIC service attachment, this limit is default to per project.", + "description": "The number of consumer Network Connectivity Center spokes that connected Private Service Connect endpoints can be propagated to. This limit lets a service producer indirectly limit how many propagated Private Service Connect connections can be established to the producer's service attachment. If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint. If unspecified, the default propagated connection limit is 250.", "format": "uint32", "type": "integer" }, @@ -85518,6 +85518,11 @@ "description": "The url of a connected endpoint.", "type": "string" }, + "propagatedConnectionCount": { + "description": "The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to.", + "format": "uint32", + "type": "integer" + }, "pscConnectionId": { "description": "The PSC connection id of the connected endpoint.", "format": "uint64", diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index 14a22d03d0c..f6eef5cf8d5 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -59942,10 +59942,17 @@ type ServiceAttachment struct { // by this service attachment. ProducerForwardingRule string `json:"producerForwardingRule,omitempty"` - // PropagatedConnectionLimit: The number of VPCs to which this endpoint - // is allowed to be propagated per accept list resource (project or - // network). For ACCEPT_AUTOMATIC service attachment, this limit is - // default to per project. + // PropagatedConnectionLimit: The number of consumer Network + // Connectivity Center spokes that connected Private Service Connect + // endpoints can be propagated to. This limit lets a service producer + // indirectly limit how many propagated Private Service Connect + // connections can be established to the producer's service attachment. + // If the connection preference of the service attachment is + // ACCEPT_MANUAL, the limit applies to each project or network that is + // listed in the consumer accept list. If the connection preference of + // the service attachment is ACCEPT_AUTOMATIC, the limit applies to each + // project that contains a connected endpoint. If unspecified, the + // default propagated connection limit is 250. PropagatedConnectionLimit int64 `json:"propagatedConnectionLimit,omitempty"` // PscServiceAttachmentId: [Output Only] An 128-bit global unique ID of @@ -60217,6 +60224,11 @@ type ServiceAttachmentConnectedEndpoint struct { // Endpoint: The url of a connected endpoint. Endpoint string `json:"endpoint,omitempty"` + // PropagatedConnectionCount: The number of consumer Network + // Connectivity Center spokes that the connected Private Service Connect + // endpoint has propagated to. + PropagatedConnectionCount int64 `json:"propagatedConnectionCount,omitempty"` + // PscConnectionId: The PSC connection id of the connected endpoint. PscConnectionId uint64 `json:"pscConnectionId,omitempty,string"` diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index ed1531150a5..3cb11943ad6 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -6186,7 +6186,7 @@ } } }, - "revision": "20240218", + "revision": "20240225", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -16879,7 +16879,7 @@ "id": "SearchRequest", "properties": { "pageSize": { - "description": "Number of ReportRows to retrieve in a single page. Defaults to the maximum of 1000. Values above 1000 are coerced to 1000.", + "description": "Number of ReportRows to retrieve in a single page. Defaults to 1000. Values above 5000 are coerced to 5000.", "format": "int32", "type": "integer" }, diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 3cbe16a232a..ac1b89e8cb7 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -18522,7 +18522,7 @@ func (s *Row) MarshalJSON() ([]byte, error) { // SearchRequest: Request message for the ReportService.Search method. type SearchRequest struct { // PageSize: Number of ReportRows to retrieve in a single page. Defaults - // to the maximum of 1000. Values above 1000 are coerced to 1000. + // to 1000. Values above 5000 are coerced to 5000. PageSize int64 `json:"pageSize,omitempty"` // PageToken: Token of the page to retrieve. If not specified, the first diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index 4eaaa6d2c57..3cb07b2dc4f 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -2630,7 +2630,7 @@ } } }, - "revision": "20240131", + "revision": "20240221", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AcceptHubSpokeRequest": { @@ -2819,6 +2819,11 @@ "description": "The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map.", "type": "string" }, + "selectedSubnetwork": { + "description": "Output only. The URI of the selected subnetwork selected to allocate IP address for this connection.", + "readOnly": true, + "type": "string" + }, "serviceAttachmentUri": { "description": "The URI of a service attachment which is the target of the PSC connection.", "type": "string" @@ -3999,6 +4004,11 @@ "description": "The PSC connection id of the PSC forwarding rule.", "type": "string" }, + "selectedSubnetwork": { + "description": "Output only. The URI of the subnetwork selected to allocate IP address for this connection.", + "readOnly": true, + "type": "string" + }, "state": { "description": "State of the PSC Connection", "enum": [ diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index 8995ecf71cb..cdb881d9d32 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -715,6 +715,10 @@ type ConsumerPscConnection struct { // connected to the service attachments in this service connection map. PscConnectionId string `json:"pscConnectionId,omitempty"` + // SelectedSubnetwork: Output only. The URI of the selected subnetwork + // selected to allocate IP address for this connection. + SelectedSubnetwork string `json:"selectedSubnetwork,omitempty"` + // ServiceAttachmentUri: The URI of a service attachment which is the // target of the PSC connection. ServiceAttachmentUri string `json:"serviceAttachmentUri,omitempty"` @@ -2590,6 +2594,10 @@ type PscConnection struct { // PscConnectionId: The PSC connection id of the PSC forwarding rule. PscConnectionId string `json:"pscConnectionId,omitempty"` + // SelectedSubnetwork: Output only. The URI of the subnetwork selected + // to allocate IP address for this connection. + SelectedSubnetwork string `json:"selectedSubnetwork,omitempty"` + // State: State of the PSC Connection // // Possible values: diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 60b5b9a485d..881e236b189 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -119,7 +119,7 @@ ], "parameters": { "filter": { - "description": "Optional. Specifies the filters for the product results. The syntax is defined in https://google.aip.dev/160 with the following caveats: - Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) - Only the following fields are supported: - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` - Unless explicitly mentioned above, other features are not supported. Example: `regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`", + "description": "Optional. Specifies the filters for the product results. The syntax is defined in https://google.aip.dev/160 with the following caveats: 1. Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) 2. Only the following fields are supported: - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` 3. Unless explicitly mentioned above, other features are not supported. Example: `regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`", "location": "query", "type": "string" }, @@ -192,7 +192,7 @@ ], "parameters": { "filter": { - "description": "Optional. Specifies the filters for the promotion results. The syntax is defined in https://google.aip.dev/160 with the following caveats: - Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) - Only the following fields are supported: - `applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` - Unless explicitly mentioned above, other features are not supported. Example: `applicableProducts:partners/partner1/products/product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`", + "description": "Optional. Specifies the filters for the promotion results. The syntax is defined in https://google.aip.dev/160 with the following caveats: 1. Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) 2. Only the following fields are supported: - `applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` 3. Unless explicitly mentioned above, other features are not supported. Example: `applicableProducts:partners/partner1/products/product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`", "location": "query", "type": "string" }, @@ -435,7 +435,7 @@ } } }, - "revision": "20240222", + "revision": "20240226", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -455,6 +455,7 @@ "type": "object" }, "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest": { + "description": "Request to cancel a subscription.", "id": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest", "properties": { "cancelImmediately": { @@ -495,6 +496,7 @@ "type": "object" }, "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse": { + "description": "Response that contains the cancelled subscription resource.", "id": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse", "properties": { "subscription": { @@ -566,6 +568,7 @@ "type": "object" }, "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse": { + "description": "Response that contains the entitled subscription resource.", "id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse", "properties": { "subscription": { @@ -591,6 +594,7 @@ "type": "object" }, "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse": { + "description": "Response that contains the timestamps after the extension.", "id": "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse", "properties": { "cycleEndTime": { @@ -618,7 +622,7 @@ "properties": { "duration": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Duration", - "description": "Specifies the period of access the subscription should grant." + "description": "Required. Specifies the period of access the subscription should grant." }, "partnerUserToken": { "description": "Required. Identifier of the end-user in partner’s system.", @@ -628,10 +632,11 @@ "type": "object" }, "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest": { + "description": "Request to find eligible promotions for the current user.", "id": "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest", "properties": { "filter": { - "description": "Optional. Specifies the filters for the promotion results. The syntax is defined in https://google.aip.dev/160 with the following caveats: - Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) - Only the following fields are supported: - `applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` - Unless explicitly mentioned above, other features are not supported. Example: `applicableProducts:partners/partner1/products/product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`", + "description": "Optional. Specifies the filters for the promotion results. The syntax is defined in https://google.aip.dev/160 with the following caveats: 1. Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) 2. Only the following fields are supported: - `applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` 3. Unless explicitly mentioned above, other features are not supported. Example: `applicableProducts:partners/partner1/products/product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`", "type": "string" }, "pageSize": { @@ -731,6 +736,7 @@ "type": "object" }, "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse": { + "description": "Response that contains the products.", "id": "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse", "properties": { "nextPageToken": { @@ -748,6 +754,7 @@ "type": "object" }, "GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse": { + "description": "Response that contains the promotions.", "id": "GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse", "properties": { "nextPageToken": { diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index e064655cf5f..4a3a0be85d1 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -234,6 +234,8 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1Amount) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest: +// Request to cancel a subscription. type GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest struct { // CancelImmediately: Optional. If true, Google will cancel the // subscription immediately, and may or may not (based on the contract) @@ -290,6 +292,8 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest) Mar return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse: +// Response that contains the cancelled subscription resource. type GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse struct { // Subscription: The cancelled subscription resource. Subscription *GoogleCloudPaymentsResellerSubscriptionV1Subscription `json:"subscription,omitempty"` @@ -430,6 +434,8 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLine return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse: +// Response that contains the entitled subscription resource. type GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse struct { // Subscription: The subscription that has user linked to it. Subscription *GoogleCloudPaymentsResellerSubscriptionV1Subscription `json:"subscription,omitempty"` @@ -501,6 +507,8 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest) Mar return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse: +// Response that contains the timestamps after the extension. type GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse struct { // CycleEndTime: The time at which the subscription is expected to be // extended, in ISO 8061 format. UTC timezone. Example, @@ -551,8 +559,8 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse) Ma // GoogleCloudPaymentsResellerSubscriptionV1Extension: Describes the // details of an extension request. type GoogleCloudPaymentsResellerSubscriptionV1Extension struct { - // Duration: Specifies the period of access the subscription should - // grant. + // Duration: Required. Specifies the period of access the subscription + // should grant. Duration *GoogleCloudPaymentsResellerSubscriptionV1Duration `json:"duration,omitempty"` // PartnerUserToken: Required. Identifier of the end-user in partner’s @@ -582,15 +590,17 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1Extension) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest +// : Request to find eligible promotions for the current user. type GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest struct { // Filter: Optional. Specifies the filters for the promotion results. // The syntax is defined in https://google.aip.dev/160 with the - // following caveats: - Only the following features are supported: - + // following caveats: 1. Only the following features are supported: - // Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - - // Traversal operator `.` - Has operator `:` (no wildcards `*`) - Only + // Traversal operator `.` - Has operator `:` (no wildcards `*`) 2. Only // the following fields are supported: - `applicableProducts` - // `regionCodes` - `youtubePayload.partnerEligibilityId` - - // `youtubePayload.postalCode` - Unless explicitly mentioned above, + // `youtubePayload.postalCode` 3. Unless explicitly mentioned above, // other features are not supported. Example: // `applicableProducts:partners/partner1/products/product1 AND // regionCodes:US AND youtubePayload.postalCode=94043 AND @@ -765,6 +775,8 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload) MarshalJSON( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse: +// Response that contains the products. type GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse struct { // NextPageToken: A token, which can be sent as `page_token` to retrieve // the next page. If this field is empty, there are no subsequent pages. @@ -800,6 +812,8 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse: +// Response that contains the promotions. type GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse struct { // NextPageToken: A token, which can be sent as `page_token` to retrieve // the next page. If this field is empty, there are no subsequent pages. @@ -1912,12 +1926,12 @@ func (r *PartnersProductsService) List(parent string) *PartnersProductsListCall // Filter sets the optional parameter "filter": Specifies the filters // for the product results. The syntax is defined in -// https://google.aip.dev/160 with the following caveats: - Only the +// https://google.aip.dev/160 with the following caveats: 1. Only the // following features are supported: - Logical operator `AND` - // Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - -// Has operator `:` (no wildcards `*`) - Only the following fields are +// Has operator `:` (no wildcards `*`) 2. Only the following fields are // supported: - `regionCodes` - `youtubePayload.partnerEligibilityId` - -// `youtubePayload.postalCode` - Unless explicitly mentioned above, +// `youtubePayload.postalCode` 3. Unless explicitly mentioned above, // other features are not supported. Example: `regionCodes:US AND // youtubePayload.postalCode=94043 AND // youtubePayload.partnerEligibilityId=eligibility-id` @@ -2056,7 +2070,7 @@ func (c *PartnersProductsListCall) Do(opts ...googleapi.CallOption) (*GoogleClou // ], // "parameters": { // "filter": { - // "description": "Optional. Specifies the filters for the product results. The syntax is defined in https://google.aip.dev/160 with the following caveats: - Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) - Only the following fields are supported: - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` - Unless explicitly mentioned above, other features are not supported. Example: `regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`", + // "description": "Optional. Specifies the filters for the product results. The syntax is defined in https://google.aip.dev/160 with the following caveats: 1. Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) 2. Only the following fields are supported: - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` 3. Unless explicitly mentioned above, other features are not supported. Example: `regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`", // "location": "query", // "type": "string" // }, @@ -2307,14 +2321,15 @@ func (r *PartnersPromotionsService) List(parent string) *PartnersPromotionsListC // Filter sets the optional parameter "filter": Specifies the filters // for the promotion results. The syntax is defined in -// https://google.aip.dev/160 with the following caveats: - Only the +// https://google.aip.dev/160 with the following caveats: 1. Only the // following features are supported: - Logical operator `AND` - // Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - -// Has operator `:` (no wildcards `*`) - Only the following fields are +// Has operator `:` (no wildcards `*`) 2. Only the following fields are // supported: - `applicableProducts` - `regionCodes` - -// `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` - -// Unless explicitly mentioned above, other features are not supported. -// Example: `applicableProducts:partners/partner1/products/product1 AND +// `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` +// 3. Unless explicitly mentioned above, other features are not +// supported. Example: +// `applicableProducts:partners/partner1/products/product1 AND // regionCodes:US AND youtubePayload.postalCode=94043 AND // youtubePayload.partnerEligibilityId=eligibility-id` func (c *PartnersPromotionsListCall) Filter(filter string) *PartnersPromotionsListCall { @@ -2452,7 +2467,7 @@ func (c *PartnersPromotionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCl // ], // "parameters": { // "filter": { - // "description": "Optional. Specifies the filters for the promotion results. The syntax is defined in https://google.aip.dev/160 with the following caveats: - Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) - Only the following fields are supported: - `applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` - Unless explicitly mentioned above, other features are not supported. Example: `applicableProducts:partners/partner1/products/product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`", + // "description": "Optional. Specifies the filters for the promotion results. The syntax is defined in https://google.aip.dev/160 with the following caveats: 1. Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) 2. Only the following fields are supported: - `applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` 3. Unless explicitly mentioned above, other features are not supported. Example: `applicableProducts:partners/partner1/products/product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`", // "location": "query", // "type": "string" // }, diff --git a/privateca/v1/privateca-api.json b/privateca/v1/privateca-api.json index 03ad7834901..4bc8663cf94 100644 --- a/privateca/v1/privateca-api.json +++ b/privateca/v1/privateca-api.json @@ -1605,7 +1605,7 @@ } } }, - "revision": "20240129", + "revision": "20240221", "rootUrl": "https://privateca.googleapis.com/", "schemas": { "AccessUrls": { @@ -2043,6 +2043,10 @@ "$ref": "SubjectConfig", "description": "Required. Specifies some of the values in a certificate that are related to the subject." }, + "subjectKeyId": { + "$ref": "CertificateConfigKeyId", + "description": "Optional. When specified this provides a custom SKI to be used in the certificate. This should only be used to maintain a SKI of an existing CA originally created outside CAS, which was not generated using method (1) described in RFC 5280 section 4.2.1.2." + }, "x509Config": { "$ref": "X509Parameters", "description": "Required. Describes how some of the technical X.509 fields in a certificate should be populated." @@ -2050,6 +2054,17 @@ }, "type": "object" }, + "CertificateConfigKeyId": { + "description": "A KeyId identifies a specific public key, usually by hashing the public key.", + "id": "CertificateConfigKeyId", + "properties": { + "keyId": { + "description": "Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key.", + "type": "string" + } + }, + "type": "object" + }, "CertificateDescription": { "description": "A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509.", "id": "CertificateDescription", diff --git a/privateca/v1/privateca-gen.go b/privateca/v1/privateca-gen.go index a8278131ae7..e2dfba4e7ec 100644 --- a/privateca/v1/privateca-gen.go +++ b/privateca/v1/privateca-gen.go @@ -967,6 +967,12 @@ type CertificateConfig struct { // certificate that are related to the subject. SubjectConfig *SubjectConfig `json:"subjectConfig,omitempty"` + // SubjectKeyId: Optional. When specified this provides a custom SKI to + // be used in the certificate. This should only be used to maintain a + // SKI of an existing CA originally created outside CAS, which was not + // generated using method (1) described in RFC 5280 section 4.2.1.2. + SubjectKeyId *CertificateConfigKeyId `json:"subjectKeyId,omitempty"` + // X509Config: Required. Describes how some of the technical X.509 // fields in a certificate should be populated. X509Config *X509Parameters `json:"x509Config,omitempty"` @@ -994,6 +1000,37 @@ func (s *CertificateConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CertificateConfigKeyId: A KeyId identifies a specific public key, +// usually by hashing the public key. +type CertificateConfigKeyId struct { + // KeyId: Optional. The value of this KeyId encoded in lowercase + // hexadecimal. This is most likely the 160 bit SHA-1 hash of the public + // key. + KeyId string `json:"keyId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KeyId") 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. "KeyId") 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 *CertificateConfigKeyId) MarshalJSON() ([]byte, error) { + type NoMethod CertificateConfigKeyId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CertificateDescription: A CertificateDescription describes an X.509 // certificate or CSR that has been issued, as an alternative to using // ASN.1 / X.509. diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index 329067a336a..ed66e3ee412 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -821,7 +821,7 @@ } } }, - "revision": "20240118", + "revision": "20240220", "rootUrl": "https://redis.googleapis.com/", "schemas": { "CertChain": { @@ -913,7 +913,7 @@ "type": "integer" }, "sizeGb": { - "description": "Output only. Redis memory size in GB for the entire cluster.", + "description": "Output only. Redis memory size in GB for the entire cluster rounded up to the next integer.", "format": "int32", "readOnly": true, "type": "integer" diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index c3a6722e7bd..d3314064028 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -321,7 +321,8 @@ type Cluster struct { // ShardCount: Required. Number of shards for the Redis cluster. ShardCount int64 `json:"shardCount,omitempty"` - // SizeGb: Output only. Redis memory size in GB for the entire cluster. + // SizeGb: Output only. Redis memory size in GB for the entire cluster + // rounded up to the next integer. SizeGb int64 `json:"sizeGb,omitempty"` // State: Output only. The current state of this cluster. Can be diff --git a/streetviewpublish/v1/streetviewpublish-api.json b/streetviewpublish/v1/streetviewpublish-api.json index 5921e0f1cde..acd085f1abb 100644 --- a/streetviewpublish/v1/streetviewpublish-api.json +++ b/streetviewpublish/v1/streetviewpublish-api.json @@ -534,7 +534,7 @@ } } }, - "revision": "20231203", + "revision": "20240224", "rootUrl": "https://streetviewpublish.googleapis.com/", "schemas": { "BatchDeletePhotosRequest": { @@ -1061,7 +1061,8 @@ "NOT_OUTDOORS", "INSUFFICIENT_VIDEO_FRAMES", "INSUFFICIENT_MOVEMENT", - "MAST_DOWN" + "MAST_DOWN", + "CAMERA_COVERED" ], "enumDescriptions": [ "The failure reason is unspecified, this is the default value.", @@ -1087,7 +1088,8 @@ "Some frames were indoors, which is unsupported.", "Not enough video frames.", "Not enough moving data.", - "Mast is down." + "Mast is down.", + "Camera is covered." ], "readOnly": true, "type": "string" diff --git a/streetviewpublish/v1/streetviewpublish-gen.go b/streetviewpublish/v1/streetviewpublish-gen.go index ada20f018a3..30fd2e168a5 100644 --- a/streetviewpublish/v1/streetviewpublish-gen.go +++ b/streetviewpublish/v1/streetviewpublish-gen.go @@ -1159,6 +1159,7 @@ type PhotoSequence struct { // "INSUFFICIENT_VIDEO_FRAMES" - Not enough video frames. // "INSUFFICIENT_MOVEMENT" - Not enough moving data. // "MAST_DOWN" - Mast is down. + // "CAMERA_COVERED" - Camera is covered. FailureReason string `json:"failureReason,omitempty"` // Filename: Output only. The filename of the upload. Does not include diff --git a/tasks/v1/tasks-api.json b/tasks/v1/tasks-api.json index d1fcb4ec939..6422779f625 100644 --- a/tasks/v1/tasks-api.json +++ b/tasks/v1/tasks-api.json @@ -408,7 +408,7 @@ "type": "string" }, "maxResults": { - "description": "Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100).", + "description": "Maximum number of tasks returned on one page. Optional. The default is 20 (max allowed: 100).", "format": "int32", "location": "query", "type": "integer" @@ -566,7 +566,7 @@ } } }, - "revision": "20230401", + "revision": "20240225", "rootUrl": "https://tasks.googleapis.com/", "schemas": { "Task": { diff --git a/tasks/v1/tasks-gen.go b/tasks/v1/tasks-gen.go index 04e29f454ec..adbb34e203a 100644 --- a/tasks/v1/tasks-gen.go +++ b/tasks/v1/tasks-gen.go @@ -1869,8 +1869,7 @@ func (c *TasksListCall) DueMin(dueMin string) *TasksListCall { } // MaxResults sets the optional parameter "maxResults": Maximum number -// of task lists returned on one page. The default is 20 (max allowed: -// 100). +// of tasks returned on one page. The default is 20 (max allowed: 100). func (c *TasksListCall) MaxResults(maxResults int64) *TasksListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -2045,7 +2044,7 @@ func (c *TasksListCall) Do(opts ...googleapi.CallOption) (*Tasks, error) { // "type": "string" // }, // "maxResults": { - // "description": "Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100).", + // "description": "Maximum number of tasks returned on one page. Optional. The default is 20 (max allowed: 100).", // "format": "int32", // "location": "query", // "type": "integer" diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 88ea1861743..10786a671d8 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -2203,6 +2203,24 @@ "flatPath": "youtube/v3/playlistImages", "httpMethod": "POST", "id": "youtube.playlistImages.insert", + "mediaUpload": { + "accept": [ + "image/jpeg", + "image/png", + "application/octet-stream" + ], + "maxSize": "2097152", + "protocols": { + "resumable": { + "multipart": true, + "path": "/resumable/upload/youtube/v3/playlistImages" + }, + "simple": { + "multipart": true, + "path": "/upload/youtube/v3/playlistImages" + } + } + }, "parameterOrder": [], "parameters": { "onBehalfOfContentOwner": { @@ -2233,7 +2251,8 @@ "https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.force-ssl", "https://www.googleapis.com/auth/youtubepartner" - ] + ], + "supportsMediaUpload": true }, "list": { "description": "Retrieves a list of resources, possibly filtered.", @@ -3999,7 +4018,7 @@ } } }, - "revision": "20240213", + "revision": "20240225", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 2109d898f82..0e966c96128 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -19474,6 +19474,7 @@ type PlaylistImagesInsertCall struct { s *Service playlistimage *PlaylistImage urlParams_ gensupport.URLParams + mediaInfo_ *gensupport.MediaInfo ctx_ context.Context header_ http.Header } @@ -19533,6 +19534,43 @@ func (c *PlaylistImagesInsertCall) Part(part ...string) *PlaylistImagesInsertCal return c } +// Media specifies the media to upload in one or more chunks. The chunk +// size may be controlled by supplying a MediaOption generated by +// googleapi.ChunkSize. The chunk size defaults to +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the +// upload request will be determined by sniffing the contents of r, +// unless a MediaOption generated by googleapi.ContentType is +// supplied. +// At most one of Media and ResumableMedia may be set. +func (c *PlaylistImagesInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *PlaylistImagesInsertCall { + c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) + return c +} + +// ResumableMedia specifies the media to upload in chunks and can be +// canceled with ctx. +// +// Deprecated: use Media instead. +// +// At most one of Media and ResumableMedia may be set. mediaType +// identifies the MIME media type of the upload, such as "image/png". If +// mediaType is "", it will be auto-detected. The provided ctx will +// supersede any context previously provided to the Context method. +func (c *PlaylistImagesInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *PlaylistImagesInsertCall { + c.ctx_ = ctx + c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) + return c +} + +// ProgressUpdater provides a callback function that will be called +// after every chunk. It should be a low-latency function in order to +// not slow down the upload operation. This should only be called when +// using ResumableMedia (as opposed to Media). +func (c *PlaylistImagesInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *PlaylistImagesInsertCall { + c.mediaInfo_.SetProgressUpdater(pu) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -19544,6 +19582,8 @@ func (c *PlaylistImagesInsertCall) Fields(s ...googleapi.Field) *PlaylistImagesI // 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. +// This context will supersede any context previously provided to the +// ResumableMedia method. func (c *PlaylistImagesInsertCall) Context(ctx context.Context) *PlaylistImagesInsertCall { c.ctx_ = ctx return c @@ -19574,12 +19614,23 @@ func (c *PlaylistImagesInsertCall) doRequest(alt string) (*http.Response, error) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "youtube/v3/playlistImages") + if c.mediaInfo_ != nil { + urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/youtube/v3/playlistImages") + c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType()) + } + if body == nil { + body = new(bytes.Buffer) + reqHeaders.Set("Content-Type", "application/json") + } + body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body) + defer cleanup() urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders + req.GetBody = getBody return gensupport.SendRequest(c.ctx_, c.s.client, req) } @@ -19609,6 +19660,23 @@ func (c *PlaylistImagesInsertCall) Do(opts ...googleapi.CallOption) (*PlaylistIm if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } + rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) + if rx != nil { + rx.Client = c.s.client + rx.UserAgent = c.s.userAgent() + ctx := c.ctx_ + if ctx == nil { + ctx = context.TODO() + } + res, err = rx.Upload(ctx) + if err != nil { + return nil, err + } + defer res.Body.Close() + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + } ret := &PlaylistImage{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, @@ -19625,6 +19693,24 @@ func (c *PlaylistImagesInsertCall) Do(opts ...googleapi.CallOption) (*PlaylistIm // "flatPath": "youtube/v3/playlistImages", // "httpMethod": "POST", // "id": "youtube.playlistImages.insert", + // "mediaUpload": { + // "accept": [ + // "image/jpeg", + // "image/png", + // "application/octet-stream" + // ], + // "maxSize": "2097152", + // "protocols": { + // "resumable": { + // "multipart": true, + // "path": "/resumable/upload/youtube/v3/playlistImages" + // }, + // "simple": { + // "multipart": true, + // "path": "/upload/youtube/v3/playlistImages" + // } + // } + // }, // "parameterOrder": [], // "parameters": { // "onBehalfOfContentOwner": { @@ -19655,7 +19741,8 @@ func (c *PlaylistImagesInsertCall) Do(opts ...googleapi.CallOption) (*PlaylistIm // "https://www.googleapis.com/auth/youtube", // "https://www.googleapis.com/auth/youtube.force-ssl", // "https://www.googleapis.com/auth/youtubepartner" - // ] + // ], + // "supportsMediaUpload": true // } }