Class: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::StorageV1beta2::ComposeRequest::SourceObject
 
- 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
Defined Under Namespace
Classes: ObjectPreconditions
Instance Attribute Summary collapse
- 
  
    
      #generation  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The generation of this object to use as the source. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The source object's name. 
- 
  
    
      #object_preconditions  ⇒ Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::ObjectPreconditions 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Conditions that must be met for this operation to execute. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ SourceObject 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SourceObject. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SourceObject
Returns a new instance of SourceObject
| 666 667 668 | # File 'generated/google/apis/storage_v1beta2/classes.rb', line 666 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#generation ⇒ Fixnum
The generation of this object to use as the source.
Corresponds to the JSON property generation
| 653 654 655 | # File 'generated/google/apis/storage_v1beta2/classes.rb', line 653 def generation @generation end | 
#name ⇒ String
The source object's name. The source object's bucket is implicitly the
destination bucket.
Corresponds to the JSON property name
| 659 660 661 | # File 'generated/google/apis/storage_v1beta2/classes.rb', line 659 def name @name end | 
#object_preconditions ⇒ Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::ObjectPreconditions
Conditions that must be met for this operation to execute.
Corresponds to the JSON property objectPreconditions
| 664 665 666 | # File 'generated/google/apis/storage_v1beta2/classes.rb', line 664 def object_preconditions @object_preconditions end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 671 672 673 674 675 | # File 'generated/google/apis/storage_v1beta2/classes.rb', line 671 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 |