Class: OCI::OsManagementHub::Models::ManagedInstance

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/os_management_hub/models/managed_instance.rb

Overview

An object that defines the instance being managed by the service.

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_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_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ManagedInstance

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 347

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.time_last_checkin = attributes[:'timeLastCheckin'] if attributes[:'timeLastCheckin']

  raise 'You cannot provide both :timeLastCheckin and :time_last_checkin' if attributes.key?(:'timeLastCheckin') && attributes.key?(:'time_last_checkin')

  self.time_last_checkin = attributes[:'time_last_checkin'] if attributes[:'time_last_checkin']

  self.time_last_boot = attributes[:'timeLastBoot'] if attributes[:'timeLastBoot']

  raise 'You cannot provide both :timeLastBoot and :time_last_boot' if attributes.key?(:'timeLastBoot') && attributes.key?(:'time_last_boot')

  self.time_last_boot = attributes[:'time_last_boot'] if attributes[:'time_last_boot']

  self.os_name = attributes[:'osName'] if attributes[:'osName']

  raise 'You cannot provide both :osName and :os_name' if attributes.key?(:'osName') && attributes.key?(:'os_name')

  self.os_name = attributes[:'os_name'] if attributes[:'os_name']

  self.os_version = attributes[:'osVersion'] if attributes[:'osVersion']

  raise 'You cannot provide both :osVersion and :os_version' if attributes.key?(:'osVersion') && attributes.key?(:'os_version')

  self.os_version = attributes[:'os_version'] if attributes[:'os_version']

  self.os_kernel_version = attributes[:'osKernelVersion'] if attributes[:'osKernelVersion']

  raise 'You cannot provide both :osKernelVersion and :os_kernel_version' if attributes.key?(:'osKernelVersion') && attributes.key?(:'os_kernel_version')

  self.os_kernel_version = attributes[:'os_kernel_version'] if attributes[:'os_kernel_version']

  self.ksplice_effective_kernel_version = attributes[:'kspliceEffectiveKernelVersion'] if attributes[:'kspliceEffectiveKernelVersion']

  raise 'You cannot provide both :kspliceEffectiveKernelVersion and :ksplice_effective_kernel_version' if attributes.key?(:'kspliceEffectiveKernelVersion') && attributes.key?(:'ksplice_effective_kernel_version')

  self.ksplice_effective_kernel_version = attributes[:'ksplice_effective_kernel_version'] if attributes[:'ksplice_effective_kernel_version']

  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.profile = attributes[:'profile'] if attributes[:'profile']

  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.primary_management_station_id = attributes[:'primaryManagementStationId'] if attributes[:'primaryManagementStationId']

  raise 'You cannot provide both :primaryManagementStationId and :primary_management_station_id' if attributes.key?(:'primaryManagementStationId') && attributes.key?(:'primary_management_station_id')

  self.primary_management_station_id = attributes[:'primary_management_station_id'] if attributes[:'primary_management_station_id']

  self.secondary_management_station_id = attributes[:'secondaryManagementStationId'] if attributes[:'secondaryManagementStationId']

  raise 'You cannot provide both :secondaryManagementStationId and :secondary_management_station_id' if attributes.key?(:'secondaryManagementStationId') && attributes.key?(:'secondary_management_station_id')

  self.secondary_management_station_id = attributes[:'secondary_management_station_id'] if attributes[:'secondary_management_station_id']

  self.software_sources = attributes[:'softwareSources'] if attributes[:'softwareSources']

  raise 'You cannot provide both :softwareSources and :software_sources' if attributes.key?(:'softwareSources') && attributes.key?(:'software_sources')

  self.software_sources = attributes[:'software_sources'] if attributes[:'software_sources']

  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.installed_packages = attributes[:'installedPackages'] if attributes[:'installedPackages']

  raise 'You cannot provide both :installedPackages and :installed_packages' if attributes.key?(:'installedPackages') && attributes.key?(:'installed_packages')

  self.installed_packages = attributes[:'installed_packages'] if attributes[:'installed_packages']

  self.installed_windows_updates = attributes[:'installedWindowsUpdates'] if attributes[:'installedWindowsUpdates']

  raise 'You cannot provide both :installedWindowsUpdates and :installed_windows_updates' if attributes.key?(:'installedWindowsUpdates') && attributes.key?(:'installed_windows_updates')

  self.installed_windows_updates = attributes[:'installed_windows_updates'] if attributes[:'installed_windows_updates']

  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.security_updates_available = attributes[:'securityUpdatesAvailable'] if attributes[:'securityUpdatesAvailable']

  raise 'You cannot provide both :securityUpdatesAvailable and :security_updates_available' if attributes.key?(:'securityUpdatesAvailable') && attributes.key?(:'security_updates_available')

  self.security_updates_available = attributes[:'security_updates_available'] if attributes[:'security_updates_available']

  self.bug_updates_available = attributes[:'bugUpdatesAvailable'] if attributes[:'bugUpdatesAvailable']

  raise 'You cannot provide both :bugUpdatesAvailable and :bug_updates_available' if attributes.key?(:'bugUpdatesAvailable') && attributes.key?(:'bug_updates_available')

  self.bug_updates_available = attributes[:'bug_updates_available'] if attributes[:'bug_updates_available']

  self.enhancement_updates_available = attributes[:'enhancementUpdatesAvailable'] if attributes[:'enhancementUpdatesAvailable']

  raise 'You cannot provide both :enhancementUpdatesAvailable and :enhancement_updates_available' if attributes.key?(:'enhancementUpdatesAvailable') && attributes.key?(:'enhancement_updates_available')

  self.enhancement_updates_available = attributes[:'enhancement_updates_available'] if attributes[:'enhancement_updates_available']

  self.other_updates_available = attributes[:'otherUpdatesAvailable'] if attributes[:'otherUpdatesAvailable']

  raise 'You cannot provide both :otherUpdatesAvailable and :other_updates_available' if attributes.key?(:'otherUpdatesAvailable') && attributes.key?(:'other_updates_available')

  self.other_updates_available = attributes[:'other_updates_available'] if attributes[:'other_updates_available']

  self.scheduled_job_count = attributes[:'scheduledJobCount'] if attributes[:'scheduledJobCount']

  raise 'You cannot provide both :scheduledJobCount and :scheduled_job_count' if attributes.key?(:'scheduledJobCount') && attributes.key?(:'scheduled_job_count')

  self.scheduled_job_count = attributes[:'scheduled_job_count'] if attributes[:'scheduled_job_count']

  self.work_request_count = attributes[:'workRequestCount'] if attributes[:'workRequestCount']

  raise 'You cannot provide both :workRequestCount and :work_request_count' if attributes.key?(:'workRequestCount') && attributes.key?(:'work_request_count')

  self.work_request_count = attributes[:'work_request_count'] if attributes[:'work_request_count']

  self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']

  raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')

  self.time_created = attributes[:'time_created'] if attributes[:'time_created']

  self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated']

  raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated')

  self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated']

  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?
