Class: Google::Apis::RunV2::GoogleCloudRunV2CloudStorageSource

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

Cloud Storage source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2CloudStorageSource

Returns a new instance of GoogleCloudRunV2CloudStorageSource.



307
308
309
# File 'lib/google/apis/run_v2/classes.rb', line 307

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

Instance Attribute Details

#bucketString

Required. The Cloud Storage bucket name. Corresponds to the JSON property bucket

Returns:

  • (String)


295
296
297
# File 'lib/google/apis/run_v2/classes.rb', line 295

def bucket
  @bucket
end

#generationFixnum

Optional. The Cloud Storage object generation. Corresponds to the JSON property generation

Returns:

  • (Fixnum)


300
301
302
# File 'lib/google/apis/run_v2/classes.rb', line 300

def generation
  @generation
end

#objectString

Required. The Cloud Storage object name. Corresponds to the JSON property object

Returns:

  • (String)


305
306
307
# File 'lib/google/apis/run_v2/classes.rb', line 305

def object
  @object
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



312
313
314
315
316
# File 'lib/google/apis/run_v2/classes.rb', line 312

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