Skip to content

Commit

Permalink
Updated protos
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Sep 16, 2022
1 parent e65b513 commit 45c1f93
Show file tree
Hide file tree
Showing 27 changed files with 7,954 additions and 197 deletions.
2 changes: 1 addition & 1 deletion gcloud-protos-generator/proto/googleapis
Submodule googleapis updated 378 files
4 changes: 2 additions & 2 deletions gcloud-sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "gcloud-sdk"
version = "0.18.3"
version = "0.18.4"
authors = ["mechiru <[email protected]>", "Abdulla Abdurakhmanov <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
description = "This library provides generated from proto Google API, authentication support, caching client."
description = "This library provides generated from proto Google APIs and simple to use APIs client hiding complexity of GCP authentication and secure networking based on Tonic middleware."
repository = "https://github.com/abdolence/gcloud-sdk-rs"
documentation = "https://docs.rs/gcloud-sdk"
categories = ["api-bindings"]
Expand Down
64 changes: 64 additions & 0 deletions gcloud-sdk/genproto/google.bigtable.admin.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,14 @@ pub struct Table {
/// field will be populated with information about the restore.
#[prost(message, optional, tag="6")]
pub restore_info: ::core::option::Option<RestoreInfo>,
/// Set to true to make the table protected against data loss. i.e. deleting
/// the following resources through Admin APIs are prohibited:
/// - The table.
/// - The column families in the table.
/// - The instance containing the table.
/// Note one can still delete the data stored in the table through Data APIs.
#[prost(bool, tag="9")]
pub deletion_protection: bool,
}
/// Nested message and enum types in `Table`.
pub mod table {
Expand Down Expand Up @@ -2063,6 +2071,39 @@ pub struct GetTableRequest {
#[prost(enumeration="table::View", tag="2")]
pub view: i32,
}
/// The request for
/// \[UpdateTable][google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable\].
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateTableRequest {
/// Required. The table to update.
/// The table's `name` field is used to identify the table to update.
#[prost(message, optional, tag="1")]
pub table: ::core::option::Option<Table>,
/// Required. The list of fields to update.
/// A mask specifying which fields (e.g. `deletion_protection`) in the `table`
/// field should be updated. This mask is relative to the `table` field, not to
/// the request message. The wildcard (*) path is currently not supported.
/// Currently UpdateTable is only supported for the following field:
/// * `deletion_protection`
/// If `column_families` is set in `update_mask`, it will return an
/// UNIMPLEMENTED error.
#[prost(message, optional, tag="2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
/// Metadata type for the operation returned by
/// \[UpdateTable][google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable\].
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateTableMetadata {
/// The name of the table being updated.
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
/// The time at which this operation started.
#[prost(message, optional, tag="2")]
pub start_time: ::core::option::Option<::prost_types::Timestamp>,
/// If set, the time at which this operation finished or was canceled.
#[prost(message, optional, tag="3")]
pub end_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Request message for
/// \[google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable\]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down Expand Up @@ -2655,6 +2696,29 @@ pub mod bigtable_table_admin_client {
);
self.inner.unary(request.into_request(), path, codec).await
}
/// Updates a specified table.
pub async fn update_table(
&mut self,
request: impl tonic::IntoRequest<super::UpdateTableRequest>,
) -> 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.bigtable.admin.v2.BigtableTableAdmin/UpdateTable",
);
self.inner.unary(request.into_request(), path, codec).await
}
/// Permanently deletes a specified table and all of its data.
pub async fn delete_table(
&mut self,
Expand Down
100 changes: 100 additions & 0 deletions gcloud-sdk/genproto/google.cloud.aiplatform.v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7432,6 +7432,13 @@ pub struct BatchReadFeatureValuesOperationMetadata {
#[prost(message, optional, tag="1")]
pub generic_metadata: ::core::option::Option<GenericOperationMetadata>,
}
/// Details of operations that delete Feature values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteFeatureValuesOperationMetadata {
/// Operation metadata for Featurestore delete Features values.
#[prost(message, optional, tag="1")]
pub generic_metadata: ::core::option::Option<GenericOperationMetadata>,
}
/// Details of operations that perform create EntityType.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateEntityTypeOperationMetadata {
Expand All @@ -7453,6 +7460,67 @@ pub struct BatchCreateFeaturesOperationMetadata {
#[prost(message, optional, tag="1")]
pub generic_metadata: ::core::option::Option<GenericOperationMetadata>,
}
/// Request message for
/// \[FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues\].
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteFeatureValuesRequest {
/// Required. The resource name of the EntityType grouping the Features for
/// which values are being deleted from. Format:
/// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
#[prost(string, tag="1")]
pub entity_type: ::prost::alloc::string::String,
/// Defines options to select feature values to be deleted.
#[prost(oneof="delete_feature_values_request::DeleteOption", tags="2")]
pub delete_option: ::core::option::Option<delete_feature_values_request::DeleteOption>,
}
/// Nested message and enum types in `DeleteFeatureValuesRequest`.
pub mod delete_feature_values_request {
/// Message to select entity.
/// If an entity id is selected, all the feature values corresponding to the
/// entity id will be deleted, including the entityId.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SelectEntity {
/// Required. Selectors choosing feature values of which entity id to be
/// deleted from the EntityType.
#[prost(message, optional, tag="1")]
pub entity_id_selector: ::core::option::Option<super::EntityIdSelector>,
}
/// Defines options to select feature values to be deleted.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum DeleteOption {
/// Select feature values to be deleted by specifying entities.
#[prost(message, tag="2")]
SelectEntity(SelectEntity),
}
}
/// Response message for
/// \[FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues\].
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteFeatureValuesResponse {
}
/// Selector for entityId. Getting ids from the given source.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EntityIdSelector {
/// Source column that holds entity IDs. If not provided, entity IDs are
/// extracted from the column named `entity_id`.
#[prost(string, tag="5")]
pub entity_id_field: ::prost::alloc::string::String,
/// Details about the source data, including the location of the storage and
/// the format.
#[prost(oneof="entity_id_selector::EntityIdsSource", tags="3")]
pub entity_ids_source: ::core::option::Option<entity_id_selector::EntityIdsSource>,
}
/// Nested message and enum types in `EntityIdSelector`.
pub mod entity_id_selector {
/// Details about the source data, including the location of the storage and
/// the format.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum EntityIdsSource {
/// Source of Csv
#[prost(message, tag="3")]
CsvSource(super::CsvSource),
}
}
/// Generated client implementations.
pub mod featurestore_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
Expand Down Expand Up @@ -7962,6 +8030,38 @@ pub mod featurestore_service_client {
);
self.inner.unary(request.into_request(), path, codec).await
}
/// Delete Feature values from Featurestore.
///
/// The progress of the deletion is tracked by the returned operation. The
/// deleted feature values are guaranteed to be invisible to subsequent read
/// operations after the operation is marked as successfully done.
///
/// If a delete feature values operation fails, the feature values
/// returned from reads and exports may be inconsistent. If consistency is
/// required, the caller must retry the same delete request again and wait till
/// the new operation returned is marked as successfully done.
pub async fn delete_feature_values(
&mut self,
request: impl tonic::IntoRequest<super::DeleteFeatureValuesRequest>,
) -> 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.v1beta1.FeaturestoreService/DeleteFeatureValues",
);
self.inner.unary(request.into_request(), path, codec).await
}
/// Searches Features matching a query in a given project.
pub async fn search_features(
&mut self,
Expand Down
Loading

0 comments on commit 45c1f93

Please sign in to comment.