ruạṛ
a ���fNx � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdZdd� Zedd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$d%� �Zejd&d%� �Zed'd(� �Z e jd)d(� �Z ed*d+� �Z!e!jd,d+� �Z!ed-d.� �Z"e"jd/d.� �Z"ed0d1� �Z#e#jd2d1� �Z#ed3d4� �Z$e$jd5d4� �Z$ed6d7� �Z%e%jd8d7� �Z%ed9d:� �Z&e&jd;d:� �Z&ed<d=� �Z'e'jd>d=� �Z'ed?d@� �Z(e(jdAd@� �Z(edBdC� �Z)e)jdDdC� �Z)edEdF� �Z*e*jdGdF� �Z*edHdI� �Z+e+jdJdI� �Z+edKdL� �Z,e,jdMdL� �Z,edNdO� �Z-e-jdPdO� �Z-edQdR� �Z.e.jdSdR� �Z.edTdU� �Z/e/jdVdU� �Z/edWdX� �Z0e0jdYdX� �Z0dZd[� Z1d\d]� Z2d^d_� Z3d`S )a�FsuCyclez6 Exadata Fleet Update Cycle resource details. �PATCH�DB�GI�STAGE�PRECHECK_STAGE�PRECHECK_APPLY�APPLY�ROLLBACK_AND_REMOVE_TARGET�CLEANUP�CREATING�ACTIVE�UPDATING�IN_PROGRESS�FAILED�NEEDS_ATTENTION� SUCCEEDED�DELETING�DELETEDc K s� ddddddddddddddddddddd d d �| _ ddd ddddddddddddddddddd d �| _d!| _d!| _d!| _d!| _d!| _d!| _d!| _d!| _ d!| _ d!| _d!| _d!| _ d!| _d!| _d!| _d!| _d!| _d!| _d!| _d!| _d!| _d!| _d!S )"a� Initializes a new FsuCycle object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.fleet_software_update.models.PatchFsuCycle` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this FsuCycle. :type id: str :param display_name: The value to assign to the display_name property of this FsuCycle. :type display_name: str :param compartment_id: The value to assign to the compartment_id property of this FsuCycle. :type compartment_id: str :param type: The value to assign to the type property of this FsuCycle. Allowed values for this property are: "PATCH", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param fsu_collection_id: The value to assign to the fsu_collection_id property of this FsuCycle. :type fsu_collection_id: str :param collection_type: The value to assign to the collection_type property of this FsuCycle. Allowed values for this property are: "DB", "GI", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type collection_type: str :param executing_fsu_action_id: The value to assign to the executing_fsu_action_id property of this FsuCycle. :type executing_fsu_action_id: str :param next_action_to_execute: The value to assign to the next_action_to_execute property of this FsuCycle. :type next_action_to_execute: list[oci.fleet_software_update.models.NextActionToExecuteDetails] :param last_completed_action: The value to assign to the last_completed_action property of this FsuCycle. Allowed values for this property are: "STAGE", "PRECHECK_STAGE", "PRECHECK_APPLY", "APPLY", "ROLLBACK_AND_REMOVE_TARGET", "CLEANUP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type last_completed_action: str :param goal_version_details: The value to assign to the goal_version_details property of this FsuCycle. :type goal_version_details: oci.fleet_software_update.models.FsuGoalVersionDetails :param batching_strategy: The value to assign to the batching_strategy property of this FsuCycle. :type batching_strategy: oci.fleet_software_update.models.BatchingStrategyDetails :param stage_action_schedule: The value to assign to the stage_action_schedule property of this FsuCycle. :type stage_action_schedule: oci.fleet_software_update.models.ScheduleDetails :param apply_action_schedule: The value to assign to the apply_action_schedule property of this FsuCycle. :type apply_action_schedule: oci.fleet_software_update.models.ScheduleDetails :param diagnostics_collection: The value to assign to the diagnostics_collection property of this FsuCycle. :type diagnostics_collection: oci.fleet_software_update.models.DiagnosticsCollectionDetails :param time_created: The value to assign to the time_created property of this FsuCycle. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this FsuCycle. :type time_updated: datetime :param time_finished: The value to assign to the time_finished property of this FsuCycle. :type time_finished: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this FsuCycle. Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "IN_PROGRESS", "FAILED", "NEEDS_ATTENTION", "SUCCEEDED", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this FsuCycle. :type lifecycle_details: str :param freeform_tags: The value to assign to the freeform_tags property of this FsuCycle. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this FsuCycle. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this FsuCycle. :type system_tags: dict(str, dict(str, object)) �strz list[NextActionToExecuteDetails]ZFsuGoalVersionDetailsZBatchingStrategyDetailsZScheduleDetailsZDiagnosticsCollectionDetailsZdatetimezdict(str, str)zdict(str, dict(str, object)))�id�display_name�compartment_id�type�fsu_collection_id�collection_type�executing_fsu_action_id�next_action_to_execute�last_completed_action�goal_version_details�batching_strategy�stage_action_schedule�apply_action_schedule�diagnostics_collection�time_created�time_updated� time_finished�lifecycle_state�lifecycle_details� freeform_tags�defined_tags�system_tagsr ZdisplayNameZ compartmentIdr ZfsuCollectionIdZcollectionTypeZexecutingFsuActionIdZnextActionToExecuteZlastCompletedActionZgoalVersionDetailsZbatchingStrategyZstageActionScheduleZapplyActionScheduleZdiagnosticsCollectionZtimeCreatedZtimeUpdatedZtimeFinishedZlifecycleStateZlifecycleDetailsZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id� _display_name�_compartment_id�_type�_fsu_collection_id�_collection_type�_executing_fsu_action_id�_next_action_to_execute�_last_completed_action�_goal_version_details�_batching_strategy�_stage_action_schedule�_apply_action_schedule�_diagnostics_collection� _time_created� _time_updated�_time_finished�_lifecycle_state�_lifecycle_details�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� rH �N/usr/lib/python3.9/site-packages/oci/fleet_software_update/models/fsu_cycle.py�__init__Z s� k��zFsuCycle.__init__c C s | d }|dkrdS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r Z PatchFsuCycler NrH )Zobject_dictionaryr rH rH rI �get_subtype s zFsuCycle.get_subtypec C s | j S )z� **[Required]** Gets the id of this FsuCycle. OCID identifier for the Exadata Fleet Update Cycle. :return: The id of this FsuCycle. :rtype: str �r0 �rF rH rH rI r s zFsuCycle.idc C s || _ dS )z� Sets the id of this FsuCycle. OCID identifier for the Exadata Fleet Update Cycle. :param id: The id of this FsuCycle. :type: str NrL )rF r rH rH rI r & s c C s | j S )z� Gets the display_name of this FsuCycle. Exadata Fleet Update Cycle display name. :return: The display_name of this FsuCycle. :rtype: str �r1 rM rH rH rI r 2 s zFsuCycle.display_namec C s || _ dS )z� Sets the display_name of this FsuCycle. Exadata Fleet Update Cycle display name. :param display_name: The display_name of this FsuCycle. :type: str NrN )rF r rH rH rI r > s c C s | j S )z� **[Required]** Gets the compartment_id of this FsuCycle. Compartment Identifier. :return: The compartment_id of this FsuCycle. :rtype: str �r2 rM rH rH rI r J s zFsuCycle.compartment_idc C s || _ dS )z� Sets the compartment_id of this FsuCycle. Compartment Identifier. :param compartment_id: The compartment_id of this FsuCycle. :type: str NrO )rF r rH rH rI r V s c C s | j S )aZ **[Required]** Gets the type of this FsuCycle. Type of Exadata Fleet Update Cycle. Allowed values for this property are: "PATCH", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this FsuCycle. :rtype: str )r3 rM rH rH rI r b s z FsuCycle.typec C s dg}t ||�sd}|| _dS )z� Sets the type of this FsuCycle. Type of Exadata Fleet Update Cycle. :param type: The type of this FsuCycle. :type: str r �UNKNOWN_ENUM_VALUEN)r r3 )rF r �allowed_valuesrH rH rI r q s c C s | j S )z� **[Required]** Gets the fsu_collection_id of this FsuCycle. OCID identifier for the Collection ID the Exadata Fleet Update Cycle is assigned to. :return: The fsu_collection_id of this FsuCycle. :rtype: str �r4 rM rH rH rI r � s zFsuCycle.fsu_collection_idc C s || _ dS )z� Sets the fsu_collection_id of this FsuCycle. OCID identifier for the Collection ID the Exadata Fleet Update Cycle is assigned to. :param fsu_collection_id: The fsu_collection_id of this FsuCycle. :type: str NrR )rF r rH rH rI r � s c C s | j S )a Gets the collection_type of this FsuCycle. Type of Collection this Exadata Fleet Update Cycle belongs to. Allowed values for this property are: "DB", "GI", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The collection_type of this FsuCycle. :rtype: str )r5 rM rH rH rI r � s zFsuCycle.collection_typec C s ddg}t ||�sd}|| _dS )z� Sets the collection_type of this FsuCycle. Type of Collection this Exadata Fleet Update Cycle belongs to. :param collection_type: The collection_type of this FsuCycle. :type: str r r rP N)r r5 )rF r rQ rH rH rI r � s c C s | j S )z� Gets the executing_fsu_action_id of this FsuCycle. OCID identifier for the Action that is currently in execution, if applicable. :return: The executing_fsu_action_id of this FsuCycle. :rtype: str �r6 rM rH rH rI r � s z FsuCycle.executing_fsu_action_idc C s || _ dS )a Sets the executing_fsu_action_id of this FsuCycle. OCID identifier for the Action that is currently in execution, if applicable. :param executing_fsu_action_id: The executing_fsu_action_id of this FsuCycle. :type: str NrS )rF r rH rH rI r � s c C s | j S )a? Gets the next_action_to_execute of this FsuCycle. In this array all the possible actions will be listed. The first element is the suggested Action. :return: The next_action_to_execute of this FsuCycle. :rtype: list[oci.fleet_software_update.models.NextActionToExecuteDetails] �r7 rM rH rH rI r! � s zFsuCycle.next_action_to_executec C s || _ dS )aT Sets the next_action_to_execute of this FsuCycle. In this array all the possible actions will be listed. The first element is the suggested Action. :param next_action_to_execute: The next_action_to_execute of this FsuCycle. :type: list[oci.fleet_software_update.models.NextActionToExecuteDetails] NrT )rF r! rH rH rI r! � s c C s | j S )a= Gets the last_completed_action of this FsuCycle. The latest Action type that was completed in the Exadata Fleet Update Cycle. No value would indicate that the Cycle has not completed any Action yet. Allowed values for this property are: "STAGE", "PRECHECK_STAGE", "PRECHECK_APPLY", "APPLY", "ROLLBACK_AND_REMOVE_TARGET", "CLEANUP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The last_completed_action of this FsuCycle. :rtype: str )r8 rM rH rH rI r"