Struct google_logging2::api::LocationMethods [−][src]
A builder providing access to all methods supported on location resources.
It is not used directly, but through the Logging hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_logging2 as logging2; use std::default::Default; use oauth2; use logging2::Logging; let secret: oauth2::ApplicationSecret = Default::default(); let auth = yup_oauth2::InstalledFlowAuthenticator::builder( secret, yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect, ).build().await.unwrap(); let mut hub = Logging::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `buckets_create(...)`, `buckets_delete(...)`, `buckets_get(...)`, `buckets_list(...)`, `buckets_patch(...)`, `buckets_undelete(...)`, `buckets_views_create(...)`, `buckets_views_delete(...)`, `buckets_views_get(...)`, `buckets_views_list(...)`, `buckets_views_patch(...)`, `get(...)` and `list(...)` // to build up your call. let rb = hub.locations();
Implementations
impl<'a> LocationMethods<'a>[src]
pub fn buckets_views_create(
&self,
request: LogView,
parent: &str
) -> LocationBucketViewCreateCall<'a>[src]
&self,
request: LogView,
parent: &str
) -> LocationBucketViewCreateCall<'a>
Create a builder to help you perform the following task:
Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.
Arguments
request- No description provided.parent- Required. The bucket in which to create the view “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” Example: “projects/my-logging-project/locations/my-location/buckets/my-bucket”
pub fn buckets_views_delete(
&self,
name: &str
) -> LocationBucketViewDeleteCall<'a>[src]
&self,
name: &str
) -> LocationBucketViewDeleteCall<'a>
Create a builder to help you perform the following task:
Deletes a view from a bucket.
Arguments
name- Required. The full resource name of the view to delete: “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]” Example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id”.
pub fn buckets_views_get(&self, name: &str) -> LocationBucketViewGetCall<'a>[src]
Create a builder to help you perform the following task:
Gets a view.
Arguments
name- Required. The resource name of the policy: “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]” Example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id”.
pub fn buckets_views_list(&self, parent: &str) -> LocationBucketViewListCall<'a>[src]
Create a builder to help you perform the following task:
Lists views on a bucket.
Arguments
parent- Required. The bucket whose views are to be listed: “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]”
pub fn buckets_views_patch(
&self,
request: LogView,
name: &str
) -> LocationBucketViewPatchCall<'a>[src]
&self,
request: LogView,
name: &str
) -> LocationBucketViewPatchCall<'a>
Create a builder to help you perform the following task:
Updates a view. This method replaces the following fields in the existing view with values from the new view: filter.
Arguments
request- No description provided.name- Required. The full resource name of the view to update “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]” Example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id”.
pub fn buckets_create(
&self,
request: LogBucket,
parent: &str
) -> LocationBucketCreateCall<'a>[src]
&self,
request: LogBucket,
parent: &str
) -> LocationBucketCreateCall<'a>
Create a builder to help you perform the following task:
Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.
Arguments
request- No description provided.parent- Required. The resource in which to create the bucket: “projects/[PROJECT_ID]/locations/[LOCATION_ID]” Example: “projects/my-logging-project/locations/global”
pub fn buckets_delete(&self, name: &str) -> LocationBucketDeleteCall<'a>[src]
Create a builder to help you perform the following task:
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.
Arguments
name- Required. The full resource name of the bucket to delete. “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” Example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”.
pub fn buckets_get(&self, name: &str) -> LocationBucketGetCall<'a>[src]
Create a builder to help you perform the following task:
Gets a bucket.
Arguments
name- Required. The resource name of the bucket: “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” Example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”.
pub fn buckets_list(&self, parent: &str) -> LocationBucketListCall<'a>[src]
Create a builder to help you perform the following task:
Lists buckets.
Arguments
parent- Required. The parent resource whose buckets are to be listed: “projects/[PROJECT_ID]/locations/[LOCATION_ID]” “organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]” “folders/[FOLDER_ID]/locations/[LOCATION_ID]” Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.
pub fn buckets_patch(
&self,
request: LogBucket,
name: &str
) -> LocationBucketPatchCall<'a>[src]
&self,
request: LogBucket,
name: &str
) -> LocationBucketPatchCall<'a>
Create a builder to help you perform the following task:
Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf 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.
Arguments
request- No description provided.name- Required. The full resource name of the bucket to update. “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” Example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”. Also requires permission “resourcemanager.projects.updateLiens” to set the locked property
pub fn buckets_undelete(
&self,
request: UndeleteBucketRequest,
name: &str
) -> LocationBucketUndeleteCall<'a>[src]
&self,
request: UndeleteBucketRequest,
name: &str
) -> LocationBucketUndeleteCall<'a>
Create a builder to help you perform the following task:
Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of 7 days.
Arguments
request- No description provided.name- Required. The full resource name of the bucket to undelete. “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” “folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]” Example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”.
pub fn get(&self, name: &str) -> LocationGetCall<'a>[src]
Create a builder to help you perform the following task:
Gets information about a location.
Arguments
name- Resource name for the location.
pub fn list(&self, name: &str) -> LocationListCall<'a>[src]
Create a builder to help you perform the following task:
Lists information about the supported locations for this service.
Arguments
name- The resource that owns the locations collection, if applicable.
Trait Implementations
impl<'a> MethodsBuilder for LocationMethods<'a>[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for LocationMethods<'a>
impl<'a> Send for LocationMethods<'a>
impl<'a> Sync for LocationMethods<'a>
impl<'a> Unpin for LocationMethods<'a>
impl<'a> !UnwindSafe for LocationMethods<'a>
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, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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>,