Class: OCI::OsManagementHub::Models::WorkRequest
- Inherits:
-
Object
- Object
- OCI::OsManagementHub::Models::WorkRequest
- Defined in:
- lib/oci/os_management_hub/models/work_request.rb
Overview
An object that defines a work request.
Constant Summary collapse
- OPERATION_TYPE_ENUM =
[ OPERATION_TYPE_INSTALL_PACKAGES = 'INSTALL_PACKAGES'.freeze, OPERATION_TYPE_REMOVE_PACKAGES = 'REMOVE_PACKAGES'.freeze, OPERATION_TYPE_UPDATE_PACKAGES = 'UPDATE_PACKAGES'.freeze, OPERATION_TYPE_UPDATE_ALL_PACKAGES = 'UPDATE_ALL_PACKAGES'.freeze, OPERATION_TYPE_UPDATE_SECURITY = 'UPDATE_SECURITY'.freeze, OPERATION_TYPE_UPDATE_BUGFIX = 'UPDATE_BUGFIX'.freeze, OPERATION_TYPE_UPDATE_ENHANCEMENT = 'UPDATE_ENHANCEMENT'.freeze, OPERATION_TYPE_UPDATE_OTHER = 'UPDATE_OTHER'.freeze, OPERATION_TYPE_UPDATE_KSPLICE_KERNEL = 'UPDATE_KSPLICE_KERNEL'.freeze, OPERATION_TYPE_UPDATE_KSPLICE_USERSPACE = 'UPDATE_KSPLICE_USERSPACE'.freeze, OPERATION_TYPE_ENABLE_MODULE_STREAMS = 'ENABLE_MODULE_STREAMS'.freeze, OPERATION_TYPE_DISABLE_MODULE_STREAMS = 'DISABLE_MODULE_STREAMS'.freeze, OPERATION_TYPE_SWITCH_MODULE_STREAM = 'SWITCH_MODULE_STREAM'.freeze, OPERATION_TYPE_INSTALL_MODULE_PROFILES = 'INSTALL_MODULE_PROFILES'.freeze, OPERATION_TYPE_REMOVE_MODULE_PROFILES = 'REMOVE_MODULE_PROFILES'.freeze, OPERATION_TYPE_SET_SOFTWARE_SOURCES = 'SET_SOFTWARE_SOURCES'.freeze, OPERATION_TYPE_LIST_PACKAGES = 'LIST_PACKAGES'.freeze, OPERATION_TYPE_SET_MANAGEMENT_STATION_CONFIG = 'SET_MANAGEMENT_STATION_CONFIG'.freeze, OPERATION_TYPE_SYNC_MANAGEMENT_STATION_MIRROR = 'SYNC_MANAGEMENT_STATION_MIRROR'.freeze, OPERATION_TYPE_UPDATE_MANAGEMENT_STATION_SOFTWARE = 'UPDATE_MANAGEMENT_STATION_SOFTWARE'.freeze, OPERATION_TYPE_UPDATE = 'UPDATE'.freeze, OPERATION_TYPE_MODULE_ACTIONS = 'MODULE_ACTIONS'.freeze, OPERATION_TYPE_LIFECYCLE_PROMOTION = 'LIFECYCLE_PROMOTION'.freeze, OPERATION_TYPE_CREATE_SOFTWARE_SOURCE = 'CREATE_SOFTWARE_SOURCE'.freeze, OPERATION_TYPE_UPDATE_SOFTWARE_SOURCE = 'UPDATE_SOFTWARE_SOURCE'.freeze, OPERATION_TYPE_IMPORT_CONTENT = 'IMPORT_CONTENT'.freeze, OPERATION_TYPE_SYNC_AGENT_CONFIG = 'SYNC_AGENT_CONFIG'.freeze, OPERATION_TYPE_INSTALL_WINDOWS_UPDATES = 'INSTALL_WINDOWS_UPDATES'.freeze, OPERATION_TYPE_LIST_WINDOWS_UPDATE = 'LIST_WINDOWS_UPDATE'.freeze, OPERATION_TYPE_GET_WINDOWS_UPDATE_DETAILS = 'GET_WINDOWS_UPDATE_DETAILS'.freeze, OPERATION_TYPE_INSTALL_ALL_WINDOWS_UPDATES = 'INSTALL_ALL_WINDOWS_UPDATES'.freeze, OPERATION_TYPE_INSTALL_SECURITY_WINDOWS_UPDATES = 'INSTALL_SECURITY_WINDOWS_UPDATES'.freeze, OPERATION_TYPE_INSTALL_BUGFIX_WINDOWS_UPDATES = 'INSTALL_BUGFIX_WINDOWS_UPDATES'.freeze, OPERATION_TYPE_INSTALL_ENHANCEMENT_WINDOWS_UPDATES = 'INSTALL_ENHANCEMENT_WINDOWS_UPDATES'.freeze, OPERATION_TYPE_INSTALL_OTHER_WINDOWS_UPDATES = 'INSTALL_OTHER_WINDOWS_UPDATES'.freeze, OPERATION_TYPE_REMOVE_CONTENT = 'REMOVE_CONTENT'.freeze, OPERATION_TYPE_UNREGISTER_MANAGED_INSTANCE = 'UNREGISTER_MANAGED_INSTANCE'.freeze, OPERATION_TYPE_REBOOT = 'REBOOT'.freeze, OPERATION_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- STATUS_ENUM =
[ STATUS_WAITING = 'WAITING'.freeze, STATUS_ACCEPTED = 'ACCEPTED'.freeze, STATUS_IN_PROGRESS = 'IN_PROGRESS'.freeze, STATUS_FAILED = 'FAILED'.freeze, STATUS_SUCCEEDED = 'SUCCEEDED'.freeze, STATUS_CANCELING = 'CANCELING'.freeze, STATUS_CANCELED = 'CANCELED'.freeze, STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#children_id ⇒ Array<String>
The list of OCIDs for the child work requests.
-
#compartment_id ⇒ String
[Required] The OCID of the compartment that contains the work request.
-
#content_checksum ⇒ String
The EventFingerprint associated with the content.
-
#content_location ⇒ String
The location of the bundle in the filesystem of the resource associated to this work request.
-
#description ⇒ String
A short description about the work request.
-
#display_name ⇒ String
A short display name for the work request.
-
#event_id ⇒ String
The event id of the content.
-
#id ⇒ String
[Required] The OCID of the work request.
-
#initiator_id ⇒ String
The OCID of the resource that initiated the work request.
-
#is_managed_by_autonomous_linux ⇒ BOOLEAN
Indicates whether this work request is managed by the Autonomous Linux service.
- #management_station ⇒ OCI::OsManagementHub::Models::WorkRequestManagementStationDetails
-
#message ⇒ String
A progress or error message, if there is any.
-
#module_specs ⇒ Array<OCI::OsManagementHub::Models::ModuleSpecDetails>
The list of appstream modules being operated on.
-
#operation_type ⇒ String
[Required] Type of the work request.
-
#package_names ⇒ Array<String>
A list of package names to be installed, updated, or removed.
-
#parent_id ⇒ String
The OCID of the parent work request, if there is any.
-
#percent_complete ⇒ Float
[Required] The percentage complete of the operation tracked by this work request.
-
#reboot_timeout_in_mins ⇒ Integer
The number of minutes the service waits for the reboot to complete.
-
#rerun_of_id ⇒ String
The OCID of the original work request that is being rerun.
-
#resources ⇒ Array<OCI::OsManagementHub::Models::WorkRequestResource>
[Required] The list of OCIDs for the resources affected by the work request.
-
#retry_intervals ⇒ Array<Integer>
The amount of time in minutes to wait until retrying the work request.
-
#retry_of_id ⇒ String
The OCID of the original work request that is being retried.
-
#status ⇒ String
[Required] Status of the work request.
-
#time_created ⇒ DateTime
[Required] The date and time the work request was created (in RFC 3339 format).
-
#time_finished ⇒ DateTime
The date and time the work request completed (in RFC 3339 format).
-
#time_scheduled ⇒ DateTime
The scheduled date and time to retry the work request (in RFC 3339 format).
-
#time_started ⇒ DateTime
The date and time the work request started (in RFC 3339 format).
-
#time_updated ⇒ DateTime
The date and time the work request started (in RFC 3339 format).
-
#windows_update_names ⇒ Array<String>
The UUIDs of the target Windows update (only used when operation type is INSTALL_WINDOWS_UPDATES).
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 = {}) ⇒ WorkRequest
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 = {}) ⇒ WorkRequest
Initializes the object
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 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 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 305 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.operation_type = attributes[:'operationType'] if attributes[:'operationType'] raise 'You cannot provide both :operationType and :operation_type' if attributes.key?(:'operationType') && attributes.key?(:'operation_type') self.operation_type = attributes[:'operation_type'] if attributes[:'operation_type'] self.status = attributes[:'status'] if attributes[:'status'] self.id = attributes[:'id'] if attributes[:'id'] self.description = attributes[:'description'] if attributes[:'description'] 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. = attributes[:'message'] if attributes[:'message'] self.parent_id = attributes[:'parentId'] if attributes[:'parentId'] raise 'You cannot provide both :parentId and :parent_id' if attributes.key?(:'parentId') && attributes.key?(:'parent_id') self.parent_id = attributes[:'parent_id'] if attributes[:'parent_id'] self.children_id = attributes[:'childrenId'] if attributes[:'childrenId'] raise 'You cannot provide both :childrenId and :children_id' if attributes.key?(:'childrenId') && attributes.key?(:'children_id') self.children_id = attributes[:'children_id'] if attributes[:'children_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.resources = attributes[:'resources'] if attributes[:'resources'] self.package_names = attributes[:'packageNames'] if attributes[:'packageNames'] raise 'You cannot provide both :packageNames and :package_names' if attributes.key?(:'packageNames') && attributes.key?(:'package_names') self.package_names = attributes[:'package_names'] if attributes[:'package_names'] self.windows_update_names = attributes[:'windowsUpdateNames'] if attributes[:'windowsUpdateNames'] raise 'You cannot provide both :windowsUpdateNames and :windows_update_names' if attributes.key?(:'windowsUpdateNames') && attributes.key?(:'windows_update_names') self.windows_update_names = attributes[:'windows_update_names'] if attributes[:'windows_update_names'] self.module_specs = attributes[:'moduleSpecs'] if attributes[:'moduleSpecs'] raise 'You cannot provide both :moduleSpecs and :module_specs' if attributes.key?(:'moduleSpecs') && attributes.key?(:'module_specs') self.module_specs = attributes[:'module_specs'] if attributes[:'module_specs'] self.percent_complete = attributes[:'percentComplete'] if attributes[:'percentComplete'] raise 'You cannot provide both :percentComplete and :percent_complete' if attributes.key?(:'percentComplete') && attributes.key?(:'percent_complete') self.percent_complete = attributes[:'percent_complete'] if attributes[:'percent_complete'] 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.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'] self.time_finished = attributes[:'timeFinished'] if attributes[:'timeFinished'] raise 'You cannot provide both :timeFinished and :time_finished' if attributes.key?(:'timeFinished') && attributes.key?(:'time_finished') self.time_finished = attributes[:'time_finished'] if attributes[:'time_finished'] self.initiator_id = attributes[:'initiatorId'] if attributes[:'initiatorId'] raise 'You cannot provide both :initiatorId and :initiator_id' if attributes.key?(:'initiatorId') && attributes.key?(:'initiator_id') self.initiator_id = attributes[:'initiator_id'] if attributes[:'initiator_id'] self.management_station = attributes[:'managementStation'] if attributes[:'managementStation'] raise 'You cannot provide both :managementStation and :management_station' if attributes.key?(:'managementStation') && attributes.key?(:'management_station') self.management_station = attributes[:'management_station'] if attributes[:'management_station'] self.time_scheduled = attributes[:'timeScheduled'] if attributes[:'timeScheduled'] raise 'You cannot provide both :timeScheduled and :time_scheduled' if attributes.key?(:'timeScheduled') && attributes.key?(:'time_scheduled') self.time_scheduled = attributes[:'time_scheduled'] if attributes[:'time_scheduled'] self.content_location = attributes[:'contentLocation'] if attributes[:'contentLocation'] raise 'You cannot provide both :contentLocation and :content_location' if attributes.key?(:'contentLocation') && attributes.key?(:'content_location') self.content_location = attributes[:'content_location'] if attributes[:'content_location'] self.event_id = attributes[:'eventId'] if attributes[:'eventId'] raise 'You cannot provide both :eventId and :event_id' if attributes.key?(:'eventId') && attributes.key?(:'event_id') self.event_id = attributes[:'event_id'] if attributes[:'event_id'] self.content_checksum = attributes[:'contentChecksum'] if attributes[:'contentChecksum'] raise 'You cannot provide both :contentChecksum and :content_checksum' if attributes.key?(:'contentChecksum') && attributes.key?(:'content_checksum') self.content_checksum = attributes[:'content_checksum'] if attributes[:'content_checksum'] self.retry_of_id = attributes[:'retryOfId'] if attributes[:'retryOfId'] raise 'You cannot provide both :retryOfId and :retry_of_id' if attributes.key?(:'retryOfId') && attributes.key?(:'retry_of_id') self.retry_of_id = attributes[:'retry_of_id'] if attributes[:'retry_of_id'] self.rerun_of_id = attributes[:'rerunOfId'] if attributes[:'rerunOfId'] raise 'You cannot provide both :rerunOfId and :rerun_of_id' if attributes.key?(:'rerunOfId') && attributes.key?(:'rerun_of_id') self.rerun_of_id = attributes[:'rerun_of_id'] if attributes[:'rerun_of_id'] self.retry_intervals = attributes[:'retryIntervals'] if attributes[:'retryIntervals'] raise 'You cannot provide both :retryIntervals and :retry_intervals' if attributes.key?(:'retryIntervals') && attributes.key?(:'retry_intervals') self.retry_intervals = attributes[:'retry_intervals'] if attributes[:'retry_intervals'] 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.reboot_timeout_in_mins = attributes[:'rebootTimeoutInMins'] if attributes[:'rebootTimeoutInMins'] raise 'You cannot provide both :rebootTimeoutInMins and :reboot_timeout_in_mins' if attributes.key?(:'rebootTimeoutInMins') && attributes.key?(:'reboot_timeout_in_mins') self.reboot_timeout_in_mins = attributes[:'reboot_timeout_in_mins'] if attributes[:'reboot_timeout_in_mins'] end |
Instance Attribute Details
#children_id ⇒ Array<String>
The list of OCIDs for the child work requests.
95 96 97 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 95 def children_id @children_id end |
#compartment_id ⇒ String
[Required] The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource it affects. If the work request affects multiple resources the different compartments, the services selects the compartment of the primary resource.
102 103 104 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 102 def compartment_id @compartment_id end |
#content_checksum ⇒ String
The EventFingerprint associated with the content. This property is required when the work request type is IMPORT_CONTENT or REMOVE_CONTENT.
168 169 170 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 168 def content_checksum @content_checksum end |
#content_location ⇒ String
The location of the bundle in the filesystem of the resource associated to this work request.
158 159 160 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 158 def content_location @content_location end |
#description ⇒ String
A short description about the work request.
79 80 81 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 79 def description @description end |
#display_name ⇒ String
A short display name for the work request.
83 84 85 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 83 def display_name @display_name end |
#event_id ⇒ String
The event id of the content. This property is required when the work request type is IMPORT_CONTENT or REMOVE_CONTENT.
163 164 165 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 163 def event_id @event_id end |
#id ⇒ String
[Required] The OCID of the work request.
75 76 77 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 75 def id @id end |
#initiator_id ⇒ String
The OCID of the resource that initiated the work request.
146 147 148 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 146 def initiator_id @initiator_id end |
#is_managed_by_autonomous_linux ⇒ BOOLEAN
Indicates whether this work request is managed by the Autonomous Linux service.
190 191 192 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 190 def is_managed_by_autonomous_linux @is_managed_by_autonomous_linux end |
#management_station ⇒ OCI::OsManagementHub::Models::WorkRequestManagementStationDetails
149 150 151 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 149 def management_station @management_station end |
#message ⇒ String
A progress or error message, if there is any.
87 88 89 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 87 def @message end |
#module_specs ⇒ Array<OCI::OsManagementHub::Models::ModuleSpecDetails>
The list of appstream modules being operated on.
118 119 120 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 118 def module_specs @module_specs end |
#operation_type ⇒ String
[Required] Type of the work request.
67 68 69 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 67 def operation_type @operation_type end |
#package_names ⇒ Array<String>
A list of package names to be installed, updated, or removed.
110 111 112 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 110 def package_names @package_names end |
#parent_id ⇒ String
The OCID of the parent work request, if there is any.
91 92 93 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 91 def parent_id @parent_id end |
#percent_complete ⇒ Float
[Required] The percentage complete of the operation tracked by this work request.
122 123 124 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 122 def percent_complete @percent_complete end |
#reboot_timeout_in_mins ⇒ Integer
The number of minutes the service waits for the reboot to complete. If the managed instance doesn't reboot within the timeout, the service marks the reboot job as failed.
194 195 196 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 194 def reboot_timeout_in_mins @reboot_timeout_in_mins end |
#rerun_of_id ⇒ String
The OCID of the original work request that is being rerun.
178 179 180 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 178 def rerun_of_id @rerun_of_id end |
#resources ⇒ Array<OCI::OsManagementHub::Models::WorkRequestResource>
[Required] The list of OCIDs for the resources affected by the work request.
106 107 108 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 106 def resources @resources end |
#retry_intervals ⇒ Array<Integer>
The amount of time in minutes to wait until retrying the work request. If set, the service will automatically retry a failed work request after the interval. For example, An interval set to [2,5,10]. If the initial execution of the work request fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
186 187 188 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 186 def retry_intervals @retry_intervals end |
#retry_of_id ⇒ String
The OCID of the original work request that is being retried.
173 174 175 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 173 def retry_of_id @retry_of_id end |
#status ⇒ String
[Required] Status of the work request.
71 72 73 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 71 def status @status end |
#time_created ⇒ DateTime
[Required] The date and time the work request was created (in RFC 3339 format).
127 128 129 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 127 def time_created @time_created end |
#time_finished ⇒ DateTime
The date and time the work request completed (in RFC 3339 format).
142 143 144 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 142 def time_finished @time_finished end |
#time_scheduled ⇒ DateTime
The scheduled date and time to retry the work request (in RFC 3339 format).
153 154 155 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 153 def time_scheduled @time_scheduled end |
#time_started ⇒ DateTime
The date and time the work request started (in RFC 3339 format).
137 138 139 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 137 def time_started @time_started end |
#time_updated ⇒ DateTime
The date and time the work request started (in RFC 3339 format).
132 133 134 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 132 def time_updated @time_updated end |
#windows_update_names ⇒ Array<String>
The UUIDs of the target Windows update (only used when operation type is INSTALL_WINDOWS_UPDATES).
114 115 116 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 114 def windows_update_names @windows_update_names end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 197 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'operation_type': :'operationType', 'status': :'status', 'id': :'id', 'description': :'description', 'display_name': :'displayName', 'message': :'message', 'parent_id': :'parentId', 'children_id': :'childrenId', 'compartment_id': :'compartmentId', 'resources': :'resources', 'package_names': :'packageNames', 'windows_update_names': :'windowsUpdateNames', 'module_specs': :'moduleSpecs', 'percent_complete': :'percentComplete', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'time_started': :'timeStarted', 'time_finished': :'timeFinished', 'initiator_id': :'initiatorId', 'management_station': :'managementStation', 'time_scheduled': :'timeScheduled', 'content_location': :'contentLocation', 'event_id': :'eventId', 'content_checksum': :'contentChecksum', 'retry_of_id': :'retryOfId', 'rerun_of_id': :'rerunOfId', 'retry_intervals': :'retryIntervals', 'is_managed_by_autonomous_linux': :'isManagedByAutonomousLinux', 'reboot_timeout_in_mins': :'rebootTimeoutInMins' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 234 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'operation_type': :'String', 'status': :'String', 'id': :'String', 'description': :'String', 'display_name': :'String', 'message': :'String', 'parent_id': :'String', 'children_id': :'Array<String>', 'compartment_id': :'String', 'resources': :'Array<OCI::OsManagementHub::Models::WorkRequestResource>', 'package_names': :'Array<String>', 'windows_update_names': :'Array<String>', 'module_specs': :'Array<OCI::OsManagementHub::Models::ModuleSpecDetails>', 'percent_complete': :'Float', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'time_started': :'DateTime', 'time_finished': :'DateTime', 'initiator_id': :'String', 'management_station': :'OCI::OsManagementHub::Models::WorkRequestManagementStationDetails', 'time_scheduled': :'DateTime', 'content_location': :'String', 'event_id': :'String', 'content_checksum': :'String', 'retry_of_id': :'String', 'rerun_of_id': :'String', 'retry_intervals': :'Array<Integer>', 'is_managed_by_autonomous_linux': :'BOOLEAN', 'reboot_timeout_in_mins': :'Integer' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 499 def ==(other) return true if equal?(other) self.class == other.class && operation_type == other.operation_type && status == other.status && id == other.id && description == other.description && display_name == other.display_name && == other. && parent_id == other.parent_id && children_id == other.children_id && compartment_id == other.compartment_id && resources == other.resources && package_names == other.package_names && windows_update_names == other.windows_update_names && module_specs == other.module_specs && percent_complete == other.percent_complete && time_created == other.time_created && time_updated == other.time_updated && time_started == other.time_started && time_finished == other.time_finished && initiator_id == other.initiator_id && management_station == other.management_station && time_scheduled == other.time_scheduled && content_location == other.content_location && event_id == other.event_id && content_checksum == other.content_checksum && retry_of_id == other.retry_of_id && rerun_of_id == other.rerun_of_id && retry_intervals == other.retry_intervals && is_managed_by_autonomous_linux == other.is_managed_by_autonomous_linux && reboot_timeout_in_mins == other.reboot_timeout_in_mins end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 557 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
537 538 539 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 537 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
546 547 548 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 546 def hash [operation_type, status, id, description, display_name, , parent_id, children_id, compartment_id, resources, package_names, windows_update_names, module_specs, percent_complete, time_created, time_updated, time_started, time_finished, initiator_id, management_station, time_scheduled, content_location, event_id, content_checksum, retry_of_id, rerun_of_id, retry_intervals, is_managed_by_autonomous_linux, reboot_timeout_in_mins].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
590 591 592 593 594 595 596 597 598 599 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 590 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
584 585 586 |
# File 'lib/oci/os_management_hub/models/work_request.rb', line 584 def to_s to_hash.to_s end |