end

Instance Attribute Details

#architectureString

The CPU architecture type of the managed instance.

Returns:

  • (String)


108
109
110
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 108

def architecture
  @architecture
end

#autonomous_settingsOCI::OsManagementHub::Models::AutonomousSettings



205
206
207
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 205

def autonomous_settings
  @autonomous_settings
end

#bug_updates_availableInteger

Number of bug fix type updates available for installation.

Returns:

  • (Integer)


171
172
173
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 171

def bug_updates_available
  @bug_updates_available
end

#compartment_idString

[Required] The OCID of the compartment that contains the managed instance.

Returns:

  • (String)


74
75
76
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 74

def compartment_id
  @compartment_id
end

#descriptionString

User-specified description for the managed instance.

Returns:

  • (String)


64
65
66
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 64

def description
  @description
end

#display_nameString

[Required] User-friendly name for the managed instance.

Returns:

  • (String)


60
61
62
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 60

def display_name
  @display_name
end

#enhancement_updates_availableInteger

Number of enhancement type updates available for installation.

Returns:

  • (Integer)


175
176
177
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 175

def enhancement_updates_available
  @enhancement_updates_available
end

#idString

[Required] The OCID of the managed instance.

Returns:

  • (String)


56
57
58
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 56

def id
  @id
end

