Class: IntersightClient::LicenseAccountLicenseDataAllOf
- Inherits:
-
Object
- Object
- IntersightClient::LicenseAccountLicenseDataAllOf
- Defined in:
- lib/intersight_client/models/license_account_license_data_all_of.rb
Overview
Definition of the list of properties defined in ‘license.AccountLicenseData’, excluding properties defined in parent classes.
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_id ⇒ Object
Root user’s ID of the account.
-
#agent_data ⇒ Object
Agent trusted store data.
-
#auth_expire_time ⇒ Object
Authorization expiration time.
-
#auth_initial_time ⇒ Object
Intial authorization time.
-
#auth_next_time ⇒ Object
Next time for the authorization.
-
#category ⇒ Object
Account license data category name.
-
#class_id ⇒ Object
The fully-qualified name of the instantiated, concrete type.
-
#customer_op ⇒ Object
Returns the value of attribute customer_op.
-
#default_license_type ⇒ Object
Default license tier set by user.
-
#error_desc ⇒ Object
The detailed error message when there is any error related to license sync of this account.
-
#group ⇒ Object
Account license data group name.
-
#highest_compliant_license_tier ⇒ Object
The highest license tier which is in compliant of this account.
-
#iwo_customer_op ⇒ Object
Returns the value of attribute iwo_customer_op.
-
#iwo_license_count ⇒ Object
Returns the value of attribute iwo_license_count.
-
#last_renew ⇒ Object
Specifies last certificate renew time with SA.
-
#last_sync ⇒ Object
Specifies last sync time with SA.
-
#last_updated_time ⇒ Object
Record’s last update datetime.
-
#license_state ⇒ Object
Aggregrated mode for the agent.
-
#license_tech_support_info ⇒ Object
Tech-support info of a smart-agent.
-
#licenseinfos ⇒ Object
An array of relationships to licenseLicenseInfo resources.
-
#object_type ⇒ Object
The fully-qualified name of the instantiated, concrete type.
-
#register_expire_time ⇒ Object
Registration exipiration time.
-
#register_initial_time ⇒ Object
Initial time of registration.
-
#register_next_time ⇒ Object
Next time for the license registration.
-
#registration_status ⇒ Object
Registration status of a smart-agent.
-
#renew_failure_string ⇒ Object
License renewal failure message.
-
#smart_account ⇒ Object
Name of the smart account.
-
#smartlicense_token ⇒ Object
Returns the value of attribute smartlicense_token.
-
#sync_status ⇒ Object
Current sync status for the account.
-
#virtual_account ⇒ Object
Name of the virtual account.
Class Method Summary collapse
-
.acceptable_attribute_map ⇒ Object
Returns the key-value map of all the JSON attributes this model knows about.
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ LicenseAccountLicenseDataAllOf
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ LicenseAccountLicenseDataAllOf
Initializes the object
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 222 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `IntersightClient::LicenseAccountLicenseDataAllOf` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.acceptable_attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `#{self.class.name}`. Please check the name to make sure it's valid. List of attributes: " + self.class.acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'class_id') self.class_id = attributes[:'class_id'] else self.class_id = 'license.AccountLicenseData' end if attributes.key?(:'object_type') self.object_type = attributes[:'object_type'] else self.object_type = 'license.AccountLicenseData' end if attributes.key?(:'account_id') self.account_id = attributes[:'account_id'] end if attributes.key?(:'agent_data') self.agent_data = attributes[:'agent_data'] end if attributes.key?(:'auth_expire_time') self.auth_expire_time = attributes[:'auth_expire_time'] end if attributes.key?(:'auth_initial_time') self.auth_initial_time = attributes[:'auth_initial_time'] end if attributes.key?(:'auth_next_time') self.auth_next_time = attributes[:'auth_next_time'] end if attributes.key?(:'category') self.category = attributes[:'category'] end if attributes.key?(:'default_license_type') self.default_license_type = attributes[:'default_license_type'] else self.default_license_type = 'Base' end if attributes.key?(:'error_desc') self.error_desc = attributes[:'error_desc'] end if attributes.key?(:'group') self.group = attributes[:'group'] end if attributes.key?(:'highest_compliant_license_tier') self.highest_compliant_license_tier = attributes[:'highest_compliant_license_tier'] else self.highest_compliant_license_tier = 'Base' end if attributes.key?(:'last_renew') self.last_renew = attributes[:'last_renew'] end if attributes.key?(:'last_sync') self.last_sync = attributes[:'last_sync'] end if attributes.key?(:'last_updated_time') self.last_updated_time = attributes[:'last_updated_time'] end if attributes.key?(:'license_state') self.license_state = attributes[:'license_state'] end if attributes.key?(:'license_tech_support_info') self.license_tech_support_info = attributes[:'license_tech_support_info'] end if attributes.key?(:'register_expire_time') self.register_expire_time = attributes[:'register_expire_time'] end if attributes.key?(:'register_initial_time') self.register_initial_time = attributes[:'register_initial_time'] end if attributes.key?(:'register_next_time') self.register_next_time = attributes[:'register_next_time'] end if attributes.key?(:'registration_status') self.registration_status = attributes[:'registration_status'] end if attributes.key?(:'renew_failure_string') self.renew_failure_string = attributes[:'renew_failure_string'] end if attributes.key?(:'smart_account') self.smart_account = attributes[:'smart_account'] end if attributes.key?(:'sync_status') self.sync_status = attributes[:'sync_status'] end if attributes.key?(:'virtual_account') self.virtual_account = attributes[:'virtual_account'] end if attributes.key?(:'account') self.account = attributes[:'account'] end if attributes.key?(:'customer_op') self.customer_op = attributes[:'customer_op'] end if attributes.key?(:'iwo_customer_op') self.iwo_customer_op = attributes[:'iwo_customer_op'] end if attributes.key?(:'iwo_license_count') self.iwo_license_count = attributes[:'iwo_license_count'] end if attributes.key?(:'licenseinfos') if (value = attributes[:'licenseinfos']).is_a?(Array) self.licenseinfos = value end end if attributes.key?(:'smartlicense_token') self.smartlicense_token = attributes[:'smartlicense_token'] end end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
94 95 96 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 94 def account @account end |
#account_id ⇒ Object
Root user’s ID of the account.
26 27 28 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 26 def account_id @account_id end |
#agent_data ⇒ Object
Agent trusted store data.
29 30 31 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 29 def agent_data @agent_data end |
#auth_expire_time ⇒ Object
Authorization expiration time.
32 33 34 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 32 def auth_expire_time @auth_expire_time end |
#auth_initial_time ⇒ Object
Intial authorization time.
35 36 37 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 35 def auth_initial_time @auth_initial_time end |
#auth_next_time ⇒ Object
Next time for the authorization.
38 39 40 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 38 def auth_next_time @auth_next_time end |
#category ⇒ Object
Account license data category name.
41 42 43 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 41 def category @category end |
#class_id ⇒ Object
The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data.
20 21 22 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 20 def class_id @class_id end |
#customer_op ⇒ Object
Returns the value of attribute customer_op.
96 97 98 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 96 def customer_op @customer_op end |
#default_license_type ⇒ Object
Default license tier set by user. * ‘Base` - Base as a License type. It is default license type. * `Essential` - Essential as a License type. * `Standard` - Standard as a License type. * `Advantage` - Advantage as a License type. * `Premier` - Premier as a License type. * `IWO-Essential` - IWO-Essential as a License type. * `IWO-Advantage` - IWO-Advantage as a License type. * `IWO-Premier` - IWO-Premier as a License type.
44 45 46 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 44 def default_license_type @default_license_type end |
#error_desc ⇒ Object
The detailed error message when there is any error related to license sync of this account.
47 48 49 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 47 def error_desc @error_desc end |
#group ⇒ Object
Account license data group name.
50 51 52 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 50 def group @group end |
#highest_compliant_license_tier ⇒ Object
The highest license tier which is in compliant of this account. * ‘Base` - Base as a License type. It is default license type. * `Essential` - Essential as a License type. * `Standard` - Standard as a License type. * `Advantage` - Advantage as a License type. * `Premier` - Premier as a License type. * `IWO-Essential` - IWO-Essential as a License type. * `IWO-Advantage` - IWO-Advantage as a License type. * `IWO-Premier` - IWO-Premier as a License type.
53 54 55 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 53 def highest_compliant_license_tier @highest_compliant_license_tier end |
#iwo_customer_op ⇒ Object
Returns the value of attribute iwo_customer_op.
98 99 100 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 98 def iwo_customer_op @iwo_customer_op end |
#iwo_license_count ⇒ Object
Returns the value of attribute iwo_license_count.
100 101 102 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 100 def iwo_license_count @iwo_license_count end |
#last_renew ⇒ Object
Specifies last certificate renew time with SA.
56 57 58 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 56 def last_renew @last_renew end |
#last_sync ⇒ Object
Specifies last sync time with SA.
59 60 61 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 59 def last_sync @last_sync end |
#last_updated_time ⇒ Object
Record’s last update datetime.
62 63 64 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 62 def last_updated_time @last_updated_time end |
#license_state ⇒ Object
Aggregrated mode for the agent.
65 66 67 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 65 def license_state @license_state end |
#license_tech_support_info ⇒ Object
Tech-support info of a smart-agent.
68 69 70 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 68 def license_tech_support_info @license_tech_support_info end |
#licenseinfos ⇒ Object
An array of relationships to licenseLicenseInfo resources.
103 104 105 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 103 def licenseinfos @licenseinfos end |
#object_type ⇒ Object
The fully-qualified name of the instantiated, concrete type. The value should be the same as the ‘ClassId’ property.
23 24 25 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 23 def object_type @object_type end |
#register_expire_time ⇒ Object
Registration exipiration time.
71 72 73 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 71 def register_expire_time @register_expire_time end |
#register_initial_time ⇒ Object
Initial time of registration.
74 75 76 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 74 def register_initial_time @register_initial_time end |
#register_next_time ⇒ Object
Next time for the license registration.
77 78 79 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 77 def register_next_time @register_next_time end |
#registration_status ⇒ Object
Registration status of a smart-agent.
80 81 82 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 80 def registration_status @registration_status end |
#renew_failure_string ⇒ Object
License renewal failure message.
83 84 85 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 83 def renew_failure_string @renew_failure_string end |
#smart_account ⇒ Object
Name of the smart account.
86 87 88 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 86 def smart_account @smart_account end |
#smartlicense_token ⇒ Object
Returns the value of attribute smartlicense_token.
105 106 107 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 105 def smartlicense_token @smartlicense_token end |
#sync_status ⇒ Object
Current sync status for the account.
89 90 91 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 89 def sync_status @sync_status end |
#virtual_account ⇒ Object
Name of the virtual account.
92 93 94 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 92 def virtual_account @virtual_account end |
Class Method Details
.acceptable_attribute_map ⇒ Object
Returns the key-value map of all the JSON attributes this model knows about
172 173 174 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 172 def self.acceptable_attribute_map attribute_map end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
167 168 169 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 167 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 162 163 164 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 130 def self.attribute_map { :'class_id' => :'ClassId', :'object_type' => :'ObjectType', :'account_id' => :'AccountId', :'agent_data' => :'AgentData', :'auth_expire_time' => :'AuthExpireTime', :'auth_initial_time' => :'AuthInitialTime', :'auth_next_time' => :'AuthNextTime', :'category' => :'Category', :'default_license_type' => :'DefaultLicenseType', :'error_desc' => :'ErrorDesc', :'group' => :'Group', :'highest_compliant_license_tier' => :'HighestCompliantLicenseTier', :'last_renew' => :'LastRenew', :'last_sync' => :'LastSync', :'last_updated_time' => :'LastUpdatedTime', :'license_state' => :'LicenseState', :'license_tech_support_info' => :'LicenseTechSupportInfo', :'register_expire_time' => :'RegisterExpireTime', :'register_initial_time' => :'RegisterInitialTime', :'register_next_time' => :'RegisterNextTime', :'registration_status' => :'RegistrationStatus', :'renew_failure_string' => :'RenewFailureString', :'smart_account' => :'SmartAccount', :'sync_status' => :'SyncStatus', :'virtual_account' => :'VirtualAccount', :'account' => :'Account', :'customer_op' => :'CustomerOp', :'iwo_customer_op' => :'IwoCustomerOp', :'iwo_license_count' => :'IwoLicenseCount', :'licenseinfos' => :'Licenseinfos', :'smartlicense_token' => :'SmartlicenseToken' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
494 495 496 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 494 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
214 215 216 217 218 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 214 def self.openapi_nullable Set.new([ :'licenseinfos', ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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 205 206 207 208 209 210 211 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 177 def self.openapi_types { :'class_id' => :'String', :'object_type' => :'String', :'account_id' => :'String', :'agent_data' => :'String', :'auth_expire_time' => :'String', :'auth_initial_time' => :'String', :'auth_next_time' => :'String', :'category' => :'String', :'default_license_type' => :'String', :'error_desc' => :'String', :'group' => :'String', :'highest_compliant_license_tier' => :'String', :'last_renew' => :'Time', :'last_sync' => :'Time', :'last_updated_time' => :'Time', :'license_state' => :'String', :'license_tech_support_info' => :'String', :'register_expire_time' => :'String', :'register_initial_time' => :'String', :'register_next_time' => :'String', :'registration_status' => :'String', :'renew_failure_string' => :'String', :'smart_account' => :'String', :'sync_status' => :'String', :'virtual_account' => :'String', :'account' => :'IamAccountRelationship', :'customer_op' => :'LicenseCustomerOpRelationship', :'iwo_customer_op' => :'LicenseIwoCustomerOpRelationship', :'iwo_license_count' => :'LicenseIwoLicenseCountRelationship', :'licenseinfos' => :'Array<LicenseLicenseInfoRelationship>', :'smartlicense_token' => :'LicenseSmartlicenseTokenRelationship' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 443 def ==(o) return true if self.equal?(o) self.class == o.class && class_id == o.class_id && object_type == o.object_type && account_id == o.account_id && agent_data == o.agent_data && auth_expire_time == o.auth_expire_time && auth_initial_time == o.auth_initial_time && auth_next_time == o.auth_next_time && category == o.category && default_license_type == o.default_license_type && error_desc == o.error_desc && group == o.group && highest_compliant_license_tier == o.highest_compliant_license_tier && last_renew == o.last_renew && last_sync == o.last_sync && last_updated_time == o.last_updated_time && license_state == o.license_state && license_tech_support_info == o.license_tech_support_info && register_expire_time == o.register_expire_time && register_initial_time == o.register_initial_time && register_next_time == o.register_next_time && registration_status == o.registration_status && renew_failure_string == o.renew_failure_string && smart_account == o.smart_account && sync_status == o.sync_status && virtual_account == o.virtual_account && account == o.account && customer_op == o.customer_op && iwo_customer_op == o.iwo_customer_op && iwo_license_count == o.iwo_license_count && licenseinfos == o.licenseinfos && smartlicense_token == o.smartlicense_token end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 524 def _deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = IntersightClient.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
595 596 597 598 599 600 601 602 603 604 605 606 607 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 595 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 501 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) LicenseAccountLicenseDataAllOf.openapi_types.each_pair do |key, type| if attributes[LicenseAccountLicenseDataAllOf.attribute_map[key]].nil? && LicenseAccountLicenseDataAllOf.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[LicenseAccountLicenseDataAllOf.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[LicenseAccountLicenseDataAllOf.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[LicenseAccountLicenseDataAllOf.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[LicenseAccountLicenseDataAllOf.attribute_map[key]])) end end self end |
#eql?(o) ⇒ Boolean
481 482 483 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 481 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
487 488 489 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 487 def hash [class_id, object_type, account_id, agent_data, auth_expire_time, auth_initial_time, auth_next_time, category, default_license_type, error_desc, group, highest_compliant_license_tier, last_renew, last_sync, last_updated_time, license_state, license_tech_support_info, register_expire_time, register_initial_time, register_next_time, registration_status, renew_failure_string, smart_account, sync_status, virtual_account, account, customer_op, iwo_customer_op, iwo_license_count, licenseinfos, smartlicense_token].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
372 373 374 375 376 377 378 379 380 381 382 383 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 372 def list_invalid_properties invalid_properties = Array.new if @class_id.nil? invalid_properties.push('invalid value for "class_id", class_id cannot be nil.') end if @object_type.nil? invalid_properties.push('invalid value for "object_type", object_type cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
571 572 573 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 571 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
577 578 579 580 581 582 583 584 585 586 587 588 589 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 577 def to_hash hash = {} LicenseAccountLicenseDataAllOf.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = LicenseAccountLicenseDataAllOf.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
565 566 567 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 565 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
387 388 389 390 391 392 393 394 395 396 397 398 399 |
# File 'lib/intersight_client/models/license_account_license_data_all_of.rb', line 387 def valid? return false if @class_id.nil? class_id_validator = EnumAttributeValidator.new('String', ["license.AccountLicenseData"]) return false unless class_id_validator.valid?(@class_id) return false if @object_type.nil? object_type_validator = EnumAttributeValidator.new('String', ["license.AccountLicenseData"]) return false unless object_type_validator.valid?(@object_type) default_license_type_validator = EnumAttributeValidator.new('String', ["Base", "Essential", "Standard", "Advantage", "Premier", "IWO-Essential", "IWO-Advantage", "IWO-Premier"]) return false unless default_license_type_validator.valid?(@default_license_type) highest_compliant_license_tier_validator = EnumAttributeValidator.new('String', ["Base", "Essential", "Standard", "Advantage", "Premier", "IWO-Essential", "IWO-Advantage", "IWO-Premier"]) return false unless highest_compliant_license_tier_validator.valid?(@highest_compliant_license_tier) true end |