Compute V1 Client - Class BackendBucket (1.8.3)

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

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ bucket_namestring

Cloud Storage bucket name.

↳ cdn_policyGoogle\Cloud\Compute\V1\BackendBucketCdnPolicy

Cloud CDN configuration for this BackendBucket.

↳ compression_modestring

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_timestampstring

[Output Only] Creation timestamp in RFC3339 text format.

↳ custom_response_headersarray

Headers that the HTTP/S load balancer should add to proxied responses.

↳ descriptionstring

An optional textual description of the resource; provided by the client when the resource is created.

↳ edge_security_policystring

[Output Only] The resource URL for the edge security policy associated with this backend bucket.

↳ enable_cdnbool

If true, enable Cloud CDN for this BackendBucket.

↳ idint|string

[Output Only] Unique identifier for the resource; defined by the server.

↳ kindstring

Type of the resource.

↳ namestring

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_linkstring

[Output Only] Server-defined URL for the resource.

getBucketName

Cloud Storage bucket name.

Returns
TypeDescription
string

hasBucketName

clearBucketName

setBucketName

Cloud Storage bucket name.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCdnPolicy

Cloud CDN configuration for this BackendBucket.

Returns
TypeDescription
Google\Cloud\Compute\V1\BackendBucketCdnPolicy|null

hasCdnPolicy

clearCdnPolicy

setCdnPolicy

Cloud CDN configuration for this BackendBucket.

Parameter
NameDescription
varGoogle\Cloud\Compute\V1\BackendBucketCdnPolicy
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Returns
TypeDescription
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCustomResponseHeaders

Headers that the HTTP/S load balancer should add to proxied responses.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCustomResponseHeaders

Headers that the HTTP/S load balancer should add to proxied responses.

Parameter
NameDescription
varstring[]
Returns
TypeDescription
$this

getDescription

An optional textual description of the resource; provided by the client when the resource is created.

Returns
TypeDescription
string

hasDescription

clearDescription

setDescription

An optional textual description of the resource; provided by the client when the resource is created.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getEdgeSecurityPolicy

[Output Only] The resource URL for the edge security policy associated with this backend bucket.

Returns
TypeDescription
string

hasEdgeSecurityPolicy

clearEdgeSecurityPolicy

setEdgeSecurityPolicy

[Output Only] The resource URL for the edge security policy associated with this backend bucket.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getEnableCdn

If true, enable Cloud CDN for this BackendBucket.

Returns
TypeDescription
bool

hasEnableCdn

clearEnableCdn

setEnableCdn

If true, enable Cloud CDN for this BackendBucket.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

getId

[Output Only] Unique identifier for the resource; defined by the server.

Returns
TypeDescription
int|string

hasId

clearId

setId

[Output Only] Unique identifier for the resource; defined by the server.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getKind

Type of the resource.

Returns
TypeDescription
string

hasKind

clearKind

setKind

Type of the resource.

Parameter
NameDescription
varstring
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

[Output Only] Server-defined URL for the resource.

Returns
TypeDescription
string

[Output Only] Server-defined URL for the resource.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this