Compute V1 Client - Class BackendBucket (1.5.0)

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

Generated from protobuf field optional string bucket_name = 283610048;

Returns
TypeDescription
string

hasBucketName

clearBucketName

setBucketName

Cloud Storage bucket name.

Generated from protobuf field optional string bucket_name = 283610048;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCdnPolicy

Cloud CDN configuration for this BackendBucket.

Generated from protobuf field optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;

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

hasCdnPolicy

clearCdnPolicy

setCdnPolicy

Cloud CDN configuration for this BackendBucket.

Generated from protobuf field optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;

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.

Generated from protobuf field optional string compression_mode = 95520988;

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.

Generated from protobuf field optional string compression_mode = 95520988;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Generated from protobuf field optional string creation_timestamp = 30525366;

Returns
TypeDescription
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Generated from protobuf field optional string creation_timestamp = 30525366;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCustomResponseHeaders

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

Generated from protobuf field repeated string custom_response_headers = 387539094;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCustomResponseHeaders

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

Generated from protobuf field repeated string custom_response_headers = 387539094;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getDescription

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

Generated from protobuf field optional string description = 422937596;

Returns
TypeDescription
string

hasDescription

clearDescription

setDescription

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

Generated from protobuf field optional string description = 422937596;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEdgeSecurityPolicy

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

Generated from protobuf field optional string edge_security_policy = 41036943;

Returns
TypeDescription
string

hasEdgeSecurityPolicy

clearEdgeSecurityPolicy

setEdgeSecurityPolicy

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

Generated from protobuf field optional string edge_security_policy = 41036943;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEnableCdn

If true, enable Cloud CDN for this BackendBucket.

Generated from protobuf field optional bool enable_cdn = 282942321;

Returns
TypeDescription
bool

hasEnableCdn

clearEnableCdn

setEnableCdn

If true, enable Cloud CDN for this BackendBucket.

Generated from protobuf field optional bool enable_cdn = 282942321;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getId

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

Generated from protobuf field optional uint64 id = 3355;

Returns
TypeDescription
int|string

hasId

clearId

setId

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

Generated from protobuf field optional uint64 id = 3355;

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getKind

Type of the resource.

Generated from protobuf field optional string kind = 3292052;

Returns
TypeDescription
string

hasKind

clearKind

setKind

Type of the resource.

Generated from protobuf field optional string kind = 3292052;

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.

Generated from protobuf field optional string name = 3373707;

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.

Generated from protobuf field optional string name = 3373707;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

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

Generated from protobuf field optional string self_link = 456214797;

Returns
TypeDescription
string

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

Generated from protobuf field optional string self_link = 456214797;

Parameter
NameDescription
var string
Returns
TypeDescription
$this