Class: Google::Apis::ServicemanagementV1::MediaUpload
- Inherits:
-
Object
- Object
- Google::Apis::ServicemanagementV1::MediaUpload
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicemanagement_v1/classes.rb,
generated/google/apis/servicemanagement_v1/representations.rb,
generated/google/apis/servicemanagement_v1/representations.rb
Overview
Use this only for Scotty Requests. Do not use this for media support using Bytestream, add instead [][google.bytestream.RestByteStream] as an API to your configuration for Bytestream methods.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether upload is enabled.
-
#upload_service ⇒ String
DO NOT USE THIS FIELD UNTIL THIS WARNING IS REMOVED.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MediaUpload
constructor
A new instance of MediaUpload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MediaUpload
Returns a new instance of MediaUpload
4922 4923 4924 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 4922 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Whether upload is enabled.
Corresponds to the JSON property enabled
4919 4920 4921 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 4919 def enabled @enabled end |
#upload_service ⇒ String
DO NOT USE THIS FIELD UNTIL THIS WARNING IS REMOVED.
Specify name of the upload service if one is used for upload.
Corresponds to the JSON property uploadService
4914 4915 4916 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 4914 def upload_service @upload_service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4927 4928 4929 4930 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 4927 def update!(**args) @upload_service = args[:upload_service] if args.key?(:upload_service) @enabled = args[:enabled] if args.key?(:enabled) end |