ruạṛ
a ���f�= � @ 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 @ sh e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Zejd+d*� �Zed,d-� �Zejd.d-� �Zd/d0� Zd1d2� Zd3d4� Z d5S )6�WorkRequesta� This is an asynchronous work request. Work requests help you monitor long-running operations. When you start a long-running operation, the service creates a work request. A work request is an activity log that lets you track each step in the operation's progress. Each work request has an OCID that lets you interact with it programmatically and use it for automation. �START_RESOURCE� STOP_RESOURCE�CHANGE_SCHEDULE_COMPARTMENT�CREATE_SCHEDULE�UPDATE_SCHEDULE�ACCEPTED�IN_PROGRESS�WAITING�NEEDS_ATTENTION�FAILED� SUCCEEDED� CANCELING�CANCELEDc K sx ddddddddddd� | _ dddd d ddd ddd� | _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _dS )a� Initializes a new WorkRequest object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param operation_type: The value to assign to the operation_type property of this WorkRequest. Allowed values for this property are: "START_RESOURCE", "STOP_RESOURCE", "CHANGE_SCHEDULE_COMPARTMENT", "CREATE_SCHEDULE", "UPDATE_SCHEDULE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str :param status: The value to assign to the status property of this WorkRequest. Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param id: The value to assign to the id property of this WorkRequest. :type id: str :param compartment_id: The value to assign to the compartment_id property of this WorkRequest. :type compartment_id: str :param resources: The value to assign to the resources property of this WorkRequest. :type resources: list[oci.resource_scheduler.models.WorkRequestResource] :param percent_complete: The value to assign to the percent_complete property of this WorkRequest. :type percent_complete: float :param time_accepted: The value to assign to the time_accepted property of this WorkRequest. :type time_accepted: datetime :param time_started: The value to assign to the time_started property of this WorkRequest. :type time_started: datetime :param time_finished: The value to assign to the time_finished property of this WorkRequest. :type time_finished: datetime :param time_updated: The value to assign to the time_updated property of this WorkRequest. :type time_updated: datetime �strzlist[WorkRequestResource]�floatZdatetime) �operation_type�status�id�compartment_id� resources�percent_complete� time_accepted�time_started� time_finished�time_updatedZ operationTyper r Z compartmentIdr ZpercentCompleteZtimeAcceptedZtimeStartedZtimeFinishedZtimeUpdatedN)Z swagger_typesZ attribute_map�_operation_type�_status�_id�_compartment_id� _resources�_percent_complete�_time_accepted� _time_started�_time_finished� _time_updated)�self�kwargs� r, �N/usr/lib/python3.9/site-packages/oci/resource_scheduler/models/work_request.py�__init__H s@ 3�� zWorkRequest.__init__c C s | j S )a� **[Required]** Gets the operation_type of this WorkRequest. The asynchronous operation tracked by this work request. Allowed values for this property are: "START_RESOURCE", "STOP_RESOURCE", "CHANGE_SCHEDULE_COMPARTMENT", "CREATE_SCHEDULE", "UPDATE_SCHEDULE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The operation_type of this WorkRequest. :rtype: str )r �r* r, r, r- r � s zWorkRequest.operation_typec C s g d�}t ||�sd}|| _dS )z� Sets the operation_type of this WorkRequest. The asynchronous operation tracked by this work request. :param operation_type: The operation_type of this WorkRequest. :type: str )r r r r r �UNKNOWN_ENUM_VALUEN)r r )r* r �allowed_valuesr, r, r- r � s c C s | j S )a� **[Required]** Gets the status of this WorkRequest. This is the status of the work request. Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status of this WorkRequest. :rtype: str )r! r/ r, r, r- r � s zWorkRequest.statusc C s g d�}t ||�sd}|| _dS )z� Sets the status of this WorkRequest. This is the status of the work request. :param status: The status of this WorkRequest. :type: str )r r r r r r r r r0 N)r r! )r* r r1 r, r, r- r � s c C s | j S )a **[Required]** Gets the id of this WorkRequest. The `OCID`__ of the work request. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The id of this WorkRequest. :rtype: str �r"