# Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::BackendBucket (v3.7.0)

3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.22.0 2.21.1 2.20.0 2.19.1 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.2 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.5.0 Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::BackendBucket.

Represents a Cloud Storage Bucket resource.


<br />

This Cloud Storage bucket resource is referenced by a URL map of a load
balancer. For more information, readBackend Buckets.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #bucket_name

    def bucket_name() -> ::String

**Returns**

- (::String) --- Cloud Storage bucket name.

### #bucket_name=

    def bucket_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Cloud Storage bucket name.
**Returns**

- (::String) --- Cloud Storage bucket name.

### #cdn_policy

    def cdn_policy() -> ::Google::Cloud::Compute::V1::BackendBucketCdnPolicy

**Returns**

- ([::Google::Cloud::Compute::V1::BackendBucketCdnPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BackendBucketCdnPolicy)) --- Cloud CDN configuration for this BackendBucket.

### #cdn_policy=

    def cdn_policy=(value) -> ::Google::Cloud::Compute::V1::BackendBucketCdnPolicy

**Parameter**

- **value** ([::Google::Cloud::Compute::V1::BackendBucketCdnPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BackendBucketCdnPolicy)) --- Cloud CDN configuration for this BackendBucket.
**Returns**

- ([::Google::Cloud::Compute::V1::BackendBucketCdnPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BackendBucketCdnPolicy)) --- Cloud CDN configuration for this BackendBucket.

### #compression_mode

    def compression_mode() -> ::String

**Returns**

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

### #compression_mode=

    def compression_mode=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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

    def creation_timestamp() -> ::String

**Returns**

- (::String) --- \[Output Only\] Creation timestamp inRFC3339 text format.

### #creation_timestamp=

    def creation_timestamp=(value) -> ::String

**Parameter**

- **value** (::String) --- \[Output Only\] Creation timestamp inRFC3339 text format.
**Returns**

- (::String) --- \[Output Only\] Creation timestamp inRFC3339 text format.

### #custom_response_headers

    def custom_response_headers() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Headers that the Application Load Balancer should add to proxied responses.

### #custom_response_headers=

    def custom_response_headers=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Headers that the Application Load Balancer should add to proxied responses.
**Returns**

- (::Array\<::String\>) --- Headers that the Application Load Balancer should add to proxied responses.

### #description

    def description() -> ::String

**Returns**

- (::String) --- An optional textual description of the resource; provided by the client when the resource is created.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- An optional textual description of the resource; provided by the client when the resource is created.
**Returns**

- (::String) --- An optional textual description of the resource; provided by the client when the resource is created.

### #edge_security_policy

    def edge_security_policy() -> ::String

**Returns**

- (::String) --- \[Output Only\] The resource URL for the edge security policy associated with this backend bucket.

### #edge_security_policy=

    def edge_security_policy=(value) -> ::String

**Parameter**

- **value** (::String) --- \[Output Only\] The resource URL for the edge security policy associated with this backend bucket.
**Returns**

- (::String) --- \[Output Only\] The resource URL for the edge security policy associated with this backend bucket.

### #enable_cdn

    def enable_cdn() -> ::Boolean

**Returns**

- (::Boolean) --- If true, enable Cloud CDN for this BackendBucket.

### #enable_cdn=

    def enable_cdn=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- If true, enable Cloud CDN for this BackendBucket.
**Returns**

- (::Boolean) --- If true, enable Cloud CDN for this BackendBucket.

### #id

    def id() -> ::Integer

**Returns**

- (::Integer) --- \[Output Only\] Unique identifier for the resource; defined by the server.

### #id=

    def id=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- \[Output Only\] Unique identifier for the resource; defined by the server.
**Returns**

- (::Integer) --- \[Output Only\] Unique identifier for the resource; defined by the server.

### #kind

    def kind() -> ::String

**Returns**

- (::String) --- Output only. Type of the resource.

### #kind=

    def kind=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. Type of the resource.
**Returns**

- (::String) --- Output only. Type of the resource.

### #load_balancing_scheme

    def load_balancing_scheme() -> ::String

**Returns**

- (::String) --- The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer.

  If loadBalancingScheme is not specified, the backend bucket can be used by
  classic global external load balancers, or global application external load
  balancers, or both.
  Check the LoadBalancingScheme enum for the list of possible values.

### #load_balancing_scheme=

    def load_balancing_scheme=(value) -> ::String

**Parameter**

- **value** (::String) --- The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer.


  If loadBalancingScheme is not specified, the backend bucket can be used by
  classic global external load balancers, or global application external load
  balancers, or both.
  Check the LoadBalancingScheme enum for the list of possible values.
**Returns**

- (::String) --- The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer.

  If loadBalancingScheme is not specified, the backend bucket can be used by
  classic global external load balancers, or global application external load
  balancers, or both.
  Check the LoadBalancingScheme enum for the list of possible values.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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**

- (::String) --- Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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.

### #params

    def params() -> ::Google::Cloud::Compute::V1::BackendBucketParams

**Returns**

- ([::Google::Cloud::Compute::V1::BackendBucketParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BackendBucketParams)) --- Input only. \[Input Only\] Additional params passed with the request, but not persisted as part of resource payload.

### #params=

    def params=(value) -> ::Google::Cloud::Compute::V1::BackendBucketParams

**Parameter**

- **value** ([::Google::Cloud::Compute::V1::BackendBucketParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BackendBucketParams)) --- Input only. \[Input Only\] Additional params passed with the request, but not persisted as part of resource payload.
**Returns**

- ([::Google::Cloud::Compute::V1::BackendBucketParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BackendBucketParams)) --- Input only. \[Input Only\] Additional params passed with the request, but not persisted as part of resource payload.

### #region

    def region() -> ::String

**Returns**

- (::String) --- Output only. \[Output Only\] URL of the region where the regional backend bucket resides. This field is not applicable to global backend buckets. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

### #region=

    def region=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. \[Output Only\] URL of the region where the regional backend bucket resides. This field is not applicable to global backend buckets. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
**Returns**

- (::String) --- Output only. \[Output Only\] URL of the region where the regional backend bucket resides. This field is not applicable to global backend buckets. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

### #self_link

    def self_link() -> ::String

**Returns**

- (::String) --- \[Output Only\] Server-defined URL for the resource.

### #self_link=

    def self_link=(value) -> ::String

**Parameter**

- **value** (::String) --- \[Output Only\] Server-defined URL for the resource.
**Returns**

- (::String) --- \[Output Only\] Server-defined URL for the resource.

### #used_by

    def used_by() -> ::Array<::Google::Cloud::Compute::V1::BackendBucketUsedBy>

**Returns**

- (::Array\<[::Google::Cloud::Compute::V1::BackendBucketUsedBy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BackendBucketUsedBy)\>) --- Output only. \[Output Only\] List of resources referencing that backend bucket.

### #used_by=

    def used_by=(value) -> ::Array<::Google::Cloud::Compute::V1::BackendBucketUsedBy>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Compute::V1::BackendBucketUsedBy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BackendBucketUsedBy)\>) --- Output only. \[Output Only\] List of resources referencing that backend bucket.
**Returns**

- (::Array\<[::Google::Cloud::Compute::V1::BackendBucketUsedBy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BackendBucketUsedBy)\>) --- Output only. \[Output Only\] List of resources referencing that backend bucket.