Class: OCI::Jms::Models::ContainerSummary
- Inherits:
-
Object
- Object
- OCI::Jms::Models::ContainerSummary
- Defined in:
- lib/oci/jms/models/container_summary.rb
Overview
Information about a container in the cluster.
Constant Summary collapse
- JRE_SECURITY_STATUS_ENUM =
[ JRE_SECURITY_STATUS_EARLY_ACCESS = 'EARLY_ACCESS'.freeze, JRE_SECURITY_STATUS_UNKNOWN = 'UNKNOWN'.freeze, JRE_SECURITY_STATUS_UP_TO_DATE = 'UP_TO_DATE'.freeze, JRE_SECURITY_STATUS_UPDATE_REQUIRED = 'UPDATE_REQUIRED'.freeze, JRE_SECURITY_STATUS_UPGRADE_REQUIRED = 'UPGRADE_REQUIRED'.freeze, JRE_SECURITY_STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#application_key ⇒ String
Unique key that identifies the application running in the container.
-
#application_name ⇒ String
The name of the application running in the container.
-
#container_key ⇒ String
[Required] Unique identifier for the container.
-
#display_name ⇒ String
[Required] The name of the container.
-
#image_name ⇒ String
[Required] The container image name.
-
#java_version ⇒ String
The Java runtime used to run the application in the container.
-
#jre_key ⇒ String
Unique key that identifies the Java runtime used to run the application in the container.
-
#jre_security_status ⇒ String
The security status of the Java runtime used to run the application in the container.
-
#managed_instance_id ⇒ String
[Required] The OCID of the associated managed instance of type OCMA.
-
#namespace ⇒ String
[Required] The namespace of the container.
-
#node_name ⇒ String
[Required] The name of the node associated with the pod running this container.
-
#pod_name ⇒ String
[Required] The name of the pod running this container.
-
#time_started ⇒ DateTime
The start time of the container.
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 = {}) ⇒ ContainerSummary
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 = {}) ⇒ ContainerSummary
Initializes the object
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 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 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/oci/jms/models/container_summary.rb', line 135 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.container_key = attributes[:'containerKey'] if attributes[:'containerKey'] raise 'You cannot provide both :containerKey and :container_key' if attributes.key?(:'containerKey') && attributes.key?(:'container_key') self.container_key = attributes[:'container_key'] if attributes[:'container_key'] self.managed_instance_id = attributes[:'managedInstanceId'] if attributes[:'managedInstanceId'] raise 'You cannot provide both :managedInstanceId and :managed_instance_id' if attributes.key?(:'managedInstanceId') && attributes.key?(:'managed_instance_id') self.managed_instance_id = attributes[:'managed_instance_id'] if attributes[:'managed_instance_id'] 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.image_name = attributes[:'imageName'] if attributes[:'imageName'] raise 'You cannot provide both :imageName and :image_name' if attributes.key?(:'imageName') && attributes.key?(:'image_name') self.image_name = attributes[:'image_name'] if attributes[:'image_name'] self.namespace = attributes[:'namespace'] if attributes[:'namespace'] self.node_name = attributes[:'nodeName'] if attributes[:'nodeName'] raise 'You cannot provide both :nodeName and :node_name' if attributes.key?(:'nodeName') && attributes.key?(:'node_name') self.node_name = attributes[:'node_name'] if attributes[:'node_name'] self.pod_name = attributes[:'podName'] if attributes[:'podName'] raise 'You cannot provide both :podName and :pod_name' if attributes.key?(:'podName') && attributes.key?(:'pod_name') self.pod_name = attributes[:'pod_name'] if attributes[:'pod_name'] self.application_key = attributes[:'applicationKey'] if attributes[:'applicationKey'] raise 'You cannot provide both :applicationKey and :application_key' if attributes.key?(:'applicationKey') && attributes.key?(:'application_key') self.application_key = attributes[:'application_key'] if attributes[:'application_key'] self.application_name = attributes[:'applicationName'] if attributes[:'applicationName'] raise 'You cannot provide both :applicationName and :application_name' if attributes.key?(:'applicationName') && attributes.key?(:'application_name') self.application_name = attributes[:'application_name'] if attributes[:'application_name'] self.jre_key = attributes[:'jreKey'] if attributes[:'jreKey'] raise 'You cannot provide both :jreKey and :jre_key' if attributes.key?(:'jreKey') && attributes.key?(:'jre_key') self.jre_key = attributes[:'jre_key'] if attributes[:'jre_key'] self.java_version = attributes[:'javaVersion'] if attributes[:'javaVersion'] raise 'You cannot provide both :javaVersion and :java_version' if attributes.key?(:'javaVersion') && attributes.key?(:'java_version') self.java_version = attributes[:'java_version'] if attributes[:'java_version'] self.jre_security_status = attributes[:'jreSecurityStatus'] if attributes[:'jreSecurityStatus'] raise 'You cannot provide both :jreSecurityStatus and :jre_security_status' if attributes.key?(:'jreSecurityStatus') && attributes.key?(:'jre_security_status') self.jre_security_status = attributes[:'jre_security_status'] if attributes[:'jre_security_status'] self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted'] raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started') self.time_started = attributes[:'time_started'] if attributes[:'time_started'] end |
Instance Attribute Details
#application_key ⇒ String
Unique key that identifies the application running in the container.
52 53 54 |
# File 'lib/oci/jms/models/container_summary.rb', line 52 def application_key @application_key end |
#application_name ⇒ String
The name of the application running in the container.
56 57 58 |
# File 'lib/oci/jms/models/container_summary.rb', line 56 def application_name @application_name end |
#container_key ⇒ String
[Required] Unique identifier for the container.
24 25 26 |
# File 'lib/oci/jms/models/container_summary.rb', line 24 def container_key @container_key end |
#display_name ⇒ String
[Required] The name of the container.
32 33 34 |
# File 'lib/oci/jms/models/container_summary.rb', line 32 def display_name @display_name end |
#image_name ⇒ String
[Required] The container image name.
36 37 38 |
# File 'lib/oci/jms/models/container_summary.rb', line 36 def image_name @image_name end |
#java_version ⇒ String
The Java runtime used to run the application in the container.
64 65 66 |
# File 'lib/oci/jms/models/container_summary.rb', line 64 def java_version @java_version end |
#jre_key ⇒ String
Unique key that identifies the Java runtime used to run the application in the container.
60 61 62 |
# File 'lib/oci/jms/models/container_summary.rb', line 60 def jre_key @jre_key end |
#jre_security_status ⇒ String
The security status of the Java runtime used to run the application in the container.
68 69 70 |
# File 'lib/oci/jms/models/container_summary.rb', line 68 def jre_security_status @jre_security_status end |
#managed_instance_id ⇒ String
[Required] The OCID of the associated managed instance of type OCMA.
28 29 30 |
# File 'lib/oci/jms/models/container_summary.rb', line 28 def managed_instance_id @managed_instance_id end |
#namespace ⇒ String
[Required] The namespace of the container.
40 41 42 |
# File 'lib/oci/jms/models/container_summary.rb', line 40 def namespace @namespace end |
#node_name ⇒ String
[Required] The name of the node associated with the pod running this container.
44 45 46 |
# File 'lib/oci/jms/models/container_summary.rb', line 44 def node_name @node_name end |
#pod_name ⇒ String
[Required] The name of the pod running this container.
48 49 50 |
# File 'lib/oci/jms/models/container_summary.rb', line 48 def pod_name @pod_name end |
#time_started ⇒ DateTime
The start time of the container.
72 73 74 |
# File 'lib/oci/jms/models/container_summary.rb', line 72 def time_started @time_started end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/oci/jms/models/container_summary.rb', line 75 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'container_key': :'containerKey', 'managed_instance_id': :'managedInstanceId', 'display_name': :'displayName', 'image_name': :'imageName', 'namespace': :'namespace', 'node_name': :'nodeName', 'pod_name': :'podName', 'application_key': :'applicationKey', 'application_name': :'applicationName', 'jre_key': :'jreKey', 'java_version': :'javaVersion', 'jre_security_status': :'jreSecurityStatus', 'time_started': :'timeStarted' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/oci/jms/models/container_summary.rb', line 96 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'container_key': :'String', 'managed_instance_id': :'String', 'display_name': :'String', 'image_name': :'String', 'namespace': :'String', 'node_name': :'String', 'pod_name': :'String', 'application_key': :'String', 'application_name': :'String', 'jre_key': :'String', 'java_version': :'String', 'jre_security_status': :'String', 'time_started': :'DateTime' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 |
# File 'lib/oci/jms/models/container_summary.rb', line 236 def ==(other) return true if equal?(other) self.class == other.class && container_key == other.container_key && managed_instance_id == other.managed_instance_id && display_name == other.display_name && image_name == other.image_name && namespace == other.namespace && node_name == other.node_name && pod_name == other.pod_name && application_key == other.application_key && application_name == other.application_name && jre_key == other.jre_key && java_version == other.java_version && jre_security_status == other.jre_security_status && time_started == other.time_started end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 |
# File 'lib/oci/jms/models/container_summary.rb', line 278 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
258 259 260 |
# File 'lib/oci/jms/models/container_summary.rb', line 258 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
267 268 269 |
# File 'lib/oci/jms/models/container_summary.rb', line 267 def hash [container_key, managed_instance_id, display_name, image_name, namespace, node_name, pod_name, application_key, application_name, jre_key, java_version, jre_security_status, time_started].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
311 312 313 314 315 316 317 318 319 320 |
# File 'lib/oci/jms/models/container_summary.rb', line 311 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
305 306 307 |
# File 'lib/oci/jms/models/container_summary.rb', line 305 def to_s to_hash.to_s end |