Class: Google::Apis::OsconfigV1beta::GcsObject
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::GcsObject
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1beta/classes.rb,
lib/google/apis/osconfig_v1beta/representations.rb,
lib/google/apis/osconfig_v1beta/representations.rb
Overview
Google Cloud Storage object representation.
Instance Attribute Summary collapse
-
#bucket ⇒ String
Required.
-
#generation_number ⇒ Fixnum
Required.
-
#object ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GcsObject
constructor
A new instance of GcsObject.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GcsObject
Returns a new instance of GcsObject.
549 550 551 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 549 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket ⇒ String
Required. Bucket of the Google Cloud Storage object.
Corresponds to the JSON property bucket
536 537 538 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 536 def bucket @bucket end |
#generation_number ⇒ Fixnum
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
542 543 544 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 542 def generation_number @generation_number end |
#object ⇒ String
Required. Name of the Google Cloud Storage object.
Corresponds to the JSON property object
547 548 549 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 547 def object @object end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
554 555 556 557 558 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 554 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 |