Class: Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Simple
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Simple
 
 
- 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
Supports uploading as a single HTTP request.
Instance Attribute Summary collapse
- 
  
    
      #multipart  ⇒ Boolean 
    
    
      (also: #multipart?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
True if this endpoint supports upload multipart media.
 - 
  
    
      #path  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The URI path to be used for upload.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Simple 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Simple.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Simple
Returns a new instance of Simple
      877 878 879  | 
    
      # File 'generated/google/apis/discovery_v1/classes.rb', line 877 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#multipart ⇒ Boolean Also known as: multipart?
True if this endpoint supports upload multipart media.
Corresponds to the JSON property multipart
      868 869 870  | 
    
      # File 'generated/google/apis/discovery_v1/classes.rb', line 868 def multipart @multipart end  | 
  
#path ⇒ String
The URI path to be used for upload. Should be used in conjunction with the
basePath property at the api-level.
Corresponds to the JSON property path
      875 876 877  | 
    
      # File 'generated/google/apis/discovery_v1/classes.rb', line 875 def path @path end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      882 883 884 885  | 
    
      # File 'generated/google/apis/discovery_v1/classes.rb', line 882 def update!(**args) @multipart = args[:multipart] if args.key?(:multipart) @path = args[:path] if args.key?(:path) end  |