Class: OCI::Jms::Models::JavaFamilySummary
- Inherits:
-
Object
- Object
- OCI::Jms::Models::JavaFamilySummary
- Defined in:
- lib/oci/jms/models/java_family_summary.rb
Overview
A summary of the Java release family information. A Java release family is typically a major version in the Java version identifier.
Constant Summary collapse
- SUPPORT_TYPE_ENUM =
[ SUPPORT_TYPE_LTS = 'LTS'.freeze, SUPPORT_TYPE_NON_LTS = 'NON_LTS'.freeze, SUPPORT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#display_name ⇒ String
[Required] The display name of the release family.
-
#doc_url ⇒ String
[Required] Link to access the documentation for the release.
-
#end_of_support_life_date ⇒ DateTime
[Required] The End of Support Life (EOSL) date of the Java release family (formatted according to RFC3339).
-
#family_version ⇒ String
[Required] The Java release family identifier.
-
#is_supported_version ⇒ BOOLEAN
[Required] Whether or not this Java release family is under active support.
-
#latest_release_version ⇒ String
[Required] Latest Java release version in the family.
-
#license_types ⇒ Array<OCI::Jms::Models::LicenseType>
The license type(s) associated with the Java family.
-
#release_date ⇒ DateTime
The date on which the Java release family was first made available (formatted according to RFC3339).
-
#support_type ⇒ String
[Required] This indicates the support category for the Java release family.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ JavaFamilySummary
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ JavaFamilySummary
Initializes the object
109 110 111 112 113 114 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 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 109 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.family_version = attributes[:'familyVersion'] if attributes[:'familyVersion'] raise 'You cannot provide both :familyVersion and :family_version' if attributes.key?(:'familyVersion') && attributes.key?(:'family_version') self.family_version = attributes[:'family_version'] if attributes[:'family_version'] self.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.support_type = attributes[:'supportType'] if attributes[:'supportType'] raise 'You cannot provide both :supportType and :support_type' if attributes.key?(:'supportType') && attributes.key?(:'support_type') self.support_type = attributes[:'support_type'] if attributes[:'support_type'] self.end_of_support_life_date = attributes[:'endOfSupportLifeDate'] if attributes[:'endOfSupportLifeDate'] raise 'You cannot provide both :endOfSupportLifeDate and :end_of_support_life_date' if attributes.key?(:'endOfSupportLifeDate') && attributes.key?(:'end_of_support_life_date') self.end_of_support_life_date = attributes[:'end_of_support_life_date'] if attributes[:'end_of_support_life_date'] self.doc_url = attributes[:'docUrl'] if attributes[:'docUrl'] raise 'You cannot provide both :docUrl and :doc_url' if attributes.key?(:'docUrl') && attributes.key?(:'doc_url') self.doc_url = attributes[:'doc_url'] if attributes[:'doc_url'] self.latest_release_version = attributes[:'latestReleaseVersion'] if attributes[:'latestReleaseVersion'] raise 'You cannot provide both :latestReleaseVersion and :latest_release_version' if attributes.key?(:'latestReleaseVersion') && attributes.key?(:'latest_release_version') self.latest_release_version = attributes[:'latest_release_version'] if attributes[:'latest_release_version'] self.is_supported_version = attributes[:'isSupportedVersion'] unless attributes[:'isSupportedVersion'].nil? raise 'You cannot provide both :isSupportedVersion and :is_supported_version' if attributes.key?(:'isSupportedVersion') && attributes.key?(:'is_supported_version') self.is_supported_version = attributes[:'is_supported_version'] unless attributes[:'is_supported_version'].nil? self.release_date = attributes[:'releaseDate'] if attributes[:'releaseDate'] raise 'You cannot provide both :releaseDate and :release_date' if attributes.key?(:'releaseDate') && attributes.key?(:'release_date') self.release_date = attributes[:'release_date'] if attributes[:'release_date'] self.license_types = attributes[:'licenseTypes'] if attributes[:'licenseTypes'] raise 'You cannot provide both :licenseTypes and :license_types' if attributes.key?(:'licenseTypes') && attributes.key?(:'license_types') self.license_types = attributes[:'license_types'] if attributes[:'license_types'] end |
Instance Attribute Details
#display_name ⇒ String
[Required] The display name of the release family.
26 27 28 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 26 def display_name @display_name end |
#doc_url ⇒ String
[Required] Link to access the documentation for the release.
39 40 41 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 39 def doc_url @doc_url end |
#end_of_support_life_date ⇒ DateTime
[Required] The End of Support Life (EOSL) date of the Java release family (formatted according to RFC3339).
35 36 37 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 35 def end_of_support_life_date @end_of_support_life_date end |
#family_version ⇒ String
[Required] The Java release family identifier.
22 23 24 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 22 def family_version @family_version end |
#is_supported_version ⇒ BOOLEAN
[Required] Whether or not this Java release family is under active support. Refer Java Support Roadmap for more details.
49 50 51 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 49 def is_supported_version @is_supported_version end |
#latest_release_version ⇒ String
[Required] Latest Java release version in the family.
43 44 45 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 43 def latest_release_version @latest_release_version end |
#license_types ⇒ Array<OCI::Jms::Models::LicenseType>
The license type(s) associated with the Java family.
58 59 60 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 58 def license_types @license_types end |
#release_date ⇒ DateTime
The date on which the Java release family was first made available (formatted according to RFC3339).
54 55 56 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 54 def release_date @release_date end |
#support_type ⇒ String
[Required] This indicates the support category for the Java release family.
30 31 32 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 30 def support_type @support_type end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 61 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'family_version': :'familyVersion', 'display_name': :'displayName', 'support_type': :'supportType', 'end_of_support_life_date': :'endOfSupportLifeDate', 'doc_url': :'docUrl', 'latest_release_version': :'latestReleaseVersion', 'is_supported_version': :'isSupportedVersion', 'release_date': :'releaseDate', 'license_types': :'licenseTypes' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 78 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'family_version': :'String', 'display_name': :'String', 'support_type': :'String', 'end_of_support_life_date': :'DateTime', 'doc_url': :'String', 'latest_release_version': :'String', 'is_supported_version': :'BOOLEAN', 'release_date': :'DateTime', 'license_types': :'Array<OCI::Jms::Models::LicenseType>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 190 def ==(other) return true if equal?(other) self.class == other.class && family_version == other.family_version && display_name == other.display_name && support_type == other.support_type && end_of_support_life_date == other.end_of_support_life_date && doc_url == other.doc_url && latest_release_version == other.latest_release_version && is_supported_version == other.is_supported_version && release_date == other.release_date && license_types == other.license_types end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 228 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
208 209 210 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 208 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
217 218 219 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 217 def hash [family_version, display_name, support_type, end_of_support_life_date, doc_url, latest_release_version, is_supported_version, release_date, license_types].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
261 262 263 264 265 266 267 268 269 270 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 261 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
255 256 257 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 255 def to_s to_hash.to_s end |