Class: UntitledApi::InternalBoltsUpdateFwStatusRequest1
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::InternalBoltsUpdateFwStatusRequest1
- Defined in:
- lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb
Overview
InternalBoltsUpdateFwStatusRequest1 Model.
Instance Attribute Summary collapse
-
#ap ⇒ String
TODO: Write general description for this method.
-
#current_version ⇒ String
TODO: Write general description for this method.
-
#is_final_msg ⇒ Object
TODO: Write general description for this method.
-
#label ⇒ String
TODO: Write general description for this method.
-
#progress ⇒ Float
TODO: Write general description for this method.
-
#request_id ⇒ String
TODO: Write general description for this method.
-
#requested_version ⇒ String
TODO: Write general description for this method.
-
#status ⇒ String
TODO: Write general description for this method.
-
#status_id ⇒ Float
TODO: Write general description for this method.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(status = SKIP, current_version = SKIP, is_final_msg = SKIP, label = SKIP, ap = SKIP, request_id = SKIP, requested_version = SKIP, status_id = SKIP, progress = SKIP) ⇒ InternalBoltsUpdateFwStatusRequest1
constructor
A new instance of InternalBoltsUpdateFwStatusRequest1.
Methods inherited from BaseModel
Constructor Details
#initialize(status = SKIP, current_version = SKIP, is_final_msg = SKIP, label = SKIP, ap = SKIP, request_id = SKIP, requested_version = SKIP, status_id = SKIP, progress = SKIP) ⇒ InternalBoltsUpdateFwStatusRequest1
Returns a new instance of InternalBoltsUpdateFwStatusRequest1.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 83 def initialize(status = SKIP, current_version = SKIP, is_final_msg = SKIP, label = SKIP, ap = SKIP, request_id = SKIP, requested_version = SKIP, status_id = SKIP, progress = SKIP) @status = status unless status == SKIP @current_version = current_version unless current_version == SKIP @is_final_msg = is_final_msg unless is_final_msg == SKIP @label = label unless label == SKIP @ap = ap unless ap == SKIP @request_id = request_id unless request_id == SKIP @requested_version = requested_version unless requested_version == SKIP @status_id = status_id unless status_id == SKIP @progress = progress unless progress == SKIP end |
Instance Attribute Details
#ap ⇒ String
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 30 def ap @ap end |
#current_version ⇒ String
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 18 def current_version @current_version end |
#is_final_msg ⇒ Object
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 22 def is_final_msg @is_final_msg end |
#label ⇒ String
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 26 def label @label end |
#progress ⇒ Float
TODO: Write general description for this method
46 47 48 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 46 def progress @progress end |
#request_id ⇒ String
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 34 def request_id @request_id end |
#requested_version ⇒ String
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 38 def requested_version @requested_version end |
#status ⇒ String
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 14 def status @status end |
#status_id ⇒ Float
TODO: Write general description for this method
42 43 44 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 42 def status_id @status_id end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 104 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. status = hash.key?('status') ? hash['status'] : SKIP current_version = hash.key?('current_version') ? hash['current_version'] : SKIP is_final_msg = hash.key?('isFinalMsg') ? hash['isFinalMsg'] : SKIP label = hash.key?('label') ? hash['label'] : SKIP ap = hash.key?('ap') ? hash['ap'] : SKIP request_id = hash.key?('requestId') ? hash['requestId'] : SKIP requested_version = hash.key?('requested_version') ? hash['requested_version'] : SKIP status_id = hash.key?('status_id') ? hash['status_id'] : SKIP progress = hash.key?('progress') ? hash['progress'] : SKIP # Create object from extracted values. InternalBoltsUpdateFwStatusRequest1.new(status, current_version, is_final_msg, label, ap, request_id, requested_version, status_id, progress) end |
.names ⇒ Object
A mapping from model property names to API property names.
49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 49 def self.names @_hash = {} if @_hash.nil? @_hash['status'] = 'status' @_hash['current_version'] = 'current_version' @_hash['is_final_msg'] = 'isFinalMsg' @_hash['label'] = 'label' @_hash['ap'] = 'ap' @_hash['request_id'] = 'requestId' @_hash['requested_version'] = 'requested_version' @_hash['status_id'] = 'status_id' @_hash['progress'] = 'progress' @_hash end |
.nullables ⇒ Object
An array for nullable fields
79 80 81 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 79 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 64 def self.optionals %w[ status current_version is_final_msg label ap request_id requested_version status_id progress ] end |