Class: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::ObjectPreconditions
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::ObjectPreconditions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storage_v1beta2/classes.rb,
generated/google/apis/storage_v1beta2/representations.rb,
generated/google/apis/storage_v1beta2/representations.rb
Overview
Conditions that must be met for this operation to execute.
Instance Attribute Summary collapse
-
#if_generation_match ⇒ Fixnum
Only perform the composition if the generation of the source object that would be used matches this value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ObjectPreconditions
constructor
A new instance of ObjectPreconditions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ObjectPreconditions
Returns a new instance of ObjectPreconditions
688 689 690 |
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 688 def initialize(**args) update!(**args) end |
Instance Attribute Details
#if_generation_match ⇒ Fixnum
Only perform the composition if the generation of the source object that would
be used matches this value. If this value and a generation are both specified,
they must be the same value or the call will fail.
Corresponds to the JSON property ifGenerationMatch
686 687 688 |
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 686 def if_generation_match @if_generation_match end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
693 694 695 |
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 693 def update!(**args) @if_generation_match = args[:if_generation_match] if args.key?(:if_generation_match) end |