ruạṛ
a O��fO � @ 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 ZdZdZdZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$d%� �Zejd&d%� �Zed'd(� �Zejd)d(� �Zed*d+� �Zejd,d+� �Zed-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$d<d=� Z%d>d?� Z&d@dA� Z'dBS )C�WorkRequestz� An asynchronous work request. See `Work Requests`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/workrequestoverview.htm �CREATE_FLEET�DELETE_FLEET� MOVE_FLEET�UPDATE_FLEET� UPDATE_FLEET_AGENT_CONFIGURATION�DELETE_JAVA_INSTALLATION�CREATE_JAVA_INSTALLATION�COLLECT_JFR�REQUEST_CRYPTO_EVENT_ANALYSIS�SCAN_JAVA_SERVER_USAGE�SCAN_LIBRARY_USAGE�ACCEPTED�CANCELED� CANCELING�FAILED�IN_PROGRESS� SUCCEEDEDc K s� dddddddddddddd� | _ dd d ddd dddddddd� | _d| _d| _d| _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: "CREATE_FLEET", "DELETE_FLEET", "MOVE_FLEET", "UPDATE_FLEET", "UPDATE_FLEET_AGENT_CONFIGURATION", "DELETE_JAVA_INSTALLATION", "CREATE_JAVA_INSTALLATION", "COLLECT_JFR", "REQUEST_CRYPTO_EVENT_ANALYSIS", "SCAN_JAVA_SERVER_USAGE", "SCAN_LIBRARY_USAGE", '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", "CANCELED", "CANCELING", "FAILED", "IN_PROGRESS", "SUCCEEDED", '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.jms.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 created_by: The value to assign to the created_by property of this WorkRequest. :type created_by: oci.jms.models.Principal :param time_last_updated: The value to assign to the time_last_updated property of this WorkRequest. :type time_last_updated: datetime :param total_task_count: The value to assign to the total_task_count property of this WorkRequest. :type total_task_count: int :param completed_task_count: The value to assign to the completed_task_count property of this WorkRequest. :type completed_task_count: int �strzlist[WorkRequestResource]�float�datetime� Principal�int) �operation_type�status�id�compartment_id� resources�percent_complete� time_accepted�time_started� time_finished� created_by�time_last_updated�total_task_count�completed_task_count� operationTyper r � compartmentIdr! �percentComplete�timeAccepted�timeStarted�timeFinished� createdBy�timeLastUpdated�totalTaskCount�completedTaskCountN)� swagger_types� attribute_map�_operation_type�_status�_id�_compartment_id� _resources�_percent_complete�_time_accepted� _time_started�_time_finished�_created_by�_time_last_updated�_total_task_count�_completed_task_count)�self�kwargs� rE �/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/jms/models/work_request.py�__init__V sR ?��zWorkRequest.__init__c C s | j S )az **[Required]** Gets the operation_type of this WorkRequest. The asynchronous operation tracked by this work request. Allowed values for this property are: "CREATE_FLEET", "DELETE_FLEET", "MOVE_FLEET", "UPDATE_FLEET", "UPDATE_FLEET_AGENT_CONFIGURATION", "DELETE_JAVA_INSTALLATION", "CREATE_JAVA_INSTALLATION", "COLLECT_JFR", "REQUEST_CRYPTO_EVENT_ANALYSIS", "SCAN_JAVA_SERVER_USAGE", "SCAN_LIBRARY_USAGE", '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 )r6 �rC rE rE rF 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 r r r r r r �UNKNOWN_ENUM_VALUEN)r r6 )rC r �allowed_valuesrE rE rF r � s c C s | j S )a� **[Required]** Gets the status of this WorkRequest. The status of the work request. Allowed values for this property are: "ACCEPTED", "CANCELED", "CANCELING", "FAILED", "IN_PROGRESS", "SUCCEEDED", '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 )r7 rH rE rE rF r � s zWorkRequest.statusc C s g d�}t ||�sd}|| _dS )z� Sets the status of this WorkRequest. The status of the work request. :param status: The status of this WorkRequest. :type: str )r r r r r r rI N)r r7 )rC r rJ rE rE rF 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/Content/General/Concepts/identifiers.htm :return: The id of this WorkRequest. :rtype: str �r8 rH rE rE rF r � s zWorkRequest.idc C s || _ dS )z� Sets the id of this WorkRequest. The `OCID`__ of the work request. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param id: The id of this WorkRequest. :type: str NrK )rC r rE rE rF r s c C s | j S )aq **[Required]** Gets the compartment_id of this WorkRequest. The `OCID`__ of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The compartment_id of this WorkRequest. :rtype: str �r9 rH rE rE rF r s zWorkRequest.compartment_idc C s || _ dS )ao Sets the compartment_id of this WorkRequest. The `OCID`__ of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this WorkRequest. :type: str NrL )rC r rE rE rF r + s c C s | j S )z� **[Required]** Gets the resources of this WorkRequest. The resources that are affected by this work request. :return: The resources of this WorkRequest. :rtype: list[oci.jms.models.WorkRequestResource] �r: rH rE rE rF r! < s zWorkRequest.resourcesc C s || _ dS )z� Sets the resources of this WorkRequest. The resources that are affected by this work request. :param resources: The resources of this WorkRequest. :type: list[oci.jms.models.WorkRequestResource] NrM )rC r! rE rE rF r! H s c C s | j S )z� **[Required]** Gets the percent_complete of this WorkRequest. The percentage complete of the operation tracked by this work request. :return: The percent_complete of this WorkRequest. :rtype: float �r; rH rE rE rF r"