Struct google_logging2::api::LocationMethods [−][src]
pub struct LocationMethods<'a> { /* fields omitted */ }Expand description
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
pub fn buckets_views_create(
&self,
request: LogView,
parent: &str
) -> LocationBucketViewCreateCall<'a>
pub fn buckets_views_create(
&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”
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”.
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”.
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>
pub fn buckets_views_patch(
&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>
pub fn buckets_create(
&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”
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”.
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”.
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.
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>
pub fn buckets_undelete(
&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”.
Create a builder to help you perform the following task:
Gets information about a location.
Arguments
name- Resource name for the location.
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.