Class: Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols

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

Overview

Supported upload protocols.

Defined Under Namespace

Classes: Resumable, Simple

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Protocols

Returns a new instance of Protocols.



831
832
833
# File 'lib/google/apis/discovery_v1/classes.rb', line 831

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

Instance Attribute Details

#resumableGoogle::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Resumable

Supports the Resumable Media Upload protocol. Corresponds to the JSON property resumable



824
825
826
# File 'lib/google/apis/discovery_v1/classes.rb', line 824

def resumable
  @resumable
end

#simpleGoogle::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Simple

Supports uploading as a single HTTP request. Corresponds to the JSON property simple



829
830
831
# File 'lib/google/apis/discovery_v1/classes.rb', line 829

def simple
  @simple
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



836
837
838
839
# File 'lib/google/apis/discovery_v1/classes.rb', line 836

def update!(**args)
  @resumable = args[:resumable] if args.key?(:resumable)
  @simple = args[:simple] if args.key?(:simple)
end