Struct google_logging2::api::BillingAccountMethods
source · pub struct BillingAccountMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on billingAccount 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 google_logging2 as logging2;
use std::default::Default;
use logging2::{Logging, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = Logging::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `exclusions_create(...)`, `exclusions_delete(...)`, `exclusions_get(...)`, `exclusions_list(...)`, `exclusions_patch(...)`, `get_cmek_settings(...)`, `get_settings(...)`, `locations_buckets_create(...)`, `locations_buckets_create_async(...)`, `locations_buckets_delete(...)`, `locations_buckets_get(...)`, `locations_buckets_links_create(...)`, `locations_buckets_links_delete(...)`, `locations_buckets_links_get(...)`, `locations_buckets_links_list(...)`, `locations_buckets_list(...)`, `locations_buckets_patch(...)`, `locations_buckets_undelete(...)`, `locations_buckets_update_async(...)`, `locations_buckets_views_create(...)`, `locations_buckets_views_delete(...)`, `locations_buckets_views_get(...)`, `locations_buckets_views_list(...)`, `locations_buckets_views_logs_list(...)`, `locations_buckets_views_patch(...)`, `locations_get(...)`, `locations_list(...)`, `locations_operations_cancel(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `locations_recent_queries_list(...)`, `locations_saved_queries_create(...)`, `locations_saved_queries_delete(...)`, `locations_saved_queries_list(...)`, `logs_delete(...)`, `logs_list(...)`, `sinks_create(...)`, `sinks_delete(...)`, `sinks_get(...)`, `sinks_list(...)`, `sinks_patch(...)` and `sinks_update(...)`
// to build up your call.
let rb = hub.billing_accounts();
Implementations§
source§impl<'a, S> BillingAccountMethods<'a, S>
impl<'a, S> BillingAccountMethods<'a, S>
sourcepub fn exclusions_create(
&self,
request: LogExclusion,
parent: &str
) -> BillingAccountExclusionCreateCall<'a, S>
pub fn exclusions_create( &self, request: LogExclusion, parent: &str ) -> BillingAccountExclusionCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates a new exclusion in the _Default sink 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.
§Arguments
request
- No description provided.parent
- Required. The parent resource in which to create the exclusion: “projects/[PROJECT_ID]” “organizations/[ORGANIZATION_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]” “folders/[FOLDER_ID]” For examples:“projects/my-logging-project” “organizations/123456789”
sourcepub fn exclusions_delete(
&self,
name: &str
) -> BillingAccountExclusionDeleteCall<'a, S>
pub fn exclusions_delete( &self, name: &str ) -> BillingAccountExclusionDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes an exclusion in the _Default sink.
§Arguments
name
- Required. The resource name of an existing exclusion to delete: “projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]” “organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]” “folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]” For example:“projects/my-project/exclusions/my-exclusion”
sourcepub fn exclusions_get(
&self,
name: &str
) -> BillingAccountExclusionGetCall<'a, S>
pub fn exclusions_get( &self, name: &str ) -> BillingAccountExclusionGetCall<'a, S>
Create a builder to help you perform the following task:
Gets the description of an exclusion in the _Default sink.
§Arguments
name
- Required. The resource name of an existing exclusion: “projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]” “organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]” “folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]” For example:“projects/my-project/exclusions/my-exclusion”
sourcepub fn exclusions_list(
&self,
parent: &str
) -> BillingAccountExclusionListCall<'a, S>
pub fn exclusions_list( &self, parent: &str ) -> BillingAccountExclusionListCall<'a, S>
Create a builder to help you perform the following task:
Lists all the exclusions on the _Default sink in a parent resource.
§Arguments
parent
- Required. The parent resource whose exclusions are to be listed. “projects/[PROJECT_ID]” “organizations/[ORGANIZATION_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]” “folders/[FOLDER_ID]”
sourcepub fn exclusions_patch(
&self,
request: LogExclusion,
name: &str
) -> BillingAccountExclusionPatchCall<'a, S>
pub fn exclusions_patch( &self, request: LogExclusion, name: &str ) -> BillingAccountExclusionPatchCall<'a, S>
Create a builder to help you perform the following task:
Changes one or more properties of an existing exclusion in the _Default sink.
§Arguments
request
- No description provided.name
- Required. The resource name of the exclusion to update: “projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]” “organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]” “folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]” For example:“projects/my-project/exclusions/my-exclusion”
sourcepub fn locations_buckets_links_create(
&self,
request: Link,
parent: &str
) -> BillingAccountLocationBucketLinkCreateCall<'a, S>
pub fn locations_buckets_links_create( &self, request: Link, parent: &str ) -> BillingAccountLocationBucketLinkCreateCall<'a, S>
Create a builder to help you perform the following task:
Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.
§Arguments
request
- No description provided.parent
- Required. The full resource name of the bucket to create a link for. “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]”
sourcepub fn locations_buckets_links_delete(
&self,
name: &str
) -> BillingAccountLocationBucketLinkDeleteCall<'a, S>
pub fn locations_buckets_links_delete( &self, name: &str ) -> BillingAccountLocationBucketLinkDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a link. This will also delete the corresponding BigQuery linked dataset.
§Arguments
name
- Required. The full resource name of the link to delete. “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]” “organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]” “folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]”
sourcepub fn locations_buckets_links_get(
&self,
name: &str
) -> BillingAccountLocationBucketLinkGetCall<'a, S>
pub fn locations_buckets_links_get( &self, name: &str ) -> BillingAccountLocationBucketLinkGetCall<'a, S>
Create a builder to help you perform the following task:
Gets a link.
§Arguments
name
- Required. The resource name of the link: “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]” “organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]” “folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]”
sourcepub fn locations_buckets_links_list(
&self,
parent: &str
) -> BillingAccountLocationBucketLinkListCall<'a, S>
pub fn locations_buckets_links_list( &self, parent: &str ) -> BillingAccountLocationBucketLinkListCall<'a, S>
Create a builder to help you perform the following task:
Lists links.
§Arguments
parent
- Required. The parent resource whose links are to be listed: “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]”
sourcepub fn locations_buckets_views_logs_list(
&self,
parent: &str
) -> BillingAccountLocationBucketViewLogListCall<'a, S>
pub fn locations_buckets_views_logs_list( &self, parent: &str ) -> BillingAccountLocationBucketViewLogListCall<'a, S>
Create a builder to help you perform the following task:
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
§Arguments
parent
- Required. The resource name to list logs for: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
sourcepub fn locations_buckets_views_create(
&self,
request: LogView,
parent: &str
) -> BillingAccountLocationBucketViewCreateCall<'a, S>
pub fn locations_buckets_views_create( &self, request: LogView, parent: &str ) -> BillingAccountLocationBucketViewCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 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]"
For example:“projects/my-project/locations/global/buckets/my-bucket”
sourcepub fn locations_buckets_views_delete(
&self,
name: &str
) -> BillingAccountLocationBucketViewDeleteCall<'a, S>
pub fn locations_buckets_views_delete( &self, name: &str ) -> BillingAccountLocationBucketViewDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.
§Arguments
name
- Required. The full resource name of the view to delete: “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]” For example:“projects/my-project/locations/global/buckets/my-bucket/views/my-view”
sourcepub fn locations_buckets_views_get(
&self,
name: &str
) -> BillingAccountLocationBucketViewGetCall<'a, S>
pub fn locations_buckets_views_get( &self, name: &str ) -> BillingAccountLocationBucketViewGetCall<'a, S>
Create a builder to help you perform the following task:
Gets a view on a log bucket.
§Arguments
name
- Required. The resource name of the policy: “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]” For example:“projects/my-project/locations/global/buckets/my-bucket/views/my-view”
sourcepub fn locations_buckets_views_list(
&self,
parent: &str
) -> BillingAccountLocationBucketViewListCall<'a, S>
pub fn locations_buckets_views_list( &self, parent: &str ) -> BillingAccountLocationBucketViewListCall<'a, S>
Create a builder to help you perform the following task:
Lists views on a log bucket.
§Arguments
parent
- Required. The bucket whose views are to be listed: “projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]”
sourcepub fn locations_buckets_views_patch(
&self,
request: LogView,
name: &str
) -> BillingAccountLocationBucketViewPatchCall<'a, S>
pub fn locations_buckets_views_patch( &self, request: LogView, name: &str ) -> BillingAccountLocationBucketViewPatchCall<'a, S>
Create a builder to help you perform the following task:
Updates a view on a log bucket. This method replaces the value of the filter field from the existing view with the corresponding value from the new view. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.
§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]” For example:“projects/my-project/locations/global/buckets/my-bucket/views/my-view”
sourcepub fn locations_buckets_create(
&self,
request: LogBucket,
parent: &str
) -> BillingAccountLocationBucketCreateCall<'a, S>
pub fn locations_buckets_create( &self, request: LogBucket, parent: &str ) -> BillingAccountLocationBucketCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket’s location cannot be changed.
§Arguments
request
- No description provided.parent
- Required. The resource in which to create the log bucket: “projects/[PROJECT_ID]/locations/[LOCATION_ID]” For example:“projects/my-project/locations/global”
sourcepub fn locations_buckets_create_async(
&self,
request: LogBucket,
parent: &str
) -> BillingAccountLocationBucketCreateAsyncCall<'a, S>
pub fn locations_buckets_create_async( &self, request: LogBucket, parent: &str ) -> BillingAccountLocationBucketCreateAsyncCall<'a, S>
Create a builder to help you perform the following task:
Creates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket’s location cannot be changed.
§Arguments
request
- No description provided.parent
- Required. The resource in which to create the log bucket: “projects/[PROJECT_ID]/locations/[LOCATION_ID]” For example:“projects/my-project/locations/global”
sourcepub fn locations_buckets_delete(
&self,
name: &str
) -> BillingAccountLocationBucketDeleteCall<'a, S>
pub fn locations_buckets_delete( &self, name: &str ) -> BillingAccountLocationBucketDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a log bucket.Changes the bucket’s lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries 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]” For example:“projects/my-project/locations/global/buckets/my-bucket”
sourcepub fn locations_buckets_get(
&self,
name: &str
) -> BillingAccountLocationBucketGetCall<'a, S>
pub fn locations_buckets_get( &self, name: &str ) -> BillingAccountLocationBucketGetCall<'a, S>
Create a builder to help you perform the following task:
Gets a log 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]” For example:“projects/my-project/locations/global/buckets/my-bucket”
sourcepub fn locations_buckets_list(
&self,
parent: &str
) -> BillingAccountLocationBucketListCall<'a, S>
pub fn locations_buckets_list( &self, parent: &str ) -> BillingAccountLocationBucketListCall<'a, S>
Create a builder to help you perform the following task:
Lists log 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.
sourcepub fn locations_buckets_patch(
&self,
request: LogBucket,
name: &str
) -> BillingAccountLocationBucketPatchCall<'a, S>
pub fn locations_buckets_patch( &self, request: LogBucket, name: &str ) -> BillingAccountLocationBucketPatchCall<'a, S>
Create a builder to help you perform the following task:
Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket’s location cannot be changed.
§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]” For example:“projects/my-project/locations/global/buckets/my-bucket”
sourcepub fn locations_buckets_undelete(
&self,
request: UndeleteBucketRequest,
name: &str
) -> BillingAccountLocationBucketUndeleteCall<'a, S>
pub fn locations_buckets_undelete( &self, request: UndeleteBucketRequest, name: &str ) -> BillingAccountLocationBucketUndeleteCall<'a, S>
Create a builder to help you perform the following task:
Undeletes a log bucket. A bucket that has been deleted can 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]” For example:“projects/my-project/locations/global/buckets/my-bucket”
sourcepub fn locations_buckets_update_async(
&self,
request: LogBucket,
name: &str
) -> BillingAccountLocationBucketUpdateAsyncCall<'a, S>
pub fn locations_buckets_update_async( &self, request: LogBucket, name: &str ) -> BillingAccountLocationBucketUpdateAsyncCall<'a, S>
Create a builder to help you perform the following task:
Updates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket’s location cannot be changed.
§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]” For example:“projects/my-project/locations/global/buckets/my-bucket”
sourcepub fn locations_operations_cancel(
&self,
request: CancelOperationRequest,
name: &str
) -> BillingAccountLocationOperationCancelCall<'a, S>
pub fn locations_operations_cancel( &self, request: CancelOperationRequest, name: &str ) -> BillingAccountLocationOperationCancelCall<'a, S>
Create a builder to help you perform the following task:
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
§Arguments
request
- No description provided.name
- The name of the operation resource to be cancelled.
sourcepub fn locations_operations_get(
&self,
name: &str
) -> BillingAccountLocationOperationGetCall<'a, S>
pub fn locations_operations_get( &self, name: &str ) -> BillingAccountLocationOperationGetCall<'a, S>
Create a builder to help you perform the following task:
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
§Arguments
name
- The name of the operation resource.
sourcepub fn locations_operations_list(
&self,
name: &str
) -> BillingAccountLocationOperationListCall<'a, S>
pub fn locations_operations_list( &self, name: &str ) -> BillingAccountLocationOperationListCall<'a, S>
Create a builder to help you perform the following task:
Lists operations that match the specified filter in the request. If the server doesn’t support this method, it returns UNIMPLEMENTED.
§Arguments
name
- The name of the operation’s parent resource.
sourcepub fn locations_recent_queries_list(
&self,
parent: &str
) -> BillingAccountLocationRecentQueryListCall<'a, S>
pub fn locations_recent_queries_list( &self, parent: &str ) -> BillingAccountLocationRecentQueryListCall<'a, S>
Create a builder to help you perform the following task:
Lists the RecentQueries that were created by the user making the request.
§Arguments
parent
- Required. The resource to which the listed queries belong. “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]” For example:projects/my-project/locations/us-central1Note: The location portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all recent queries.
sourcepub fn locations_saved_queries_create(
&self,
request: SavedQuery,
parent: &str
) -> BillingAccountLocationSavedQueryCreateCall<'a, S>
pub fn locations_saved_queries_create( &self, request: SavedQuery, parent: &str ) -> BillingAccountLocationSavedQueryCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates a new SavedQuery for the user making the request.
§Arguments
request
- No description provided.parent
- Required. The parent resource in which to create the saved query: “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]” For example: “projects/my-project/locations/global” “organizations/123456789/locations/us-central1”
sourcepub fn locations_saved_queries_delete(
&self,
name: &str
) -> BillingAccountLocationSavedQueryDeleteCall<'a, S>
pub fn locations_saved_queries_delete( &self, name: &str ) -> BillingAccountLocationSavedQueryDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes an existing SavedQuery that was created by the user making the request.
§Arguments
name
- Required. The full resource name of the saved query to delete. “projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]” “organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]” “folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]” For example: “projects/my-project/locations/global/savedQueries/my-saved-query”
sourcepub fn locations_saved_queries_list(
&self,
parent: &str
) -> BillingAccountLocationSavedQueryListCall<'a, S>
pub fn locations_saved_queries_list( &self, parent: &str ) -> BillingAccountLocationSavedQueryListCall<'a, S>
Create a builder to help you perform the following task:
Lists the SavedQueries that were created by the user making the request.
§Arguments
parent
- Required. The resource to which the listed queries belong. “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]” For example: “projects/my-project/locations/us-central1” Note: The locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character - can be used for LOCATION_ID, for example: “projects/my-project/locations/-”
sourcepub fn locations_get(&self, name: &str) -> BillingAccountLocationGetCall<'a, S>
pub fn locations_get(&self, name: &str) -> BillingAccountLocationGetCall<'a, S>
Create a builder to help you perform the following task:
Gets information about a location.
§Arguments
name
- Resource name for the location.
sourcepub fn locations_list(
&self,
name: &str
) -> BillingAccountLocationListCall<'a, S>
pub fn locations_list( &self, name: &str ) -> BillingAccountLocationListCall<'a, S>
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.
sourcepub fn logs_delete(&self, log_name: &str) -> BillingAccountLogDeleteCall<'a, S>
pub fn logs_delete(&self, log_name: &str) -> BillingAccountLogDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.
§Arguments
logName
- Required. The resource name of the log to delete: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example, “projects/my-project-id/logs/syslog”, “organizations/123/logs/cloudaudit.googleapis.com%2Factivity”.For more information about log names, see LogEntry.
sourcepub fn logs_list(&self, parent: &str) -> BillingAccountLogListCall<'a, S>
pub fn logs_list(&self, parent: &str) -> BillingAccountLogListCall<'a, S>
Create a builder to help you perform the following task:
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
§Arguments
parent
- Required. The resource name to list logs for: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
sourcepub fn sinks_create(
&self,
request: LogSink,
parent: &str
) -> BillingAccountSinkCreateCall<'a, S>
pub fn sinks_create( &self, request: LogSink, parent: &str ) -> BillingAccountSinkCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates a sink that exports specified log entries to a destination. The export begins upon ingress, 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.
§Arguments
request
- No description provided.parent
- Required. The resource in which to create the sink: “projects/[PROJECT_ID]” “organizations/[ORGANIZATION_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]” “folders/[FOLDER_ID]” For examples:“projects/my-project” “organizations/123456789”
sourcepub fn sinks_delete(
&self,
sink_name: &str
) -> BillingAccountSinkDeleteCall<'a, S>
pub fn sinks_delete( &self, sink_name: &str ) -> BillingAccountSinkDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.
§Arguments
sinkName
- Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: “projects/[PROJECT_ID]/sinks/[SINK_ID]” “organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]” “folders/[FOLDER_ID]/sinks/[SINK_ID]” For example:“projects/my-project/sinks/my-sink”
sourcepub fn sinks_get(&self, sink_name: &str) -> BillingAccountSinkGetCall<'a, S>
pub fn sinks_get(&self, sink_name: &str) -> BillingAccountSinkGetCall<'a, S>
Create a builder to help you perform the following task:
Gets a sink.
§Arguments
sinkName
- Required. The resource name of the sink: “projects/[PROJECT_ID]/sinks/[SINK_ID]” “organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]” “folders/[FOLDER_ID]/sinks/[SINK_ID]” For example:“projects/my-project/sinks/my-sink”
sourcepub fn sinks_list(&self, parent: &str) -> BillingAccountSinkListCall<'a, S>
pub fn sinks_list(&self, parent: &str) -> BillingAccountSinkListCall<'a, S>
Create a builder to help you perform the following task:
Lists sinks.
§Arguments
parent
- Required. The parent resource whose sinks are to be listed: “projects/[PROJECT_ID]” “organizations/[ORGANIZATION_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]” “folders/[FOLDER_ID]”
sourcepub fn sinks_patch(
&self,
request: LogSink,
sink_name: &str
) -> BillingAccountSinkPatchCall<'a, S>
pub fn sinks_patch( &self, request: LogSink, sink_name: &str ) -> BillingAccountSinkPatchCall<'a, S>
Create a builder to help you perform the following task:
Updates a sink. This method replaces the values of the destination and filter fields of the existing sink with the corresponding values from the new sink.The updated sink might also have a new writer_identity; see the unique_writer_identity field.
§Arguments
request
- No description provided.sinkName
- Required. The full resource name of the sink to update, including the parent resource and the sink identifier: “projects/[PROJECT_ID]/sinks/[SINK_ID]” “organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]” “folders/[FOLDER_ID]/sinks/[SINK_ID]” For example:“projects/my-project/sinks/my-sink”
sourcepub fn sinks_update(
&self,
request: LogSink,
sink_name: &str
) -> BillingAccountSinkUpdateCall<'a, S>
pub fn sinks_update( &self, request: LogSink, sink_name: &str ) -> BillingAccountSinkUpdateCall<'a, S>
Create a builder to help you perform the following task:
Updates a sink. This method replaces the values of the destination and filter fields of the existing sink with the corresponding values from the new sink.The updated sink might also have a new writer_identity; see the unique_writer_identity field.
§Arguments
request
- No description provided.sinkName
- Required. The full resource name of the sink to update, including the parent resource and the sink identifier: “projects/[PROJECT_ID]/sinks/[SINK_ID]” “organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]” “billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]” “folders/[FOLDER_ID]/sinks/[SINK_ID]” For example:“projects/my-project/sinks/my-sink”
sourcepub fn get_cmek_settings(
&self,
name: &str
) -> BillingAccountGetCmekSettingCall<'a, S>
pub fn get_cmek_settings( &self, name: &str ) -> BillingAccountGetCmekSettingCall<'a, S>
Create a builder to help you perform the following task:
Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations, and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
§Arguments
name
- Required. The resource for which to retrieve CMEK settings. “projects/[PROJECT_ID]/cmekSettings” “organizations/[ORGANIZATION_ID]/cmekSettings” “billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings” “folders/[FOLDER_ID]/cmekSettings” For example:“organizations/12345/cmekSettings“Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations, and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.
sourcepub fn get_settings(&self, name: &str) -> BillingAccountGetSettingCall<'a, S>
pub fn get_settings(&self, name: &str) -> BillingAccountGetSettingCall<'a, S>
Create a builder to help you perform the following task:
Gets the settings for the given resource.Note: Settings can be retrieved for Google Cloud projects, folders, organizations, and billing accounts.See View default resource settings for Logging (https://cloud.google.com/logging/docs/default-settings#view-org-settings) for more information.
§Arguments
name
- Required. The resource for which to retrieve settings. “projects/[PROJECT_ID]/settings” “organizations/[ORGANIZATION_ID]/settings” “billingAccounts/[BILLING_ACCOUNT_ID]/settings” “folders/[FOLDER_ID]/settings” For example:“organizations/12345/settings“Note: Settings can be retrieved for Google Cloud projects, folders, organizations, and billing accounts.