#installed_packagesInteger

Number of packages installed on the instance.

Returns:

  • (Integer)


155
156
157
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 155

def installed_packages
  @installed_packages
end

#installed_windows_updatesInteger

Number of Windows updates installed on the instance.

Returns:

  • (Integer)


159
160
161
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 159

def installed_windows_updates
  @installed_windows_updates
end

#is_managed_by_autonomous_linuxBOOLEAN

Indicates whether the Autonomous Linux service manages the instance.

Returns:

  • (BOOLEAN)


209
210
211
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 209

def is_managed_by_autonomous_linux
  @is_managed_by_autonomous_linux
end

#is_management_stationBOOLEAN

Indicates whether this managed instance is acting as an on-premises management station.

Returns:

  • (BOOLEAN)


124
125
126
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 124

def is_management_station
  @is_management_station
end

#is_reboot_requiredBOOLEAN

Indicates whether a reboot is required to complete installation of updates.

Returns:

  • (BOOLEAN)


151
152
153
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 151

def is_reboot_required
  @is_reboot_required
end

#ksplice_effective_kernel_versionString

The ksplice effective kernel version.

Returns:

  • (String)


104
105
106
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 104

def ksplice_effective_kernel_version
  @ksplice_effective_kernel_version
end

#lifecycle_environmentOCI::OsManagementHub::Models::Id



144
145
146
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 144

def lifecycle_environment
  @lifecycle_environment
end

#lifecycle_stageOCI::OsManagementHub::Models::Id



147
148
149
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 147

def lifecycle_stage
  @lifecycle_stage
end

#locationString

The location of the managed instance.

Returns:

  • (String)


78
79
80
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 78

def location
  @location
end

#managed_instance_groupOCI::OsManagementHub::Models::Id



141
142
143
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 141

def managed_instance_group
  @managed_instance_group
end

#notification_topic_idString

The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.

Returns:

  • (String)


202
203
204
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 202

def notification_topic_id
  @notification_topic_id
end

#os_familyString

The operating system type of the managed instance.

Returns:

  • (String)


112
113
114
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 112

def os_family
  @os_family
end

#os_kernel_versionString

Operating system kernel version.

Returns:

  • (String)


100
101
102
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 100

def os_kernel_version
  @os_kernel_version
end

#os_nameString

Operating system name.

Returns:

  • (String)


92
93
94
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 92

def os_name
  @os_name
end

#os_versionString

Operating system version.

Returns:

  • (String)


96
97
98
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 96

def os_version
  @os_version
end

#other_updates_availableInteger

Number of non-classified (other) updates available for installation.

Returns:

  • (Integer)


179
180
181
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 179

def other_updates_available
  @other_updates_available
end

#primary_management_station_idString

The OCID of the management station for the instance to use as primary management station.

Returns:

  • (String)


129
130
131
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 129

def primary_management_station_id
  @primary_management_station_id
end

#profileString

The profile that was used to register this instance with the service.

Returns:

  • (String)


120
121
122
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 120

def profile
  @profile
end

#scheduled_job_countInteger

Number of scheduled jobs associated with this instance.

Returns:

  • (Integer)


183
184
185
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 183

def scheduled_job_count
  @scheduled_job_count
end

#secondary_management_station_idString

The OCID of the management station for the instance to use as secondary managment station.

Returns:

  • (String)


134
135
136
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 134

