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

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

Supports the Resumable Media Upload protocol.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Resumable

Returns a new instance of Resumable.



857
858
859
# File 'lib/google/apis/discovery_v1/classes.rb', line 857

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

Instance Attribute Details

#multipartBoolean Also known as: multipart?

True if this endpoint supports uploading multipart media. Corresponds to the JSON property multipart

Returns:

  • (Boolean)


848
849
850
# File 'lib/google/apis/discovery_v1/classes.rb', line 848

def multipart
  @multipart
end

#pathString

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

Returns:

  • (String)


855
856
857
# File 'lib/google/apis/discovery_v1/classes.rb', line 855

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



862
863
864
865
# File 'lib/google/apis/discovery_v1/classes.rb', line 862

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