Class: Google::Apis::OsconfigV1::GcsObject

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

Overview

Cloud Storage object representation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GcsObject

Returns a new instance of GcsObject.



409
410
411
# File 'lib/google/apis/osconfig_v1/classes.rb', line 409

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

Instance Attribute Details

#bucketString

Required. Bucket of the Cloud Storage object. Corresponds to the JSON property bucket

Returns:

  • (String)


396
397
398
# File 'lib/google/apis/osconfig_v1/classes.rb', line 396

def bucket
  @bucket
end

#generation_numberFixnum

Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. Corresponds to the JSON property generationNumber

Returns:

  • (Fixnum)


402
403
404
# File 'lib/google/apis/osconfig_v1/classes.rb', line 402

def generation_number
  @generation_number
end

#objectString

Required. Name of the Cloud Storage object. Corresponds to the JSON property object

Returns:

  • (String)


407
408
409
# File 'lib/google/apis/osconfig_v1/classes.rb', line 407

def object
  @object
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



414
415
416
417
418
# File 'lib/google/apis/osconfig_v1/classes.rb', line 414

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