#[non_exhaustive]pub struct UsageExportLocation {
pub bucket_name: Option<String>,
pub report_name_prefix: Option<String>,
/* private fields */
}projects only.Expand description
The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bucket_name: Option<String>The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such asexample-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
report_name_prefix: Option<String>An optional prefix for the name of the usage report object stored inbucketName. If not supplied, defaults tousage_gce. The report is stored as a CSV file namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storageobject naming conventions.
Implementations§
Source§impl UsageExportLocation
impl UsageExportLocation
pub fn new() -> Self
Sourcepub fn set_bucket_name<T>(self, v: T) -> Self
pub fn set_bucket_name<T>(self, v: T) -> Self
Sets the value of bucket_name.
§Example
let x = UsageExportLocation::new().set_bucket_name("example");Sourcepub fn set_or_clear_bucket_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_bucket_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of bucket_name.
§Example
let x = UsageExportLocation::new().set_or_clear_bucket_name(Some("example"));
let x = UsageExportLocation::new().set_or_clear_bucket_name(None::<String>);Sourcepub fn set_report_name_prefix<T>(self, v: T) -> Self
pub fn set_report_name_prefix<T>(self, v: T) -> Self
Sets the value of report_name_prefix.
§Example
let x = UsageExportLocation::new().set_report_name_prefix("example");Sourcepub fn set_or_clear_report_name_prefix<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_report_name_prefix<T>(self, v: Option<T>) -> Self
Sets or clears the value of report_name_prefix.
§Example
let x = UsageExportLocation::new().set_or_clear_report_name_prefix(Some("example"));
let x = UsageExportLocation::new().set_or_clear_report_name_prefix(None::<String>);Trait Implementations§
Source§impl Clone for UsageExportLocation
impl Clone for UsageExportLocation
Source§fn clone(&self) -> UsageExportLocation
fn clone(&self) -> UsageExportLocation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more