a Nf^@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0d1Z2e3d2d3Z4e4j5d4d3Z4e3d5d6Z6e6j5d7d6Z6e3d8d9Z7e7j5d:d9Z7e3d;d<Z8e8j5d=d<Z8e3d>d?Z9e9j5d@d?Z9e3dAdBZ:e:j5dCdBZ:e3dDdEZ;e;j5dFdEZ;e3dGdHZdOdPZ?dQdRZ@dSS)TWorkRequestSummaryz- Details of the work request status. CREATE_PROJECTUPDATE_PROJECTDELETE_PROJECT MOVE_PROJECTCREATE_DEPLOY_PIPELINEUPDATE_DEPLOY_PIPELINEDELETE_DEPLOY_PIPELINECREATE_DEPLOY_STAGEUPDATE_DEPLOY_STAGEDELETE_DEPLOY_STAGECREATE_DEPLOY_ARTIFACTUPDATE_DEPLOY_ARTIFACTDELETE_DEPLOY_ARTIFACTCREATE_DEPLOY_ENVIRONMENTUPDATE_DEPLOY_ENVIRONMENTDELETE_DEPLOY_ENVIRONMENTCREATE_DEPLOYMENTUPDATE_DEPLOYMENTDELETE_DEPLOYMENTCREATE_BUILD_PIPELINEUPDATE_BUILD_PIPELINEDELETE_BUILD_PIPELINECREATE_BUILD_PIPELINE_STAGEUPDATE_BUILD_PIPELINE_STAGEDELETE_BUILD_PIPELINE_STAGECREATE_CONNECTIONUPDATE_CONNECTIONDELETE_CONNECTIONCREATE_TRIGGERUPDATE_TRIGGERDELETE_TRIGGEREXECUTE_TRIGGERCREATE_REPOSITORYUPDATE_REPOSITORYDELETE_REPOSITORYMIRROR_REPOSITORY#SCHEDULE_CASCADING_PROJECT_DELETION+CANCEL_SCHEDULED_CASCADING_PROJECT_DELETIONACCEPTED IN_PROGRESSFAILED SUCCEEDED CANCELINGCANCELEDWAITINGNEEDS_ATTENTIONc Ksndddddddddd |_dddd d d d d dd |_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ dS)a Initializes a new WorkRequestSummary 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 WorkRequestSummary. Allowed values for this property are: "CREATE_PROJECT", "UPDATE_PROJECT", "DELETE_PROJECT", "MOVE_PROJECT", "CREATE_DEPLOY_PIPELINE", "UPDATE_DEPLOY_PIPELINE", "DELETE_DEPLOY_PIPELINE", "CREATE_DEPLOY_STAGE", "UPDATE_DEPLOY_STAGE", "DELETE_DEPLOY_STAGE", "CREATE_DEPLOY_ARTIFACT", "UPDATE_DEPLOY_ARTIFACT", "DELETE_DEPLOY_ARTIFACT", "CREATE_DEPLOY_ENVIRONMENT", "UPDATE_DEPLOY_ENVIRONMENT", "DELETE_DEPLOY_ENVIRONMENT", "CREATE_DEPLOYMENT", "UPDATE_DEPLOYMENT", "DELETE_DEPLOYMENT", "CREATE_BUILD_PIPELINE", "UPDATE_BUILD_PIPELINE", "DELETE_BUILD_PIPELINE", "CREATE_BUILD_PIPELINE_STAGE", "UPDATE_BUILD_PIPELINE_STAGE", "DELETE_BUILD_PIPELINE_STAGE", "CREATE_CONNECTION", "UPDATE_CONNECTION", "DELETE_CONNECTION", "CREATE_TRIGGER", "UPDATE_TRIGGER", "DELETE_TRIGGER", "EXECUTE_TRIGGER", "CREATE_REPOSITORY", "UPDATE_REPOSITORY", "DELETE_REPOSITORY", "MIRROR_REPOSITORY", "SCHEDULE_CASCADING_PROJECT_DELETION", "CANCEL_SCHEDULED_CASCADING_PROJECT_DELETION", '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 WorkRequestSummary. Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "WAITING", "NEEDS_ATTENTION", '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 WorkRequestSummary. :type id: str :param compartment_id: The value to assign to the compartment_id property of this WorkRequestSummary. :type compartment_id: str :param resources: The value to assign to the resources property of this WorkRequestSummary. :type resources: list[oci.devops.models.WorkRequestResource] :param percent_complete: The value to assign to the percent_complete property of this WorkRequestSummary. :type percent_complete: float :param time_accepted: The value to assign to the time_accepted property of this WorkRequestSummary. :type time_accepted: datetime :param time_started: The value to assign to the time_started property of this WorkRequestSummary. :type time_started: datetime :param time_finished: The value to assign to the time_finished property of this WorkRequestSummary. :type time_finished: datetime strzlist[WorkRequestResource]floatdatetime) operation_typestatusidcompartment_id resourcespercent_complete time_accepted time_started time_finished operationTyper9r: compartmentIdr<percentComplete timeAccepted timeStarted timeFinishedN) swagger_types attribute_map_operation_type_status_id_compartment_id _resources_percent_complete_time_accepted _time_started_time_finished)selfkwargsrT/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/devops/models/work_request_summary.py__init__s:/  zWorkRequestSummary.__init__cCs|jS)a **[Required]** Gets the operation_type of this WorkRequestSummary. Type of the work request. Allowed values for this property are: "CREATE_PROJECT", "UPDATE_PROJECT", "DELETE_PROJECT", "MOVE_PROJECT", "CREATE_DEPLOY_PIPELINE", "UPDATE_DEPLOY_PIPELINE", "DELETE_DEPLOY_PIPELINE", "CREATE_DEPLOY_STAGE", "UPDATE_DEPLOY_STAGE", "DELETE_DEPLOY_STAGE", "CREATE_DEPLOY_ARTIFACT", "UPDATE_DEPLOY_ARTIFACT", "DELETE_DEPLOY_ARTIFACT", "CREATE_DEPLOY_ENVIRONMENT", "UPDATE_DEPLOY_ENVIRONMENT", "DELETE_DEPLOY_ENVIRONMENT", "CREATE_DEPLOYMENT", "UPDATE_DEPLOYMENT", "DELETE_DEPLOYMENT", "CREATE_BUILD_PIPELINE", "UPDATE_BUILD_PIPELINE", "DELETE_BUILD_PIPELINE", "CREATE_BUILD_PIPELINE_STAGE", "UPDATE_BUILD_PIPELINE_STAGE", "DELETE_BUILD_PIPELINE_STAGE", "CREATE_CONNECTION", "UPDATE_CONNECTION", "DELETE_CONNECTION", "CREATE_TRIGGER", "UPDATE_TRIGGER", "DELETE_TRIGGER", "EXECUTE_TRIGGER", "CREATE_REPOSITORY", "UPDATE_REPOSITORY", "DELETE_REPOSITORY", "MIRROR_REPOSITORY", "SCHEDULE_CASCADING_PROJECT_DELETION", "CANCEL_SCHEDULED_CASCADING_PROJECT_DELETION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The operation_type of this WorkRequestSummary. :rtype: str )rIrRrTrTrUr8s z!WorkRequestSummary.operation_typecCs gd}t||sd}||_dS)z Sets the operation_type of this WorkRequestSummary. Type of the work request. :param operation_type: The operation_type of this WorkRequestSummary. :type: str )&rrr r r r r rrrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,UNKNOWN_ENUM_VALUEN)rrI)rRr8allowed_valuesrTrTrUr8's  cCs|jS)a **[Required]** Gets the status of this WorkRequestSummary. Status of current work request. Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "WAITING", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status of this WorkRequestSummary. :rtype: str )rJrWrTrTrUr96s zWorkRequestSummary.statuscCs gd}t||sd}||_dS)z Sets the status of this WorkRequestSummary. Status of current work request. :param status: The status of this WorkRequestSummary. :type: str )r-r.r/r0r1r2r3r4rXN)rrJ)rRr9rYrTrTrUr9Es  cCs|jS)z **[Required]** Gets the id of this WorkRequestSummary. The OCID of the work request. :return: The id of this WorkRequestSummary. :rtype: str rKrWrTrTrUr:Ts zWorkRequestSummary.idcCs ||_dS)z Sets the id of this WorkRequestSummary. The OCID of the work request. :param id: The id of this WorkRequestSummary. :type: str NrZ)rRr:rTrTrUr:`s cCs|jS)a **[Required]** Gets the compartment_id of this WorkRequestSummary. The OCID of the compartment that contains the work request. Work requests must be scoped to the same compartment as the resource that the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, the service team must pick the primary resource whose compartment must be used. :return: The compartment_id of this WorkRequestSummary. :rtype: str rLrWrTrTrUr;ls z!WorkRequestSummary.compartment_idcCs ||_dS)a Sets the compartment_id of this WorkRequestSummary. The OCID of the compartment that contains the work request. Work requests must be scoped to the same compartment as the resource that the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, the service team must pick the primary resource whose compartment must be used. :param compartment_id: The compartment_id of this WorkRequestSummary. :type: str Nr[)rRr;rTrTrUr;xs cCs|jS)z **[Required]** Gets the resources of this WorkRequestSummary. The resources affected by this work request. :return: The resources of this WorkRequestSummary. :rtype: list[oci.devops.models.WorkRequestResource] rMrWrTrTrUr<s zWorkRequestSummary.resourcescCs ||_dS)z Sets the resources of this WorkRequestSummary. The resources affected by this work request. :param resources: The resources of this WorkRequestSummary. :type: list[oci.devops.models.WorkRequestResource] Nr\)rRr<rTrTrUr<s cCs|jS)z **[Required]** Gets the percent_complete of this WorkRequestSummary. Percentage of the request completed. :return: The percent_complete of this WorkRequestSummary. :rtype: float rNrWrTrTrUr=s z#WorkRequestSummary.percent_completecCs ||_dS)z Sets the percent_complete of this WorkRequestSummary. Percentage of the request completed. :param percent_complete: The percent_complete of this WorkRequestSummary. :type: float Nr])rRr=rTrTrUr=s cCs|jS)a5 **[Required]** Gets the time_accepted of this WorkRequestSummary. Date and time the request was created. Format defined by `RFC3339`__. __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The time_accepted of this WorkRequestSummary. :rtype: datetime rOrWrTrTrUr>s z WorkRequestSummary.time_acceptedcCs ||_dS)a2 Sets the time_accepted of this WorkRequestSummary. Date and time the request was created. Format defined by `RFC3339`__. __ https://datatracker.ietf.org/doc/html/rfc3339 :param time_accepted: The time_accepted of this WorkRequestSummary. :type: datetime Nr^)rRr>rTrTrUr>s cCs|jS)a$ Gets the time_started of this WorkRequestSummary. Date and time the request was started. Format defined by `RFC3339`__. __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The time_started of this WorkRequestSummary. :rtype: datetime rPrWrTrTrUr?s zWorkRequestSummary.time_startedcCs ||_dS)a/ Sets the time_started of this WorkRequestSummary. Date and time the request was started. Format defined by `RFC3339`__. __ https://datatracker.ietf.org/doc/html/rfc3339 :param time_started: The time_started of this WorkRequestSummary. :type: datetime Nr_)rRr?rTrTrUr?s cCs|jS)a( Gets the time_finished of this WorkRequestSummary. Date and time the request was completed. Format defined by `RFC3339`__. __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The time_finished of this WorkRequestSummary. :rtype: datetime rQrWrTrTrUr@s z WorkRequestSummary.time_finishedcCs ||_dS)a4 Sets the time_finished of this WorkRequestSummary. Date and time the request was completed. Format defined by `RFC3339`__. __ https://datatracker.ietf.org/doc/html/rfc3339 :param time_finished: The time_finished of this WorkRequestSummary. :type: datetime Nr`)rRr@rTrTrUr@s cCst|SN)rrWrTrTrU__repr__szWorkRequestSummary.__repr__cCs|dur dS|j|jkS)NF)__dict__rRotherrTrTrU__eq__ szWorkRequestSummary.__eq__cCs ||k SrarTrdrTrTrU__ne__szWorkRequestSummary.__ne__N)A__name__ __module__ __qualname____doc__OPERATION_TYPE_CREATE_PROJECTOPERATION_TYPE_UPDATE_PROJECTOPERATION_TYPE_DELETE_PROJECTOPERATION_TYPE_MOVE_PROJECT%OPERATION_TYPE_CREATE_DEPLOY_PIPELINE%OPERATION_TYPE_UPDATE_DEPLOY_PIPELINE%OPERATION_TYPE_DELETE_DEPLOY_PIPELINE"OPERATION_TYPE_CREATE_DEPLOY_STAGE"OPERATION_TYPE_UPDATE_DEPLOY_STAGE"OPERATION_TYPE_DELETE_DEPLOY_STAGE%OPERATION_TYPE_CREATE_DEPLOY_ARTIFACT%OPERATION_TYPE_UPDATE_DEPLOY_ARTIFACT%OPERATION_TYPE_DELETE_DEPLOY_ARTIFACT(OPERATION_TYPE_CREATE_DEPLOY_ENVIRONMENT(OPERATION_TYPE_UPDATE_DEPLOY_ENVIRONMENT(OPERATION_TYPE_DELETE_DEPLOY_ENVIRONMENT OPERATION_TYPE_CREATE_DEPLOYMENT OPERATION_TYPE_UPDATE_DEPLOYMENT OPERATION_TYPE_DELETE_DEPLOYMENT$OPERATION_TYPE_CREATE_BUILD_PIPELINE$OPERATION_TYPE_UPDATE_BUILD_PIPELINE$OPERATION_TYPE_DELETE_BUILD_PIPELINE*OPERATION_TYPE_CREATE_BUILD_PIPELINE_STAGE*OPERATION_TYPE_UPDATE_BUILD_PIPELINE_STAGE*OPERATION_TYPE_DELETE_BUILD_PIPELINE_STAGE OPERATION_TYPE_CREATE_CONNECTION OPERATION_TYPE_UPDATE_CONNECTION OPERATION_TYPE_DELETE_CONNECTIONOPERATION_TYPE_CREATE_TRIGGEROPERATION_TYPE_UPDATE_TRIGGEROPERATION_TYPE_DELETE_TRIGGEROPERATION_TYPE_EXECUTE_TRIGGER OPERATION_TYPE_CREATE_REPOSITORY OPERATION_TYPE_UPDATE_REPOSITORY OPERATION_TYPE_DELETE_REPOSITORY OPERATION_TYPE_MIRROR_REPOSITORY2OPERATION_TYPE_SCHEDULE_CASCADING_PROJECT_DELETION:OPERATION_TYPE_CANCEL_SCHEDULED_CASCADING_PROJECT_DELETIONSTATUS_ACCEPTEDSTATUS_IN_PROGRESS STATUS_FAILEDSTATUS_SUCCEEDEDSTATUS_CANCELINGSTATUS_CANCELEDSTATUS_WAITINGSTATUS_NEEDS_ATTENTIONrVpropertyr8setterr9r:r;r<r=r>r?r@rbrfrgrTrTrTrUr sP                  rN)oci.utilrrroci.decoratorsrobjectrrTrTrTrUs