Class: Google::Apis::StorageV1::ComposeRequest::SourceObject

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

Defined Under Namespace

Classes: ObjectPreconditions

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceObject

Returns a new instance of SourceObject.


734
735
736
# File 'generated/google/apis/storage_v1/classes.rb', line 734

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

Instance Attribute Details

#generationString

The generation of this object to use as the source. Corresponds to the JSON property generation

Returns:

  • (String)

721
722
723
# File 'generated/google/apis/storage_v1/classes.rb', line 721

def generation
  @generation
end

#nameString

The source object's name. The source object's bucket is implicitly the destination bucket. Corresponds to the JSON property name

Returns:

  • (String)

727
728
729
# File 'generated/google/apis/storage_v1/classes.rb', line 727

def name
  @name
end

#object_preconditionsGoogle::Apis::StorageV1::ComposeRequest::SourceObject::ObjectPreconditions

Conditions that must be met for this operation to execute. Corresponds to the JSON property objectPreconditions


732
733
734
# File 'generated/google/apis/storage_v1/classes.rb', line 732

def object_preconditions
  @object_preconditions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


739
740
741
742
743
# File 'generated/google/apis/storage_v1/classes.rb', line 739

def update!(**args)
  @generation = args[:generation] if args.key?(:generation)
  @name = args[:name] if args.key?(:name)
  @object_preconditions = args[:object_preconditions] if args.key?(:object_preconditions)
end