class Apcera::VersionInfo
Attributes
build_id[RW]
build_number[RW]
download_urls[RW]
major[RW]
minor[RW]
patch[RW]
version[RW]
Public Class Methods
attribute_map()
click to toggle source
attribute mapping from ruby-style variable name to JSON key
# File lib/apcera/models/version_info.rb, line 6 def self.attribute_map { # Cluster's build ID. :'build_id' => :'build_id', # Cluster build number composed of the cluster's major, minor and patch version numbers (for example, \"2.2.0\"). :'build_number' => :'build_number', # Provides download links for versions of APC compatible this cluster. :'download_urls' => :'download_urls', # Major Apcera cluster version number. :'major' => :'major', # Minor Apcera cluster version number. :'minor' => :'minor', # Cluster patch number. :'patch' => :'patch', # Cluster version string composed of the cluster's major, minor and patch version numbers (for example, \"2.2.0\"). :'version' => :'version' } end
new(attributes = {})
click to toggle source
# File lib/apcera/models/version_info.rb, line 47 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'build_id'] self.build_id = attributes[:'build_id'] end if attributes[:'build_number'] self.build_number = attributes[:'build_number'] end if attributes[:'download_urls'] if (value = attributes[:'download_urls']).is_a?(Array) self.download_urls = value end end if attributes[:'major'] self.major = attributes[:'major'] end if attributes[:'minor'] self.minor = attributes[:'minor'] end if attributes[:'patch'] self.patch = attributes[:'patch'] end if attributes[:'version'] self.version = attributes[:'version'] end end
swagger_types()
click to toggle source
attribute type
# File lib/apcera/models/version_info.rb, line 34 def self.swagger_types { :'build_id' => :'String', :'build_number' => :'String', :'download_urls' => :'Hash<String, APCDownloadURL>', :'major' => :'Integer', :'minor' => :'Integer', :'patch' => :'Integer', :'version' => :'String' } end