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

Defines the Media configuration for a service in case of a download. 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



2541
2542
2543
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2541

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

Instance Attribute Details

#complete_notificationBoolean Also known as: complete_notification?

A boolean that determines whether a notification for the completion of a download should be sent to the backend. Corresponds to the JSON property completeNotification

Returns:

  • (Boolean)


2520
2521
2522
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2520

def complete_notification
  @complete_notification
end

#download_serviceString

DO NOT USE FIELDS BELOW THIS LINE 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)


2514
2515
2516
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2514

def download_service
  @download_service
end

#dropzoneString

Name of the Scotty dropzone to use for the current API. Corresponds to the JSON property dropzone

Returns:

  • (String)


2526
2527
2528
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2526

def dropzone
  @dropzone
end

#enabledBoolean Also known as: enabled?

Whether download is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


2507
2508
2509
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2507

def enabled
  @enabled
end

#max_direct_download_sizeFixnum

Optional maximum acceptable size for direct download. The size is specified in bytes. Corresponds to the JSON property maxDirectDownloadSize

Returns:

  • (Fixnum)


2532
2533
2534
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2532

def max_direct_download_size
  @max_direct_download_size
end

#use_direct_downloadBoolean Also known as: use_direct_download?

A boolean that determines if direct download from ESF should be used for download of this media. Corresponds to the JSON property useDirectDownload

Returns:

  • (Boolean)


2538
2539
2540
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2538

def use_direct_download
  @use_direct_download
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2546
2547
2548
2549
2550
2551
2552
2553
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2546

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