Class: Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Resumable
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryV1::RestMethod::MediaUpload::Protocols::Resumable
- 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
-
#multipart ⇒ Boolean
(also: #multipart?)
True if this endpoint supports uploading multipart media.
-
#path ⇒ String
The URI path to be used for upload.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Resumable
constructor
A new instance of Resumable.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Resumable
Returns a new instance of Resumable.
930 931 932 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#multipart ⇒ Boolean Also known as: multipart?
True if this endpoint supports uploading multipart media.
Corresponds to the JSON property multipart
921 922 923 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 921 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
928 929 930 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 928 def path @path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
935 936 937 938 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 935 def update!(**args) @multipart = args[:multipart] if args.key?(:multipart) @path = args[:path] if args.key?(:path) end |