Class: Google::Apis::ServiceuserV1::MediaUpload

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/serviceuser_v1/classes.rb,
generated/google/apis/serviceuser_v1/representations.rb,
generated/google/apis/serviceuser_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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MediaUpload

Returns a new instance of MediaUpload



252
253
254
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 252

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Whether upload is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


249
250
251
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 249

def enabled
  @enabled
end

#upload_serviceString

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

Returns:

  • (String)


244
245
246
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 244

def upload_service
  @upload_service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



257
258
259
260
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 257

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