diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index bb1f963d198..80e8aca4a44 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -290,7 +290,7 @@ ] }, "create": { - "description": "Creates a space with no members. Can be used to create a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/workspace/chat/create-spaces). If you receive the error message `ALREADY_EXISTS` when creating a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. If you're a member of the [Developer Preview program](https://developers.google.com/workspace/preview), you can create a group chat in import mode using `spaceType.GROUP_CHAT`. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://developers.google.com/workspace/preview) - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) When authenticating as an app, the `space.customer` field must be set in the request.", + "description": "Creates a space with no members. Can be used to create a named space, or a group chat in `Import mode`. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/workspace/chat/create-spaces). If you receive the error message `ALREADY_EXISTS` when creating a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://developers.google.com/workspace/preview) - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) When authenticating as an app, the `space.customer` field must be set in the request.", "flatPath": "v1/spaces", "httpMethod": "POST", "id": "chat.spaces.create", @@ -898,7 +898,7 @@ "type": "string" }, "orderBy": { - "description": "Optional. Optional, if resuming from a previous query. How the list of messages is ordered. Specify a value to order by an ordering operation. Valid ordering operation values are as follows: - `ASC` for ascending. - `DESC` for descending. The default ordering is `create_time ASC`.", + "description": "Optional. How the list of messages is ordered. Specify a value to order by an ordering operation. Valid ordering operation values are as follows: - `ASC` for ascending. - `DESC` for descending. The default ordering is `create_time ASC`.", "location": "query", "type": "string" }, @@ -909,7 +909,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. Optional, if resuming from a previous query. A page token received from a previous list messages call. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.", + "description": "Optional. A page token received from a previous list messages call. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.", "location": "query", "type": "string" }, @@ -1344,7 +1344,7 @@ } } }, - "revision": "20241105", + "revision": "20241110", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -3973,7 +3973,7 @@ "type": "array" }, "clientAssignedMessageId": { - "description": "Optional. Optional. A custom ID for the message. You can use field to identify a message, or to get, delete, or update a message. To set a custom ID, specify the [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) field when you create the message. For details, see [Name a message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).", + "description": "Optional. A custom ID for the message. You can use field to identify a message, or to get, delete, or update a message. To set a custom ID, specify the [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) field when you create the message. For details, see [Name a message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).", "type": "string" }, "createTime": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 0f13a2be8f9..a6a28cf9e07 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -4283,9 +4283,9 @@ type Message struct { // (https://developers.google.com/workspace/chat/create-messages). Card builder // (https://addons.gsuite.google.com/uikit/builder) CardsV2 []*CardWithId `json:"cardsV2,omitempty"` - // ClientAssignedMessageId: Optional. Optional. A custom ID for the message. - // You can use field to identify a message, or to get, delete, or update a - // message. To set a custom ID, specify the `messageId` + // ClientAssignedMessageId: Optional. A custom ID for the message. You can use + // field to identify a message, or to get, delete, or update a message. To set + // a custom ID, specify the `messageId` // (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) // field when you create the message. For details, see Name a message // (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). @@ -6278,14 +6278,13 @@ type SpacesCreateCall struct { } // Create: Creates a space with no members. Can be used to create a named -// space. Spaces grouped by topics aren't supported. For an example, see Create -// a space (https://developers.google.com/workspace/chat/create-spaces). If you -// receive the error message `ALREADY_EXISTS` when creating a space, try a -// different `displayName`. An existing space within the Google Workspace -// organization might already use this display name. If you're a member of the -// Developer Preview program (https://developers.google.com/workspace/preview), -// you can create a group chat in import mode using `spaceType.GROUP_CHAT`. -// Supports the following types of authentication +// space, or a group chat in `Import mode`. Spaces grouped by topics aren't +// supported. For an example, see Create a space +// (https://developers.google.com/workspace/chat/create-spaces). If you receive +// the error message `ALREADY_EXISTS` when creating a space, try a different +// `displayName`. An existing space within the Google Workspace organization +// might already use this display name. Supports the following types of +// authentication // (https://developers.google.com/workspace/chat/authenticate-authorize): - App // authentication // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) @@ -8706,11 +8705,10 @@ func (c *SpacesMessagesListCall) Filter(filter string) *SpacesMessagesListCall { return c } -// OrderBy sets the optional parameter "orderBy": Optional, if resuming from a -// previous query. How the list of messages is ordered. Specify a value to -// order by an ordering operation. Valid ordering operation values are as -// follows: - `ASC` for ascending. - `DESC` for descending. The default -// ordering is `create_time ASC`. +// OrderBy sets the optional parameter "orderBy": How the list of messages is +// ordered. Specify a value to order by an ordering operation. Valid ordering +// operation values are as follows: - `ASC` for ascending. - `DESC` for +// descending. The default ordering is `create_time ASC`. func (c *SpacesMessagesListCall) OrderBy(orderBy string) *SpacesMessagesListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -8726,12 +8724,11 @@ func (c *SpacesMessagesListCall) PageSize(pageSize int64) *SpacesMessagesListCal return c } -// PageToken sets the optional parameter "pageToken": Optional, if resuming -// from a previous query. A page token received from a previous list messages -// call. Provide this parameter to retrieve the subsequent page. When -// paginating, all other parameters provided should match the call that -// provided the page token. Passing different values to the other parameters -// might lead to unexpected results. +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous list messages call. Provide this parameter to retrieve the +// subsequent page. When paginating, all other parameters provided should match +// the call that provided the page token. Passing different values to the other +// parameters might lead to unexpected results. func (c *SpacesMessagesListCall) PageToken(pageToken string) *SpacesMessagesListCall { c.urlParams_.Set("pageToken", pageToken) return c diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index c0053724182..e9a350b3b1b 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -2502,7 +2502,7 @@ } } }, - "revision": "20241015", + "revision": "20241105", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -3861,6 +3861,14 @@ "readOnly": true, "type": "array" }, + "allMarketplaceVersions": { + "description": "Output only. All marketplace versions.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "createTime": { "description": "Output only. Created time.", "format": "google-datetime", @@ -3904,6 +3912,14 @@ "description": "Identifier. Resource name of the CustomConnector. Format: projects/{project}/locations/{location}/customConnectors/{connector}", "type": "string" }, + "publishedMarketplaceVersions": { + "description": "Output only. Published marketplace versions.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "updateTime": { "description": "Output only. Updated time.", "format": "google-datetime", @@ -3957,6 +3973,15 @@ "readOnly": true, "type": "string" }, + "partnerMetadata": { + "$ref": "PartnerMetadata", + "description": "Optional. Partner metadata details. This should be populated only when publishing the custom connector to partner connector." + }, + "publishStatus": { + "$ref": "PublishStatus", + "description": "Output only. Publish status of a custom connector.", + "readOnly": true + }, "serviceAccount": { "description": "Optional. Service account used by runtime plane to access auth config secrets.", "type": "string" @@ -4738,6 +4763,11 @@ "$ref": "WebhookData", "description": "Output only. Webhook data.", "readOnly": true + }, + "webhookSubscriptions": { + "$ref": "WebhookSubscriptions", + "description": "Output only. Webhook subscriptions.", + "readOnly": true } }, "type": "object" @@ -6565,6 +6595,75 @@ }, "type": "object" }, + "PartnerMetadata": { + "description": "Partner metadata details. This will be populated when publishing the custom connector as a partner connector version. On publishing, parntner connector version will be created using the fields in PartnerMetadata.", + "id": "PartnerMetadata", + "properties": { + "acceptGcpTos": { + "description": "Required. Whether the user has accepted the Google Cloud Platform Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Marketplace Terms of Service (https://cloud.google.com/terms/marketplace/launcher?hl=en).", + "type": "boolean" + }, + "additionalComments": { + "description": "Optional. Additional comments for the submission.", + "type": "string" + }, + "confirmPartnerRequirements": { + "description": "Required. Confirmation that connector meets all applicable requirements mentioned in the Partner Connector Publishing requirements list and Partner onboardiong requirements list (https://cloud.google.com/marketplace/docs/partners/get-started#requirements).", + "type": "boolean" + }, + "demoUri": { + "description": "Required. Public URL for the demo video.", + "type": "string" + }, + "integrationTemplates": { + "description": "Required. Integration example templates for the custom connector.", + "type": "string" + }, + "marketplaceProduct": { + "description": "Optional. Marketplace product name.", + "type": "string" + }, + "marketplaceProductId": { + "description": "Required. Marketplace product ID.", + "type": "string" + }, + "marketplaceProductProjectId": { + "description": "Optional. Marketplace product project ID.", + "type": "string" + }, + "marketplaceProductUri": { + "description": "Optional. Marketplace product URL.", + "type": "string" + }, + "partner": { + "description": "Required. Partner name.", + "type": "string" + }, + "partnerConnectorDisplayName": { + "description": "Required. Partner connector display name.", + "type": "string" + }, + "publishRequestTime": { + "description": "Output only. Publish request time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "targetApplication": { + "description": "Required. Target application for which partner connector is built.", + "type": "string" + }, + "targetCustomerSegment": { + "description": "Required. Target customer segment for the partner connector.", + "type": "string" + }, + "useCases": { + "description": "Required. Details about partner connector use cases.", + "type": "string" + } + }, + "type": "object" + }, "PerSliSloEligibility": { "description": "PerSliSloEligibility is a mapping from an SLI name to eligibility.", "id": "PerSliSloEligibility", @@ -6701,6 +6800,46 @@ }, "type": "object" }, + "PublishStatus": { + "description": "Publish status of a custom connector.", + "id": "PublishStatus", + "properties": { + "publishState": { + "description": "Output only. Publish state of the custom connector.", + "enum": [ + "PUBLISH_STATE_UNSPECIFIED", + "PUBLISHED", + "PUBLISH_IN_PROGRESS", + "UNPUBLISHED" + ], + "enumDescriptions": [ + "State Unspecified.", + "Connector version has been published as partner connector version.", + "Connector version is in the process of being published as partner connector version.", + "Connector version has been unpublished as partner connector version" + ], + "readOnly": true, + "type": "string" + }, + "publishTime": { + "description": "Output only. Publish time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "publishedAs": { + "description": "Output only. Partner connector name. Will be set on the custom connector. Format: providers/partner/connectors//versions/", + "readOnly": true, + "type": "string" + }, + "publishedSource": { + "description": "Output only. Custom connector name. Will be set on the partner connector. Format: providers/customconnectors/connectors//versions/", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "RefreshConnectionSchemaMetadataRequest": { "description": "Request message for ConnectorsService.RefreshConnectionSchemaMetadata.", "id": "RefreshConnectionSchemaMetadataRequest", @@ -7848,6 +7987,21 @@ }, "type": "object" }, + "WebhookSubscriptions": { + "description": "WebhookSubscriptions has details of webhook subscriptions.", + "id": "WebhookSubscriptions", + "properties": { + "webhookData": { + "description": "Output only. Webhook data.", + "items": { + "$ref": "WebhookData" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "WeeklyCycle": { "description": "Time window specified for weekly operations.", "id": "WeeklyCycle", diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 34df551c87c..535235d1c23 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -1536,6 +1536,8 @@ type CustomConnector struct { ActiveConnectorVersions []string `json:"activeConnectorVersions,omitempty"` // AllConnectorVersions: Output only. All connector versions. AllConnectorVersions []string `json:"allConnectorVersions,omitempty"` + // AllMarketplaceVersions: Output only. All marketplace versions. + AllMarketplaceVersions []string `json:"allMarketplaceVersions,omitempty"` // CreateTime: Output only. Created time. CreateTime string `json:"createTime,omitempty"` // CustomConnectorType: Required. Type of the custom connector. @@ -1558,6 +1560,8 @@ type CustomConnector struct { // Name: Identifier. Resource name of the CustomConnector. Format: // projects/{project}/locations/{location}/customConnectors/{connector} Name string `json:"name,omitempty"` + // PublishedMarketplaceVersions: Output only. Published marketplace versions. + PublishedMarketplaceVersions []string `json:"publishedMarketplaceVersions,omitempty"` // UpdateTime: Output only. Updated time. UpdateTime string `json:"updateTime,omitempty"` @@ -1608,6 +1612,11 @@ type CustomConnectorVersion struct { // projects/{project}/locations/{location}/customConnectors/{custom_connector}/c // ustomConnectorVersions/{custom_connector_version} Name string `json:"name,omitempty"` + // PartnerMetadata: Optional. Partner metadata details. This should be + // populated only when publishing the custom connector to partner connector. + PartnerMetadata *PartnerMetadata `json:"partnerMetadata,omitempty"` + // PublishStatus: Output only. Publish status of a custom connector. + PublishStatus *PublishStatus `json:"publishStatus,omitempty"` // ServiceAccount: Optional. Service account used by runtime plane to access // auth config secrets. ServiceAccount string `json:"serviceAccount,omitempty"` @@ -2403,6 +2412,8 @@ type EventingRuntimeData struct { Status *EventingStatus `json:"status,omitempty"` // WebhookData: Output only. Webhook data. WebhookData *WebhookData `json:"webhookData,omitempty"` + // WebhookSubscriptions: Output only. Webhook subscriptions. + WebhookSubscriptions *WebhookSubscriptions `json:"webhookSubscriptions,omitempty"` // ForceSendFields is a list of field names (e.g. "EventsListenerEndpoint") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4271,6 +4282,68 @@ func (s OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PartnerMetadata: Partner metadata details. This will be populated when +// publishing the custom connector as a partner connector version. On +// publishing, parntner connector version will be created using the fields in +// PartnerMetadata. +type PartnerMetadata struct { + // AcceptGcpTos: Required. Whether the user has accepted the Google Cloud + // Platform Terms of Service (https://cloud.google.com/terms/) and the Google + // Cloud Marketplace Terms of Service + // (https://cloud.google.com/terms/marketplace/launcher?hl=en). + AcceptGcpTos bool `json:"acceptGcpTos,omitempty"` + // AdditionalComments: Optional. Additional comments for the submission. + AdditionalComments string `json:"additionalComments,omitempty"` + // ConfirmPartnerRequirements: Required. Confirmation that connector meets all + // applicable requirements mentioned in the Partner Connector Publishing + // requirements list and Partner onboardiong requirements list + // (https://cloud.google.com/marketplace/docs/partners/get-started#requirements). + ConfirmPartnerRequirements bool `json:"confirmPartnerRequirements,omitempty"` + // DemoUri: Required. Public URL for the demo video. + DemoUri string `json:"demoUri,omitempty"` + // IntegrationTemplates: Required. Integration example templates for the custom + // connector. + IntegrationTemplates string `json:"integrationTemplates,omitempty"` + // MarketplaceProduct: Optional. Marketplace product name. + MarketplaceProduct string `json:"marketplaceProduct,omitempty"` + // MarketplaceProductId: Required. Marketplace product ID. + MarketplaceProductId string `json:"marketplaceProductId,omitempty"` + // MarketplaceProductProjectId: Optional. Marketplace product project ID. + MarketplaceProductProjectId string `json:"marketplaceProductProjectId,omitempty"` + // MarketplaceProductUri: Optional. Marketplace product URL. + MarketplaceProductUri string `json:"marketplaceProductUri,omitempty"` + // Partner: Required. Partner name. + Partner string `json:"partner,omitempty"` + // PartnerConnectorDisplayName: Required. Partner connector display name. + PartnerConnectorDisplayName string `json:"partnerConnectorDisplayName,omitempty"` + // PublishRequestTime: Output only. Publish request time. + PublishRequestTime string `json:"publishRequestTime,omitempty"` + // TargetApplication: Required. Target application for which partner connector + // is built. + TargetApplication string `json:"targetApplication,omitempty"` + // TargetCustomerSegment: Required. Target customer segment for the partner + // connector. + TargetCustomerSegment string `json:"targetCustomerSegment,omitempty"` + // UseCases: Required. Details about partner connector use cases. + UseCases string `json:"useCases,omitempty"` + // ForceSendFields is a list of field names (e.g. "AcceptGcpTos") 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. "AcceptGcpTos") 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 PartnerMetadata) MarshalJSON() ([]byte, error) { + type NoMethod PartnerMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // PerSliSloEligibility: PerSliSloEligibility is a mapping from an SLI name to // eligibility. type PerSliSloEligibility struct { @@ -4483,6 +4556,45 @@ func (s ProvisionedResource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PublishStatus: Publish status of a custom connector. +type PublishStatus struct { + // PublishState: Output only. Publish state of the custom connector. + // + // Possible values: + // "PUBLISH_STATE_UNSPECIFIED" - State Unspecified. + // "PUBLISHED" - Connector version has been published as partner connector + // version. + // "PUBLISH_IN_PROGRESS" - Connector version is in the process of being + // published as partner connector version. + // "UNPUBLISHED" - Connector version has been unpublished as partner + // connector version + PublishState string `json:"publishState,omitempty"` + // PublishTime: Output only. Publish time. + PublishTime string `json:"publishTime,omitempty"` + // PublishedAs: Output only. Partner connector name. Will be set on the custom + // connector. Format: providers/partner/connectors//versions/ + PublishedAs string `json:"publishedAs,omitempty"` + // PublishedSource: Output only. Custom connector name. Will be set on the + // partner connector. Format: providers/customconnectors/connectors//versions/ + PublishedSource string `json:"publishedSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "PublishState") 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. "PublishState") 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 PublishStatus) MarshalJSON() ([]byte, error) { + type NoMethod PublishStatus + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RefreshConnectionSchemaMetadataRequest: Request message for // ConnectorsService.RefreshConnectionSchemaMetadata. type RefreshConnectionSchemaMetadataRequest struct { @@ -5662,6 +5774,29 @@ func (s WebhookData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// WebhookSubscriptions: WebhookSubscriptions has details of webhook +// subscriptions. +type WebhookSubscriptions struct { + // WebhookData: Output only. Webhook data. + WebhookData []*WebhookData `json:"webhookData,omitempty"` + // ForceSendFields is a list of field names (e.g. "WebhookData") 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. "WebhookData") 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 WebhookSubscriptions) MarshalJSON() ([]byte, error) { + type NoMethod WebhookSubscriptions + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // WeeklyCycle: Time window specified for weekly operations. type WeeklyCycle struct { // Schedule: User can specify multiple windows in a week. Minimum of 1 window. diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json index 1e69514439b..d54cd014f17 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json @@ -512,7 +512,7 @@ } } }, - "revision": "20241009", + "revision": "20241107", "rootUrl": "https://contactcenteraiplatform.googleapis.com/", "schemas": { "AdminUser": { @@ -792,7 +792,11 @@ "MULTIREGION_LARGE", "MULTIREGION_XLARGE", "MULTIREGION_2XLARGE", - "MULTIREGION_3XLARGE" + "MULTIREGION_3XLARGE", + "DEV_SMALL", + "SANDBOX_SMALL", + "TRIAL_SMALL", + "TIME_LIMITED_TRIAL_SMALL" ], "enumDescriptions": [ "The default value. This value is used if the state is omitted.", @@ -808,7 +812,11 @@ "Instance Size MULTIREGION_LARGE", "Instance Size MULTIREGION_XLARGE", "Instance Size MULTIREGION_2XLARGE.", - "Instance Size MULTIREGION_3XLARGE." + "Instance Size MULTIREGION_3XLARGE.", + "Instance Size DEV_SMALL", + "Instance Size SANDBOX_SMALL", + "Instance Size TRIAL_SMALL", + "Instance Size TIME_LIMITED_TRIAL_SMALL" ], "type": "string" } @@ -1076,7 +1084,11 @@ "MULTIREGION_LARGE", "MULTIREGION_XLARGE", "MULTIREGION_2XLARGE", - "MULTIREGION_3XLARGE" + "MULTIREGION_3XLARGE", + "DEV_SMALL", + "SANDBOX_SMALL", + "TRIAL_SMALL", + "TIME_LIMITED_TRIAL_SMALL" ], "enumDescriptions": [ "The default value. This value is used if the state is omitted.", @@ -1092,7 +1104,11 @@ "Instance Size MULTIREGION_LARGE", "Instance Size MULTIREGION_XLARGE", "Instance Size MULTIREGION_2XLARGE.", - "Instance Size MULTIREGION_3XLARGE." + "Instance Size MULTIREGION_3XLARGE.", + "Instance Size DEV_SMALL", + "Instance Size SANDBOX_SMALL", + "Instance Size TRIAL_SMALL", + "Instance Size TIME_LIMITED_TRIAL_SMALL" ], "type": "string" } diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go index 95260f0f958..1642911f2d8 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go @@ -471,6 +471,10 @@ type InstanceConfig struct { // "MULTIREGION_XLARGE" - Instance Size MULTIREGION_XLARGE // "MULTIREGION_2XLARGE" - Instance Size MULTIREGION_2XLARGE. // "MULTIREGION_3XLARGE" - Instance Size MULTIREGION_3XLARGE. + // "DEV_SMALL" - Instance Size DEV_SMALL + // "SANDBOX_SMALL" - Instance Size SANDBOX_SMALL + // "TRIAL_SMALL" - Instance Size TRIAL_SMALL + // "TIME_LIMITED_TRIAL_SMALL" - Instance Size TIME_LIMITED_TRIAL_SMALL InstanceSize string `json:"instanceSize,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceSize") to // unconditionally include in API requests. By default, fields with empty or @@ -787,6 +791,10 @@ type Quota struct { // "MULTIREGION_XLARGE" - Instance Size MULTIREGION_XLARGE // "MULTIREGION_2XLARGE" - Instance Size MULTIREGION_2XLARGE. // "MULTIREGION_3XLARGE" - Instance Size MULTIREGION_3XLARGE. + // "DEV_SMALL" - Instance Size DEV_SMALL + // "SANDBOX_SMALL" - Instance Size SANDBOX_SMALL + // "TRIAL_SMALL" - Instance Size TRIAL_SMALL + // "TIME_LIMITED_TRIAL_SMALL" - Instance Size TIME_LIMITED_TRIAL_SMALL ContactCenterInstanceSize string `json:"contactCenterInstanceSize,omitempty"` // ForceSendFields is a list of field names (e.g. "ContactCenterCountLimit") to // unconditionally include in API requests. By default, fields with empty or diff --git a/developerconnect/v1/developerconnect-api.json b/developerconnect/v1/developerconnect-api.json index 5968c6dedd6..0a70f4c1029 100644 --- a/developerconnect/v1/developerconnect-api.json +++ b/developerconnect/v1/developerconnect-api.json @@ -967,7 +967,7 @@ } } }, - "revision": "20241023", + "revision": "20241107", "rootUrl": "https://developerconnect.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -1676,7 +1676,7 @@ "type": "string" }, "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "readOnly": true, "type": "boolean" }, diff --git a/developerconnect/v1/developerconnect-gen.go b/developerconnect/v1/developerconnect-gen.go index cbd9680a814..de48b18a5d9 100644 --- a/developerconnect/v1/developerconnect-gen.go +++ b/developerconnect/v1/developerconnect-gen.go @@ -1071,8 +1071,8 @@ type OperationMetadata struct { EndTime string `json:"endTime,omitempty"` // RequestedCancellation: Output only. Identifies whether the user has // requested cancellation of the operation. Operations that have been cancelled - // successfully have Operation.error value with a google.rpc.Status.code of 1, - // corresponding to `Code.CANCELLED`. + // successfully have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Output only. Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` diff --git a/digitalassetlinks/v1/digitalassetlinks-api.json b/digitalassetlinks/v1/digitalassetlinks-api.json index ba0a3975eab..8fff69369d5 100644 --- a/digitalassetlinks/v1/digitalassetlinks-api.json +++ b/digitalassetlinks/v1/digitalassetlinks-api.json @@ -96,21 +96,6 @@ "resources": { "assetlinks": { "methods": { - "bulkCheck": { - "description": "Send a bundle of statement checks in a single RPC to minimize latency and service load. Statements need not be all for the same source and/or target. We recommend using this method when you need to check more than one statement in a short period of time.", - "flatPath": "v1/assetlinks:bulkCheck", - "httpMethod": "POST", - "id": "digitalassetlinks.assetlinks.bulkCheck", - "parameterOrder": [], - "parameters": {}, - "path": "v1/assetlinks:bulkCheck", - "request": { - "$ref": "BulkCheckRequest" - }, - "response": { - "$ref": "BulkCheckResponse" - } - }, "check": { "description": "Determines whether the specified (directional) relationship exists between the specified source and target assets. The relation describes the intent of the link between the two assets as claimed by the source asset. An example for such relationships is the delegation of privileges or permissions. This command is most often used by infrastructure systems to check preconditions for an action. For example, a client may want to know if it is OK to send a web URL to a particular mobile app instead. The client can check for the relevant asset link from the website to the mobile app to decide if the operation should be allowed. A note about security: if you specify a secure asset as the source, such as an HTTPS website or an Android app, the API will ensure that any statements used to generate the response have been made in a secure way by the owner of that asset. Conversely, if the source asset is an insecure HTTP website (that is, the URL starts with `http://` instead of `https://`), the API cannot verify its statements securely, and it is not possible to ensure that the website's statements have not been altered by a third party. For more information, see the [Digital Asset Links technical design specification](https://github.com/google/digitalassetlinks/blob/master/well-known/details.md).", "flatPath": "v1/assetlinks:check", @@ -199,7 +184,7 @@ } } }, - "revision": "20220122", + "revision": "20241109", "rootUrl": "https://digitalassetlinks.googleapis.com/", "schemas": { "AndroidAppAsset": { @@ -232,84 +217,6 @@ }, "type": "object" }, - "BulkCheckRequest": { - "description": "Message used to check for the existence of multiple digital asset links within a single RPC.", - "id": "BulkCheckRequest", - "properties": { - "allowGoogleInternalDataSources": { - "description": "Same configuration as in Check request, all statements checks will use same configurations.", - "type": "boolean" - }, - "defaultRelation": { - "description": "If specified, will be used in any given template statement that doesn’t specify a relation.", - "type": "string" - }, - "defaultSource": { - "$ref": "Asset", - "description": "If specified, will be used in any given template statement that doesn’t specify a source." - }, - "defaultTarget": { - "$ref": "Asset", - "description": "If specified, will be used in any given template statement that doesn’t specify a target." - }, - "skipCacheLookup": { - "description": "Same configuration as in Check request, all statements checks will use same configurations.", - "type": "boolean" - }, - "statements": { - "description": "List of statements to check. For each statement, you can omit a field if the corresponding default_* field below was supplied. Minimum 1 statement; maximum 1,000 statements. Any additional statements will be ignored.", - "items": { - "$ref": "StatementTemplate" - }, - "type": "array" - } - }, - "type": "object" - }, - "BulkCheckResponse": { - "description": "Response for BulkCheck call. Results are sent in a list in the same order in which they were sent. Individual check errors are described in the appropriate check_results entry. If the entire call fails, the response will include a bulk_error_code field describing the error.", - "id": "BulkCheckResponse", - "properties": { - "bulkErrorCode": { - "description": "Error code for the entire request. Present only if the entire request failed. Individual check errors will not trigger the presence of this field.", - "enum": [ - "ERROR_CODE_UNSPECIFIED", - "ERROR_CODE_INVALID_QUERY", - "ERROR_CODE_FETCH_ERROR", - "ERROR_CODE_FAILED_SSL_VALIDATION", - "ERROR_CODE_REDIRECT", - "ERROR_CODE_TOO_LARGE", - "ERROR_CODE_MALFORMED_HTTP_RESPONSE", - "ERROR_CODE_WRONG_CONTENT_TYPE", - "ERROR_CODE_MALFORMED_CONTENT", - "ERROR_CODE_SECURE_ASSET_INCLUDES_INSECURE", - "ERROR_CODE_FETCH_BUDGET_EXHAUSTED" - ], - "enumDescriptions": [ - "", - "Unable to parse query.", - "Unable to fetch the asset links data.", - "Invalid HTTPS certificate .", - "HTTP redirects (e.g, 301) are not allowed.", - "Asset links data exceeds maximum size.", - "Can't parse HTTP response.", - "HTTP Content-type should be application/json.", - "JSON content is malformed.", - "A secure asset includes an insecure asset (security downgrade).", - "Too many includes (maybe a loop)." - ], - "type": "string" - }, - "checkResults": { - "description": "List of results for each check request. Results are returned in the same order in which they were sent in the request.", - "items": { - "$ref": "CheckResponse" - }, - "type": "array" - } - }, - "type": "object" - }, "CertificateInfo": { "description": "Describes an X509 certificate.", "id": "CertificateInfo", @@ -449,25 +356,6 @@ }, "type": "object" }, - "StatementTemplate": { - "description": "A single statement to check in a bulk call using BulkCheck. See CheckRequest for details about each field.", - "id": "StatementTemplate", - "properties": { - "relation": { - "description": "The relationship being asserted between the source and target. If omitted, you must specify a BulkCheckRequest.default_relation value to use here.", - "type": "string" - }, - "source": { - "$ref": "Asset", - "description": "The source asset that is asserting the statement. If omitted, you must specify a BulkCheckRequest.default_source value to use here." - }, - "target": { - "$ref": "Asset", - "description": "The target that the source is declaring the relationship with. If omitted, you must specify a BulkCheckRequest.default_target to use here." - } - }, - "type": "object" - }, "WebAsset": { "description": "Describes a web asset.", "id": "WebAsset", diff --git a/digitalassetlinks/v1/digitalassetlinks-gen.go b/digitalassetlinks/v1/digitalassetlinks-gen.go index 0a72a18a78d..f38aedd266e 100644 --- a/digitalassetlinks/v1/digitalassetlinks-gen.go +++ b/digitalassetlinks/v1/digitalassetlinks-gen.go @@ -226,96 +226,6 @@ func (s Asset) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BulkCheckRequest: Message used to check for the existence of multiple -// digital asset links within a single RPC. -type BulkCheckRequest struct { - // AllowGoogleInternalDataSources: Same configuration as in Check request, all - // statements checks will use same configurations. - AllowGoogleInternalDataSources bool `json:"allowGoogleInternalDataSources,omitempty"` - // DefaultRelation: If specified, will be used in any given template statement - // that doesn’t specify a relation. - DefaultRelation string `json:"defaultRelation,omitempty"` - // DefaultSource: If specified, will be used in any given template statement - // that doesn’t specify a source. - DefaultSource *Asset `json:"defaultSource,omitempty"` - // DefaultTarget: If specified, will be used in any given template statement - // that doesn’t specify a target. - DefaultTarget *Asset `json:"defaultTarget,omitempty"` - // SkipCacheLookup: Same configuration as in Check request, all statements - // checks will use same configurations. - SkipCacheLookup bool `json:"skipCacheLookup,omitempty"` - // Statements: List of statements to check. For each statement, you can omit a - // field if the corresponding default_* field below was supplied. Minimum 1 - // statement; maximum 1,000 statements. Any additional statements will be - // ignored. - Statements []*StatementTemplate `json:"statements,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AllowGoogleInternalDataSources") 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. "AllowGoogleInternalDataSources") - // 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 BulkCheckRequest) MarshalJSON() ([]byte, error) { - type NoMethod BulkCheckRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// BulkCheckResponse: Response for BulkCheck call. Results are sent in a list -// in the same order in which they were sent. Individual check errors are -// described in the appropriate check_results entry. If the entire call fails, -// the response will include a bulk_error_code field describing the error. -type BulkCheckResponse struct { - // BulkErrorCode: Error code for the entire request. Present only if the entire - // request failed. Individual check errors will not trigger the presence of - // this field. - // - // Possible values: - // "ERROR_CODE_UNSPECIFIED" - // "ERROR_CODE_INVALID_QUERY" - Unable to parse query. - // "ERROR_CODE_FETCH_ERROR" - Unable to fetch the asset links data. - // "ERROR_CODE_FAILED_SSL_VALIDATION" - Invalid HTTPS certificate . - // "ERROR_CODE_REDIRECT" - HTTP redirects (e.g, 301) are not allowed. - // "ERROR_CODE_TOO_LARGE" - Asset links data exceeds maximum size. - // "ERROR_CODE_MALFORMED_HTTP_RESPONSE" - Can't parse HTTP response. - // "ERROR_CODE_WRONG_CONTENT_TYPE" - HTTP Content-type should be - // application/json. - // "ERROR_CODE_MALFORMED_CONTENT" - JSON content is malformed. - // "ERROR_CODE_SECURE_ASSET_INCLUDES_INSECURE" - A secure asset includes an - // insecure asset (security downgrade). - // "ERROR_CODE_FETCH_BUDGET_EXHAUSTED" - Too many includes (maybe a loop). - BulkErrorCode string `json:"bulkErrorCode,omitempty"` - // CheckResults: List of results for each check request. Results are returned - // in the same order in which they were sent in the request. - CheckResults []*CheckResponse `json:"checkResults,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BulkErrorCode") 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. "BulkErrorCode") 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 BulkCheckResponse) MarshalJSON() ([]byte, error) { - type NoMethod BulkCheckResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // CertificateInfo: Describes an X509 certificate. type CertificateInfo struct { // Sha256Fingerprint: The uppercase SHA-265 fingerprint of the certificate. @@ -497,37 +407,6 @@ func (s Statement) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StatementTemplate: A single statement to check in a bulk call using -// BulkCheck. See CheckRequest for details about each field. -type StatementTemplate struct { - // Relation: The relationship being asserted between the source and target. If - // omitted, you must specify a BulkCheckRequest.default_relation value to use - // here. - Relation string `json:"relation,omitempty"` - // Source: The source asset that is asserting the statement. If omitted, you - // must specify a BulkCheckRequest.default_source value to use here. - Source *Asset `json:"source,omitempty"` - // Target: The target that the source is declaring the relationship with. If - // omitted, you must specify a BulkCheckRequest.default_target to use here. - Target *Asset `json:"target,omitempty"` - // ForceSendFields is a list of field names (e.g. "Relation") 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. "Relation") 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 StatementTemplate) MarshalJSON() ([]byte, error) { - type NoMethod StatementTemplate - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // WebAsset: Describes a web asset. type WebAsset struct { // Site: Web assets are identified by a URL that contains only the scheme, @@ -564,104 +443,6 @@ func (s WebAsset) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type AssetlinksBulkCheckCall struct { - s *Service - bulkcheckrequest *BulkCheckRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// BulkCheck: Send a bundle of statement checks in a single RPC to minimize -// latency and service load. Statements need not be all for the same source -// and/or target. We recommend using this method when you need to check more -// than one statement in a short period of time. -func (r *AssetlinksService) BulkCheck(bulkcheckrequest *BulkCheckRequest) *AssetlinksBulkCheckCall { - c := &AssetlinksBulkCheckCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.bulkcheckrequest = bulkcheckrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AssetlinksBulkCheckCall) Fields(s ...googleapi.Field) *AssetlinksBulkCheckCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AssetlinksBulkCheckCall) Context(ctx context.Context) *AssetlinksBulkCheckCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AssetlinksBulkCheckCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AssetlinksBulkCheckCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.bulkcheckrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/assetlinks:bulkCheck") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "digitalassetlinks.assetlinks.bulkCheck" call. -// Any non-2xx status code is an error. Response headers are in either -// *BulkCheckResponse.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 *AssetlinksBulkCheckCall) Do(opts ...googleapi.CallOption) (*BulkCheckResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &BulkCheckResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - type AssetlinksCheckCall struct { s *Service urlParams_ gensupport.URLParams diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index fc07aeb7e31..8d2e39b07ef 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -5015,7 +5015,7 @@ } } }, - "revision": "20241027", + "revision": "20241110", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -5566,7 +5566,8 @@ "TSV", "AUDIO", "VIDEO", - "EXECUTABLE" + "EXECUTABLE", + "AI_MODEL" ], "enumDescriptions": [ "Unused", @@ -5585,7 +5586,8 @@ "tsv", "Audio file types. Only used for profiling.", "Video file types. Only used for profiling.", - "Executable file types. Only used for profiling." + "Executable file types. Only used for profiling.", + "AI model file types. Only used for profiling." ], "type": "string" } @@ -8267,7 +8269,8 @@ "CLUSTER_IMAGE", "CLUSTER_ARCHIVE", "CLUSTER_MULTIMEDIA", - "CLUSTER_EXECUTABLE" + "CLUSTER_EXECUTABLE", + "CLUSTER_AI_MODEL" ], "enumDescriptions": [ "Unused.", @@ -8279,7 +8282,8 @@ "Images like jpeg, bmp.", "Archives and containers like .zip, .tar etc.", "Multimedia like .mp4, .avi etc.", - "Executable files like .exe, .class, .apk etc." + "Executable files like .exe, .class, .apk etc.", + "AI models like .tflite etc." ], "type": "string" } diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 49359a5c900..5fc4c7ad188 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -1373,6 +1373,7 @@ type GooglePrivacyDlpV2ByteContentItem struct { // "AUDIO" - Audio file types. Only used for profiling. // "VIDEO" - Video file types. Only used for profiling. // "EXECUTABLE" - Executable file types. Only used for profiling. + // "AI_MODEL" - AI model file types. Only used for profiling. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Data") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -5124,6 +5125,7 @@ type GooglePrivacyDlpV2FileClusterType struct { // "CLUSTER_ARCHIVE" - Archives and containers like .zip, .tar etc. // "CLUSTER_MULTIMEDIA" - Multimedia like .mp4, .avi etc. // "CLUSTER_EXECUTABLE" - Executable files like .exe, .class, .apk etc. + // "CLUSTER_AI_MODEL" - AI models like .tflite etc. Cluster string `json:"cluster,omitempty"` // ForceSendFields is a list of field names (e.g. "Cluster") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json index a6c3fc6b1d2..da9e3a48daa 100644 --- a/drive/v3/drive-api.json +++ b/drive/v3/drive-api.json @@ -155,6 +155,116 @@ } } }, + "accessproposals": { + "methods": { + "get": { + "description": "Retrieves an AccessProposal by ID.", + "flatPath": "files/{fileId}/accessproposals/{proposalId}", + "httpMethod": "GET", + "id": "drive.accessproposals.get", + "parameterOrder": [ + "fileId", + "proposalId" + ], + "parameters": { + "fileId": { + "description": "Required. The id of the item the request is on.", + "location": "path", + "required": true, + "type": "string" + }, + "proposalId": { + "description": "Required. The id of the access proposal to resolve.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "files/{fileId}/accessproposals/{proposalId}", + "response": { + "$ref": "AccessProposal" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.metadata", + "https://www.googleapis.com/auth/drive.metadata.readonly", + "https://www.googleapis.com/auth/drive.readonly" + ] + }, + "list": { + "description": "List the AccessProposals on a file. Note: Only approvers are able to list AccessProposals on a file. If the user is not an approver, returns a 403.", + "flatPath": "files/{fileId}/accessproposals", + "httpMethod": "GET", + "id": "drive.accessproposals.list", + "parameterOrder": [ + "fileId" + ], + "parameters": { + "fileId": { + "description": "Required. The id of the item the request is on.", + "location": "path", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. The number of results per page", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The continuation token on the list of access requests.", + "location": "query", + "type": "string" + } + }, + "path": "files/{fileId}/accessproposals", + "response": { + "$ref": "ListAccessProposalsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.metadata", + "https://www.googleapis.com/auth/drive.metadata.readonly", + "https://www.googleapis.com/auth/drive.readonly" + ] + }, + "resolve": { + "description": "Used to approve or deny an Access Proposal.", + "flatPath": "files/{fileId}/accessproposals/{proposalId}:resolve", + "httpMethod": "POST", + "id": "drive.accessproposals.resolve", + "parameterOrder": [ + "fileId", + "proposalId" + ], + "parameters": { + "fileId": { + "description": "Required. The id of the item the request is on.", + "location": "path", + "required": true, + "type": "string" + }, + "proposalId": { + "description": "Required. The id of the access proposal to resolve.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "files/{fileId}/accessproposals/{proposalId}:resolve", + "request": { + "$ref": "ResolveAccessProposalRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file" + ] + } + } + }, "apps": { "methods": { "get": { @@ -1702,111 +1812,6 @@ ], "supportsSubscription": true } - }, - "resources": { - "accessproposals": { - "methods": { - "list": { - "description": "List the AccessProposals on a file. Note: Only approvers are able to list AccessProposals on a file. If the user is not an approver, returns a 403.", - "flatPath": "files/{fileId}/accessproposals", - "httpMethod": "GET", - "id": "drive.files.accessproposals.list", - "parameterOrder": [ - "fileId" - ], - "parameters": { - "fileId": { - "description": "Required. The id of the item the request is on.", - "location": "path", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "Optional. The number of results per page", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. The continuation token on the list of access requests.", - "location": "query", - "type": "string" - } - }, - "path": "files/{fileId}/accessproposals", - "response": { - "$ref": "ListAccessProposalsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/drive", - "https://www.googleapis.com/auth/drive.file", - "https://www.googleapis.com/auth/drive.metadata", - "https://www.googleapis.com/auth/drive.metadata.readonly", - "https://www.googleapis.com/auth/drive.readonly" - ] - }, - "resolve": { - "description": "Used to approve or deny an Access Proposal.", - "flatPath": "files/{fileId}/accessproposals/{proposalId}:resolve", - "httpMethod": "POST", - "id": "drive.files.accessproposals.resolve", - "parameterOrder": [ - "fileId", - "proposalId" - ], - "parameters": { - "action": { - "description": "Required. The action to take on the AccessProposal.", - "enum": [ - "ACTION_UNSPECIFIED", - "ACCEPT", - "DENY" - ], - "enumDescriptions": [ - "Unspecified action", - "The user accepts the proposal. Note: If this action is used, the `role` field must have at least one value.", - "The user denies the proposal" - ], - "location": "query", - "type": "string" - }, - "fileId": { - "description": "Required. The id of the item the request is on.", - "location": "path", - "required": true, - "type": "string" - }, - "proposalId": { - "description": "Required. The id of the access proposal to resolve.", - "location": "path", - "required": true, - "type": "string" - }, - "role": { - "description": "Optional. The roles the approver has allowed, if any. Note: This field is required for the `ACCEPT` action.", - "location": "query", - "repeated": true, - "type": "string" - }, - "sendNotification": { - "description": "Optional. Whether to send an email to the requester when the AccessProposal is denied or accepted.", - "location": "query", - "type": "boolean" - }, - "view": { - "description": "Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. `published` is the only supported value.", - "location": "query", - "type": "string" - } - }, - "path": "files/{fileId}/accessproposals/{proposalId}:resolve", - "scopes": [ - "https://www.googleapis.com/auth/drive", - "https://www.googleapis.com/auth/drive.file" - ] - } - } - } } }, "operation": { @@ -2769,7 +2774,7 @@ } } }, - "revision": "20241027", + "revision": "20241110", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -4839,6 +4844,42 @@ }, "type": "object" }, + "ResolveAccessProposalRequest": { + "description": "Request message for resolving an AccessProposal on a file.", + "id": "ResolveAccessProposalRequest", + "properties": { + "action": { + "description": "Required. The action to take on the AccessProposal.", + "enum": [ + "ACTION_UNSPECIFIED", + "ACCEPT", + "DENY" + ], + "enumDescriptions": [ + "Unspecified action", + "The user accepts the proposal. Note: If this action is used, the `role` field must have at least one value.", + "The user denies the proposal" + ], + "type": "string" + }, + "role": { + "description": "Optional. The roles the approver has allowed, if any. Note: This field is required for the `ACCEPT` action.", + "items": { + "type": "string" + }, + "type": "array" + }, + "sendNotification": { + "description": "Optional. Whether to send an email to the requester when the AccessProposal is denied or accepted.", + "type": "boolean" + }, + "view": { + "description": "Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. `published` is the only supported value.", + "type": "string" + } + }, + "type": "object" + }, "Revision": { "description": "The metadata for a revision to a file. Some resource methods (such as `revisions.update`) require a `revisionId`. Use the `revisions.list` method to retrieve the ID for a revision.", "id": "Revision", diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index 581feb66eab..d7d0c23e3c7 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -178,6 +178,7 @@ func New(client *http.Client) (*Service, error) { } s := &Service{client: client, BasePath: basePath} s.About = NewAboutService(s) + s.Accessproposals = NewAccessproposalsService(s) s.Apps = NewAppsService(s) s.Changes = NewChangesService(s) s.Channels = NewChannelsService(s) @@ -200,6 +201,8 @@ type Service struct { About *AboutService + Accessproposals *AccessproposalsService + Apps *AppsService Changes *ChangesService @@ -241,6 +244,15 @@ type AboutService struct { s *Service } +func NewAccessproposalsService(s *Service) *AccessproposalsService { + rs := &AccessproposalsService{s: s} + return rs +} + +type AccessproposalsService struct { + s *Service +} + func NewAppsService(s *Service) *AppsService { rs := &AppsService{s: s} return rs @@ -288,23 +300,11 @@ type DrivesService struct { func NewFilesService(s *Service) *FilesService { rs := &FilesService{s: s} - rs.Accessproposals = NewFilesAccessproposalsService(s) return rs } type FilesService struct { s *Service - - Accessproposals *FilesAccessproposalsService -} - -func NewFilesAccessproposalsService(s *Service) *FilesAccessproposalsService { - rs := &FilesAccessproposalsService{s: s} - return rs -} - -type FilesAccessproposalsService struct { - s *Service } func NewOperationService(s *Service) *OperationService { @@ -523,6 +523,9 @@ type AccessProposal struct { RequesterEmailAddress string `json:"requesterEmailAddress,omitempty"` // RolesAndViews: A wrapper for the role and view of an access proposal. RolesAndViews []*AccessProposalRoleAndView `json:"rolesAndViews,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -2679,6 +2682,45 @@ func (s ReplyList) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ResolveAccessProposalRequest: Request message for resolving an +// AccessProposal on a file. +type ResolveAccessProposalRequest struct { + // Action: Required. The action to take on the AccessProposal. + // + // Possible values: + // "ACTION_UNSPECIFIED" - Unspecified action + // "ACCEPT" - The user accepts the proposal. Note: If this action is used, + // the `role` field must have at least one value. + // "DENY" - The user denies the proposal + Action string `json:"action,omitempty"` + // Role: Optional. The roles the approver has allowed, if any. Note: This field + // is required for the `ACCEPT` action. + Role []string `json:"role,omitempty"` + // SendNotification: Optional. Whether to send an email to the requester when + // the AccessProposal is denied or accepted. + SendNotification bool `json:"sendNotification,omitempty"` + // View: Optional. Indicates the view for this access proposal. This should + // only be set when the proposal belongs to a view. `published` is the only + // supported value. + View string `json:"view,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 ResolveAccessProposalRequest) MarshalJSON() ([]byte, error) { + type NoMethod ResolveAccessProposalRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Revision: The metadata for a revision to a file. Some resource methods (such // as `revisions.update`) require a `revisionId`. Use the `revisions.list` // method to retrieve the ID for a revision. @@ -3215,54 +3257,392 @@ func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) { if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - var body io.Reader = nil + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "about") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "drive.about.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *About.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 *AboutGetCall) Do(opts ...googleapi.CallOption) (*About, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &About{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type AccessproposalsGetCall struct { + s *Service + fileId string + proposalId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves an AccessProposal by ID. +// +// - fileId: The id of the item the request is on. +// - proposalId: The id of the access proposal to resolve. +func (r *AccessproposalsService) Get(fileId string, proposalId string) *AccessproposalsGetCall { + c := &AccessproposalsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.fileId = fileId + c.proposalId = proposalId + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AccessproposalsGetCall) Fields(s ...googleapi.Field) *AccessproposalsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *AccessproposalsGetCall) IfNoneMatch(entityTag string) *AccessproposalsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccessproposalsGetCall) Context(ctx context.Context) *AccessproposalsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AccessproposalsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccessproposalsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/accessproposals/{proposalId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "fileId": c.fileId, + "proposalId": c.proposalId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "drive.accessproposals.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccessProposal.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 *AccessproposalsGetCall) Do(opts ...googleapi.CallOption) (*AccessProposal, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AccessProposal{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type AccessproposalsListCall struct { + s *Service + fileId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List the AccessProposals on a file. Note: Only approvers are able to +// list AccessProposals on a file. If the user is not an approver, returns a +// 403. +// +// - fileId: The id of the item the request is on. +func (r *AccessproposalsService) List(fileId string) *AccessproposalsListCall { + c := &AccessproposalsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.fileId = fileId + return c +} + +// PageSize sets the optional parameter "pageSize": The number of results per +// page +func (c *AccessproposalsListCall) PageSize(pageSize int64) *AccessproposalsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The continuation token on +// the list of access requests. +func (c *AccessproposalsListCall) PageToken(pageToken string) *AccessproposalsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AccessproposalsListCall) Fields(s ...googleapi.Field) *AccessproposalsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *AccessproposalsListCall) IfNoneMatch(entityTag string) *AccessproposalsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccessproposalsListCall) Context(ctx context.Context) *AccessproposalsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AccessproposalsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccessproposalsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/accessproposals") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "fileId": c.fileId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "drive.accessproposals.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAccessProposalsResponse.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 *AccessproposalsListCall) Do(opts ...googleapi.CallOption) (*ListAccessProposalsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListAccessProposalsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AccessproposalsListCall) Pages(ctx context.Context, f func(*ListAccessProposalsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type AccessproposalsResolveCall struct { + s *Service + fileId string + proposalId string + resolveaccessproposalrequest *ResolveAccessProposalRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Resolve: Used to approve or deny an Access Proposal. +// +// - fileId: The id of the item the request is on. +// - proposalId: The id of the access proposal to resolve. +func (r *AccessproposalsService) Resolve(fileId string, proposalId string, resolveaccessproposalrequest *ResolveAccessProposalRequest) *AccessproposalsResolveCall { + c := &AccessproposalsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.fileId = fileId + c.proposalId = proposalId + c.resolveaccessproposalrequest = resolveaccessproposalrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AccessproposalsResolveCall) Fields(s ...googleapi.Field) *AccessproposalsResolveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccessproposalsResolveCall) Context(ctx context.Context) *AccessproposalsResolveCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AccessproposalsResolveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccessproposalsResolveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.resolveaccessproposalrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "about") + urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/accessproposals/{proposalId}:resolve") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "fileId": c.fileId, + "proposalId": c.proposalId, + }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "drive.about.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *About.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 *AboutGetCall) Do(opts ...googleapi.CallOption) (*About, error) { +// Do executes the "drive.accessproposals.resolve" call. +func (c *AccessproposalsResolveCall) Do(opts ...googleapi.CallOption) error { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } if err != nil { - return nil, err + return err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &About{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err + return gensupport.WrapError(err) } - return ret, nil + return nil } type AppsGetCall struct { @@ -7429,266 +7809,6 @@ func (c *FilesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) { return ret, nil } -type FilesAccessproposalsListCall struct { - s *Service - fileId string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: List the AccessProposals on a file. Note: Only approvers are able to -// list AccessProposals on a file. If the user is not an approver, returns a -// 403. -// -// - fileId: The id of the item the request is on. -func (r *FilesAccessproposalsService) List(fileId string) *FilesAccessproposalsListCall { - c := &FilesAccessproposalsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.fileId = fileId - return c -} - -// PageSize sets the optional parameter "pageSize": The number of results per -// page -func (c *FilesAccessproposalsListCall) PageSize(pageSize int64) *FilesAccessproposalsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The continuation token on -// the list of access requests. -func (c *FilesAccessproposalsListCall) PageToken(pageToken string) *FilesAccessproposalsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *FilesAccessproposalsListCall) Fields(s ...googleapi.Field) *FilesAccessproposalsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *FilesAccessproposalsListCall) IfNoneMatch(entityTag string) *FilesAccessproposalsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *FilesAccessproposalsListCall) Context(ctx context.Context) *FilesAccessproposalsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *FilesAccessproposalsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FilesAccessproposalsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/accessproposals") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "fileId": c.fileId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "drive.files.accessproposals.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListAccessProposalsResponse.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 *FilesAccessproposalsListCall) Do(opts ...googleapi.CallOption) (*ListAccessProposalsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ListAccessProposalsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *FilesAccessproposalsListCall) Pages(ctx context.Context, f func(*ListAccessProposalsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type FilesAccessproposalsResolveCall struct { - s *Service - fileId string - proposalId string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Resolve: Used to approve or deny an Access Proposal. -// -// - fileId: The id of the item the request is on. -// - proposalId: The id of the access proposal to resolve. -func (r *FilesAccessproposalsService) Resolve(fileId string, proposalId string) *FilesAccessproposalsResolveCall { - c := &FilesAccessproposalsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.fileId = fileId - c.proposalId = proposalId - return c -} - -// Action sets the optional parameter "action": Required. The action to take on -// the AccessProposal. -// -// Possible values: -// -// "ACTION_UNSPECIFIED" - Unspecified action -// "ACCEPT" - The user accepts the proposal. Note: If this action is used, -// -// the `role` field must have at least one value. -// -// "DENY" - The user denies the proposal -func (c *FilesAccessproposalsResolveCall) Action(action string) *FilesAccessproposalsResolveCall { - c.urlParams_.Set("action", action) - return c -} - -// Role sets the optional parameter "role": The roles the approver has allowed, -// if any. Note: This field is required for the `ACCEPT` action. -func (c *FilesAccessproposalsResolveCall) Role(role ...string) *FilesAccessproposalsResolveCall { - c.urlParams_.SetMulti("role", append([]string{}, role...)) - return c -} - -// SendNotification sets the optional parameter "sendNotification": Whether to -// send an email to the requester when the AccessProposal is denied or -// accepted. -func (c *FilesAccessproposalsResolveCall) SendNotification(sendNotification bool) *FilesAccessproposalsResolveCall { - c.urlParams_.Set("sendNotification", fmt.Sprint(sendNotification)) - return c -} - -// View sets the optional parameter "view": Indicates the view for this access -// proposal. This should only be set when the proposal belongs to a view. -// `published` is the only supported value. -func (c *FilesAccessproposalsResolveCall) View(view string) *FilesAccessproposalsResolveCall { - c.urlParams_.Set("view", view) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *FilesAccessproposalsResolveCall) Fields(s ...googleapi.Field) *FilesAccessproposalsResolveCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *FilesAccessproposalsResolveCall) Context(ctx context.Context) *FilesAccessproposalsResolveCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *FilesAccessproposalsResolveCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FilesAccessproposalsResolveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/accessproposals/{proposalId}:resolve") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "fileId": c.fileId, - "proposalId": c.proposalId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "drive.files.accessproposals.resolve" call. -func (c *FilesAccessproposalsResolveCall) Do(opts ...googleapi.CallOption) error { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if err != nil { - return err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return gensupport.WrapError(err) - } - return nil -} - type OperationCancelCall struct { s *Service name string diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index 22607d5f9ec..ad5e00d9993 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -708,7 +708,7 @@ "onlineReturnPolicies": { "methods": { "get": { - "description": "Gets an existing return policy.", + "description": "Gets an existing return policy for a given merchant.", "flatPath": "accounts/v1beta/accounts/{accountsId}/onlineReturnPolicies/{onlineReturnPoliciesId}", "httpMethod": "GET", "id": "merchantapi.accounts.onlineReturnPolicies.get", @@ -733,7 +733,7 @@ ] }, "list": { - "description": "Lists all existing return policies.", + "description": "Lists all existing return policies for a given merchant.", "flatPath": "accounts/v1beta/accounts/{accountsId}/onlineReturnPolicies", "httpMethod": "GET", "id": "merchantapi.accounts.onlineReturnPolicies.list", @@ -1417,7 +1417,7 @@ } } }, - "revision": "20241104", + "revision": "20241111", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Accepted": { @@ -2418,7 +2418,7 @@ "type": "boolean" }, "countries": { - "description": "The countries of sale where the return policy applies. The values must be a valid 2 letter ISO 3166 code.", + "description": "Required. The countries of sale where the return policy applies. The values must be a valid 2 letter ISO 3166 code.", "items": { "type": "string" }, @@ -2442,7 +2442,7 @@ "type": "array" }, "label": { - "description": "This field represents the unique user-defined label of the return policy. It is important to note that the same label cannot be used in different return policies for the same country. Unless a product specifies a specific label attribute, policies will be automatically labeled as 'default'. To assign a custom return policy to certain product groups, follow the instructions provided in the [Return policy label] (https://support.google.com/merchants/answer/9445425). The label can contain up to 50 characters.", + "description": "Required. This field represents the unique user-defined label of the return policy. It is important to note that the same label cannot be used in different return policies for the same country. Unless a product specifies a specific label attribute, policies will be automatically labeled as 'default'. To assign a custom return policy to certain product groups, follow the instructions provided in the [Return policy label] (https://support.google.com/merchants/answer/9445425). The label can contain up to 50 characters.", "type": "string" }, "name": { @@ -2487,7 +2487,7 @@ "type": "string" }, "returnPolicyUri": { - "description": "The return policy uri. This can used by Google to do a sanity check for the policy. It must be a valid URL.", + "description": "Required. The return policy uri. This can used by Google to do a sanity check for the policy. It must be a valid URL.", "type": "string" }, "returnShippingFee": { @@ -2980,7 +2980,7 @@ "description": "Fixed return shipping fee amount. This value is only applicable when type is `FIXED`. We will treat the return shipping fee as free if type is `FIXED` and this value is not set." }, "type": { - "description": "Type of return shipping fee.", + "description": "Required. Type of return shipping fee.", "enum": [ "TYPE_UNSPECIFIED", "FIXED", @@ -3429,7 +3429,7 @@ "type": "object" }, "Warehouse": { - "description": "A fulfillment warehouse, which stores and handles inventory. Next tag: 7", + "description": "A fulfillment warehouse, which stores and handles inventory.", "id": "Warehouse", "properties": { "businessDayConfig": { diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index 0f5c6b91ebe..4222f841b83 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -1660,8 +1660,8 @@ type OnlineReturnPolicy struct { // AcceptExchange: This field specifies if merchant allows customers to // exchange products, this field is required. AcceptExchange bool `json:"acceptExchange,omitempty"` - // Countries: The countries of sale where the return policy applies. The values - // must be a valid 2 letter ISO 3166 code. + // Countries: Required. The countries of sale where the return policy applies. + // The values must be a valid 2 letter ISO 3166 code. Countries []string `json:"countries,omitempty"` // ItemConditions: The item conditions accepted for returns must not be empty // unless the type of return policy is 'noReturns'. @@ -1671,8 +1671,8 @@ type OnlineReturnPolicy struct { // "NEW" - New. // "USED" - Used. ItemConditions []string `json:"itemConditions,omitempty"` - // Label: This field represents the unique user-defined label of the return - // policy. It is important to note that the same label cannot be used in + // Label: Required. This field represents the unique user-defined label of the + // return policy. It is important to note that the same label cannot be used in // different return policies for the same country. Unless a product specifies a // specific label attribute, policies will be automatically labeled as // 'default'. To assign a custom return policy to certain product groups, @@ -1704,8 +1704,8 @@ type OnlineReturnPolicy struct { ReturnMethods []string `json:"returnMethods,omitempty"` // ReturnPolicyId: Output only. Return policy ID generated by Google. ReturnPolicyId string `json:"returnPolicyId,omitempty"` - // ReturnPolicyUri: The return policy uri. This can used by Google to do a - // sanity check for the policy. It must be a valid URL. + // ReturnPolicyUri: Required. The return policy uri. This can used by Google to + // do a sanity check for the policy. It must be a valid URL. ReturnPolicyUri string `json:"returnPolicyUri,omitempty"` // ReturnShippingFee: The return shipping fee. Should be set only when customer // need to download and print the return label. @@ -2355,7 +2355,7 @@ type ReturnShippingFee struct { // when type is `FIXED`. We will treat the return shipping fee as free if type // is `FIXED` and this value is not set. FixedFee *Price `json:"fixedFee,omitempty"` - // Type: Type of return shipping fee. + // Type: Required. Type of return shipping fee. // // Possible values: // "TYPE_UNSPECIFIED" - Default value. This value is unused. @@ -2961,8 +2961,7 @@ func (s Value) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Warehouse: A fulfillment warehouse, which stores and handles inventory. Next -// tag: 7 +// Warehouse: A fulfillment warehouse, which stores and handles inventory. type Warehouse struct { // BusinessDayConfig: Business days of the warehouse. If not set, will be // Monday to Friday by default. @@ -5319,7 +5318,7 @@ type AccountsOnlineReturnPoliciesGetCall struct { header_ http.Header } -// Get: Gets an existing return policy. +// Get: Gets an existing return policy for a given merchant. // // - name: The name of the return policy to retrieve. Format: // `accounts/{account}/onlineReturnPolicies/{return_policy}`. @@ -5428,7 +5427,7 @@ type AccountsOnlineReturnPoliciesListCall struct { header_ http.Header } -// List: Lists all existing return policies. +// List: Lists all existing return policies for a given merchant. // // - parent: The merchant account for which to list return policies. Format: // `accounts/{account}`. diff --git a/merchantapi/datasources_v1beta/merchantapi-api.json b/merchantapi/datasources_v1beta/merchantapi-api.json index 3443536a104..b556d1ad4e1 100644 --- a/merchantapi/datasources_v1beta/merchantapi-api.json +++ b/merchantapi/datasources_v1beta/merchantapi-api.json @@ -321,7 +321,7 @@ } } }, - "revision": "20241101", + "revision": "20241112", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "DataSource": { @@ -499,7 +499,7 @@ "type": "string" }, "password": { - "description": "Optional. An optional password for fetch url. Used for [submitting data sources through SFTP](https://support.google.com/merchants/answer/13813117).", + "description": "Optional. An optional password for fetch_uri. Used for [submitting data sources through SFTP](https://support.google.com/merchants/answer/13813117).", "type": "string" }, "timeOfDay": { @@ -511,7 +511,7 @@ "type": "string" }, "username": { - "description": "Optional. An optional user name for fetch url. Used for [submitting data sources through SFTP](https://support.google.com/merchants/answer/13813117).", + "description": "Optional. An optional user name for fetch_uri. Used for [submitting data sources through SFTP](https://support.google.com/merchants/answer/13813117).", "type": "string" } }, diff --git a/merchantapi/datasources_v1beta/merchantapi-gen.go b/merchantapi/datasources_v1beta/merchantapi-gen.go index d46dd3621cb..338eb6af031 100644 --- a/merchantapi/datasources_v1beta/merchantapi-gen.go +++ b/merchantapi/datasources_v1beta/merchantapi-gen.go @@ -371,7 +371,7 @@ type FetchSettings struct { // "FREQUENCY_WEEKLY" - The fetch happens every week. // "FREQUENCY_MONTHLY" - The fetch happens every month. Frequency string `json:"frequency,omitempty"` - // Password: Optional. An optional password for fetch url. Used for submitting + // Password: Optional. An optional password for fetch_uri. Used for submitting // data sources through SFTP // (https://support.google.com/merchants/answer/13813117). Password string `json:"password,omitempty"` @@ -381,7 +381,7 @@ type FetchSettings struct { // TimeZone: Optional. Time zone (https://cldr.unicode.org) used for schedule. // UTC by default. For example, "America/Los_Angeles". TimeZone string `json:"timeZone,omitempty"` - // Username: Optional. An optional user name for fetch url. Used for submitting + // Username: Optional. An optional user name for fetch_uri. Used for submitting // data sources through SFTP // (https://support.google.com/merchants/answer/13813117). Username string `json:"username,omitempty"` diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 2b401668740..544a458874c 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -819,18 +819,6 @@ "instance" ], "parameters": { - "finalBackupExpiryTime": { - "description": "Optional. Final Backup expiration time. Timestamp in UTC of when this resource is considered expired.", - "format": "google-datetime", - "location": "query", - "type": "string" - }, - "finalBackupTtlDays": { - "description": "Optional. Retention period of the final backup.", - "format": "int64", - "location": "query", - "type": "string" - }, "instance": { "description": "Cloud SQL instance ID. This does not include the project ID.", "location": "path", @@ -2378,7 +2366,7 @@ } } }, - "revision": "20241011", + "revision": "20241108", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2876,19 +2864,6 @@ "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -2906,7 +2881,22 @@ "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -2927,6 +2917,9 @@ false, false, false, + true, + false, + false, false, false, false, @@ -2940,7 +2933,6 @@ false, false, false, - true, false, false, false, @@ -2968,19 +2960,6 @@ "The database version is MySQL 5.5.", "The database version is MySQL 5.6.", "The database version is MySQL 5.7.", - "The database version is SQL Server 2017 Standard.", - "The database version is SQL Server 2017 Enterprise.", - "The database version is SQL Server 2017 Express.", - "The database version is SQL Server 2017 Web.", - "The database version is PostgreSQL 9.6.", - "The database version is PostgreSQL 10.", - "The database version is PostgreSQL 11.", - "The database version is PostgreSQL 12.", - "The database version is PostgreSQL 13.", - "The database version is PostgreSQL 14.", - "The database version is PostgreSQL 15.", - "The database version is PostgreSQL 16.", - "The database version is PostgreSQL 17.", "The database version is MySQL 8.", "The database major version is MySQL 8.0 and the minor version is 18.", "The database major version is MySQL 8.0 and the minor version is 26.", @@ -2998,7 +2977,22 @@ "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", + "The database major version is MySQL 8.0 and the minor version is 41.", + "The database major version is MySQL 8.0 and the minor version is 42.", "The database version is MySQL 8.4.", + "The database version is SQL Server 2017 Standard.", + "The database version is SQL Server 2017 Enterprise.", + "The database version is SQL Server 2017 Express.", + "The database version is SQL Server 2017 Web.", + "The database version is PostgreSQL 9.6.", + "The database version is PostgreSQL 10.", + "The database version is PostgreSQL 11.", + "The database version is PostgreSQL 12.", + "The database version is PostgreSQL 13.", + "The database version is PostgreSQL 14.", + "The database version is PostgreSQL 15.", + "The database version is PostgreSQL 16.", + "The database version is PostgreSQL 17.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", @@ -3185,19 +3179,6 @@ "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -3215,7 +3196,22 @@ "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -3236,6 +3232,9 @@ false, false, false, + true, + false, + false, false, false, false, @@ -3249,7 +3248,6 @@ false, false, false, - true, false, false, false, @@ -3277,19 +3275,6 @@ "The database version is MySQL 5.5.", "The database version is MySQL 5.6.", "The database version is MySQL 5.7.", - "The database version is SQL Server 2017 Standard.", - "The database version is SQL Server 2017 Enterprise.", - "The database version is SQL Server 2017 Express.", - "The database version is SQL Server 2017 Web.", - "The database version is PostgreSQL 9.6.", - "The database version is PostgreSQL 10.", - "The database version is PostgreSQL 11.", - "The database version is PostgreSQL 12.", - "The database version is PostgreSQL 13.", - "The database version is PostgreSQL 14.", - "The database version is PostgreSQL 15.", - "The database version is PostgreSQL 16.", - "The database version is PostgreSQL 17.", "The database version is MySQL 8.", "The database major version is MySQL 8.0 and the minor version is 18.", "The database major version is MySQL 8.0 and the minor version is 26.", @@ -3307,7 +3292,22 @@ "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", + "The database major version is MySQL 8.0 and the minor version is 41.", + "The database major version is MySQL 8.0 and the minor version is 42.", "The database version is MySQL 8.4.", + "The database version is SQL Server 2017 Standard.", + "The database version is SQL Server 2017 Enterprise.", + "The database version is SQL Server 2017 Express.", + "The database version is SQL Server 2017 Web.", + "The database version is PostgreSQL 9.6.", + "The database version is PostgreSQL 10.", + "The database version is PostgreSQL 11.", + "The database version is PostgreSQL 12.", + "The database version is PostgreSQL 13.", + "The database version is PostgreSQL 14.", + "The database version is PostgreSQL 15.", + "The database version is PostgreSQL 16.", + "The database version is PostgreSQL 17.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", @@ -3906,6 +3906,17 @@ }, "type": "object" }, + "ExternalSyncSelectedObject": { + "description": "The selected object that Cloud SQL migrates.", + "id": "ExternalSyncSelectedObject", + "properties": { + "database": { + "description": "The name of the database that Cloud SQL migrates.", + "type": "string" + } + }, + "type": "object" + }, "FailoverContext": { "description": "Database instance failover context.", "id": "FailoverContext", @@ -3950,19 +3961,6 @@ "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -3980,7 +3978,22 @@ "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -4001,6 +4014,9 @@ false, false, false, + true, + false, + false, false, false, false, @@ -4014,7 +4030,6 @@ false, false, false, - true, false, false, false, @@ -4042,19 +4057,6 @@ "The database version is MySQL 5.5.", "The database version is MySQL 5.6.", "The database version is MySQL 5.7.", - "The database version is SQL Server 2017 Standard.", - "The database version is SQL Server 2017 Enterprise.", - "The database version is SQL Server 2017 Express.", - "The database version is SQL Server 2017 Web.", - "The database version is PostgreSQL 9.6.", - "The database version is PostgreSQL 10.", - "The database version is PostgreSQL 11.", - "The database version is PostgreSQL 12.", - "The database version is PostgreSQL 13.", - "The database version is PostgreSQL 14.", - "The database version is PostgreSQL 15.", - "The database version is PostgreSQL 16.", - "The database version is PostgreSQL 17.", "The database version is MySQL 8.", "The database major version is MySQL 8.0 and the minor version is 18.", "The database major version is MySQL 8.0 and the minor version is 26.", @@ -4072,7 +4074,22 @@ "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", + "The database major version is MySQL 8.0 and the minor version is 41.", + "The database major version is MySQL 8.0 and the minor version is 42.", "The database version is MySQL 8.4.", + "The database version is SQL Server 2017 Standard.", + "The database version is SQL Server 2017 Enterprise.", + "The database version is SQL Server 2017 Express.", + "The database version is SQL Server 2017 Web.", + "The database version is PostgreSQL 9.6.", + "The database version is PostgreSQL 10.", + "The database version is PostgreSQL 11.", + "The database version is PostgreSQL 12.", + "The database version is PostgreSQL 13.", + "The database version is PostgreSQL 14.", + "The database version is PostgreSQL 15.", + "The database version is PostgreSQL 16.", + "The database version is PostgreSQL 17.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", @@ -4912,10 +4929,33 @@ "description": "The password for connecting to on-premises instance.", "type": "string" }, + "selectedObjects": { + "description": "Optional. A list of objects that the user selects for replication from an external source instance.", + "items": { + "$ref": "SelectedObjects" + }, + "type": "array" + }, "sourceInstance": { "$ref": "InstanceReference", "description": "The reference to Cloud SQL instance if the source is Cloud SQL." }, + "sslOption": { + "description": "Optional. SslOption for replica connection to the on-premises source.", + "enum": [ + "SSL_OPTION_UNSPECIFIED", + "DISABLE", + "REQUIRE", + "VERIFY_CA" + ], + "enumDescriptions": [ + "Unknown SSL option i.e. SSL option not specified by user.", + "SSL is disabled for replica connection to the on-premises source.", + "SSL is required for replica connection to the on-premises source.", + "Verify CA is required for replica connection to the on-premises source." + ], + "type": "string" + }, "username": { "description": "The username for connecting to on-premises instance.", "type": "string" @@ -5017,7 +5057,8 @@ "CLUSTER_MAINTENANCE", "SELF_SERVICE_MAINTENANCE", "SWITCHOVER_TO_REPLICA", - "MAJOR_VERSION_UPGRADE" + "MAJOR_VERSION_UPGRADE", + "ADVANCED_BACKUP" ], "enumDeprecated": [ false, @@ -5065,6 +5106,7 @@ true, true, false, + false, false ], "enumDescriptions": [ @@ -5113,7 +5155,8 @@ "Indicates that the instance, its read replicas, and its cascading replicas are in maintenance. Maintenance typically gets initiated on groups of replicas first, followed by the primary instance. For each instance, maintenance typically causes the instance to be unavailable for 1-3 minutes.", "Indicates that the instance (and any of its replicas) are currently in maintenance. This is initiated as a self-service request by using SSM. Maintenance typically causes the instance to be unavailable for 1-3 minutes.", "Switches a primary instance to a replica. This operation runs as part of a switchover operation to the original primary instance.", - "Updates the major version of a Cloud SQL instance." + "Updates the major version of a Cloud SQL instance.", + "Creates a backup for an Advanced BackupTier Cloud SQL instance." ], "type": "string" }, @@ -5515,6 +5558,17 @@ }, "type": "object" }, + "SelectedObjects": { + "description": "A list of objects that the user selects for replication from an external source instance.", + "id": "SelectedObjects", + "properties": { + "database": { + "description": "Required. The name of the database to migrate.", + "type": "string" + } + }, + "type": "object" + }, "Settings": { "description": "Database instance settings.", "id": "Settings", @@ -6062,6 +6116,13 @@ "$ref": "MySqlSyncConfig", "description": "Optional. MySQL-specific settings for start external sync." }, + "selectedObjects": { + "description": "Optional. Migrate only the specified objects from the source instance. If this field is empty, then migrate all objects.", + "items": { + "$ref": "ExternalSyncSelectedObject" + }, + "type": "array" + }, "syncMode": { "description": "External sync mode", "enum": [ diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 24870891fd0..1d5181be293 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -826,22 +826,6 @@ type ConnectSettings struct { // "MYSQL_5_5" - The database version is MySQL 5.5. // "MYSQL_5_6" - The database version is MySQL 5.6. // "MYSQL_5_7" - The database version is MySQL 5.7. - // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 - // Standard. - // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 - // Enterprise. - // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 - // Express. - // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. - // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. - // "POSTGRES_10" - The database version is PostgreSQL 10. - // "POSTGRES_11" - The database version is PostgreSQL 11. - // "POSTGRES_12" - The database version is PostgreSQL 12. - // "POSTGRES_13" - The database version is PostgreSQL 13. - // "POSTGRES_14" - The database version is PostgreSQL 14. - // "POSTGRES_15" - The database version is PostgreSQL 15. - // "POSTGRES_16" - The database version is PostgreSQL 16. - // "POSTGRES_17" - The database version is PostgreSQL 17. // "MYSQL_8_0" - The database version is MySQL 8. // "MYSQL_8_0_18" - The database major version is MySQL 8.0 and the minor // version is 18. @@ -875,7 +859,27 @@ type ConnectSettings struct { // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor // version is 40. + // "MYSQL_8_0_41" - The database major version is MySQL 8.0 and the minor + // version is 41. + // "MYSQL_8_0_42" - The database major version is MySQL 8.0 and the minor + // version is 42. // "MYSQL_8_4" - The database version is MySQL 8.4. + // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 + // Standard. + // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 + // Enterprise. + // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 + // Express. + // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. + // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. + // "POSTGRES_10" - The database version is PostgreSQL 10. + // "POSTGRES_11" - The database version is PostgreSQL 11. + // "POSTGRES_12" - The database version is PostgreSQL 12. + // "POSTGRES_13" - The database version is PostgreSQL 13. + // "POSTGRES_14" - The database version is PostgreSQL 14. + // "POSTGRES_15" - The database version is PostgreSQL 15. + // "POSTGRES_16" - The database version is PostgreSQL 16. + // "POSTGRES_17" - The database version is PostgreSQL 17. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server 2019 @@ -1073,22 +1077,6 @@ type DatabaseInstance struct { // "MYSQL_5_5" - The database version is MySQL 5.5. // "MYSQL_5_6" - The database version is MySQL 5.6. // "MYSQL_5_7" - The database version is MySQL 5.7. - // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 - // Standard. - // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 - // Enterprise. - // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 - // Express. - // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. - // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. - // "POSTGRES_10" - The database version is PostgreSQL 10. - // "POSTGRES_11" - The database version is PostgreSQL 11. - // "POSTGRES_12" - The database version is PostgreSQL 12. - // "POSTGRES_13" - The database version is PostgreSQL 13. - // "POSTGRES_14" - The database version is PostgreSQL 14. - // "POSTGRES_15" - The database version is PostgreSQL 15. - // "POSTGRES_16" - The database version is PostgreSQL 16. - // "POSTGRES_17" - The database version is PostgreSQL 17. // "MYSQL_8_0" - The database version is MySQL 8. // "MYSQL_8_0_18" - The database major version is MySQL 8.0 and the minor // version is 18. @@ -1122,7 +1110,27 @@ type DatabaseInstance struct { // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor // version is 40. + // "MYSQL_8_0_41" - The database major version is MySQL 8.0 and the minor + // version is 41. + // "MYSQL_8_0_42" - The database major version is MySQL 8.0 and the minor + // version is 42. // "MYSQL_8_4" - The database version is MySQL 8.4. + // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 + // Standard. + // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 + // Enterprise. + // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 + // Express. + // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. + // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. + // "POSTGRES_10" - The database version is PostgreSQL 10. + // "POSTGRES_11" - The database version is PostgreSQL 11. + // "POSTGRES_12" - The database version is PostgreSQL 12. + // "POSTGRES_13" - The database version is PostgreSQL 13. + // "POSTGRES_14" - The database version is PostgreSQL 14. + // "POSTGRES_15" - The database version is PostgreSQL 15. + // "POSTGRES_16" - The database version is PostgreSQL 16. + // "POSTGRES_17" - The database version is PostgreSQL 17. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server 2019 @@ -1818,6 +1826,28 @@ func (s ExportContextSqlExportOptionsPostgresExportOptions) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ExternalSyncSelectedObject: The selected object that Cloud SQL migrates. +type ExternalSyncSelectedObject struct { + // Database: The name of the database that Cloud SQL migrates. + Database string `json:"database,omitempty"` + // ForceSendFields is a list of field names (e.g. "Database") 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. "Database") 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 ExternalSyncSelectedObject) MarshalJSON() ([]byte, error) { + type NoMethod ExternalSyncSelectedObject + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // FailoverContext: Database instance failover context. type FailoverContext struct { // Kind: This is always `sql#failoverContext`. @@ -1867,22 +1897,6 @@ type Flag struct { // "MYSQL_5_5" - The database version is MySQL 5.5. // "MYSQL_5_6" - The database version is MySQL 5.6. // "MYSQL_5_7" - The database version is MySQL 5.7. - // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 - // Standard. - // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 - // Enterprise. - // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 - // Express. - // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. - // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. - // "POSTGRES_10" - The database version is PostgreSQL 10. - // "POSTGRES_11" - The database version is PostgreSQL 11. - // "POSTGRES_12" - The database version is PostgreSQL 12. - // "POSTGRES_13" - The database version is PostgreSQL 13. - // "POSTGRES_14" - The database version is PostgreSQL 14. - // "POSTGRES_15" - The database version is PostgreSQL 15. - // "POSTGRES_16" - The database version is PostgreSQL 16. - // "POSTGRES_17" - The database version is PostgreSQL 17. // "MYSQL_8_0" - The database version is MySQL 8. // "MYSQL_8_0_18" - The database major version is MySQL 8.0 and the minor // version is 18. @@ -1916,7 +1930,27 @@ type Flag struct { // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor // version is 40. + // "MYSQL_8_0_41" - The database major version is MySQL 8.0 and the minor + // version is 41. + // "MYSQL_8_0_42" - The database major version is MySQL 8.0 and the minor + // version is 42. // "MYSQL_8_4" - The database version is MySQL 8.4. + // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 + // Standard. + // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 + // Enterprise. + // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 + // Express. + // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. + // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. + // "POSTGRES_10" - The database version is PostgreSQL 10. + // "POSTGRES_11" - The database version is PostgreSQL 11. + // "POSTGRES_12" - The database version is PostgreSQL 12. + // "POSTGRES_13" - The database version is PostgreSQL 13. + // "POSTGRES_14" - The database version is PostgreSQL 14. + // "POSTGRES_15" - The database version is PostgreSQL 15. + // "POSTGRES_16" - The database version is PostgreSQL 16. + // "POSTGRES_17" - The database version is PostgreSQL 17. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server 2019 @@ -3068,9 +3102,25 @@ type OnPremisesConfiguration struct { Kind string `json:"kind,omitempty"` // Password: The password for connecting to on-premises instance. Password string `json:"password,omitempty"` + // SelectedObjects: Optional. A list of objects that the user selects for + // replication from an external source instance. + SelectedObjects []*SelectedObjects `json:"selectedObjects,omitempty"` // SourceInstance: The reference to Cloud SQL instance if the source is Cloud // SQL. SourceInstance *InstanceReference `json:"sourceInstance,omitempty"` + // SslOption: Optional. SslOption for replica connection to the on-premises + // source. + // + // Possible values: + // "SSL_OPTION_UNSPECIFIED" - Unknown SSL option i.e. SSL option not + // specified by user. + // "DISABLE" - SSL is disabled for replica connection to the on-premises + // source. + // "REQUIRE" - SSL is required for replica connection to the on-premises + // source. + // "VERIFY_CA" - Verify CA is required for replica connection to the + // on-premises source. + SslOption string `json:"sslOption,omitempty"` // Username: The username for connecting to on-premises instance. Username string `json:"username,omitempty"` // ForceSendFields is a list of field names (e.g. "CaCertificate") to @@ -3198,6 +3248,8 @@ type Operation struct { // instance. // "MAJOR_VERSION_UPGRADE" - Updates the major version of a Cloud SQL // instance. + // "ADVANCED_BACKUP" - Creates a backup for an Advanced BackupTier Cloud SQL + // instance. OperationType string `json:"operationType,omitempty"` // SelfLink: The URI of this resource. SelfLink string `json:"selfLink,omitempty"` @@ -3716,6 +3768,29 @@ func (s RotateServerCertificateContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// SelectedObjects: A list of objects that the user selects for replication +// from an external source instance. +type SelectedObjects struct { + // Database: Required. The name of the database to migrate. + Database string `json:"database,omitempty"` + // ForceSendFields is a list of field names (e.g. "Database") 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. "Database") 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 SelectedObjects) MarshalJSON() ([]byte, error) { + type NoMethod SelectedObjects + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Settings: Database instance settings. type Settings struct { // ActivationPolicy: The activation policy specifies when the instance is @@ -4277,6 +4352,9 @@ type SqlInstancesVerifyExternalSyncSettingsRequest struct { MigrationType string `json:"migrationType,omitempty"` // MysqlSyncConfig: Optional. MySQL-specific settings for start external sync. MysqlSyncConfig *MySqlSyncConfig `json:"mysqlSyncConfig,omitempty"` + // SelectedObjects: Optional. Migrate only the specified objects from the + // source instance. If this field is empty, then migrate all objects. + SelectedObjects []*ExternalSyncSelectedObject `json:"selectedObjects,omitempty"` // SyncMode: External sync mode // // Possible values: @@ -7062,21 +7140,6 @@ func (r *InstancesService) Delete(project string, instance string) *InstancesDel return c } -// FinalBackupExpiryTime sets the optional parameter "finalBackupExpiryTime": -// Final Backup expiration time. Timestamp in UTC of when this resource is -// considered expired. -func (c *InstancesDeleteCall) FinalBackupExpiryTime(finalBackupExpiryTime string) *InstancesDeleteCall { - c.urlParams_.Set("finalBackupExpiryTime", finalBackupExpiryTime) - return c -} - -// FinalBackupTtlDays sets the optional parameter "finalBackupTtlDays": -// Retention period of the final backup. -func (c *InstancesDeleteCall) FinalBackupTtlDays(finalBackupTtlDays int64) *InstancesDeleteCall { - c.urlParams_.Set("finalBackupTtlDays", fmt.Sprint(finalBackupTtlDays)) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details.