Class: Google::Apis::OsconfigV1beta::GcsObject

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

Overview

Google Cloud Storage object representation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GcsObject

Returns a new instance of GcsObject.



550
551
552
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 550

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

Instance Attribute Details

#bucketString

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

Returns:

  • (String)


537
538
539
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 537

def bucket
  @bucket
end

#generation_numberFixnum

Required. Generation number of the Google 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)


543
544
545
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 543

def generation_number
  @generation_number
end

#objectString

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

Returns:

  • (String)


548
549
550
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 548

def object
  @object
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



555
556
557
558
559
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 555

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