Struct google_api_proto::google::cloud::compute::v1::UsageExportLocation
source · pub struct UsageExportLocation {
pub bucket_name: Option<String>,
pub report_name_prefix: Option<String>,
}
Expand description
The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix.
Fields§
§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 as example-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 in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
Implementations§
source§impl UsageExportLocation
impl UsageExportLocation
sourcepub fn bucket_name(&self) -> &str
pub fn bucket_name(&self) -> &str
Returns the value of bucket_name
, or the default value if bucket_name
is unset.
sourcepub fn report_name_prefix(&self) -> &str
pub fn report_name_prefix(&self) -> &str
Returns the value of report_name_prefix
, or the default value if report_name_prefix
is unset.
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 moresource§impl Debug for UsageExportLocation
impl Debug for UsageExportLocation
source§impl Default for UsageExportLocation
impl Default for UsageExportLocation
source§impl Message for UsageExportLocation
impl Message for UsageExportLocation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for UsageExportLocation
impl PartialEq for UsageExportLocation
source§fn eq(&self, other: &UsageExportLocation) -> bool
fn eq(&self, other: &UsageExportLocation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UsageExportLocation
Auto Trait Implementations§
impl Freeze for UsageExportLocation
impl RefUnwindSafe for UsageExportLocation
impl Send for UsageExportLocation
impl Sync for UsageExportLocation
impl Unpin for UsageExportLocation
impl UnwindSafe for UsageExportLocation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request