Class: UntitledApi::InternalBoltsUpdateFwStatusRequest1

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb

Overview

InternalBoltsUpdateFwStatusRequest1 Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

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

#apString

TODO: Write general description for this method

Returns:

  • (String)


30
31
32
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 30

def ap
  @ap
end

#current_versionString

TODO: Write general description for this method

Returns:

  • (String)


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_msgObject

TODO: Write general description for this method

Returns:

  • (Object)


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

#labelString

TODO: Write general description for this method

Returns:

  • (String)


26
27
28
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 26

def label
  @label
end

#progressFloat

TODO: Write general description for this method

Returns:

  • (Float)


46
47
48
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 46

def progress
  @progress
end

#request_idString

TODO: Write general description for this method

Returns:

  • (String)


34
35
36
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 34

def request_id
  @request_id
end

#requested_versionString

TODO: Write general description for this method

Returns:

  • (String)


38
39
40
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 38

def requested_version
  @requested_version
end

#statusString

TODO: Write general description for this method

Returns:

  • (String)


14
15
16
# File 'lib/untitled_api/models/internal_bolts_update_fw_status_request1.rb', line 14

def status
  @status
end

#status_idFloat

TODO: Write general description for this method

Returns:

  • (Float)


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

.namesObject

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

.nullablesObject

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

.optionalsObject

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