Compute V1 Client - Class BackendBucket (1.9.1)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ bucket_name string

Cloud Storage bucket name.

↳ cdn_policy Google\Cloud\Compute\V1\BackendBucketCdnPolicy

Cloud CDN configuration for this BackendBucket.

↳ 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 HTTP/S 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.

getBucketName

Cloud Storage bucket name.

Returns
TypeDescription
string

hasBucketName

clearBucketName

setBucketName

Cloud Storage bucket name.

Parameter
NameDescription
var string
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
var Google\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
var string
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
var string
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
var string[]
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
var string
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
var string
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
var bool
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
var int|string
Returns
TypeDescription
$this

getKind

Type of the resource.

Returns
TypeDescription
string

hasKind

clearKind

setKind

Type of the resource.

Parameter
NameDescription
var string
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
var string
Returns
TypeDescription
$this

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

Returns
TypeDescription
string

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this