a Of}7@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@sbeZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZddZeddZejddZeddZejddZeddZejddZedd Zejd!d Zed"d#Zejd$d#Zed%d&Zejd'd&Zed(d)Zejd*d)Zed+d,Z e jd-d,Z ed.d/Z!e!jd0d/Z!d1d2Z"d3d4Z#d5d6Z$d7S)8 WorkRequestz A work request. CREATE_LOG UPDATE_LOG DELETE_LOGMOVE_LOGCREATE_LOG_GROUPUPDATE_LOG_GROUPDELETE_LOG_GROUPMOVE_LOG_GROUPCREATE_CONFIGURATIONUPDATE_CONFIGURATIONDELETE_CONFIGURATIONMOVE_CONFIGURATIONACCEPTED IN_PROGRESSFAILED SUCCEEDED CANCELLINGCANCELEDc Ksndddddddddd |_dddd d d d d dd |_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ dS)ax 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 id: The value to assign to the id property of this WorkRequest. :type id: str :param operation_type: The value to assign to the operation_type property of this WorkRequest. Allowed values for this property are: "CREATE_LOG", "UPDATE_LOG", "DELETE_LOG", "MOVE_LOG", "CREATE_LOG_GROUP", "UPDATE_LOG_GROUP", "DELETE_LOG_GROUP", "MOVE_LOG_GROUP", "CREATE_CONFIGURATION", "UPDATE_CONFIGURATION", "DELETE_CONFIGURATION", "MOVE_CONFIGURATION", '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", "FAILED", "SUCCEEDED", "CANCELLING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: 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.logging.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]floatdatetime) idoperation_typestatuscompartment_id resourcespercent_complete time_accepted time_started time_finishedr operationTyper compartmentIdr percentComplete timeAccepted timeStarted timeFinishedN) swagger_types attribute_map_id_operation_type_status_compartment_id _resources_percent_complete_time_accepted _time_started_time_finished)selfkwargsr8/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/logging/models/work_request.py__init__Xs:/  zWorkRequest.__init__cCs|jS)z **[Required]** Gets the id of this WorkRequest. The work request OCID. :return: The id of this WorkRequest. :rtype: str r-r6r8r8r9rs zWorkRequest.idcCs ||_dS)z Sets the id of this WorkRequest. The work request OCID. :param id: The id of this WorkRequest. :type: str Nr;)r6rr8r8r9rs cCs|jS)aU **[Required]** Gets the operation_type of this WorkRequest. The type of work the work request is doing. Allowed values for this property are: "CREATE_LOG", "UPDATE_LOG", "DELETE_LOG", "MOVE_LOG", "CREATE_LOG_GROUP", "UPDATE_LOG_GROUP", "DELETE_LOG_GROUP", "MOVE_LOG_GROUP", "CREATE_CONFIGURATION", "UPDATE_CONFIGURATION", "DELETE_CONFIGURATION", "MOVE_CONFIGURATION", '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<r8r8r9rs zWorkRequest.operation_typecCs gd}t||sd}||_dS)z Sets the operation_type of this WorkRequest. The type of work the work request is doing. :param operation_type: The operation_type of this WorkRequest. :type: str ) rrr r r r r rrrrrUNKNOWN_ENUM_VALUEN)rr.)r6rallowed_valuesr8r8r9rs  cCs|jS)a **[Required]** Gets the status of this WorkRequest. The current status of the work request. Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELLING", "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<r8r8r9rs zWorkRequest.statuscCs gd}t||sd}||_dS)z Sets the status of this WorkRequest. The current status of the work request. :param status: The status of this WorkRequest. :type: str )rrrrrrr=N)rr/)r6rr>r8r8r9rs  cCs|jS)u **[Required]** Gets the compartment_id of this WorkRequest. The work request’s compartment OCID. :return: The compartment_id of this WorkRequest. :rtype: str r0r<r8r8r9rs zWorkRequest.compartment_idcCs ||_dS)u Sets the compartment_id of this WorkRequest. The work request’s compartment OCID. :param compartment_id: The compartment_id of this WorkRequest. :type: str Nr?)r6rr8r8r9rs cCs|jS)z **[Required]** Gets the resources of this WorkRequest. The resources this work request affects. :return: The resources of this WorkRequest. :rtype: list[oci.logging.models.WorkRequestResource] r1r<r8r8r9r s zWorkRequest.resourcescCs ||_dS)z Sets the resources of this WorkRequest. The resources this work request affects. :param resources: The resources of this WorkRequest. :type: list[oci.logging.models.WorkRequestResource] Nr@)r6r r8r8r9r s cCs|jS)z **[Required]** Gets the percent_complete of this WorkRequest. Percentage of the request completed. :return: The percent_complete of this WorkRequest. :rtype: float r2r<r8r8r9r!,s zWorkRequest.percent_completecCs ||_dS)z Sets the percent_complete of this WorkRequest. Percentage of the request completed. :param percent_complete: The percent_complete of this WorkRequest. :type: float NrA)r6r!r8r8r9r!8s cCs|jS)z **[Required]** Gets the time_accepted of this WorkRequest. The time the work request was accepted. :return: The time_accepted of this WorkRequest. :rtype: datetime r3r<r8r8r9r"Ds zWorkRequest.time_acceptedcCs ||_dS)z Sets the time_accepted of this WorkRequest. The time the work request was accepted. :param time_accepted: The time_accepted of this WorkRequest. :type: datetime NrB)r6r"r8r8r9r"Ps cCs|jS)z Gets the time_started of this WorkRequest. The time the work request was started. :return: The time_started of this WorkRequest. :rtype: datetime r4r<r8r8r9r#\s zWorkRequest.time_startedcCs ||_dS)z Sets the time_started of this WorkRequest. The time the work request was started. :param time_started: The time_started of this WorkRequest. :type: datetime NrC)r6r#r8r8r9r#hs cCs|jS)z Gets the time_finished of this WorkRequest. The time the work request was finished. :return: The time_finished of this WorkRequest. :rtype: datetime r5r<r8r8r9r$ts zWorkRequest.time_finishedcCs ||_dS)z Sets the time_finished of this WorkRequest. The time the work request was finished. :param time_finished: The time_finished of this WorkRequest. :type: datetime NrD)r6r$r8r8r9r$s cCst|SN)rr<r8r8r9__repr__szWorkRequest.__repr__cCs|dur dS|j|jkS)NF)__dict__r6otherr8r8r9__eq__szWorkRequest.__eq__cCs ||k SrEr8rHr8r8r9__ne__szWorkRequest.__ne__N)%__name__ __module__ __qualname____doc__OPERATION_TYPE_CREATE_LOGOPERATION_TYPE_UPDATE_LOGOPERATION_TYPE_DELETE_LOGOPERATION_TYPE_MOVE_LOGOPERATION_TYPE_CREATE_LOG_GROUPOPERATION_TYPE_UPDATE_LOG_GROUPOPERATION_TYPE_DELETE_LOG_GROUPOPERATION_TYPE_MOVE_LOG_GROUP#OPERATION_TYPE_CREATE_CONFIGURATION#OPERATION_TYPE_UPDATE_CONFIGURATION#OPERATION_TYPE_DELETE_CONFIGURATION!OPERATION_TYPE_MOVE_CONFIGURATIONSTATUS_ACCEPTEDSTATUS_IN_PROGRESS STATUS_FAILEDSTATUS_SUCCEEDEDSTATUS_CANCELLINGSTATUS_CANCELEDr:propertyrsetterrrrr r!r"r#r$rFrJrKr8r8r8r9r svP                  rN)oci.utilrrroci.decoratorsrobjectrr8r8r8r9s