Class: EmassClient::SwBaselineOptionalFields
- Inherits:
-
Object
- Object
- EmassClient::SwBaselineOptionalFields
- Defined in:
- lib/emass_client/models/sw_baseline_optional_fields.rb
Instance Attribute Summary collapse
-
#approval_status ⇒ Object
- Optional
-
Approval status of the software asset.
-
#approved_waiver ⇒ Object
- Optional
-
Approved waiver.
-
#cost_per_license ⇒ Object
- Optional
-
Cost per license of the software asset.
-
#critical_asset ⇒ Object
- Optional
-
Indicates whether the asset is a critical information system asset.
-
#cryptographic_hash ⇒ Object
- Optional
-
Cryptographic hash of the software asset.
-
#end_of_life_support_date ⇒ Object
- Optional
-
End of life support date of the software asset.
-
#extended_end_of_life_support_date ⇒ Object
- Optional
-
If set, the Extended End of Life/Support Date cannot occur prior to the End of Life/Support Date.
-
#fiscal_year ⇒ Object
- Optional
-
Fiscal year (FY) of the software asset.
-
#hosting_environment ⇒ Object
- Optional
-
Hosting environment of the software asset.
-
#in_service_data ⇒ Object
- Optional
-
In-service data of the software asset.
-
#it_budget_uii ⇒ Object
- Optional
-
IT budget UII of the software asset.
-
#license_expiration_date ⇒ Object
- Optional
-
License expiration date for the software asset.
-
#license_or_contract ⇒ Object
- Optional
-
License or contract number of the software asset.
-
#license_poc ⇒ Object
- Optional
-
Point of contact (POC) for the software asset.
-
#license_renewal_date ⇒ Object
- Optional
-
License renewal date for the software asset.
-
#license_term ⇒ Object
- Optional
-
License term of the software asset.
-
#licenses_used ⇒ Object
- Optional
-
Number of licenses used for the software asset.
-
#location ⇒ Object
- Optional
-
Location of the software asset.
-
#maintenance_date ⇒ Object
- Optional
-
Maintenance date of the software asset.
-
#network ⇒ Object
- Optional
-
Network of the software asset.
-
#parent_system ⇒ Object
- Optional
-
Parent system of the software asset.
-
#pop_end_date ⇒ Object
- Optional
-
Period of performance (POP) end date of the software asset.
-
#purpose ⇒ Object
- Optional
-
Purpose of the software asset.
-
#release_date ⇒ Object
- Optional
-
Release date of the software asset.
-
#retirement_date ⇒ Object
- Optional
-
Retirement date of the software asset.
-
#software_dependencies ⇒ Object
- Optional
-
Dependencies of the software asset.
-
#software_type ⇒ Object
- Optional
-
Type of the software asset.
-
#subsystem ⇒ Object
- Optional
-
Subsystem of the software asset.
-
#total_license_cost ⇒ Object
- Optional
-
Total license cost of the software asset.
-
#total_licenses ⇒ Object
- Optional
-
Total licenses of the software asset.
-
#unapproved_software_from_trm ⇒ Object
- Optional
-
Unapproved software from TRM.
-
#unsupported_operating_system ⇒ Object
- Optional
-
Unsupported operating system.
Class Method Summary collapse
-
._deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
.acceptable_attribute_map ⇒ Object
Returns attribute mapping 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.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ SwBaselineOptionalFields
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 = {}) ⇒ SwBaselineOptionalFields
Initializes the object
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 369 370 371 372 373 374 375 376 377 378 379 380 381 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 240 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::SwBaselineOptionalFields` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| if (!acceptable_attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::SwBaselineOptionalFields`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'software_type') self.software_type = attributes[:'software_type'] end if attributes.key?(:'parent_system') self.parent_system = attributes[:'parent_system'] end if attributes.key?(:'subsystem') self.subsystem = attributes[:'subsystem'] end if attributes.key?(:'network') self.network = attributes[:'network'] end if attributes.key?(:'hosting_environment') self.hosting_environment = attributes[:'hosting_environment'] end if attributes.key?(:'software_dependencies') self.software_dependencies = attributes[:'software_dependencies'] end if attributes.key?(:'cryptographic_hash') self.cryptographic_hash = attributes[:'cryptographic_hash'] end if attributes.key?(:'in_service_data') self.in_service_data = attributes[:'in_service_data'] end if attributes.key?(:'it_budget_uii') self.it_budget_uii = attributes[:'it_budget_uii'] end if attributes.key?(:'fiscal_year') self.fiscal_year = attributes[:'fiscal_year'] end if attributes.key?(:'pop_end_date') self.pop_end_date = attributes[:'pop_end_date'] end if attributes.key?(:'license_or_contract') self.license_or_contract = attributes[:'license_or_contract'] end if attributes.key?(:'license_term') self.license_term = attributes[:'license_term'] end if attributes.key?(:'cost_per_license') self.cost_per_license = attributes[:'cost_per_license'] end if attributes.key?(:'total_licenses') self.total_licenses = attributes[:'total_licenses'] end if attributes.key?(:'total_license_cost') self.total_license_cost = attributes[:'total_license_cost'] end if attributes.key?(:'licenses_used') self.licenses_used = attributes[:'licenses_used'] end if attributes.key?(:'license_poc') self.license_poc = attributes[:'license_poc'] end if attributes.key?(:'license_renewal_date') self.license_renewal_date = attributes[:'license_renewal_date'] end if attributes.key?(:'license_expiration_date') self.license_expiration_date = attributes[:'license_expiration_date'] end if attributes.key?(:'approval_status') self.approval_status = attributes[:'approval_status'] end if attributes.key?(:'release_date') self.release_date = attributes[:'release_date'] end if attributes.key?(:'maintenance_date') self.maintenance_date = attributes[:'maintenance_date'] end if attributes.key?(:'retirement_date') self.retirement_date = attributes[:'retirement_date'] end if attributes.key?(:'end_of_life_support_date') self.end_of_life_support_date = attributes[:'end_of_life_support_date'] end if attributes.key?(:'extended_end_of_life_support_date') self.extended_end_of_life_support_date = attributes[:'extended_end_of_life_support_date'] end if attributes.key?(:'critical_asset') self.critical_asset = attributes[:'critical_asset'] end if attributes.key?(:'location') self.location = attributes[:'location'] end if attributes.key?(:'purpose') self.purpose = attributes[:'purpose'] end if attributes.key?(:'unsupported_operating_system') self. = attributes[:'unsupported_operating_system'] end if attributes.key?(:'unapproved_software_from_trm') self.unapproved_software_from_trm = attributes[:'unapproved_software_from_trm'] end if attributes.key?(:'approved_waiver') self.approved_waiver = attributes[:'approved_waiver'] end end |
Instance Attribute Details
#approval_status ⇒ Object
- Optional
-
Approval status of the software asset.
79 80 81 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 79 def approval_status @approval_status end |
#approved_waiver ⇒ Object
- Optional
-
Approved waiver. VA only
112 113 114 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 112 def approved_waiver @approved_waiver end |
#cost_per_license ⇒ Object
- Optional
-
Cost per license of the software asset. Number will be converted to display 2 decimal points.
58 59 60 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 58 def cost_per_license @cost_per_license end |
#critical_asset ⇒ Object
- Optional
-
Indicates whether the asset is a critical information system asset.
97 98 99 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 97 def critical_asset @critical_asset end |
#cryptographic_hash ⇒ Object
- Optional
-
Cryptographic hash of the software asset.
37 38 39 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 37 def cryptographic_hash @cryptographic_hash end |
#end_of_life_support_date ⇒ Object
- Optional
-
End of life support date of the software asset.
91 92 93 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 91 def end_of_life_support_date @end_of_life_support_date end |
#extended_end_of_life_support_date ⇒ Object
- Optional
-
If set, the Extended End of Life/Support Date cannot occur prior to the End of Life/Support Date.
94 95 96 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 94 def extended_end_of_life_support_date @extended_end_of_life_support_date end |
#fiscal_year ⇒ Object
- Optional
-
Fiscal year (FY) of the software asset.
46 47 48 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 46 def fiscal_year @fiscal_year end |
#hosting_environment ⇒ Object
- Optional
-
Hosting environment of the software asset.
31 32 33 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 31 def hosting_environment @hosting_environment end |
#in_service_data ⇒ Object
- Optional
-
In-service data of the software asset.
40 41 42 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 40 def in_service_data @in_service_data end |
#it_budget_uii ⇒ Object
- Optional
-
IT budget UII of the software asset.
43 44 45 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 43 def it_budget_uii @it_budget_uii end |
#license_expiration_date ⇒ Object
- Optional
-
License expiration date for the software asset.
76 77 78 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 76 def license_expiration_date @license_expiration_date end |
#license_or_contract ⇒ Object
- Optional
-
License or contract number of the software asset.
52 53 54 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 52 def license_or_contract @license_or_contract end |
#license_poc ⇒ Object
- Optional
-
Point of contact (POC) for the software asset.
70 71 72 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 70 def license_poc @license_poc end |
#license_renewal_date ⇒ Object
- Optional
-
License renewal date for the software asset.
73 74 75 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 73 def license_renewal_date @license_renewal_date end |
#license_term ⇒ Object
- Optional
-
License term of the software asset.
55 56 57 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 55 def license_term @license_term end |
#licenses_used ⇒ Object
- Optional
-
Number of licenses used for the software asset.
67 68 69 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 67 def licenses_used @licenses_used end |
#location ⇒ Object
- Optional
-
Location of the software asset.
100 101 102 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 100 def location @location end |
#maintenance_date ⇒ Object
- Optional
-
Maintenance date of the software asset.
85 86 87 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 85 def maintenance_date @maintenance_date end |
#network ⇒ Object
- Optional
-
Network of the software asset.
28 29 30 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 28 def network @network end |
#parent_system ⇒ Object
- Optional
-
Parent system of the software asset.
22 23 24 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 22 def parent_system @parent_system end |
#pop_end_date ⇒ Object
- Optional
-
Period of performance (POP) end date of the software asset.
49 50 51 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 49 def pop_end_date @pop_end_date end |
#purpose ⇒ Object
- Optional
-
Purpose of the software asset.
103 104 105 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 103 def purpose @purpose end |
#release_date ⇒ Object
- Optional
-
Release date of the software asset.
82 83 84 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 82 def release_date @release_date end |
#retirement_date ⇒ Object
- Optional
-
Retirement date of the software asset.
88 89 90 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 88 def retirement_date @retirement_date end |
#software_dependencies ⇒ Object
- Optional
-
Dependencies of the software asset.
34 35 36 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 34 def software_dependencies @software_dependencies end |
#software_type ⇒ Object
- Optional
-
Type of the software asset.
19 20 21 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 19 def software_type @software_type end |
#subsystem ⇒ Object
- Optional
-
Subsystem of the software asset.
25 26 27 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 25 def subsystem @subsystem end |
#total_license_cost ⇒ Object
- Optional
-
Total license cost of the software asset. Number will be converted to display 2 decimal points.
64 65 66 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 64 def total_license_cost @total_license_cost end |
#total_licenses ⇒ Object
- Optional
-
Total licenses of the software asset.
61 62 63 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 61 def total_licenses @total_licenses end |
#unapproved_software_from_trm ⇒ Object
- Optional
-
Unapproved software from TRM. VA only
109 110 111 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 109 def unapproved_software_from_trm @unapproved_software_from_trm end |
#unsupported_operating_system ⇒ Object
- Optional
-
Unsupported operating system. VA only.
106 107 108 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 106 def end |
Class Method Details
._deserialize(type, value) ⇒ Object
Deserializes the data based on type
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 476 def self._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 = EmassClient.const_get(type) klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about
153 154 155 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 153 def self.acceptable_attribute_map attribute_map end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
158 159 160 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 158 def self.acceptable_attributes acceptable_attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
115 116 117 118 119 120 121 122 123 124 125 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 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 115 def self.attribute_map { :'software_type' => :'softwareType', :'parent_system' => :'parentSystem', :'subsystem' => :'subsystem', :'network' => :'network', :'hosting_environment' => :'hostingEnvironment', :'software_dependencies' => :'softwareDependencies', :'cryptographic_hash' => :'cryptographicHash', :'in_service_data' => :'inServiceData', :'it_budget_uii' => :'itBudgetUii', :'fiscal_year' => :'fiscalYear', :'pop_end_date' => :'popEndDate', :'license_or_contract' => :'licenseOrContract', :'license_term' => :'licenseTerm', :'cost_per_license' => :'costPerLicense', :'total_licenses' => :'totalLicenses', :'total_license_cost' => :'totalLicenseCost', :'licenses_used' => :'licensesUsed', :'license_poc' => :'licensePoc', :'license_renewal_date' => :'licenseRenewalDate', :'license_expiration_date' => :'licenseExpirationDate', :'approval_status' => :'approvalStatus', :'release_date' => :'releaseDate', :'maintenance_date' => :'maintenanceDate', :'retirement_date' => :'retirementDate', :'end_of_life_support_date' => :'endOfLifeSupportDate', :'extended_end_of_life_support_date' => :'extendedEndOfLifeSupportDate', :'critical_asset' => :'criticalAsset', :'location' => :'location', :'purpose' => :'purpose', :'unsupported_operating_system' => :'unsupportedOperatingSystem', :'unapproved_software_from_trm' => :'unapprovedSoftwareFromTrm', :'approved_waiver' => :'approvedWaiver' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 452 def self.build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) transformed_hash = {} openapi_types.each_pair do |key, type| if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? transformed_hash["#{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[attribute_map[key]].is_a?(Array) transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end elsif !attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end new(transformed_hash) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 201 def self.openapi_nullable Set.new([ :'software_type', :'parent_system', :'subsystem', :'network', :'hosting_environment', :'software_dependencies', :'cryptographic_hash', :'in_service_data', :'it_budget_uii', :'fiscal_year', :'pop_end_date', :'license_or_contract', :'license_term', :'cost_per_license', :'total_licenses', :'total_license_cost', :'licenses_used', :'license_poc', :'license_renewal_date', :'license_expiration_date', :'approval_status', :'release_date', :'maintenance_date', :'retirement_date', :'end_of_life_support_date', :'extended_end_of_life_support_date', :'critical_asset', :'location', :'purpose', :'unsupported_operating_system', :'unapproved_software_from_trm', :'approved_waiver' ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
163 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 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 163 def self.openapi_types { :'software_type' => :'String', :'parent_system' => :'String', :'subsystem' => :'String', :'network' => :'String', :'hosting_environment' => :'String', :'software_dependencies' => :'String', :'cryptographic_hash' => :'String', :'in_service_data' => :'String', :'it_budget_uii' => :'String', :'fiscal_year' => :'String', :'pop_end_date' => :'Integer', :'license_or_contract' => :'String', :'license_term' => :'String', :'cost_per_license' => :'Float', :'total_licenses' => :'Integer', :'total_license_cost' => :'Float', :'licenses_used' => :'Integer', :'license_poc' => :'String', :'license_renewal_date' => :'Integer', :'license_expiration_date' => :'Integer', :'approval_status' => :'String', :'release_date' => :'Integer', :'maintenance_date' => :'Integer', :'retirement_date' => :'Integer', :'end_of_life_support_date' => :'Integer', :'extended_end_of_life_support_date' => :'Integer', :'critical_asset' => :'Boolean', :'location' => :'String', :'purpose' => :'String', :'unsupported_operating_system' => :'Boolean', :'unapproved_software_from_trm' => :'Boolean', :'approved_waiver' => :'Boolean' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 400 def ==(o) return true if self.equal?(o) self.class == o.class && software_type == o.software_type && parent_system == o.parent_system && subsystem == o.subsystem && network == o.network && hosting_environment == o.hosting_environment && software_dependencies == o.software_dependencies && cryptographic_hash == o.cryptographic_hash && in_service_data == o.in_service_data && it_budget_uii == o.it_budget_uii && fiscal_year == o.fiscal_year && pop_end_date == o.pop_end_date && license_or_contract == o.license_or_contract && license_term == o.license_term && cost_per_license == o.cost_per_license && total_licenses == o.total_licenses && total_license_cost == o.total_license_cost && licenses_used == o.licenses_used && license_poc == o.license_poc && license_renewal_date == o.license_renewal_date && license_expiration_date == o.license_expiration_date && approval_status == o.approval_status && release_date == o.release_date && maintenance_date == o.maintenance_date && retirement_date == o.retirement_date && end_of_life_support_date == o.end_of_life_support_date && extended_end_of_life_support_date == o.extended_end_of_life_support_date && critical_asset == o.critical_asset && location == o.location && purpose == o.purpose && == o. && unapproved_software_from_trm == o.unapproved_software_from_trm && approved_waiver == o.approved_waiver end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
547 548 549 550 551 552 553 554 555 556 557 558 559 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 547 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 |
#eql?(o) ⇒ Boolean
439 440 441 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 439 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
445 446 447 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 445 def hash [software_type, parent_system, subsystem, network, hosting_environment, software_dependencies, cryptographic_hash, in_service_data, it_budget_uii, fiscal_year, pop_end_date, license_or_contract, license_term, cost_per_license, total_licenses, total_license_cost, licenses_used, license_poc, license_renewal_date, license_expiration_date, approval_status, release_date, maintenance_date, retirement_date, end_of_life_support_date, extended_end_of_life_support_date, critical_asset, location, purpose, , unapproved_software_from_trm, approved_waiver].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
385 386 387 388 389 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 385 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
523 524 525 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 523 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
529 530 531 532 533 534 535 536 537 538 539 540 541 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 529 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.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
517 518 519 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 517 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
393 394 395 396 |
# File 'lib/emass_client/models/sw_baseline_optional_fields.rb', line 393 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' true end |