From d2f8d632bc603fa7186693872eaea7c7766d7ade Mon Sep 17 00:00:00 2001 From: GitHub Actions <> Date: Wed, 3 Jul 2024 15:50:39 +0000 Subject: [PATCH] Google APIs updated at 2024-07-03 --- .../google.apps.drive.labels.v2beta.rs | 10 ++- .../google.cloud.bigquery.analyticshub.v1.rs | 86 ++++++++++++++++++- .../google.cloud.parallelstore.v1beta.rs | 14 +++ gcloud-sdk/genproto/google.cloud.sql.v1.rs | 5 ++ .../genproto/google.container.v1beta1.rs | 1 + 5 files changed, 113 insertions(+), 3 deletions(-) diff --git a/gcloud-sdk/genproto/google.apps.drive.labels.v2beta.rs b/gcloud-sdk/genproto/google.apps.drive.labels.v2beta.rs index cc9a3c5dc..946a2b61e 100644 --- a/gcloud-sdk/genproto/google.apps.drive.labels.v2beta.rs +++ b/gcloud-sdk/genproto/google.apps.drive.labels.v2beta.rs @@ -335,8 +335,10 @@ pub mod precondition_failure { CannotCreateMoreLabels = 8, /// The Field type cannot be changed because the Field has been published. CannotChangePublishedFieldType = 9, - /// The Label component is locked and cannot be modified + /// The Label component is locked and cannot be deleted CannotModifyLockedComponent = 10, + /// The Label cannot be enabled in the target application or applications. + UnsupportEnabledAppSettings = 11, } impl Reason { /// String value of the enum field names used in the ProtoBuf definition. @@ -360,6 +362,9 @@ pub mod precondition_failure { Reason::CannotModifyLockedComponent => { "CANNOT_MODIFY_LOCKED_COMPONENT" } + Reason::UnsupportEnabledAppSettings => { + "UNSUPPORT_ENABLED_APP_SETTINGS" + } } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -382,6 +387,9 @@ pub mod precondition_failure { "CANNOT_MODIFY_LOCKED_COMPONENT" => { Some(Self::CannotModifyLockedComponent) } + "UNSUPPORT_ENABLED_APP_SETTINGS" => { + Some(Self::UnsupportEnabledAppSettings) + } _ => None, } } diff --git a/gcloud-sdk/genproto/google.cloud.bigquery.analyticshub.v1.rs b/gcloud-sdk/genproto/google.cloud.bigquery.analyticshub.v1.rs index fa68cfd98..7e45906b1 100644 --- a/gcloud-sdk/genproto/google.cloud.bigquery.analyticshub.v1.rs +++ b/gcloud-sdk/genproto/google.cloud.bigquery.analyticshub.v1.rs @@ -42,6 +42,11 @@ pub struct DataExchange { /// Optional. Configurable data sharing environment option for a data exchange. #[prost(message, optional, tag = "8")] pub sharing_environment_config: ::core::option::Option, + /// Optional. Type of discovery on the discovery page for all the listings + /// under this exchange. Updating this field also updates (overwrites) the + /// discovery_type field for all the listings under this exchange. + #[prost(enumeration = "DiscoveryType", optional, tag = "9")] + pub discovery_type: ::core::option::Option, } /// Sharing environment is a behavior model for sharing data within a /// data exchange. This option is configurable for a data exchange. @@ -215,6 +220,9 @@ pub struct Listing { pub restricted_export_config: ::core::option::Option< listing::RestrictedExportConfig, >, + /// Optional. Type of discovery of the listing on the discovery page. + #[prost(enumeration = "DiscoveryType", optional, tag = "14")] + pub discovery_type: ::core::option::Option, /// Listing source. #[prost(oneof = "listing::Source", tags = "6")] pub source: ::core::option::Option, @@ -242,6 +250,12 @@ pub mod listing { pub selected_resources: ::prost::alloc::vec::Vec< big_query_dataset_source::SelectedResource, >, + /// Optional. If set, restricted export policy will be propagated and + /// enforced on the linked dataset. + #[prost(message, optional, tag = "3")] + pub restricted_export_policy: ::core::option::Option< + big_query_dataset_source::RestrictedExportPolicy, + >, } /// Nested message and enum types in `BigQueryDatasetSource`. pub mod big_query_dataset_source { @@ -265,6 +279,23 @@ pub mod listing { Table(::prost::alloc::string::String), } } + /// Restricted export policy used to configure restricted export on linked + /// dataset. + #[allow(clippy::derive_partial_eq_without_eq)] + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct RestrictedExportPolicy { + /// Optional. If true, enable restricted export. + #[prost(message, optional, tag = "1")] + pub enabled: ::core::option::Option, + /// Optional. If true, restrict direct table access (read + /// api/tabledata.list) on linked table. + #[prost(message, optional, tag = "2")] + pub restrict_direct_table_access: ::core::option::Option, + /// Optional. If true, restrict export of query result derived from + /// restricted linked dataset table. + #[prost(message, optional, tag = "3")] + pub restrict_query_result: ::core::option::Option, + } } /// Restricted export config, used to configure restricted export on linked /// dataset. @@ -762,7 +793,7 @@ pub mod subscribe_listing_request { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Destination { - /// BigQuery destination dataset to create for the subscriber. + /// Input only. BigQuery destination dataset to create for the subscriber. #[prost(message, tag = "3")] DestinationDataset(super::DestinationDataset), } @@ -837,7 +868,21 @@ pub struct ListSubscriptionsRequest { /// e.g. projects/myproject/locations/US #[prost(string, tag = "1")] pub parent: ::prost::alloc::string::String, - /// The filter expression may be used to filter by Data Exchange or Listing. + /// An expression for filtering the results of the request. Eligible + /// fields for filtering are: + /// + /// * `listing` + /// * `data_exchange` + /// + /// Alternatively, a literal wrapped in double quotes may be provided. + /// This will be checked for an exact match against both fields above. + /// + /// In all cases, the full Data Exchange or Listing resource name must + /// be provided. Some example of using filters: + /// + /// * data_exchange="projects/myproject/locations/us/dataExchanges/123" + /// * listing="projects/123/locations/us/dataExchanges/456/listings/789" + /// * "projects/myproject/locations/us/dataExchanges/123" #[prost(string, tag = "2")] pub filter: ::prost::alloc::string::String, /// The maximum number of results to return in a single response page. @@ -942,6 +987,43 @@ pub struct OperationMetadata { #[prost(string, tag = "7")] pub api_version: ::prost::alloc::string::String, } +/// Specifies the type of discovery on the discovery page. Note that +/// this does not control the visibility of the exchange/listing which is +/// defined by IAM permission. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum DiscoveryType { + /// Unspecified. Defaults to DISCOVERY_TYPE_PRIVATE. + Unspecified = 0, + /// The Data exchange/listing can be discovered in the 'Private' results + /// list. + Private = 1, + /// The Data exchange/listing can be discovered in the 'Public' results + /// list. + Public = 2, +} +impl DiscoveryType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + DiscoveryType::Unspecified => "DISCOVERY_TYPE_UNSPECIFIED", + DiscoveryType::Private => "DISCOVERY_TYPE_PRIVATE", + DiscoveryType::Public => "DISCOVERY_TYPE_PUBLIC", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DISCOVERY_TYPE_UNSPECIFIED" => Some(Self::Unspecified), + "DISCOVERY_TYPE_PRIVATE" => Some(Self::Private), + "DISCOVERY_TYPE_PUBLIC" => Some(Self::Public), + _ => None, + } + } +} /// Generated client implementations. pub mod analytics_hub_service_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] diff --git a/gcloud-sdk/genproto/google.cloud.parallelstore.v1beta.rs b/gcloud-sdk/genproto/google.cloud.parallelstore.v1beta.rs index bde3c17f2..bb213e608 100644 --- a/gcloud-sdk/genproto/google.cloud.parallelstore.v1beta.rs +++ b/gcloud-sdk/genproto/google.cloud.parallelstore.v1beta.rs @@ -358,6 +358,13 @@ pub struct ImportDataRequest { /// not supported (00000000-0000-0000-0000-000000000000). #[prost(string, tag = "4")] pub request_id: ::prost::alloc::string::String, + /// Optional. User-specified Service Account (SA) credentials to be used when + /// performing the transfer. + /// Format: `projects/{project_id}/serviceAccounts/{service_account}` + /// If unspecified, the Parallelstore service agent is used: + /// service-@gcp-sa-parallelstore.iam.gserviceaccount.com) + #[prost(string, tag = "5")] + pub service_account: ::prost::alloc::string::String, /// The source of the data being imported into the parallelstore instance. #[prost(oneof = "import_data_request::Source", tags = "2")] pub source: ::core::option::Option, @@ -407,6 +414,13 @@ pub struct ExportDataRequest { /// not supported (00000000-0000-0000-0000-000000000000). #[prost(string, tag = "4")] pub request_id: ::prost::alloc::string::String, + /// Optional. User-specified Service Account (SA) credentials to be used when + /// performing the transfer. + /// Format: `projects/{project_id}/serviceAccounts/{service_account}` + /// If unspecified, the Parallelstore service agent is used: + /// service-@gcp-sa-parallelstore.iam.gserviceaccount.com) + #[prost(string, tag = "5")] + pub service_account: ::prost::alloc::string::String, /// The source of the data exported from the parallelstore instance. #[prost(oneof = "export_data_request::Source", tags = "2")] pub source: ::core::option::Option, diff --git a/gcloud-sdk/genproto/google.cloud.sql.v1.rs b/gcloud-sdk/genproto/google.cloud.sql.v1.rs index 3a0008448..5a1a94edc 100644 --- a/gcloud-sdk/genproto/google.cloud.sql.v1.rs +++ b/gcloud-sdk/genproto/google.cloud.sql.v1.rs @@ -1748,6 +1748,11 @@ pub struct Settings { /// SQL for PostgreSQL instances. #[prost(message, optional, tag = "40")] pub enable_google_ml_integration: ::core::option::Option, + /// Optional. By default, Cloud SQL instances have schema extraction disabled + /// for Dataplex. When this parameter is set to true, schema extraction for + /// Dataplex on Cloud SQL instances is activated. + #[prost(message, optional, tag = "41")] + pub enable_dataplex_integration: ::core::option::Option, } /// Nested message and enum types in `Settings`. pub mod settings { diff --git a/gcloud-sdk/genproto/google.container.v1beta1.rs b/gcloud-sdk/genproto/google.container.v1beta1.rs index b1501ac32..0a47bb52e 100644 --- a/gcloud-sdk/genproto/google.container.v1beta1.rs +++ b/gcloud-sdk/genproto/google.container.v1beta1.rs @@ -6533,6 +6533,7 @@ pub mod gateway_api_config { Unspecified = 0, /// Gateway API support is disabled Disabled = 1, + /// Deprecated: use CHANNEL_STANDARD instead. /// Gateway API support is enabled, experimental CRDs are installed Experimental = 3, /// Gateway API support is enabled, standard CRDs are installed