Struct gapi_grpc::google::logging::v2::config_service_v2_client::ConfigServiceV2Client[][src]

pub struct ConfigServiceV2Client<T> { /* fields omitted */ }

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]

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]

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]

Lists buckets.

pub async fn get_bucket(
    &mut self,
    request: impl IntoRequest<GetBucketRequest>
) -> Result<Response<LogBucket>, Status>
[src]

Gets a bucket.

pub async fn create_bucket(
    &mut self,
    request: impl IntoRequest<CreateBucketRequest>
) -> Result<Response<LogBucket>, Status>
[src]

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]

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]

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]

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]

Lists views on a bucket.

pub async fn get_view(
    &mut self,
    request: impl IntoRequest<GetViewRequest>
) -> Result<Response<LogView>, Status>
[src]

Gets a view.

pub async fn create_view(
    &mut self,
    request: impl IntoRequest<CreateViewRequest>
) -> Result<Response<LogView>, Status>
[src]

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]

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]

Deletes a view from a bucket.

pub async fn list_sinks(
    &mut self,
    request: impl IntoRequest<ListSinksRequest>
) -> Result<Response<ListSinksResponse>, Status>
[src]

Lists sinks.

pub async fn get_sink(
    &mut self,
    request: impl IntoRequest<GetSinkRequest>
) -> Result<Response<LogSink>, Status>
[src]

Gets a sink.

pub async fn create_sink(
    &mut self,
    request: impl IntoRequest<CreateSinkRequest>
) -> Result<Response<LogSink>, Status>
[src]

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]

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]

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]

Lists all the exclusions in a parent resource.

pub async fn get_exclusion(
    &mut self,
    request: impl IntoRequest<GetExclusionRequest>
) -> Result<Response<LogExclusion>, Status>
[src]

Gets the description of an exclusion.

pub async fn create_exclusion(
    &mut self,
    request: impl IntoRequest<CreateExclusionRequest>
) -> Result<Response<LogExclusion>, Status>
[src]

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]

Changes one or more properties of an existing exclusion.

pub async fn delete_exclusion(
    &mut self,
    request: impl IntoRequest<DeleteExclusionRequest>
) -> Result<Response<()>, Status>
[src]

Deletes an exclusion.

pub async fn get_cmek_settings(
    &mut self,
    request: impl IntoRequest<GetCmekSettingsRequest>
) -> Result<Response<CmekSettings>, Status>
[src]

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]

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]

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

impl<T> Sync for ConfigServiceV2Client<T> where
    T: Sync

impl<T> Unpin for ConfigServiceV2Client<T> where
    T: Unpin

impl<T> !UnwindSafe for ConfigServiceV2Client<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]