class Google::Apis::ComputeV1::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.

Attributes

bucket_name[RW]

Cloud Storage bucket name. Corresponds to the JSON property `bucketName` @return [String]

cdn_policy[RW]

Message containing Cloud CDN configuration for a backend bucket. Corresponds to the JSON property `cdnPolicy` @return [Google::Apis::ComputeV1::BackendBucketCdnPolicy]

creation_timestamp[RW]
Output Only

Creation timestamp in RFC3339 text format.

Corresponds to the JSON property `creationTimestamp` @return [String]

custom_response_headers[RW]

Headers that the HTTP/S load balancer should add to proxied responses. Corresponds to the JSON property `customResponseHeaders` @return [Array<String>]

description[RW]

An optional textual description of the resource; provided by the client when the resource is created. Corresponds to the JSON property `description` @return [String]

edge_security_policy[RW]
Output Only

The resource URL for the edge security policy associated with

this backend bucket. Corresponds to the JSON property `edgeSecurityPolicy` @return [String]

enable_cdn[RW]

If true, enable Cloud CDN for this BackendBucket. Corresponds to the JSON property `enableCdn` @return [Boolean]

enable_cdn?[RW]

If true, enable Cloud CDN for this BackendBucket. Corresponds to the JSON property `enableCdn` @return [Boolean]

id[RW]
Output Only

Unique identifier for the resource; defined by the server.

Corresponds to the JSON property `id` @return [Fixnum]

kind[RW]

Type of the resource. Corresponds to the JSON property `kind` @return [String]

name[RW]

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]*)?` 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. Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 2640
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 2645
def update!(**args)
  @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
  @cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @custom_response_headers = args[:custom_response_headers] if args.key?(:custom_response_headers)
  @description = args[:description] if args.key?(:description)
  @edge_security_policy = args[:edge_security_policy] if args.key?(:edge_security_policy)
  @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
end