Class: Google::Apis::ServicemanagementV1::MediaDownload

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MediaDownload

Returns a new instance of MediaDownload



216
217
218
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 216

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

Instance Attribute Details

#download_serviceString

DO NOT USE THIS FIELD UNTIL THIS WARNING IS REMOVED. Specify name of the download service if one is used for download. Corresponds to the JSON property downloadService

Returns:

  • (String)


214
215
216
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 214

def download_service
  @download_service
end

#enabledBoolean Also known as: enabled?

Whether download is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


207
208
209
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 207

def enabled
  @enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



221
222
223
224
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 221

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