def secondary_management_station_id
  @secondary_management_station_id
end

#security_updates_availableInteger

Number of security type updates available for installation.

Returns:

  • (Integer)


167
168
169
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 167

def security_updates_available
  @security_updates_available
end

#software_sourcesArray<OCI::OsManagementHub::Models::SoftwareSourceDetails>

The list of software sources currently attached to the managed instance.



138
139
140
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 138

def software_sources
  @software_sources
end

#statusString

[Required] Current status of the managed instance.

Returns:

  • (String)


116
117
118
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 116

def status
  @status
end

#tenancy_idString

[Required] The OCID of the tenancy that the managed instance resides in.

Returns:

  • (String)


69
70
71
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 69

def tenancy_id
  @tenancy_id
end

#time_createdDateTime

The date and time the instance was created (in RFC 3339 format).

Returns:

  • (DateTime)


192
193
194
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 192

def time_created
  @time_created
end

#time_last_bootDateTime

Time that the instance last booted (in RFC 3339 format).

Returns:

  • (DateTime)


88
89
90
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 88

def time_last_boot
  @time_last_boot
end

#time_last_checkinDateTime

Time that the instance last checked in with the service (in RFC 3339 format).

Returns:

  • (DateTime)


83
84
85
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 83

def time_last_checkin
  @time_last_checkin
end

#time_updatedDateTime

The date and time the instance was last updated (in RFC 3339 format).

Returns:

  • (DateTime)


197
198
199
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 197

def time_updated
  @time_updated
end

#updates_availableInteger

Number of updates available for installation.

Returns:

  • (Integer)


163
164
165
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 163

def updates_available
  @updates_available
end

#work_request_countInteger

Number of work requests associated with this instance.

Returns:

  • (Integer)


187
188
189
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 187

