Class: UntitledApi::ApiV1OrgsSsrUpgradeResponse
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::ApiV1OrgsSsrUpgradeResponse
- Defined in:
- lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb
Overview
Response data
Instance Attribute Summary collapse
-
#audit_id ⇒ String
TODO: Write general description for this method.
-
#channel ⇒ String
TODO: Write general description for this method.
-
#counts ⇒ Object
TODO: Write general description for this method.
-
#create_at ⇒ Float
TODO: Write general description for this method.
-
#device_ids ⇒ Object
TODO: Write general description for this method.
-
#device_type ⇒ String
TODO: Write general description for this method.
-
#download_start_time ⇒ Float
TODO: Write general description for this method.
-
#id ⇒ String
TODO: Write general description for this method.
-
#last_device_status_update_time ⇒ Float
TODO: Write general description for this method.
-
#reboot_at ⇒ Float
TODO: Write general description for this method.
-
#start_time ⇒ Float
TODO: Write general description for this method.
-
#status ⇒ String
TODO: Write general description for this method.
-
#strategy ⇒ String
TODO: Write general description for this method.
-
#target_count ⇒ Float
TODO: Write general description for this method.
-
#ttl ⇒ Float
TODO: Write general description for this method.
-
#versions ⇒ Object
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(create_at = SKIP, strategy = SKIP, target_count = SKIP, versions = SKIP, reboot_at = SKIP, device_type = SKIP, start_time = SKIP, last_device_status_update_time = SKIP, status = SKIP, channel = SKIP, device_ids = SKIP, download_start_time = SKIP, audit_id = SKIP, ttl = SKIP, id = SKIP, counts = SKIP) ⇒ ApiV1OrgsSsrUpgradeResponse
constructor
A new instance of ApiV1OrgsSsrUpgradeResponse.
Methods inherited from BaseModel
Constructor Details
#initialize(create_at = SKIP, strategy = SKIP, target_count = SKIP, versions = SKIP, reboot_at = SKIP, device_type = SKIP, start_time = SKIP, last_device_status_update_time = SKIP, status = SKIP, channel = SKIP, device_ids = SKIP, download_start_time = SKIP, audit_id = SKIP, ttl = SKIP, id = SKIP, counts = SKIP) ⇒ ApiV1OrgsSsrUpgradeResponse
Returns a new instance of ApiV1OrgsSsrUpgradeResponse.
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 126 def initialize(create_at = SKIP, strategy = SKIP, target_count = SKIP, versions = SKIP, reboot_at = SKIP, device_type = SKIP, start_time = SKIP, last_device_status_update_time = SKIP, status = SKIP, channel = SKIP, device_ids = SKIP, download_start_time = SKIP, audit_id = SKIP, ttl = SKIP, id = SKIP, counts = SKIP) @create_at = create_at unless create_at == SKIP @strategy = strategy unless strategy == SKIP @target_count = target_count unless target_count == SKIP @versions = versions unless versions == SKIP @reboot_at = reboot_at unless reboot_at == SKIP @device_type = device_type unless device_type == SKIP @start_time = start_time unless start_time == SKIP unless last_device_status_update_time == SKIP @last_device_status_update_time = last_device_status_update_time end @status = status unless status == SKIP @channel = channel unless channel == SKIP @device_ids = device_ids unless device_ids == SKIP @download_start_time = download_start_time unless download_start_time == SKIP @audit_id = audit_id unless audit_id == SKIP @ttl = ttl unless ttl == SKIP @id = id unless id == SKIP @counts = counts unless counts == SKIP end |
Instance Attribute Details
#audit_id ⇒ String
TODO: Write general description for this method
62 63 64 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 62 def audit_id @audit_id end |
#channel ⇒ String
TODO: Write general description for this method
50 51 52 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 50 def channel @channel end |
#counts ⇒ Object
TODO: Write general description for this method
74 75 76 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 74 def counts @counts end |
#create_at ⇒ Float
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 14 def create_at @create_at end |
#device_ids ⇒ Object
TODO: Write general description for this method
54 55 56 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 54 def device_ids @device_ids end |
#device_type ⇒ String
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 34 def device_type @device_type end |
#download_start_time ⇒ Float
TODO: Write general description for this method
58 59 60 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 58 def download_start_time @download_start_time end |
#id ⇒ String
TODO: Write general description for this method
70 71 72 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 70 def id @id end |
#last_device_status_update_time ⇒ Float
TODO: Write general description for this method
42 43 44 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 42 def last_device_status_update_time @last_device_status_update_time end |
#reboot_at ⇒ Float
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 30 def reboot_at @reboot_at end |
#start_time ⇒ Float
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 38 def start_time @start_time end |
#status ⇒ String
TODO: Write general description for this method
46 47 48 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 46 def status @status end |
#strategy ⇒ String
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 18 def strategy @strategy end |
#target_count ⇒ Float
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 22 def target_count @target_count end |
#ttl ⇒ Float
TODO: Write general description for this method
66 67 68 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 66 def ttl @ttl end |
#versions ⇒ Object
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 26 def versions @versions end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 164 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. create_at = hash.key?('create_at') ? hash['create_at'] : SKIP strategy = hash.key?('strategy') ? hash['strategy'] : SKIP target_count = hash.key?('target_count') ? hash['target_count'] : SKIP versions = hash.key?('versions') ? hash['versions'] : SKIP reboot_at = hash.key?('reboot_at') ? hash['reboot_at'] : SKIP device_type = hash.key?('device_type') ? hash['device_type'] : SKIP start_time = hash.key?('start_time') ? hash['start_time'] : SKIP last_device_status_update_time = hash.key?('last_device_status_update_time') ? hash['last_device_status_update_time'] : SKIP status = hash.key?('status') ? hash['status'] : SKIP channel = hash.key?('channel') ? hash['channel'] : SKIP device_ids = hash.key?('device_ids') ? hash['device_ids'] : SKIP download_start_time = hash.key?('download_start_time') ? hash['download_start_time'] : SKIP audit_id = hash.key?('audit_id') ? hash['audit_id'] : SKIP ttl = hash.key?('_ttl') ? hash['_ttl'] : SKIP id = hash.key?('_id') ? hash['_id'] : SKIP counts = hash.key?('counts') ? hash['counts'] : SKIP # Create object from extracted values. ApiV1OrgsSsrUpgradeResponse.new(create_at, strategy, target_count, versions, reboot_at, device_type, start_time, last_device_status_update_time, status, channel, device_ids, download_start_time, audit_id, ttl, id, counts) end |
.names ⇒ Object
A mapping from model property names to API property names.
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 77 def self.names @_hash = {} if @_hash.nil? @_hash['create_at'] = 'create_at' @_hash['strategy'] = 'strategy' @_hash['target_count'] = 'target_count' @_hash['versions'] = 'versions' @_hash['reboot_at'] = 'reboot_at' @_hash['device_type'] = 'device_type' @_hash['start_time'] = 'start_time' @_hash['last_device_status_update_time'] = 'last_device_status_update_time' @_hash['status'] = 'status' @_hash['channel'] = 'channel' @_hash['device_ids'] = 'device_ids' @_hash['download_start_time'] = 'download_start_time' @_hash['audit_id'] = 'audit_id' @_hash['ttl'] = '_ttl' @_hash['id'] = '_id' @_hash['counts'] = 'counts' @_hash end |
.nullables ⇒ Object
An array for nullable fields
122 123 124 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 122 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/untitled_api/models/api_v1_orgs_ssr_upgrade_response.rb', line 100 def self.optionals %w[ create_at strategy target_count versions reboot_at device_type start_time last_device_status_update_time status channel device_ids download_start_time audit_id ttl id counts ] end |