Skip to content

Commit

Permalink
Google APIs updated at 2024-07-03 (#149)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions <>
  • Loading branch information
github-actions[bot] authored Jul 3, 2024
1 parent 64854bd commit 0ca817a
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 3 deletions.
10 changes: 9 additions & 1 deletion gcloud-sdk/genproto/google.apps.drive.labels.v2beta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -382,6 +387,9 @@ pub mod precondition_failure {
"CANNOT_MODIFY_LOCKED_COMPONENT" => {
Some(Self::CannotModifyLockedComponent)
}
"UNSUPPORT_ENABLED_APP_SETTINGS" => {
Some(Self::UnsupportEnabledAppSettings)
}
_ => None,
}
}
Expand Down
86 changes: 84 additions & 2 deletions gcloud-sdk/genproto/google.cloud.bigquery.analyticshub.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SharingEnvironmentConfig>,
/// 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<i32>,
}
/// Sharing environment is a behavior model for sharing data within a
/// data exchange. This option is configurable for a data exchange.
Expand Down Expand Up @@ -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<i32>,
/// Listing source.
#[prost(oneof = "listing::Source", tags = "6")]
pub source: ::core::option::Option<listing::Source>,
Expand Down Expand Up @@ -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 {
Expand All @@ -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<bool>,
/// 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<bool>,
/// 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<bool>,
}
}
/// Restricted export config, used to configure restricted export on linked
/// dataset.
Expand Down Expand Up @@ -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),
}
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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<Self> {
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)]
Expand Down
14 changes: 14 additions & 0 deletions gcloud-sdk/genproto/google.cloud.parallelstore.v1beta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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-<PROJECT_NUMBER>@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<import_data_request::Source>,
Expand Down Expand Up @@ -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-<PROJECT_NUMBER>@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<export_data_request::Source>,
Expand Down
5 changes: 5 additions & 0 deletions gcloud-sdk/genproto/google.cloud.sql.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,11 @@ pub struct Settings {
/// SQL for PostgreSQL instances.
#[prost(message, optional, tag = "40")]
pub enable_google_ml_integration: ::core::option::Option<bool>,
/// 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<bool>,
}
/// Nested message and enum types in `Settings`.
pub mod settings {
Expand Down
1 change: 1 addition & 0 deletions gcloud-sdk/genproto/google.container.v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ca817a

Please sign in to comment.