Class: Google::Apis::RunV2::GoogleCloudRunV2GcsVolumeSource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb

Overview

Represents a volume backed by a Cloud Storage bucket using Cloud Storage FUSE.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2GcsVolumeSource

Returns a new instance of GoogleCloudRunV2GcsVolumeSource.



831
832
833
# File 'lib/google/apis/run_v2/classes.rb', line 831

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bucketString

Cloud Storage Bucket name. TODO (b/344678062) Fix the error validation once dynamic mounting is public. Corresponds to the JSON property bucket

Returns:

  • (String)


823
824
825
# File 'lib/google/apis/run_v2/classes.rb', line 823

def bucket
  @bucket
end

#read_onlyBoolean Also known as: read_only?

If true, the volume will be mounted as read only for all mounts. Corresponds to the JSON property readOnly

Returns:

  • (Boolean)


828
829
830
# File 'lib/google/apis/run_v2/classes.rb', line 828

def read_only
  @read_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



836
837
838
839
# File 'lib/google/apis/run_v2/classes.rb', line 836

def update!(**args)
  @bucket = args[:bucket] if args.key?(:bucket)
  @read_only = args[:read_only] if args.key?(:read_only)
end