Class: Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::UpdateDownloadProgress
- Inherits:
-
Object
- Object
- Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::UpdateDownloadProgress
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_download_progress.rb
Overview
Details about the download progress of update.
Instance Attribute Summary collapse
-
#download_phase ⇒ DownloadPhase
‘Unknown’, ‘Initializing’, ‘Downloading’, ‘Verifying’.
-
#number_of_updates_downloaded ⇒ Integer
Number of updates downloaded.
-
#number_of_updates_to_download ⇒ Integer
Number of updates to download.
-
#percent_complete ⇒ Integer
Percentage of completion.
-
#total_bytes_downloaded ⇒ Float
Total bytes downloaded.
-
#total_bytes_to_download ⇒ Float
Total bytes to download.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for UpdateDownloadProgress class as Ruby Hash.
Instance Attribute Details
#download_phase ⇒ DownloadPhase
‘Unknown’, ‘Initializing’, ‘Downloading’, ‘Verifying’
17 18 19 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_download_progress.rb', line 17 def download_phase @download_phase end |
#number_of_updates_downloaded ⇒ Integer
Returns Number of updates downloaded.
32 33 34 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_download_progress.rb', line 32 def number_of_updates_downloaded @number_of_updates_downloaded end |
#number_of_updates_to_download ⇒ Integer
Returns Number of updates to download.
29 30 31 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_download_progress.rb', line 29 def number_of_updates_to_download @number_of_updates_to_download end |
#percent_complete ⇒ Integer
Returns Percentage of completion.
20 21 22 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_download_progress.rb', line 20 def percent_complete @percent_complete end |
#total_bytes_downloaded ⇒ Float
Returns Total bytes downloaded.
26 27 28 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_download_progress.rb', line 26 def total_bytes_downloaded @total_bytes_downloaded end |
#total_bytes_to_download ⇒ Float
Returns Total bytes to download.
23 24 25 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_download_progress.rb', line 23 def total_bytes_to_download @total_bytes_to_download end |
Class Method Details
.mapper ⇒ Object
Mapper for UpdateDownloadProgress class as Ruby Hash. This will be used for serialization/deserialization.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_download_progress.rb', line 39 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'UpdateDownloadProgress', type: { name: 'Composite', class_name: 'UpdateDownloadProgress', model_properties: { download_phase: { client_side_validation: true, required: false, read_only: true, serialized_name: 'downloadPhase', type: { name: 'String' } }, percent_complete: { client_side_validation: true, required: false, read_only: true, serialized_name: 'percentComplete', type: { name: 'Number' } }, total_bytes_to_download: { client_side_validation: true, required: false, read_only: true, serialized_name: 'totalBytesToDownload', type: { name: 'Double' } }, total_bytes_downloaded: { client_side_validation: true, required: false, read_only: true, serialized_name: 'totalBytesDownloaded', type: { name: 'Double' } }, number_of_updates_to_download: { client_side_validation: true, required: false, read_only: true, serialized_name: 'numberOfUpdatesToDownload', type: { name: 'Number' } }, number_of_updates_downloaded: { client_side_validation: true, required: false, read_only: true, serialized_name: 'numberOfUpdatesDownloaded', type: { name: 'Number' } } } } } end |