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 GCS Bucket mounted as a volume.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2GcsVolumeSource

Returns a new instance of GoogleCloudRunV2GcsVolumeSource.



751
752
753
# File 'lib/google/apis/run_v2/classes.rb', line 751

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

Instance Attribute Details

#bucketString

GCS Bucket name Corresponds to the JSON property bucket

Returns:

  • (String)


743
744
745
# File 'lib/google/apis/run_v2/classes.rb', line 743

def bucket
  @bucket
end

#read_onlyBoolean Also known as: read_only?

If true, mount the GCS bucket as read-only Corresponds to the JSON property readOnly

Returns:

  • (Boolean)


748
749
750
# File 'lib/google/apis/run_v2/classes.rb', line 748

def read_only
  @read_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



756
757
758
759
# File 'lib/google/apis/run_v2/classes.rb', line 756

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