def work_request_count
  @work_request_count
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



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
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 212

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'display_name': :'displayName',
    'description': :'description',
    'tenancy_id': :'tenancyId',
    'compartment_id': :'compartmentId',
    'location': :'location',
    'time_last_checkin': :'timeLastCheckin',
    'time_last_boot': :'timeLastBoot',
    'os_name': :'osName',
    'os_version': :'osVersion',
    'os_kernel_version': :'osKernelVersion',
    'ksplice_effective_kernel_version': :'kspliceEffectiveKernelVersion',
    'architecture': :'architecture',
    'os_family': :'osFamily',
    'status': :'status',
    'profile': :'profile',
    'is_management_station': :'isManagementStation',
    'primary_management_station_id': :'primaryManagementStationId',
    'secondary_management_station_id': :'secondaryManagementStationId',
    'software_sources': :'softwareSources',
    'managed_instance_group': :'managedInstanceGroup',
    'lifecycle_environment': :'lifecycleEnvironment',
    'lifecycle_stage': :'lifecycleStage',
    'is_reboot_required': :'isRebootRequired',
    'installed_packages': :'installedPackages',
    'installed_windows_updates': :'installedWindowsUpdates',
    'updates_available': :'updatesAvailable',
    'security_updates_available': :'securityUpdatesAvailable',
    'bug_updates_available': :'bugUpdatesAvailable',
    'enhancement_updates_available': :'enhancementUpdatesAvailable',
    'other_updates_available': :'otherUpdatesAvailable',
    'scheduled_job_count': :'scheduledJobCount',
    'work_request_count': :'workRequestCount',
    'time_created': :'timeCreated',
    'time_updated': :'timeUpdated',
    'notification_topic_id': :'notificationTopicId',
    'autonomous_settings': :'autonomousSettings',
    'is_managed_by_autonomous_linux': :'isManagedByAutonomousLinux'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



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
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 258

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'display_name': :'String',
    'description': :'String',
    'tenancy_id': :'String',
    'compartment_id': :'String',
    'location': :'String',
    'time_last_checkin': :'DateTime',
    'time_last_boot': :'DateTime',
    'os_name': :'String',
    'os_version': :'String',
    'os_kernel_version': :'String',
    'ksplice_effective_kernel_version': :'String',
    'architecture': :'String',
    'os_family': :'String',
    'status': :'String',
    'profile': :'String',
    'is_management_station': :'BOOLEAN',
    'primary_management_station_id': :'String',
    'secondary_management_station_id': :'String',
    'software_sources': :'Array<OCI::OsManagementHub::Models::SoftwareSourceDetails>',
    'managed_instance_group': :'OCI::OsManagementHub::Models::Id',
    'lifecycle_environment': :'OCI::OsManagementHub::Models::Id',
    'lifecycle_stage': :'OCI::OsManagementHub::Models::Id',
    'is_reboot_required': :'BOOLEAN',
    'installed_packages': :'Integer',
    'installed_windows_updates': :'Integer',
    'updates_available': :'Integer',
    'security_updates_available': :'Integer',
    'bug_updates_available': :'Integer',
    'enhancement_updates_available': :'Integer',
    'other_updates_available': :'Integer',
    'scheduled_job_count': :'Integer',
    'work_request_count': :'Integer',
    'time_created': :'DateTime',
    'time_updated': :'DateTime',
    'notification_topic_id': :'String',
    'autonomous_settings': :'OCI::OsManagementHub::Models::AutonomousSettings',
    'is_managed_by_autonomous_linux': :'BOOLEAN'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 617

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 &&
    time_last_checkin == other.time_last_checkin &&
    time_last_boot == other.time_last_boot &&
    os_name == other.os_name &&
    os_version == other.os_version &&
    os_kernel_version == other.os_kernel_version &&
    ksplice_effective_kernel_version == other.ksplice_effective_kernel_version &&
    architecture == other.architecture &&
    os_family == other.os_family &&
    status == other.status &&
    profile == other.profile &&
    is_management_station == other.is_management_station &&
    primary_management_station_id == other.primary_management_station_id &&
    secondary_management_station_id == other.secondary_management_station_id &&
    software_sources == other.software_sources &&
    managed_instance_group == other.managed_instance_group &&
    lifecycle_environment == other.lifecycle_environment &&
    lifecycle_stage == other.lifecycle_stage &&
    is_reboot_required == other.is_reboot_required &&
    installed_packages == other.installed_packages &&
    installed_windows_updates == other.installed_windows_updates &&
    updates_available == other.updates_available &&
    security_updates_available == other.security_updates_available &&
    bug_updates_available == other.bug_updates_available &&
    enhancement_updates_available == other.enhancement_updates_available &&
    other_updates_available == other.other_updates_available &&
    scheduled_job_count == other.scheduled_job_count &&
    work_request_count == other.work_request_count &&
    time_created == other.time_created &&
    time_updated == other.time_updated &&
    notification_topic_id == other.notification_topic_id &&
    autonomous_settings == other.autonomous_settings &&
    is_managed_by_autonomous_linux == other.is_managed_by_autonomous_linux
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 684

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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


664
665
666
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 664

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



673
674
675
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 673

def hash
  [id, display_name, description, tenancy_id, compartment_id, location, time_last_checkin, time_last_boot, os_name, os_version, os_kernel_version, ksplice_effective_kernel_version, architecture, os_family, status, profile, is_management_station, primary_management_station_id, secondary_management_station_id, software_sources, managed_instance_group, lifecycle_environment, lifecycle_stage, is_reboot_required, installed_packages, installed_windows_updates, updates_available, security_updates_available, bug_updates_available, enhancement_updates_available, other_updates_available, scheduled_job_count, work_request_count, time_created, time_updated, notification_topic_id, autonomous_settings, is_managed_by_autonomous_linux].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



717
718
719
720
721
722
723
724
725
726
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 717

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



711
712
713
# File 'lib/oci/os_management_hub/models/managed_instance.rb', line 711

def to_s
  to_hash.to_s
end