a N•ºfŠEã@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)d9d:„Z*d;d<„Z+d=d>„Z,d?S)@Ú WorkRequestz/ A description of work request status. ÚCREATE_ENVIRONMENTÚUPDATE_ENVIRONMENTÚDELETE_ENVIRONMENTÚMOVE_ENVIRONMENTÚCREATE_OCB_AGENTÚUPDATE_OCB_AGENTÚDELETE_OCB_AGENTÚMOVE_OCB_AGENTÚCREATE_AGENT_DEPENDENCYÚUPDATE_AGENT_DEPENDENCYÚDELETE_AGENT_DEPENDENCYÚMOVE_AGENT_DEPENDENCYÚCREATE_INVENTORYÚDELETE_INVENTORYÚIMPORT_INVENTORYÚDELETE_ASSET_SOURCEÚREFRESH_ASSET_SOURCEÚCREATE_ASSET_SOURCEÚUPDATE_ASSET_SOURCEÚACCEPTEDÚ IN_PROGRESSÚWAITINGÚFAILEDÚ SUCCEEDEDÚ CANCELINGÚCANCELEDc Ksnddddddddddœ |_dddd d d d d ddœ |_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ dS)aL 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_ENVIRONMENT", "UPDATE_ENVIRONMENT", "DELETE_ENVIRONMENT", "MOVE_ENVIRONMENT", "CREATE_OCB_AGENT", "UPDATE_OCB_AGENT", "DELETE_OCB_AGENT", "MOVE_OCB_AGENT", "CREATE_AGENT_DEPENDENCY", "UPDATE_AGENT_DEPENDENCY", "DELETE_AGENT_DEPENDENCY", "MOVE_AGENT_DEPENDENCY", "CREATE_INVENTORY", "DELETE_INVENTORY", "IMPORT_INVENTORY", "DELETE_ASSET_SOURCE", "REFRESH_ASSET_SOURCE", "CREATE_ASSET_SOURCE", "UPDATE_ASSET_SOURCE", '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", "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.cloud_bridge.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 Ústrzlist[WorkRequestResource]ÚfloatÚdatetime) Úoperation_typeÚstatusÚidÚcompartment_idÚ resourcesÚpercent_completeÚ time_acceptedÚ time_startedÚ time_finishedÚ operationTyper%r&Ú compartmentIdr(ÚpercentCompleteÚ timeAcceptedÚ timeStartedÚ timeFinishedN) Ú swagger_typesÚ attribute_mapÚ_operation_typeÚ_statusÚ_idÚ_compartment_idÚ _resourcesÚ_percent_completeÚ_time_acceptedÚ _time_startedÚ_time_finished)ÚselfÚkwargs©r@úˆ/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/cloud_bridge/models/work_request.pyÚ__init__xs:/÷ ÷ zWorkRequest.__init__cCs|jS)a **[Required]** Gets the operation_type of this WorkRequest. Type of work request. Allowed values for this property are: "CREATE_ENVIRONMENT", "UPDATE_ENVIRONMENT", "DELETE_ENVIRONMENT", "MOVE_ENVIRONMENT", "CREATE_OCB_AGENT", "UPDATE_OCB_AGENT", "DELETE_OCB_AGENT", "MOVE_OCB_AGENT", "CREATE_AGENT_DEPENDENCY", "UPDATE_AGENT_DEPENDENCY", "DELETE_AGENT_DEPENDENCY", "MOVE_AGENT_DEPENDENCY", "CREATE_INVENTORY", "DELETE_INVENTORY", "IMPORT_INVENTORY", "DELETE_ASSET_SOURCE", "REFRESH_ASSET_SOURCE", "CREATE_ASSET_SOURCE", "UPDATE_ASSET_SOURCE", '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 )r5©r>r@r@rAr$Ès zWorkRequest.operation_typecCs gd¢}t||ƒsd}||_dS)z¸ Sets the operation_type of this WorkRequest. Type of work request. :param operation_type: The operation_type of this WorkRequest. :type: str )rrr r r r r rrrrrrrrrrrrÚUNKNOWN_ENUM_VALUEN)rr5)r>r$Úallowed_valuesr@r@rAr$×s  cCs|jS)a± **[Required]** Gets the status of this WorkRequest. Status of the current work request. Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "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 )r6rCr@r@rAr%æs zWorkRequest.statuscCs gd¢}t||ƒsd}||_dS)z® Sets the status of this WorkRequest. Status of the current work request. :param status: The status of this WorkRequest. :type: str )rrrrrrr rDN)rr6)r>r%rEr@r@rAr%õs  cCs|jS)zª **[Required]** Gets the id of this WorkRequest. The OCID of the work request. :return: The id of this WorkRequest. :rtype: str ©r7rCr@r@rAr&s zWorkRequest.idcCs ||_dS)zœ Sets the id of this WorkRequest. The OCID of the work request. :param id: The id of this WorkRequest. :type: str NrF)r>r&r@r@rAr&s cCs|jS)a **[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 that the work request affects. If the work request affects multiple resources, and these resources are not in the same compartment, the service team can choose the primary resource whose compartment should be used. :return: The compartment_id of this WorkRequest. :rtype: str ©r8rCr@r@rAr's zWorkRequest.compartment_idcCs ||_dS)a 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 that the work request affects. If the work request affects multiple resources, and these resources are not in the same compartment, the service team can choose the primary resource whose compartment should be used. :param compartment_id: The compartment_id of this WorkRequest. :type: str NrG)r>r'r@r@rAr'+s cCs|jS)zõ **[Required]** Gets the resources of this WorkRequest. The resources affected by this work request. :return: The resources of this WorkRequest. :rtype: list[oci.cloud_bridge.models.WorkRequestResource] ©r9rCr@r@rAr(:s zWorkRequest.resourcescCs ||_dS)zî Sets the resources of this WorkRequest. The resources affected by this work request. :param resources: The resources of this WorkRequest. :type: list[oci.cloud_bridge.models.WorkRequestResource] NrH)r>r(r@r@rAr(Fs cCs|jS)zË **[Required]** Gets the percent_complete of this WorkRequest. Percentage of request completed. :return: The percent_complete of this WorkRequest. :rtype: float ©r:rCr@r@rAr)Rs zWorkRequest.percent_completecCs ||_dS)zË Sets the percent_complete of this WorkRequest. Percentage of request completed. :param percent_complete: The percent_complete of this WorkRequest. :type: float NrI)r>r)r@r@rAr)^s cCs|jS)a; **[Required]** Gets the time_accepted of this WorkRequest. The date and time when the request was created, as described in `RFC 3339`__, section 14.29. __ https://tools.ietf.org/rfc/rfc3339 :return: The time_accepted of this WorkRequest. :rtype: datetime ©r;rCr@r@rAr*js zWorkRequest.time_acceptedcCs ||_dS)a8 Sets the time_accepted of this WorkRequest. The date and time when the request was created, as described in `RFC 3339`__, section 14.29. __ https://tools.ietf.org/rfc/rfc3339 :param time_accepted: The time_accepted of this WorkRequest. :type: datetime NrJ)r>r*r@r@rAr*ys cCs|jS)a& Gets the time_started of this WorkRequest. The date and time when the request started, as described in `RFC 3339`__, section 14.29. __ https://tools.ietf.org/rfc/rfc3339 :return: The time_started of this WorkRequest. :rtype: datetime ©r<rCr@r@rAr+ˆs zWorkRequest.time_startedcCs ||_dS)a1 Sets the time_started of this WorkRequest. The date and time when the request started, as described in `RFC 3339`__, section 14.29. __ https://tools.ietf.org/rfc/rfc3339 :param time_started: The time_started of this WorkRequest. :type: datetime NrK)r>r+r@r@rAr+—s cCs|jS)a Gets the time_finished of this WorkRequest. The date and time when the object was complete, as described in `RFC 3339`__. __ https://tools.ietf.org/rfc/rfc3339 :return: The time_finished of this WorkRequest. :rtype: datetime ©r=rCr@r@rAr,¦s zWorkRequest.time_finishedcCs ||_dS)a! Sets the time_finished of this WorkRequest. The date and time when the object was complete, as described in `RFC 3339`__. __ https://tools.ietf.org/rfc/rfc3339 :param time_finished: The time_finished of this WorkRequest. :type: datetime NrL)r>r,r@r@rAr,´s cCst|ƒS©N)rrCr@r@rAÚ__repr__ÂszWorkRequest.__repr__cCs|dur dS|j|jkS)NF)Ú__dict__©r>Úotherr@r@rAÚ__eq__ÅszWorkRequest.__eq__cCs ||k SrMr@rPr@r@rAÚ__ne__ËszWorkRequest.__ne__N)-Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú!OPERATION_TYPE_CREATE_ENVIRONMENTÚ!OPERATION_TYPE_UPDATE_ENVIRONMENTÚ!OPERATION_TYPE_DELETE_ENVIRONMENTÚOPERATION_TYPE_MOVE_ENVIRONMENTÚOPERATION_TYPE_CREATE_OCB_AGENTÚOPERATION_TYPE_UPDATE_OCB_AGENTÚOPERATION_TYPE_DELETE_OCB_AGENTÚOPERATION_TYPE_MOVE_OCB_AGENTÚ&OPERATION_TYPE_CREATE_AGENT_DEPENDENCYÚ&OPERATION_TYPE_UPDATE_AGENT_DEPENDENCYÚ&OPERATION_TYPE_DELETE_AGENT_DEPENDENCYÚ$OPERATION_TYPE_MOVE_AGENT_DEPENDENCYÚOPERATION_TYPE_CREATE_INVENTORYÚOPERATION_TYPE_DELETE_INVENTORYÚOPERATION_TYPE_IMPORT_INVENTORYÚ"OPERATION_TYPE_DELETE_ASSET_SOURCEÚ#OPERATION_TYPE_REFRESH_ASSET_SOURCEÚ"OPERATION_TYPE_CREATE_ASSET_SOURCEÚ"OPERATION_TYPE_UPDATE_ASSET_SOURCEÚSTATUS_ACCEPTEDÚSTATUS_IN_PROGRESSÚSTATUS_WAITINGÚ STATUS_FAILEDÚSTATUS_SUCCEEDEDÚSTATUS_CANCELINGÚSTATUS_CANCELEDrBÚpropertyr$Úsetterr%r&r'r(r)r*r+r,rNrRrSr@r@r@rAr s†P                  rN)Úoci.utilrrrÚoci.decoratorsrÚobjectrr@r@r@rAÚs