UpdateInstanceMaintenanceEventDetails

class oci.core.models.UpdateInstanceMaintenanceEventDetails(**kwargs)

Bases: object

Specifies the properties for updating maintenance due date.

Attributes

ALTERNATIVE_RESOLUTION_ACTION_REBOOT_MIGRATION A constant which can be used with the alternative_resolution_action property of a UpdateInstanceMaintenanceEventDetails.
ALTERNATIVE_RESOLUTION_ACTION_TERMINATE A constant which can be used with the alternative_resolution_action property of a UpdateInstanceMaintenanceEventDetails.
alternative_resolution_action Gets the alternative_resolution_action of this UpdateInstanceMaintenanceEventDetails.
can_delete_local_storage Gets the can_delete_local_storage of this UpdateInstanceMaintenanceEventDetails.
defined_tags Gets the defined_tags of this UpdateInstanceMaintenanceEventDetails.
display_name Gets the display_name of this UpdateInstanceMaintenanceEventDetails.
freeform_tags Gets the freeform_tags of this UpdateInstanceMaintenanceEventDetails.
time_window_start Gets the time_window_start of this UpdateInstanceMaintenanceEventDetails.

Methods

__init__(**kwargs) Initializes a new UpdateInstanceMaintenanceEventDetails object with values from keyword arguments.
ALTERNATIVE_RESOLUTION_ACTION_REBOOT_MIGRATION = 'REBOOT_MIGRATION'

A constant which can be used with the alternative_resolution_action property of a UpdateInstanceMaintenanceEventDetails. This constant has a value of “REBOOT_MIGRATION”

ALTERNATIVE_RESOLUTION_ACTION_TERMINATE = 'TERMINATE'

A constant which can be used with the alternative_resolution_action property of a UpdateInstanceMaintenanceEventDetails. This constant has a value of “TERMINATE”

__init__(**kwargs)

Initializes a new UpdateInstanceMaintenanceEventDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • time_window_start (datetime) – The value to assign to the time_window_start property of this UpdateInstanceMaintenanceEventDetails.
  • alternative_resolution_action (str) – The value to assign to the alternative_resolution_action property of this UpdateInstanceMaintenanceEventDetails. Allowed values for this property are: “REBOOT_MIGRATION”, “TERMINATE”
  • can_delete_local_storage (bool) – The value to assign to the can_delete_local_storage property of this UpdateInstanceMaintenanceEventDetails.
  • display_name (str) – The value to assign to the display_name property of this UpdateInstanceMaintenanceEventDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this UpdateInstanceMaintenanceEventDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this UpdateInstanceMaintenanceEventDetails.
alternative_resolution_action

Gets the alternative_resolution_action of this UpdateInstanceMaintenanceEventDetails. One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.

Allowed values for this property are: “REBOOT_MIGRATION”, “TERMINATE”

Returns:The alternative_resolution_action of this UpdateInstanceMaintenanceEventDetails.
Return type:str
can_delete_local_storage

Gets the can_delete_local_storage of this UpdateInstanceMaintenanceEventDetails. This field is only applicable when setting the alternativeResolutionAction.

For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect.

In cases where the local storage will be lost, this parameter must be set or the request will fail.

Returns:The can_delete_local_storage of this UpdateInstanceMaintenanceEventDetails.
Return type:bool
defined_tags

Gets the defined_tags of this UpdateInstanceMaintenanceEventDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this UpdateInstanceMaintenanceEventDetails.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this UpdateInstanceMaintenanceEventDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns:The display_name of this UpdateInstanceMaintenanceEventDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this UpdateInstanceMaintenanceEventDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {“Department”: “Finance”}

Returns:The freeform_tags of this UpdateInstanceMaintenanceEventDetails.
Return type:dict(str, str)
time_window_start

Gets the time_window_start of this UpdateInstanceMaintenanceEventDetails. The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time.

The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction.

Returns:The time_window_start of this UpdateInstanceMaintenanceEventDetails.
Return type:datetime