a üÎòfüXã@s8ddlmZmZmZddlmZeGdd„deƒƒZdS)é)Úformatted_flat_dictÚ NONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc@sêeZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdd„Zedd„ƒZ e j!d d„ƒZ ed!d"„ƒZ"e"j!d#d"„ƒZ"ed$d%„ƒZ#e#j!d&d%„ƒZ#ed'd(„ƒZ$e$j!d)d(„ƒZ$ed*d+„ƒZ%e%j!d,d+„ƒZ%ed-d.„ƒZ&e&j!d/d.„ƒZ&ed0d1„ƒZ'e'j!d2d1„ƒZ'ed3d4„ƒZ(e(j!d5d4„ƒZ(ed6d7„ƒZ)e)j!d8d7„ƒZ)ed9d:„ƒZ*e*j!d;d:„ƒZ*edd=„ƒZ+ed?d@„ƒZ,e,j!dAd@„ƒZ,edBdC„ƒZ-e-j!dDdC„ƒZ-dEdF„Z.dGdH„Z/dIdJ„Z0dKS)LÚ 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Ú#REQUEST_PERFORMANCE_TUNING_ANALYSISÚREQUEST_JAVA_MIGRATION_ANALYSISÚDELETE_JMS_REPORTÚSCAN_JAVA_SERVER_USAGEÚSCAN_LIBRARY_USAGEÚEXPORT_DATA_CSVÚCREATE_DRS_FILEÚUPDATE_DRS_FILEÚDELETE_DRS_FILEÚ ENABLE_DRSÚ DISABLE_DRSÚACCEPTEDÚCANCELEDÚ CANCELINGÚFAILEDÚ IN_PROGRESSÚ SUCCEEDEDcKs–ddddddddddddddœ |_dd d d d d 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", "REQUEST_PERFORMANCE_TUNING_ANALYSIS", "REQUEST_JAVA_MIGRATION_ANALYSIS", "DELETE_JMS_REPORT", "SCAN_JAVA_SERVER_USAGE", "SCAN_LIBRARY_USAGE", "EXPORT_DATA_CSV", "CREATE_DRS_FILE", "UPDATE_DRS_FILE", "DELETE_DRS_FILE", "ENABLE_DRS", "DISABLE_DRS", '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]ÚfloatZdatetimeZ 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_countZ operationTyper%r&Z compartmentIdr(ZpercentCompleteZ timeAcceptedZ timeStartedZ timeFinishedZ createdByZtimeLastUpdatedZtotalTaskCountZcompletedTaskCountN)Z swagger_typesZ 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©r@ú?/usr/lib/python3.9/site-packages/oci/jms/models/work_request.pyÚ__init__|sR?óózWorkRequest.__init__cCs|jS)aB **[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", "REQUEST_PERFORMANCE_TUNING_ANALYSIS", "REQUEST_JAVA_MIGRATION_ANALYSIS", "DELETE_JMS_REPORT", "SCAN_JAVA_SERVER_USAGE", "SCAN_LIBRARY_USAGE", "EXPORT_DATA_CSV", "CREATE_DRS_FILE", "UPDATE_DRS_FILE", "DELETE_DRS_FILE", "ENABLE_DRS", "DISABLE_DRS", '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 )r1©r>r@r@rAr$ès zWorkRequest.operation_typecCs gd¢}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 )rrr r r r r rrrrrrrrrrrrrÚUNKNOWN_ENUM_VALUEN)rr1)r>r$Úallowed_valuesr@r@rAr$÷s  cCs|jS)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 )r2rCr@r@rAr%s zWorkRequest.statuscCs gd¢}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 )rrrrrr rDN)rr2)r>r%rEr@r@rAr%s  cCs|jS)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 ©r3rCr@r@rAr&$s zWorkRequest.idcCs ||_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 NrF)r>r&r@r@rAr&2s cCs|jS)ao **[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 aren't in the same compartment, it's 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 ©r4rCr@r@rAr'@szWorkRequest.compartment_idcCs ||_dS)am 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 aren't in the same compartment, it's 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 NrG)r>r'r@r@rAr'QscCs|jS)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] ©r5rCr@r@rAr(bs zWorkRequest.resourcescCs ||_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] NrH)r>r(r@r@rAr(ns cCs|jS)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 ©r6rCr@r@rAr)zs zWorkRequest.percent_completecCs ||_dS)zñ Sets the percent_complete of this WorkRequest. The percentage complete of the operation tracked by this work request. :param percent_complete: The percent_complete of this WorkRequest. :type: float NrI)r>r)r@r@rAr)†s cCs|jS)a1 **[Required]** Gets the time_accepted of this WorkRequest. The date and time the request was created (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The time_accepted of this WorkRequest. :rtype: datetime ©r7rCr@r@rAr*’s zWorkRequest.time_acceptedcCs ||_dS)a. Sets the time_accepted of this WorkRequest. The date and time the request was created (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :param time_accepted: The time_accepted of this WorkRequest. :type: datetime NrJ)r>r*r@r@rAr* s cCs|jS)aG Gets the time_started of this WorkRequest. The date and time the work request transitioned from _ACCEPTED_ to _IN_PROGRESS_ (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The time_started of this WorkRequest. :rtype: datetime ©r8rCr@r@rAr+®s zWorkRequest.time_startedcCs ||_dS)aR Sets the time_started of this WorkRequest. The date and time the work request transitioned from _ACCEPTED_ to _IN_PROGRESS_ (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :param time_started: The time_started of this WorkRequest. :type: datetime NrK)r>r+r@r@rAr+¼s cCs|jS)aT Gets the time_finished of this WorkRequest. The date and time the work request reached a terminal state, either _FAILED_ or _SUCCEEDED_ (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The time_finished of this WorkRequest. :rtype: datetime ©r9rCr@r@rAr,Ês zWorkRequest.time_finishedcCs ||_dS)a` Sets the time_finished of this WorkRequest. The date and time the work request reached a terminal state, either _FAILED_ or _SUCCEEDED_ (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :param time_finished: The time_finished of this WorkRequest. :type: datetime NrL)r>r,r@r@rAr,Øs cCs|jS)z™ Gets the created_by of this WorkRequest. :return: The created_by of this WorkRequest. :rtype: oci.jms.models.Principal ©r:rCr@r@rAr-æszWorkRequest.created_bycCs ||_dS)z¢ Sets the created_by of this WorkRequest. :param created_by: The created_by of this WorkRequest. :type: oci.jms.models.Principal NrM)r>r-r@r@rAr-ðscCs|jS)a@ Gets the time_last_updated of this WorkRequest. The date and time the work request percentage was last updated. (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The time_last_updated of this WorkRequest. :rtype: datetime ©r;rCr@r@rAr.ús zWorkRequest.time_last_updatedcCs ||_dS)aP Sets the time_last_updated of this WorkRequest. The date and time the work request percentage was last updated. (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :param time_last_updated: The time_last_updated of this WorkRequest. :type: datetime NrN)r>r.r@r@rAr.s cCs|jS)zÙ Gets the total_task_count of this WorkRequest. The total number of tasks to be executed for this work request. :return: The total_task_count of this WorkRequest. :rtype: int ©r<rCr@r@rAr/s zWorkRequest.total_task_countcCs ||_dS)zè Sets the total_task_count of this WorkRequest. The total number of tasks to be executed for this work request. :param total_task_count: The total_task_count of this WorkRequest. :type: int NrO)r>r/r@r@rAr/"s cCs|jS)zÜ Gets the completed_task_count of this WorkRequest. The number of tasks had been executed to a terminal state. :return: The completed_task_count of this WorkRequest. :rtype: int ©r=rCr@r@rAr0.s z WorkRequest.completed_task_countcCs ||_dS)zï Sets the completed_task_count of this WorkRequest. The number of tasks had been executed to a terminal state. :param completed_task_count: The completed_task_count of this WorkRequest. :type: int NrP)r>r0r@r@rAr0:s cCst|ƒS©N)rrCr@r@rAÚ__repr__FszWorkRequest.__repr__cCs|dur dS|j|jkS)NF)Ú__dict__©r>Úotherr@r@rAÚ__eq__IszWorkRequest.__eq__cCs ||k SrQr@rTr@r@rAÚ__ne__OszWorkRequest.__ne__N)1Ú__name__Ú __module__Ú __qualname__Ú__doc__ZOPERATION_TYPE_CREATE_FLEETZOPERATION_TYPE_DELETE_FLEETZOPERATION_TYPE_MOVE_FLEETZOPERATION_TYPE_UPDATE_FLEETZ/OPERATION_TYPE_UPDATE_FLEET_AGENT_CONFIGURATIONZ'OPERATION_TYPE_DELETE_JAVA_INSTALLATIONZ'OPERATION_TYPE_CREATE_JAVA_INSTALLATIONZOPERATION_TYPE_COLLECT_JFRZ,OPERATION_TYPE_REQUEST_CRYPTO_EVENT_ANALYSISZ2OPERATION_TYPE_REQUEST_PERFORMANCE_TUNING_ANALYSISZ.OPERATION_TYPE_REQUEST_JAVA_MIGRATION_ANALYSISZ OPERATION_TYPE_DELETE_JMS_REPORTZ%OPERATION_TYPE_SCAN_JAVA_SERVER_USAGEZ!OPERATION_TYPE_SCAN_LIBRARY_USAGEZOPERATION_TYPE_EXPORT_DATA_CSVZOPERATION_TYPE_CREATE_DRS_FILEZOPERATION_TYPE_UPDATE_DRS_FILEZOPERATION_TYPE_DELETE_DRS_FILEZOPERATION_TYPE_ENABLE_DRSZOPERATION_TYPE_DISABLE_DRSZSTATUS_ACCEPTEDZSTATUS_CANCELEDZSTATUS_CANCELINGZ STATUS_FAILEDZSTATUS_IN_PROGRESSZSTATUS_SUCCEEDEDrBÚpropertyr$Úsetterr%r&r'r(r)r*r+r,r-r.r/r0rRrVrWr@r@r@rAr s¦l                          rN)Zoci.utilrrrZoci.decoratorsrÚobjectrr@r@r@rAÚs