Class: Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/discovery_v1/classes.rb,
 generated/google/apis/discovery_v1/representations.rb,
 generated/google/apis/discovery_v1/representations.rb
Overview
Supported upload protocols.
Defined Under Namespace
Instance Attribute Summary collapse
- 
  
    
      #resumable  ⇒ Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Resumable 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Supports the Resumable Media Upload protocol. 
- 
  
    
      #simple  ⇒ Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Simple 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Supports uploading as a single HTTP request. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Protocols 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Protocols. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Protocols
Returns a new instance of Protocols
| 824 825 826 | # File 'generated/google/apis/discovery_v1/classes.rb', line 824 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#resumable ⇒ Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Resumable
Supports the Resumable Media Upload protocol.
Corresponds to the JSON property resumable
| 817 818 819 | # File 'generated/google/apis/discovery_v1/classes.rb', line 817 def resumable @resumable end | 
#simple ⇒ Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Simple
Supports uploading as a single HTTP request.
Corresponds to the JSON property simple
| 822 823 824 | # File 'generated/google/apis/discovery_v1/classes.rb', line 822 def simple @simple end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 829 830 831 832 | # File 'generated/google/apis/discovery_v1/classes.rb', line 829 def update!(**args) @resumable = args[:resumable] if args.key?(:resumable) @simple = args[:simple] if args.key?(:simple) end |