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.



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

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

Instance Attribute Details

#bucketString

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

Returns:

  • (String)


289
290
291
# File 'lib/google/apis/run_v2/classes.rb', line 289

def bucket
  @bucket
end

#generationFixnum

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

Returns:

  • (Fixnum)


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

def generation
  @generation
end

#objectString

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

Returns:

  • (String)


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

def object
  @object
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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