Class: OCI::OsManagementHub::Models::ManagedInstanceSummary
- Inherits:
-
Object
- Object
- OCI::OsManagementHub::Models::ManagedInstanceSummary
- Defined in:
- lib/oci/os_management_hub/models/managed_instance_summary.rb
Overview
Provides summary information for a managed instance.
Constant Summary collapse
- LOCATION_ENUM =
[ LOCATION_ON_PREMISE = 'ON_PREMISE'.freeze, LOCATION_OCI_COMPUTE = 'OCI_COMPUTE'.freeze, LOCATION_AZURE = 'AZURE'.freeze, LOCATION_EC2 = 'EC2'.freeze, LOCATION_GCP = 'GCP'.freeze, LOCATION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- ARCHITECTURE_ENUM =
[ ARCHITECTURE_X86_64 = 'X86_64'.freeze, ARCHITECTURE_AARCH64 = 'AARCH64'.freeze, ARCHITECTURE_I686 = 'I686'.freeze, ARCHITECTURE_NOARCH = 'NOARCH'.freeze, ARCHITECTURE_SRC = 'SRC'.freeze, ARCHITECTURE_I386 = 'I386'.freeze, ARCHITECTURE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- OS_FAMILY_ENUM =
[ OS_FAMILY_ORACLE_LINUX_9 = 'ORACLE_LINUX_9'.freeze, OS_FAMILY_ORACLE_LINUX_8 = 'ORACLE_LINUX_8'.freeze, OS_FAMILY_ORACLE_LINUX_7 = 'ORACLE_LINUX_7'.freeze, OS_FAMILY_ORACLE_LINUX_6 = 'ORACLE_LINUX_6'.freeze, OS_FAMILY_WINDOWS_SERVER_2016 = 'WINDOWS_SERVER_2016'.freeze, OS_FAMILY_WINDOWS_SERVER_2019 = 'WINDOWS_SERVER_2019'.freeze, OS_FAMILY_WINDOWS_SERVER_2022 = 'WINDOWS_SERVER_2022'.freeze, OS_FAMILY_ALL = 'ALL'.freeze, OS_FAMILY_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- STATUS_ENUM =
[ STATUS_NORMAL = 'NORMAL'.freeze, STATUS_UNREACHABLE = 'UNREACHABLE'.freeze, STATUS_ERROR = 'ERROR'.freeze, STATUS_WARNING = 'WARNING'.freeze, STATUS_REGISTRATION_ERROR = 'REGISTRATION_ERROR'.freeze, STATUS_DELETING = 'DELETING'.freeze, STATUS_ONBOARDING = 'ONBOARDING'.freeze, STATUS_REBOOTING = 'REBOOTING'.freeze, STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#agent_version ⇒ String
The version of osmh-agent running on the managed instance.
-
#architecture ⇒ String
The CPU architecture type of the managed instance.
- #autonomous_settings ⇒ OCI::OsManagementHub::Models::AutonomousSettings
-
#compartment_id ⇒ String
[Required] The OCID of the compartment that contains the managed instance.
-
#description ⇒ String
User-specified description of the managed instance.
-
#display_name ⇒ String
[Required] User-friendly name for the managed instance.
-
#id ⇒ String
[Required] The OCID of the managed instance.
-
#is_managed_by_autonomous_linux ⇒ BOOLEAN
Indicates whether Autonomous Linux manages this instance.
-
#is_management_station ⇒ BOOLEAN
Whether this managed instance is acting as an on-premises management station.
-
#is_reboot_required ⇒ BOOLEAN
Indicates whether a reboot is required to complete installation of updates.
- #lifecycle_environment ⇒ OCI::OsManagementHub::Models::Id
- #lifecycle_stage ⇒ OCI::OsManagementHub::Models::Id
-
#location ⇒ String
The location of the managed instance.
- #managed_instance_group ⇒ OCI::OsManagementHub::Models::Id
-
#notification_topic_id ⇒ String
The OCID for the Oracle Notifications service (ONS) topic.
-
#os_family ⇒ String
The operating system type of the managed instance.
-
#status ⇒ String
[Required] Current status of the managed instance.
-
#tenancy_id ⇒ String
[Required] The OCID of the tenancy this managed instance resides in.
-
#updates_available ⇒ Integer
Number of updates available for installation.
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 = {}) ⇒ ManagedInstanceSummary
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 = {}) ⇒ ManagedInstanceSummary
Initializes the object
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 237 238 239 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 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 210 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.id = attributes[:'id'] if attributes[:'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.description = attributes[:'description'] if attributes[:'description'] self.tenancy_id = attributes[:'tenancyId'] if attributes[:'tenancyId'] raise 'You cannot provide both :tenancyId and :tenancy_id' if attributes.key?(:'tenancyId') && attributes.key?(:'tenancy_id') self.tenancy_id = attributes[:'tenancy_id'] if attributes[:'tenancy_id'] self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] self.location = attributes[:'location'] if attributes[:'location'] self.architecture = attributes[:'architecture'] if attributes[:'architecture'] self.os_family = attributes[:'osFamily'] if attributes[:'osFamily'] raise 'You cannot provide both :osFamily and :os_family' if attributes.key?(:'osFamily') && attributes.key?(:'os_family') self.os_family = attributes[:'os_family'] if attributes[:'os_family'] self.status = attributes[:'status'] if attributes[:'status'] self.managed_instance_group = attributes[:'managedInstanceGroup'] if attributes[:'managedInstanceGroup'] raise 'You cannot provide both :managedInstanceGroup and :managed_instance_group' if attributes.key?(:'managedInstanceGroup') && attributes.key?(:'managed_instance_group') self.managed_instance_group = attributes[:'managed_instance_group'] if attributes[:'managed_instance_group'] self.lifecycle_environment = attributes[:'lifecycleEnvironment'] if attributes[:'lifecycleEnvironment'] raise 'You cannot provide both :lifecycleEnvironment and :lifecycle_environment' if attributes.key?(:'lifecycleEnvironment') && attributes.key?(:'lifecycle_environment') self.lifecycle_environment = attributes[:'lifecycle_environment'] if attributes[:'lifecycle_environment'] self.lifecycle_stage = attributes[:'lifecycleStage'] if attributes[:'lifecycleStage'] raise 'You cannot provide both :lifecycleStage and :lifecycle_stage' if attributes.key?(:'lifecycleStage') && attributes.key?(:'lifecycle_stage') self.lifecycle_stage = attributes[:'lifecycle_stage'] if attributes[:'lifecycle_stage'] self.is_reboot_required = attributes[:'isRebootRequired'] unless attributes[:'isRebootRequired'].nil? raise 'You cannot provide both :isRebootRequired and :is_reboot_required' if attributes.key?(:'isRebootRequired') && attributes.key?(:'is_reboot_required') self.is_reboot_required = attributes[:'is_reboot_required'] unless attributes[:'is_reboot_required'].nil? self.updates_available = attributes[:'updatesAvailable'] if attributes[:'updatesAvailable'] raise 'You cannot provide both :updatesAvailable and :updates_available' if attributes.key?(:'updatesAvailable') && attributes.key?(:'updates_available') self.updates_available = attributes[:'updates_available'] if attributes[:'updates_available'] self.is_management_station = attributes[:'isManagementStation'] unless attributes[:'isManagementStation'].nil? raise 'You cannot provide both :isManagementStation and :is_management_station' if attributes.key?(:'isManagementStation') && attributes.key?(:'is_management_station') self.is_management_station = attributes[:'is_management_station'] unless attributes[:'is_management_station'].nil? self.notification_topic_id = attributes[:'notificationTopicId'] if attributes[:'notificationTopicId'] raise 'You cannot provide both :notificationTopicId and :notification_topic_id' if attributes.key?(:'notificationTopicId') && attributes.key?(:'notification_topic_id') self.notification_topic_id = attributes[:'notification_topic_id'] if attributes[:'notification_topic_id'] self.autonomous_settings = attributes[:'autonomousSettings'] if attributes[:'autonomousSettings'] raise 'You cannot provide both :autonomousSettings and :autonomous_settings' if attributes.key?(:'autonomousSettings') && attributes.key?(:'autonomous_settings') self.autonomous_settings = attributes[:'autonomous_settings'] if attributes[:'autonomous_settings'] self.is_managed_by_autonomous_linux = attributes[:'isManagedByAutonomousLinux'] unless attributes[:'isManagedByAutonomousLinux'].nil? raise 'You cannot provide both :isManagedByAutonomousLinux and :is_managed_by_autonomous_linux' if attributes.key?(:'isManagedByAutonomousLinux') && attributes.key?(:'is_managed_by_autonomous_linux') self.is_managed_by_autonomous_linux = attributes[:'is_managed_by_autonomous_linux'] unless attributes[:'is_managed_by_autonomous_linux'].nil? self.agent_version = attributes[:'agentVersion'] if attributes[:'agentVersion'] raise 'You cannot provide both :agentVersion and :agent_version' if attributes.key?(:'agentVersion') && attributes.key?(:'agent_version') self.agent_version = attributes[:'agent_version'] if attributes[:'agent_version'] end |
Instance Attribute Details
#agent_version ⇒ String
The version of osmh-agent running on the managed instance
129 130 131 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 129 def agent_version @agent_version end |
#architecture ⇒ String
The CPU architecture type of the managed instance.
84 85 86 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 84 def architecture @architecture end |
#autonomous_settings ⇒ OCI::OsManagementHub::Models::AutonomousSettings
121 122 123 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 121 def autonomous_settings @autonomous_settings end |
#compartment_id ⇒ String
[Required] The OCID of the compartment that contains the managed instance.
76 77 78 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 76 def compartment_id @compartment_id end |
#description ⇒ String
User-specified description of the managed instance.
66 67 68 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 66 def description @description end |
#display_name ⇒ String
[Required] User-friendly name for the managed instance.
62 63 64 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 62 def display_name @display_name end |
#id ⇒ String
[Required] The OCID of the managed instance.
58 59 60 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 58 def id @id end |
#is_managed_by_autonomous_linux ⇒ BOOLEAN
Indicates whether Autonomous Linux manages this instance.
125 126 127 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 125 def is_managed_by_autonomous_linux @is_managed_by_autonomous_linux end |
#is_management_station ⇒ BOOLEAN
Whether this managed instance is acting as an on-premises management station.
113 114 115 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 113 def is_management_station @is_management_station end |
#is_reboot_required ⇒ BOOLEAN
Indicates whether a reboot is required to complete installation of updates.
105 106 107 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 105 def is_reboot_required @is_reboot_required end |
#lifecycle_environment ⇒ OCI::OsManagementHub::Models::Id
98 99 100 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 98 def lifecycle_environment @lifecycle_environment end |
#lifecycle_stage ⇒ OCI::OsManagementHub::Models::Id
101 102 103 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 101 def lifecycle_stage @lifecycle_stage end |
#location ⇒ String
The location of the managed instance.
80 81 82 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 80 def location @location end |
#managed_instance_group ⇒ OCI::OsManagementHub::Models::Id
95 96 97 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 95 def managed_instance_group @managed_instance_group end |
#notification_topic_id ⇒ String
The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
118 119 120 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 118 def notification_topic_id @notification_topic_id end |
#os_family ⇒ String
The operating system type of the managed instance.
88 89 90 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 88 def os_family @os_family end |
#status ⇒ String
[Required] Current status of the managed instance.
92 93 94 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 92 def status @status end |
#tenancy_id ⇒ String
[Required] The OCID of the tenancy this managed instance resides in.
71 72 73 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 71 def tenancy_id @tenancy_id end |
#updates_available ⇒ Integer
Number of updates available for installation.
109 110 111 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 109 def updates_available @updates_available end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 132 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'display_name': :'displayName', 'description': :'description', 'tenancy_id': :'tenancyId', 'compartment_id': :'compartmentId', 'location': :'location', 'architecture': :'architecture', 'os_family': :'osFamily', 'status': :'status', 'managed_instance_group': :'managedInstanceGroup', 'lifecycle_environment': :'lifecycleEnvironment', 'lifecycle_stage': :'lifecycleStage', 'is_reboot_required': :'isRebootRequired', 'updates_available': :'updatesAvailable', 'is_management_station': :'isManagementStation', 'notification_topic_id': :'notificationTopicId', 'autonomous_settings': :'autonomousSettings', 'is_managed_by_autonomous_linux': :'isManagedByAutonomousLinux', 'agent_version': :'agentVersion' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 159 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'display_name': :'String', 'description': :'String', 'tenancy_id': :'String', 'compartment_id': :'String', 'location': :'String', 'architecture': :'String', 'os_family': :'String', 'status': :'String', 'managed_instance_group': :'OCI::OsManagementHub::Models::Id', 'lifecycle_environment': :'OCI::OsManagementHub::Models::Id', 'lifecycle_stage': :'OCI::OsManagementHub::Models::Id', 'is_reboot_required': :'BOOLEAN', 'updates_available': :'Integer', 'is_management_station': :'BOOLEAN', 'notification_topic_id': :'String', 'autonomous_settings': :'OCI::OsManagementHub::Models::AutonomousSettings', 'is_managed_by_autonomous_linux': :'BOOLEAN', 'agent_version': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 370 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && display_name == other.display_name && description == other.description && tenancy_id == other.tenancy_id && compartment_id == other.compartment_id && location == other.location && architecture == other.architecture && os_family == other.os_family && status == other.status && managed_instance_group == other.managed_instance_group && lifecycle_environment == other.lifecycle_environment && lifecycle_stage == other.lifecycle_stage && is_reboot_required == other.is_reboot_required && updates_available == other.updates_available && is_management_station == other.is_management_station && notification_topic_id == other.notification_topic_id && autonomous_settings == other.autonomous_settings && is_managed_by_autonomous_linux == other.is_managed_by_autonomous_linux && agent_version == other.agent_version end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 418 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
398 399 400 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 398 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
407 408 409 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 407 def hash [id, display_name, description, tenancy_id, compartment_id, location, architecture, os_family, status, managed_instance_group, lifecycle_environment, lifecycle_stage, is_reboot_required, updates_available, is_management_station, notification_topic_id, autonomous_settings, is_managed_by_autonomous_linux, agent_version].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
451 452 453 454 455 456 457 458 459 460 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 451 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
445 446 447 |
# File 'lib/oci/os_management_hub/models/managed_instance_summary.rb', line 445 def to_s to_hash.to_s end |