Struct google_api_proto::google::cloud::compute::v1::BackendBucket
source · pub struct BackendBucket {
pub bucket_name: Option<String>,
pub cdn_policy: Option<BackendBucketCdnPolicy>,
pub compression_mode: Option<String>,
pub creation_timestamp: Option<String>,
pub custom_response_headers: Vec<String>,
pub description: Option<String>,
pub edge_security_policy: Option<String>,
pub enable_cdn: Option<bool>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub self_link: Option<String>,
}
Expand description
Represents a Cloud Storage Bucket resource. This Cloud Storage bucket resource is referenced by a URL map of a load balancer. For more information, read Backend Buckets.
Fields§
§bucket_name: Option<String>
Cloud Storage bucket name.
cdn_policy: Option<BackendBucketCdnPolicy>
Cloud CDN configuration for this BackendBucket.
compression_mode: Option<String>
Compress text responses using Brotli or gzip compression, based on the client’s Accept-Encoding header. Check the CompressionMode enum for the list of possible values.
creation_timestamp: Option<String>
[Output Only] Creation timestamp in RFC3339 text format.
custom_response_headers: Vec<String>
Headers that the Application Load Balancer should add to proxied responses.
description: Option<String>
An optional textual description of the resource; provided by the client when the resource is created.
edge_security_policy: Option<String>
[Output Only] The resource URL for the edge security policy associated with this backend bucket.
enable_cdn: Option<bool>
If true, enable Cloud CDN for this BackendBucket.
id: Option<u64>
[Output Only] Unique identifier for the resource; defined by the server.
kind: Option<String>
Type of the resource.
name: Option<String>
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](\[-a-z0-9\]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
self_link: Option<String>
[Output Only] Server-defined URL for the resource.
Implementations§
source§impl BackendBucket
impl BackendBucket
sourcepub fn creation_timestamp(&self) -> &str
pub fn creation_timestamp(&self) -> &str
Returns the value of creation_timestamp
, or the default value if creation_timestamp
is unset.
sourcepub fn edge_security_policy(&self) -> &str
pub fn edge_security_policy(&self) -> &str
Returns the value of edge_security_policy
, or the default value if edge_security_policy
is unset.
sourcepub fn compression_mode(&self) -> &str
pub fn compression_mode(&self) -> &str
Returns the value of compression_mode
, or the default value if compression_mode
is unset.
sourcepub fn enable_cdn(&self) -> bool
pub fn enable_cdn(&self) -> bool
Returns the value of enable_cdn
, or the default value if enable_cdn
is unset.
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 description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
Trait Implementations§
source§impl Clone for BackendBucket
impl Clone for BackendBucket
source§fn clone(&self) -> BackendBucket
fn clone(&self) -> BackendBucket
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BackendBucket
impl Debug for BackendBucket
source§impl Default for BackendBucket
impl Default for BackendBucket
source§impl Message for BackendBucket
impl Message for BackendBucket
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 BackendBucket
impl PartialEq for BackendBucket
source§fn eq(&self, other: &BackendBucket) -> bool
fn eq(&self, other: &BackendBucket) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BackendBucket
Auto Trait Implementations§
impl Freeze for BackendBucket
impl RefUnwindSafe for BackendBucket
impl Send for BackendBucket
impl Sync for BackendBucket
impl Unpin for BackendBucket
impl UnwindSafe for BackendBucket
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