class Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols

Supported upload protocols.

Attributes

resumable[RW]

Supports the Resumable Media Upload protocol. Corresponds to the JSON property ‘resumable` @return [Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Resumable]

simple[RW]

Supports uploading as a single HTTP request. Corresponds to the JSON property ‘simple` @return [Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Simple]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/discovery_v1/classes.rb, line 831
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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