Struct gapi_grpc::google::logging::v2::config_service_v2_client::ConfigServiceV2Client [−][src]
Service for configuring sinks used to route log entries.
Implementations
impl ConfigServiceV2Client<Channel>
[src]
pub async fn connect<D>(dst: D) -> Result<Self, Error> where
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
[src]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
Attempt to create a new client by connecting to a given endpoint.
impl<T> ConfigServiceV2Client<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
[src]
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
[src]
pub async fn list_buckets(
&mut self,
request: impl IntoRequest<ListBucketsRequest>
) -> Result<Response<ListBucketsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListBucketsRequest>
) -> Result<Response<ListBucketsResponse>, Status>
Lists buckets.
pub async fn get_bucket(
&mut self,
request: impl IntoRequest<GetBucketRequest>
) -> Result<Response<LogBucket>, Status>
[src]
&mut self,
request: impl IntoRequest<GetBucketRequest>
) -> Result<Response<LogBucket>, Status>
Gets a bucket.
pub async fn create_bucket(
&mut self,
request: impl IntoRequest<CreateBucketRequest>
) -> Result<Response<LogBucket>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateBucketRequest>
) -> Result<Response<LogBucket>, Status>
Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.
pub async fn update_bucket(
&mut self,
request: impl IntoRequest<UpdateBucketRequest>
) -> Result<Response<LogBucket>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateBucketRequest>
) -> Result<Response<LogBucket>, Status>
Updates a bucket. This method replaces the following fields in the
existing bucket with values from the new bucket: retention_period
If the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.
If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.
A buckets region may not be modified after it is created.
pub async fn delete_bucket(
&mut self,
request: impl IntoRequest<DeleteBucketRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteBucketRequest>
) -> Result<Response<()>, Status>
Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all logs in the bucket will be permanently deleted.
pub async fn undelete_bucket(
&mut self,
request: impl IntoRequest<UndeleteBucketRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<UndeleteBucketRequest>
) -> Result<Response<()>, Status>
Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of 7 days.
pub async fn list_views(
&mut self,
request: impl IntoRequest<ListViewsRequest>
) -> Result<Response<ListViewsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListViewsRequest>
) -> Result<Response<ListViewsResponse>, Status>
Lists views on a bucket.
pub async fn get_view(
&mut self,
request: impl IntoRequest<GetViewRequest>
) -> Result<Response<LogView>, Status>
[src]
&mut self,
request: impl IntoRequest<GetViewRequest>
) -> Result<Response<LogView>, Status>
Gets a view.
pub async fn create_view(
&mut self,
request: impl IntoRequest<CreateViewRequest>
) -> Result<Response<LogView>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateViewRequest>
) -> Result<Response<LogView>, Status>
Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.
pub async fn update_view(
&mut self,
request: impl IntoRequest<UpdateViewRequest>
) -> Result<Response<LogView>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateViewRequest>
) -> Result<Response<LogView>, Status>
Updates a view. This method replaces the following fields in the existing
view with values from the new view: filter
.
pub async fn delete_view(
&mut self,
request: impl IntoRequest<DeleteViewRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteViewRequest>
) -> Result<Response<()>, Status>
Deletes a view from a bucket.
pub async fn list_sinks(
&mut self,
request: impl IntoRequest<ListSinksRequest>
) -> Result<Response<ListSinksResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListSinksRequest>
) -> Result<Response<ListSinksResponse>, Status>
Lists sinks.
pub async fn get_sink(
&mut self,
request: impl IntoRequest<GetSinkRequest>
) -> Result<Response<LogSink>, Status>
[src]
&mut self,
request: impl IntoRequest<GetSinkRequest>
) -> Result<Response<LogSink>, Status>
Gets a sink.
pub async fn create_sink(
&mut self,
request: impl IntoRequest<CreateSinkRequest>
) -> Result<Response<LogSink>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateSinkRequest>
) -> Result<Response<LogSink>, Status>
Creates a sink that exports specified log entries to a destination. The
export of newly-ingested log entries begins immediately, unless the sink’s
writer_identity
is not permitted to write to the destination. A sink can
export log entries only from the resource owning the sink.
pub async fn update_sink(
&mut self,
request: impl IntoRequest<UpdateSinkRequest>
) -> Result<Response<LogSink>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateSinkRequest>
) -> Result<Response<LogSink>, Status>
Updates a sink. This method replaces the following fields in the existing
sink with values from the new sink: destination
, and filter
.
The updated sink might also have a new writer_identity
; see the
unique_writer_identity
field.
pub async fn delete_sink(
&mut self,
request: impl IntoRequest<DeleteSinkRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteSinkRequest>
) -> Result<Response<()>, Status>
Deletes a sink. If the sink has a unique writer_identity
, then that
service account is also deleted.
pub async fn list_exclusions(
&mut self,
request: impl IntoRequest<ListExclusionsRequest>
) -> Result<Response<ListExclusionsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListExclusionsRequest>
) -> Result<Response<ListExclusionsResponse>, Status>
Lists all the exclusions in a parent resource.
pub async fn get_exclusion(
&mut self,
request: impl IntoRequest<GetExclusionRequest>
) -> Result<Response<LogExclusion>, Status>
[src]
&mut self,
request: impl IntoRequest<GetExclusionRequest>
) -> Result<Response<LogExclusion>, Status>
Gets the description of an exclusion.
pub async fn create_exclusion(
&mut self,
request: impl IntoRequest<CreateExclusionRequest>
) -> Result<Response<LogExclusion>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateExclusionRequest>
) -> Result<Response<LogExclusion>, Status>
Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
pub async fn update_exclusion(
&mut self,
request: impl IntoRequest<UpdateExclusionRequest>
) -> Result<Response<LogExclusion>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateExclusionRequest>
) -> Result<Response<LogExclusion>, Status>
Changes one or more properties of an existing exclusion.
pub async fn delete_exclusion(
&mut self,
request: impl IntoRequest<DeleteExclusionRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteExclusionRequest>
) -> Result<Response<()>, Status>
Deletes an exclusion.
pub async fn get_cmek_settings(
&mut self,
request: impl IntoRequest<GetCmekSettingsRequest>
) -> Result<Response<CmekSettings>, Status>
[src]
&mut self,
request: impl IntoRequest<GetCmekSettingsRequest>
) -> Result<Response<CmekSettings>, Status>
Gets the Logs Router CMEK settings for the given resource.
Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization.
See Enabling CMEK for Logs Router for more information.
pub async fn update_cmek_settings(
&mut self,
request: impl IntoRequest<UpdateCmekSettingsRequest>
) -> Result<Response<CmekSettings>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateCmekSettingsRequest>
) -> Result<Response<CmekSettings>, Status>
Updates the Logs Router CMEK settings for the given resource.
Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization.
[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
will fail if 1) kms_key_name
is invalid, or 2) the associated service
account does not have the required
roles/cloudkms.cryptoKeyEncrypterDecrypter
role assigned for the key, or
3) access to the key is disabled.
See Enabling CMEK for Logs Router for more information.
Trait Implementations
impl<T: Clone> Clone for ConfigServiceV2Client<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for ConfigServiceV2Client<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for ConfigServiceV2Client<T>
impl<T> Send for ConfigServiceV2Client<T> where
T: Send,
T: Send,
impl<T> Sync for ConfigServiceV2Client<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ConfigServiceV2Client<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for ConfigServiceV2Client<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,