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.
-
#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
102 103 104 105 106 107 108 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 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 102 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'] 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 |
#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.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 57 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' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 73 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' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
177 178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 177 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 end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
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/oci/jms/models/java_family_summary.rb', line 214 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
194 195 196 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 194 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
203 204 205 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 203 def hash [family_version, display_name, support_type, end_of_support_life_date, doc_url, latest_release_version, is_supported_version, release_date].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
247 248 249 250 251 252 253 254 255 256 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 247 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
241 242 243 |
# File 'lib/oci/jms/models/java_family_summary.rb', line 241 def to_s to_hash.to_s end |