Skip to content

Commit

Permalink
Google APIs updated at 2024-07-02 (#145)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions <>
  • Loading branch information
github-actions[bot] authored Jul 2, 2024
1 parent 5b8ef6a commit 7a447c1
Show file tree
Hide file tree
Showing 50 changed files with 123,651 additions and 1,080 deletions.
7,963 changes: 7,963 additions & 0 deletions gcloud-sdk/genproto/google.ads.googleads.v17.common.rs

Large diffs are not rendered by default.

29,602 changes: 29,602 additions & 0 deletions gcloud-sdk/genproto/google.ads.googleads.v17.enums.rs

Large diffs are not rendered by default.

20,738 changes: 20,738 additions & 0 deletions gcloud-sdk/genproto/google.ads.googleads.v17.errors.rs

Large diffs are not rendered by default.

12,482 changes: 12,482 additions & 0 deletions gcloud-sdk/genproto/google.ads.googleads.v17.resources.rs

Large diffs are not rendered by default.

30,109 changes: 30,109 additions & 0 deletions gcloud-sdk/genproto/google.ads.googleads.v17.services.rs

Large diffs are not rendered by default.

613 changes: 574 additions & 39 deletions gcloud-sdk/genproto/google.ai.generativelanguage.v1beta.rs

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion gcloud-sdk/genproto/google.apps.drive.labels.v2.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
33 changes: 28 additions & 5 deletions gcloud-sdk/genproto/google.chat.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,6 @@ pub mod membership {
#[prost(message, tag = "3")]
Member(super::User),
/// The Google Group the membership corresponds to.
/// Only supports read operations. Other operations, like
/// creating or updating a membership, aren't currently supported.
#[prost(message, tag = "5")]
GroupMember(super::Group),
}
Expand Down Expand Up @@ -2971,8 +2969,8 @@ pub struct SetUpSpaceRequest {
/// authenticated user returns an error.
#[prost(string, tag = "2")]
pub request_id: ::prost::alloc::string::String,
/// Optional. The Google Chat users to invite to join the space. Omit the
/// calling user, as they are added automatically.
/// Optional. The Google Chat users or groups to invite to join the space. Omit
/// the calling user, as they are added automatically.
///
/// The set currently allows up to 20 memberships (in addition to the caller).
///
Expand All @@ -2985,6 +2983,10 @@ pub struct SetUpSpaceRequest {
/// To invite Gmail users or users from external Google Workspace domains,
/// user's email must be used for `{user}`.
///
/// For Google group membership, the `Membership.group_member` field must
/// contain a `group` with `name` populated (format `groups/{group}`). You
/// can only add Google groups when setting `Space.spaceType` to `SPACE`.
///
/// Optional when setting `Space.spaceType` to `SPACE`.
///
/// Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at
Expand Down Expand Up @@ -3562,6 +3564,17 @@ pub mod chat_service_client {
/// you can add the user to the space by setting the `membership.member.name`
/// to `users/user@example.com` or `users/123456789`.
///
/// To specify the Google groups to add, add memberships with the
/// appropriate `membership.group_member.name`. To add or invite a Google
/// group, use `groups/{group}`, where `{group}` is the `id` for the group from
/// the Cloud Identity Groups API. For example, you can use [Cloud Identity
/// Groups lookup
/// API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
/// to retrieve the ID `123456789` for group email `group@example.com`, then
/// you can add the group to the space by setting the
/// `membership.group_member.name` to `groups/123456789`. Group email is not
/// supported, and Google groups can only be added as members in named spaces.
///
/// For a named space or group chat, if the caller blocks, or is blocked
/// by some members, or doesn't have permission to add some members, then
/// those members aren't added to the created space.
Expand Down Expand Up @@ -3759,7 +3772,8 @@ pub mod chat_service_client {
/// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
///
/// To specify the member to add, set the `membership.member.name` for the
/// human or app member.
/// human or app member, or set the `membership.group_member.name` for the
/// group member.
///
/// - To add the calling app to a space or a direct message between two human
/// users, use `users/app`. Unable to add other
Expand All @@ -3772,6 +3786,15 @@ pub mod chat_service_client {
/// profile ID for `user@example.com` is `123456789`, you can add the user to
/// the space by setting the `membership.member.name` to
/// `users/user@example.com` or `users/123456789`.
///
/// - To add or invite a Google group in a named space, use
/// `groups/{group}`, where `{group}` is the `id` for the group from the Cloud
/// Identity Groups API. For example, you can use [Cloud Identity Groups lookup
/// API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
/// to retrieve the ID `123456789` for group email `group@example.com`, then
/// you can add or invite the group to a named space by setting the
/// `membership.group_member.name` to `groups/123456789`. Group email is not
/// supported, and Google groups can only be added as members in named spaces.
pub async fn create_membership(
&mut self,
request: impl tonic::IntoRequest<super::CreateMembershipRequest>,
Expand Down
111 changes: 109 additions & 2 deletions gcloud-sdk/genproto/google.cloud.aiplatform.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2456,6 +2456,12 @@ pub struct Model {
/// only supports specifing the Model Garden models and Genie models.
#[prost(message, optional, tag = "50")]
pub base_model_source: ::core::option::Option<model::BaseModelSource>,
/// Output only. Reserved for future use.
#[prost(bool, tag = "51")]
pub satisfies_pzs: bool,
/// Output only. Reserved for future use.
#[prost(bool, tag = "52")]
pub satisfies_pzi: bool,
}
/// Nested message and enum types in `Model`.
pub mod model {
Expand Down Expand Up @@ -4424,6 +4430,8 @@ pub mod candidate {
/// The token generation was stopped as the response was flagged for
/// Sensitive Personally Identifiable Information (SPII) contents.
Spii = 8,
/// The function call generated by the model is invalid.
MalformedFunctionCall = 9,
}
impl FinishReason {
/// String value of the enum field names used in the ProtoBuf definition.
Expand All @@ -4441,6 +4449,7 @@ pub mod candidate {
FinishReason::Blocklist => "BLOCKLIST",
FinishReason::ProhibitedContent => "PROHIBITED_CONTENT",
FinishReason::Spii => "SPII",
FinishReason::MalformedFunctionCall => "MALFORMED_FUNCTION_CALL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand All @@ -4455,6 +4464,7 @@ pub mod candidate {
"BLOCKLIST" => Some(Self::Blocklist),
"PROHIBITED_CONTENT" => Some(Self::ProhibitedContent),
"SPII" => Some(Self::Spii),
"MALFORMED_FUNCTION_CALL" => Some(Self::MalformedFunctionCall),
_ => None,
}
}
Expand Down Expand Up @@ -7326,6 +7336,22 @@ pub struct ListDeploymentResourcePoolsResponse {
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
/// Request message for UpdateDeploymentResourcePool method.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateDeploymentResourcePoolRequest {
/// Required. The DeploymentResourcePool to update.
///
/// The DeploymentResourcePool's `name` field is used to identify the
/// DeploymentResourcePool to update.
/// Format:
/// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
#[prost(message, optional, tag = "1")]
pub deployment_resource_pool: ::core::option::Option<DeploymentResourcePool>,
/// Required. The list of fields to update.
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
/// Runtime operation information for UpdateDeploymentResourcePool method.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down Expand Up @@ -7571,6 +7597,37 @@ pub mod deployment_resource_pool_service_client {
);
self.inner.unary(req, path, codec).await
}
/// Update a DeploymentResourcePool.
pub async fn update_deployment_resource_pool(
&mut self,
request: impl tonic::IntoRequest<super::UpdateDeploymentResourcePoolRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.aiplatform.v1.DeploymentResourcePoolService/UpdateDeploymentResourcePool",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.aiplatform.v1.DeploymentResourcePoolService",
"UpdateDeploymentResourcePool",
),
);
self.inner.unary(req, path, codec).await
}
/// Delete a DeploymentResourcePool.
pub async fn delete_deployment_resource_pool(
&mut self,
Expand Down Expand Up @@ -9419,6 +9476,20 @@ pub mod feature_online_store {
/// this FeatureOnlineStore
#[prost(string, tag = "2")]
pub public_endpoint_domain_name: ::prost::alloc::string::String,
/// Optional. Private service connect config. The private service connection
/// is available only for Optimized storage type, not for embedding
/// management now. If
/// [PrivateServiceConnectConfig.enable_private_service_connect][google.cloud.aiplatform.v1.PrivateServiceConnectConfig.enable_private_service_connect]
/// set to true, customers will use private service connection to send
/// request. Otherwise, the connection will set to public endpoint.
#[prost(message, optional, tag = "3")]
pub private_service_connect_config: ::core::option::Option<
super::PrivateServiceConnectConfig,
>,
/// Output only. The name of the service attachment resource. Populated if
/// private service connect is enabled and after FeatureViewSync is created.
#[prost(string, tag = "4")]
pub service_attachment: ::prost::alloc::string::String,
}
/// Possible states a featureOnlineStore can have.
#[derive(
Expand Down Expand Up @@ -14517,6 +14588,11 @@ pub struct TuningJob {
/// [TuningJob][google.cloud.aiplatform.v1.TuningJob].
#[prost(message, optional, tag = "15")]
pub tuning_data_stats: ::core::option::Option<TuningDataStats>,
/// Customer-managed encryption key options for a TuningJob. If this is set,
/// then all resources created by the TuningJob will be encrypted with the
/// provided encryption key.
#[prost(message, optional, tag = "16")]
pub encryption_spec: ::core::option::Option<EncryptionSpec>,
#[prost(oneof = "tuning_job::SourceModel", tags = "4")]
pub source_model: ::core::option::Option<tuning_job::SourceModel>,
#[prost(oneof = "tuning_job::TuningSpec", tags = "5")]
Expand Down Expand Up @@ -25834,6 +25910,9 @@ pub mod publisher_model {
/// generation").
#[prost(string, optional, tag = "10")]
pub deploy_task_name: ::core::option::Option<::prost::alloc::string::String>,
/// Optional. Metadata information about this deployment config.
#[prost(message, optional, tag = "11")]
pub deploy_metadata: ::core::option::Option<deploy::DeployMetadata>,
/// Required. The title of the regional resource reference.
#[prost(string, tag = "8")]
pub title: ::prost::alloc::string::String,
Expand All @@ -25850,6 +25929,19 @@ pub mod publisher_model {
}
/// Nested message and enum types in `Deploy`.
pub mod deploy {
/// Metadata information about the deployment for managing deployment
/// config.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeployMetadata {
/// Optional. Labels for the deployment. For managing deployment config
/// like verifying, source of deployment config, etc.
#[prost(map = "string, string", tag = "1")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
/// The prediction (for example, the machine) resources that the
/// DeployedModel uses.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down Expand Up @@ -28865,7 +28957,7 @@ pub struct ResourcePool {
/// this resource pool. Will replace idle_replica_count.
#[prost(int64, tag = "6")]
pub used_replica_count: i64,
/// Optional. Optional spec to configure GKE autoscaling
/// Optional. Optional spec to configure GKE or Ray-on-Vertex autoscaling
#[prost(message, optional, tag = "7")]
pub autoscaling_spec: ::core::option::Option<resource_pool::AutoscalingSpec>,
}
Expand All @@ -28876,7 +28968,13 @@ pub mod resource_pool {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalingSpec {
/// Optional. min replicas in the node pool,
/// must be ≤ replica_count and < max_replica_count or will throw error
/// must be ≤ replica_count and < max_replica_count or will throw error.
/// For autoscaling enabled Ray-on-Vertex, we allow min_replica_count of a
/// resource_pool to be 0 to match the OSS Ray
/// behavior(<https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-autoscaling.html#cluster-config-parameters>).
/// As for Persistent Resource, the min_replica_count must be > 0, we added
/// a corresponding validation inside
/// CreatePersistentResourceRequestValidator.java.
#[prost(int64, optional, tag = "1")]
pub min_replica_count: ::core::option::Option<i64>,
/// Optional. max replicas in the node pool,
Expand Down Expand Up @@ -29632,6 +29730,9 @@ pub struct PipelineJob {
/// Only returned if the Pipeline is created by Schedule API.
#[prost(string, tag = "22")]
pub schedule_name: ::prost::alloc::string::String,
/// Optional. Whether to do component level validations before job creation.
#[prost(bool, tag = "26")]
pub preflight_validations: bool,
}
/// Nested message and enum types in `PipelineJob`.
pub mod pipeline_job {
Expand Down Expand Up @@ -32328,6 +32429,12 @@ pub struct Tensorboard {
/// instances (if any) as non default.
#[prost(bool, tag = "12")]
pub is_default: bool,
/// Output only. Reserved for future use.
#[prost(bool, tag = "13")]
pub satisfies_pzs: bool,
/// Output only. Reserved for future use.
#[prost(bool, tag = "14")]
pub satisfies_pzi: bool,
}
/// TensorboardTimeSeries maps to times series produced in training runs
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down
Loading

0 comments on commit 7a447c1

Please sign in to comment.