Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump googleapis version #209

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion googleapis/googleapis
Submodule googleapis updated 1735 files
15 changes: 15 additions & 0 deletions googleapis/src/bytes/google.api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,19 @@ pub enum FieldBehavior {
/// a non-empty value will be returned. The user will not be aware of what
/// non-empty value to expect.
NonEmptyDefault = 7,
/// Denotes that the field in a resource (a message annotated with
/// google.api.resource) is used in the resource name to uniquely identify the
/// resource. For AIP-compliant APIs, this should only be applied to the
/// `name` field on the resource.
///
/// This behavior should not be applied to references to other resources within
/// the message.
///
/// The identifier field of resources often have different field behavior
/// depending on the request it is embedded in (e.g. for Create methods name
/// is optional and unused, while for Update methods it is required). Instead
/// of method-specific annotations, only `IDENTIFIER` is required.
Identifier = 8,
}
impl FieldBehavior {
/// String value of the enum field names used in the ProtoBuf definition.
Expand All @@ -887,6 +900,7 @@ impl FieldBehavior {
FieldBehavior::Immutable => "IMMUTABLE",
FieldBehavior::UnorderedList => "UNORDERED_LIST",
FieldBehavior::NonEmptyDefault => "NON_EMPTY_DEFAULT",
FieldBehavior::Identifier => "IDENTIFIER",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand All @@ -900,6 +914,7 @@ impl FieldBehavior {
"IMMUTABLE" => Some(Self::Immutable),
"UNORDERED_LIST" => Some(Self::UnorderedList),
"NON_EMPTY_DEFAULT" => Some(Self::NonEmptyDefault),
"IDENTIFIER" => Some(Self::Identifier),
_ => None,
}
}
Expand Down
14 changes: 13 additions & 1 deletion googleapis/src/bytes/google.cloud.bigquery.storage.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,17 @@ pub struct AppendRowsRequest {
::prost::alloc::string::String,
i32,
>,
/// Optional. Default missing value interpretation for all columns in the
/// table. When a value is specified on an `AppendRowsRequest`, it is applied
/// to all requests on the connection from that point forward, until a
/// subsequent `AppendRowsRequest` sets it to a different value.
/// `missing_value_interpretation` can override
/// `default_missing_value_interpretation`. For example, if you want to write
/// `NULL` instead of using default values for some columns, you can set
/// `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same
/// time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
#[prost(enumeration = "append_rows_request::MissingValueInterpretation", tag = "8")]
pub default_missing_value_interpretation: i32,
/// Input rows. The `writer_schema` field must be specified at the initial
/// request and currently, it will be ignored if specified in following
/// requests. Following requests must have data in the same format as the
Expand Down Expand Up @@ -1335,7 +1346,8 @@ pub mod storage_error {
InvalidCmekProvided = 11,
/// There is an encryption error while using customer-managed encryption key.
CmekEncryptionError = 12,
/// Key Management Service (KMS) service returned an error.
/// Key Management Service (KMS) service returned an error, which can be
/// retried.
KmsServiceError = 13,
/// Permission denied while using customer-managed encryption key.
KmsPermissionDenied = 14,
Expand Down
12 changes: 8 additions & 4 deletions googleapis/src/bytes/google.iam.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub struct GetPolicyOptions {
///
/// **JSON example:**
///
/// ```
/// {
/// "bindings": [
/// {
Expand Down Expand Up @@ -70,9 +71,11 @@ pub struct GetPolicyOptions {
/// "etag": "BwWWja0YfJA=",
/// "version": 3
/// }
/// ```
///
/// **YAML example:**
///
/// ```
/// bindings:
/// - members:
/// - user:[email protected]
Expand All @@ -89,6 +92,7 @@ pub struct GetPolicyOptions {
/// expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
/// etag: BwWWja0YfJA=
/// version: 3
/// ```
///
/// For a description of IAM and its features, see the
/// [IAM documentation](<https://cloud.google.com/iam/docs/>).
Expand Down Expand Up @@ -160,7 +164,7 @@ pub struct Binding {
/// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
#[prost(string, tag = "1")]
pub role: ::prost::alloc::string::String,
/// Specifies the principals requesting access for a Cloud Platform resource.
/// Specifies the principals requesting access for a Google Cloud resource.
/// `members` can have the following values:
///
/// * `allUsers`: A special identifier that represents anyone who is
Expand Down Expand Up @@ -270,8 +274,8 @@ pub struct Binding {
/// }
///
/// For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
/// logging. It also exempts [email protected] from DATA_READ logging, and
/// [email protected] from DATA_WRITE logging.
/// logging. It also exempts `[email protected]` from DATA_READ logging, and
/// `[email protected]` from DATA_WRITE logging.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuditConfig {
Expand Down Expand Up @@ -392,7 +396,7 @@ pub struct BindingDelta {
/// Required
#[prost(string, tag = "2")]
pub role: ::prost::alloc::string::String,
/// A single identity requesting access for a Cloud Platform resource.
/// A single identity requesting access for a Google Cloud resource.
/// Follows the same format of Binding.members.
/// Required
#[prost(string, tag = "3")]
Expand Down
27 changes: 14 additions & 13 deletions googleapis/src/bytes/google.pubsub.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,11 +568,12 @@ pub mod schema_service_client {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MessageStoragePolicy {
/// A list of IDs of GCP regions where messages that are published to the topic
/// may be persisted in storage. Messages published by publishers running in
/// non-allowed GCP regions (or running outside of GCP altogether) will be
/// routed for storage in one of the allowed regions. An empty list means that
/// no regions are allowed, and is not a valid configuration.
/// A list of IDs of Google Cloud regions where messages that are published
/// to the topic may be persisted in storage. Messages published by publishers
/// running in non-allowed Google Cloud regions (or running outside of Google
/// Cloud altogether) are routed for storage in one of the allowed regions.
/// An empty list means that no regions are allowed, and is not a valid
/// configuration.
#[prost(string, repeated, tag = "1")]
pub allowed_persistence_regions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
Expand Down Expand Up @@ -1734,8 +1735,8 @@ pub struct CreateSnapshotRequest {
/// in the request, the server will assign a random name for this snapshot on
/// the same project as the subscription. Note that for REST API requests, you
/// must specify a name. See the [resource name
/// rules](<https://cloud.google.com/pubsub/docs/admin#resource_names>). Format
/// is `projects/{project}/snapshots/{snap}`.
/// rules](<https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names>).
/// Format is `projects/{project}/snapshots/{snap}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Required. The subscription whose backlog the snapshot retains.
Expand Down Expand Up @@ -1964,7 +1965,7 @@ pub mod publisher_client {
self
}
/// Creates the given topic with the given name. See the [resource name rules]
/// (https://cloud.google.com/pubsub/docs/admin#resource_names).
/// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
pub async fn create_topic(
&mut self,
request: impl tonic::IntoRequest<super::Topic>,
Expand Down Expand Up @@ -2196,16 +2197,16 @@ pub mod subscriber_client {
self
}
/// Creates a subscription to a given topic. See the [resource name rules]
/// (https://cloud.google.com/pubsub/docs/admin#resource_names).
/// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
/// If the subscription already exists, returns `ALREADY_EXISTS`.
/// If the corresponding topic doesn't exist, returns `NOT_FOUND`.
///
/// If the name is not provided in the request, the server will assign a random
/// name for this subscription on the same project as the topic, conforming
/// to the [resource name format]
/// (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated
/// name is populated in the returned Subscription object. Note that for REST
/// API requests, you must specify a name in the request.
/// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
/// generated name is populated in the returned Subscription object. Note that
/// for REST API requests, you must specify a name in the request.
pub async fn create_subscription(
&mut self,
request: impl tonic::IntoRequest<super::Subscription>,
Expand Down Expand Up @@ -2433,7 +2434,7 @@ pub mod subscriber_client {
/// the request, the server will assign a random
/// name for this snapshot on the same project as the subscription, conforming
/// to the [resource name format]
/// (https://cloud.google.com/pubsub/docs/admin#resource_names). The
/// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
/// generated name is populated in the returned Snapshot object. Note that for
/// REST API requests, you must specify a name in the request.
pub async fn create_snapshot(
Expand Down
107 changes: 103 additions & 4 deletions googleapis/src/bytes/google.spanner.admin.instance.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,90 @@ pub mod instance_config {
}
}
}
/// Autoscaling config for an instance.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalingConfig {
/// Required. Autoscaling limits for an instance.
#[prost(message, optional, tag = "1")]
pub autoscaling_limits: ::core::option::Option<
autoscaling_config::AutoscalingLimits,
>,
/// Required. The autoscaling targets for an instance.
#[prost(message, optional, tag = "2")]
pub autoscaling_targets: ::core::option::Option<
autoscaling_config::AutoscalingTargets,
>,
}
/// Nested message and enum types in `AutoscalingConfig`.
pub mod autoscaling_config {
/// The autoscaling limits for the instance. Users can define the minimum and
/// maximum compute capacity allocated to the instance, and the autoscaler will
/// only scale within that range. Users can either use nodes or processing
/// units to specify the limits, but should use the same unit to set both the
/// min_limit and max_limit.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalingLimits {
/// The minimum compute capacity for the instance.
#[prost(oneof = "autoscaling_limits::MinLimit", tags = "1, 2")]
pub min_limit: ::core::option::Option<autoscaling_limits::MinLimit>,
/// The maximum compute capacity for the instance. The maximum compute
/// capacity should be less than or equal to 10X the minimum compute
/// capacity.
#[prost(oneof = "autoscaling_limits::MaxLimit", tags = "3, 4")]
pub max_limit: ::core::option::Option<autoscaling_limits::MaxLimit>,
}
/// Nested message and enum types in `AutoscalingLimits`.
pub mod autoscaling_limits {
/// The minimum compute capacity for the instance.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum MinLimit {
/// Minimum number of nodes allocated to the instance. If set, this number
/// should be greater than or equal to 1.
#[prost(int32, tag = "1")]
MinNodes(i32),
/// Minimum number of processing units allocated to the instance. If set,
/// this number should be multiples of 1000.
#[prost(int32, tag = "2")]
MinProcessingUnits(i32),
}
/// The maximum compute capacity for the instance. The maximum compute
/// capacity should be less than or equal to 10X the minimum compute
/// capacity.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum MaxLimit {
/// Maximum number of nodes allocated to the instance. If set, this number
/// should be greater than or equal to min_nodes.
#[prost(int32, tag = "3")]
MaxNodes(i32),
/// Maximum number of processing units allocated to the instance. If set,
/// this number should be multiples of 1000 and be greater than or equal to
/// min_processing_units.
#[prost(int32, tag = "4")]
MaxProcessingUnits(i32),
}
}
/// The autoscaling targets for an instance.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalingTargets {
/// Required. The target high priority cpu utilization percentage that the
/// autoscaler should be trying to achieve for the instance. This number is
/// on a scale from 0 (no utilization) to 100 (full utilization). The valid
/// range is [10, 90] inclusive.
#[prost(int32, tag = "1")]
pub high_priority_cpu_utilization_percent: i32,
/// Required. The target storage utilization percentage that the autoscaler
/// should be trying to achieve for the instance. This number is on a scale
/// from 0 (no utilization) to 100 (full utilization). The valid range is
/// [10, 100] inclusive.
#[prost(int32, tag = "2")]
pub storage_utilization_percent: i32,
}
}
/// An isolated set of Cloud Spanner resources on which databases can be hosted.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand All @@ -292,8 +376,12 @@ pub struct Instance {
#[prost(string, tag = "3")]
pub display_name: ::prost::alloc::string::String,
/// The number of nodes allocated to this instance. At most one of either
/// node_count or processing_units should be present in the message. This
/// may be zero in API responses for instances that are not yet in state
/// node_count or processing_units should be present in the message.
///
/// Users can set the node_count field to specify the target number of nodes
/// allocated to the instance.
///
/// This may be zero in API responses for instances that are not yet in state
/// `READY`.
///
/// See [the
Expand All @@ -302,14 +390,25 @@ pub struct Instance {
#[prost(int32, tag = "5")]
pub node_count: i32,
/// The number of processing units allocated to this instance. At most one of
/// processing_units or node_count should be present in the message. This may
/// be zero in API responses for instances that are not yet in state `READY`.
/// processing_units or node_count should be present in the message.
///
/// Users can set the processing_units field to specify the target number of
/// processing units allocated to the instance.
///
/// This may be zero in API responses for instances that are not yet in state
/// `READY`.
///
/// See [the
/// documentation](<https://cloud.google.com/spanner/docs/compute-capacity>)
/// for more information about nodes and processing units.
#[prost(int32, tag = "9")]
pub processing_units: i32,
/// Optional. The autoscaling configuration. Autoscaling is enabled if this
/// field is set. When autoscaling is enabled, node_count and processing_units
/// are treated as OUTPUT_ONLY fields and reflect the current compute capacity
/// allocated to the instance.
#[prost(message, optional, tag = "17")]
pub autoscaling_config: ::core::option::Option<AutoscalingConfig>,
/// Output only. The current instance state. For
/// \[CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance\],
/// the state must be either omitted or set to `CREATING`. For
Expand Down
Loading