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

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

Defined Under Namespace

Classes: ObjectPreconditions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SourceObject

Returns a new instance of SourceObject.



1094
1095
1096
# File 'lib/google/apis/storage_v1/classes.rb', line 1094

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

Instance Attribute Details

#generationFixnum

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

Returns:

  • (Fixnum)


1082
1083
1084
# File 'lib/google/apis/storage_v1/classes.rb', line 1082

def generation
  @generation
end

#nameString

The source object's name. All source objects must reside in the same bucket. Corresponds to the JSON property name

Returns:

  • (String)


1087
1088
1089
# File 'lib/google/apis/storage_v1/classes.rb', line 1087

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



1092
1093
1094
# File 'lib/google/apis/storage_v1/classes.rb', line 1092

def object_preconditions
  @object_preconditions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1099
1100
1101
1102
1103
# File 'lib/google/apis/storage_v1/classes.rb', line 1099

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