Reference documentation and code samples for the Compute V1 Client class BackendBucket.
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.
Generated from protobuf message google.cloud.compute.v1.BackendBucket
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ bucket_name
string
Cloud Storage bucket name.
↳ cdn_policy
↳ compression_mode
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
string
[Output Only] Creation timestamp in RFC3339 text format.
↳ custom_response_headers
array
Headers that the Application Load Balancer should add to proxied responses.
↳ description
string
An optional textual description of the resource; provided by the client when the resource is created.
↳ edge_security_policy
string
[Output Only] The resource URL for the edge security policy associated with this backend bucket.
↳ enable_cdn
bool
If true, enable Cloud CDN for this BackendBucket.
↳ id
int|string
[Output Only] Unique identifier for the resource; defined by the server.
↳ kind
string
Type of the resource.
↳ name
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
string
[Output Only] Server-defined URL for the resource.
↳ used_by
getBucketName
Cloud Storage bucket name.
string
hasBucketName
clearBucketName
setBucketName
Cloud Storage bucket name.
var
string
$this
getCdnPolicy
Cloud CDN configuration for this BackendBucket.
hasCdnPolicy
clearCdnPolicy
setCdnPolicy
Cloud CDN configuration for this BackendBucket.
$this
getCompressionMode
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.
string
hasCompressionMode
clearCompressionMode
setCompressionMode
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.
var
string
$this
getCreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
string
hasCreationTimestamp
clearCreationTimestamp
setCreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
var
string
$this
getCustomResponseHeaders
Headers that the Application Load Balancer should add to proxied responses.
setCustomResponseHeaders
Headers that the Application Load Balancer should add to proxied responses.
var
string[]
$this
getDescription
An optional textual description of the resource; provided by the client when the resource is created.
string
hasDescription
clearDescription
setDescription
An optional textual description of the resource; provided by the client when the resource is created.
var
string
$this
getEdgeSecurityPolicy
[Output Only] The resource URL for the edge security policy associated with this backend bucket.
string
hasEdgeSecurityPolicy
clearEdgeSecurityPolicy
setEdgeSecurityPolicy
[Output Only] The resource URL for the edge security policy associated with this backend bucket.
var
string
$this
getEnableCdn
If true, enable Cloud CDN for this BackendBucket.
bool
hasEnableCdn
clearEnableCdn
setEnableCdn
If true, enable Cloud CDN for this BackendBucket.
var
bool
$this
getId
[Output Only] Unique identifier for the resource; defined by the server.
int|string
hasId
clearId
setId
[Output Only] Unique identifier for the resource; defined by the server.
var
int|string
$this
getKind
Type of the resource.
string
hasKind
clearKind
setKind
Type of the resource.
var
string
$this
getName
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.
string
hasName
clearName
setName
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.
var
string
$this
getSelfLink
[Output Only] Server-defined URL for the resource.
string
hasSelfLink
clearSelfLink
setSelfLink
[Output Only] Server-defined URL for the resource.
var
string
$this
getUsedBy
[Output Only] List of resources referencing that backend bucket.
setUsedBy
[Output Only] List of resources referencing that backend bucket.
$this