a f@sddlmZddlmZddlmZddlmZmZddlm Z ddl m Z m Z ddl mZddlmZmZmZdd lmZdd lmZd d lmZed ZGdddeZdS))absolute_import)requests)six)retrycircuit_breaker) BaseClient)get_config_value_or_defaultvalidate_config)Signer)Sentinel#get_signer_from_authentication_typeAUTHENTICATION_TYPE_FIELD_NAME)InvalidAlloyConfig)OCI_SDK_ENABLED_SERVICES_SET)data_flow_type_mappingZMissingc@sheZdZdZddZddZddZdd Zd d Zd d Z ddZ ddZ ddZ ddZ ddZddZddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,d-Zd.d/Zd0d1Zd2d3Zd4d5Zd6d7Zd8d9Zd:d;Z dd?Z"d@dAZ#dBdCZ$dDdEZ%dFdGZ&dHdIZ'dJdKZ(dLdMZ)dNdOZ*dPdQZ+dRdSZ,dTdUZ-dVdWZ.dXS)YDataFlowClientz Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. c Ks&tdstdt||ddd|vr6|d}nDt|vrHt|}n2t|d|d|d|dt|d |d d }d |d ddi|dd|dt j |dd}d|vr|d|d<|ddurt j |d<d|vr|d|d<t d||t fi||_|d|_|d|_dS)a Creates a new service client :param dict config: Configuration keys and values as per `SDK and Tool Configuration `__. The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config the dict using :py:meth:`~oci.config.validate_config` :param str service_endpoint: (optional) The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit need to specify a service endpoint. :param timeout: (optional) The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. :type timeout: float or tuple(float, float) :param signer: (optional) The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values provided in the config parameter. One use case for this parameter is for `Instance Principals authentication `__ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument :type signer: :py:class:`~oci.signer.AbstractBaseSigner` :param obj retry_strategy: (optional) A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. Any value provided at the operation level will override whatever is specified at the client level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` is also available. The specifics of the default retry strategy are described `here `__. :param obj circuit_breaker_strategy: (optional) A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. The specifics of circuit breaker strategy are described `here `__. :param function circuit_breaker_callback: (optional) Callback function to receive any exceptions triggerred by the circuit breaker. :param bool client_level_realm_specific_endpoint_template_enabled: (optional) A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None. :param allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not allow control characters to be in the response object. Z data_flowaThe Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this servicesigner)rtenancyuser fingerprintZkey_file pass_phraseZ key_content)rrrZprivate_key_file_locationrZprivate_key_contentTservice_endpointz /20200129z1https://dataflow.{region}.oci.{secondLevelDomain}skip_deserializationFcircuit_breaker_strategy5client_level_realm_specific_endpoint_template_enabled)Zregional_clientr base_pathZservice_endpoint_templateZ#service_endpoint_template_per_realmrrrtimeoutNallow_control_charsretry_strategycircuit_breaker_callback)rZis_service_enabledrr getr r r rrZGLOBAL_CIRCUIT_BREAKER_STRATEGYZ DEFAULT_CIRCUIT_BREAKER_STRATEGYrr base_clientrr )selfZconfigkwargsrZbase_client_init_kwargsr%B/usr/lib/python3.9/site-packages/oci/data_flow/data_flow_client.py__init__sB3         zDataFlowClient.__init__c sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|r`t|t js8|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Moves an application into a different compartment. When provided, If-Match is checked against ETag values of the resource. Associated resources, like runs, will not be automatically moved. :param str application_id: (required) The unique ID for an application. :param oci.data_flow.models.ChangeApplicationCompartmentDetails change_application_compartment_details: (required) Details for changing an application's compartment. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_application_compartment API. applicationIdz7/applications/{applicationId}/actions/changeCompartmentPOSTchange_application_compartmentzahttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Application/ChangeApplicationCompartmentrropc_request_idif_matchopc_retry_tokencsg|]}|vr|qSr%r%.0Z_keyZexpected_kwargsr%r& zADataFlowClient.change_application_compartment..z3change_application_compartment got unknown kwargs: cSsi|]\}}|tur||qSr%missingr0kvr%r%r& r3zADataFlowClient.change_application_compartment..Nr Parameter + cannot be None, whitespace or empty stringapplication/jsonr,r-r.accept content-typeopc-request-idif-matchopc-retry-tokencSs&i|]\}}|tur|dur||qSNr4r6r%r%r&r9r3rZoperation_retry_strategyZclient_retry_strategyr resource_pathmethod path_params header_paramsbodyroperation_nameapi_reference_linkrequired_argumentsriterkeys ValueError iteritems isinstance string_typeslenstripr!r5r"get_preferred_retry_strategyrrNoneRetryStrategyadd_opc_retry_token_if_neededadd_opc_client_retries_headeradd_circuit_breaker_callbackr make_retrying_callcall_api)r#application_idZ&change_application_compartment_detailsr$rMrFrGrKrL extra_kwargsrHr7r8rIrr%r1r&r*wsp.$       z-DataFlowClient.change_application_compartmentc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Moves a pool into a different compartment. When provided, If-Match is checked against ETag values of the resource. Associated resources, like historical metrics, will not be automatically moved. The pool must be in a terminal state (STOPPED, FAILED) in order for it to be moved to a different compartment :param str pool_id: (required) The unique ID for a pool. :param oci.data_flow.models.ChangePoolCompartmentDetails change_pool_compartment_details: (required) Details for changing a pool's compartment. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_pool_compartment API. poolIdz)/pools/{poolId}/actions/changeCompartmentr)change_pool_compartmentzShttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Pool/ChangePoolCompartmentrrr-r.r,csg|]}|vr|qSr%r%r/r1r%r&r2*r3z:DataFlowClient.change_pool_compartment..z,change_pool_compartment got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r93r3z:DataFlowClient.change_pool_compartment..Nrr:r;r<r-r.r,r>r?rArBr@cSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9@r3rrDrrErrOrPrQrRrSrTrUr!r5r"rVrrDEFAULT_RETRY_STRATEGYrWrXrYrZr r[r\)r#pool_idZchange_pool_compartment_detailsr$rMrFrGrKrLr^rHr7r8rIrr%r1r&r`st0$        z&DataFlowClient.change_pool_compartmentc srdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|rJt|t js"|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Moves a private endpoint into a different compartment. When provided, If-Match is checked against ETag values of the resource. :param str private_endpoint_id: (required) The unique ID for a private endpoint. :param oci.data_flow.models.ChangePrivateEndpointCompartmentDetails change_private_endpoint_compartment_details: (required) Details for changing a private endpoint's compartment. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_private_endpoint_compartment API. privateEndpointIdz?/privateEndpoints/{privateEndpointId}/actions/changeCompartmentr)#change_private_endpoint_compartmentzihttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/PrivateEndpoint/ChangePrivateEndpointCompartmentrrr,r-csg|]}|vr|qSr%r%r/r1r%r&r2r3zFDataFlowClient.change_private_endpoint_compartment..z8change_private_endpoint_compartment got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3zFDataFlowClient.change_private_endpoint_compartment..Nrr:r;r<r,r-r>r?r@rAcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrrErrOrPrQrRrSrTrUr!r5r"rVrrrWrYrZr r[r\)r#private_endpoint_idZ+change_private_endpoint_compartment_detailsr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rgesl'$     z2DataFlowClient.change_private_endpoint_compartmentc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|r`t|t js8|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Moves a run into a different compartment. When provided, If-Match is checked against ETag values of the resource. Associated resources, like historical metrics, will not be automatically moved. The run must be in a terminal state (CANCELED, FAILED, SUCCEEDED) in order for it to be moved to a different compartment :param str run_id: (required) The unique ID for the run :param oci.data_flow.models.ChangeRunCompartmentDetails change_run_compartment_details: (required) Details for changing a run's compartment. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_run_compartment API. runIdz'/runs/{runId}/actions/changeCompartmentr)change_run_compartmentzQhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Run/ChangeRunCompartmentr+csg|]}|vr|qSr%r%r/r1r%r&r2r3z9DataFlowClient.change_run_compartment..z+change_run_compartment got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z9DataFlowClient.change_run_compartment..Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9$r3rrDrrErN)r#run_idZchange_run_compartment_detailsr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rmsp0$       z%DataFlowClient.change_run_compartmentc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|r`t|t js8|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)af Moves an Sql Endpoint from one compartment to another. When provided, If-Match is checked against ETag values of the Sql Endpoint. :param str sql_endpoint_id: (required) The unique id of the SQL Endpoint. :param oci.data_flow.models.ChangeSqlEndpointCompartmentDetails change_sql_endpoint_compartment_details: (required) The details to change the compartment of the Sql Endpoint. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_sql_endpoint_compartment API. sqlEndpointIdz7/sqlEndpoints/{sqlEndpointId}/actions/changeCompartmentr)change_sql_endpoint_compartmentzahttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/SqlEndpoint/ChangeSqlEndpointCompartment)rrr-r,r.csg|]}|vr|qSr%r%r/r1r%r&r2r3zBDataFlowClient.change_sql_endpoint_compartment..z4change_sql_endpoint_compartment got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3zBDataFlowClient.change_sql_endpoint_compartment..Nrr:r;r<r-r,r.)r>r?rAr@rBcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrrErN)r#sql_endpoint_idZ'change_sql_endpoint_compartment_detailsr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rpGsp-$       z.DataFlowClient.change_sql_endpoint_compartmentc sg}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | rt | t j s|j | |j | | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Creates an application. :param oci.data_flow.models.CreateApplicationDetails create_application_details: (required) Details to create an application. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.Application` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_application API. /applicationsr)create_applicationzVhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Application/CreateApplicationrrr.r,csg|]}|vr|qSr%r%r/r1r%r&r2r3z5DataFlowClient.create_application..z'create_application got unknown kwargs: r<r.r,r>r?rBr@cSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3z5DataFlowClient.create_application..rrD Applicationr rFrGrIrJ response_typerrKrLrMNrrOrPr!r5rQr"rVrrRrrWrXrYrZr r[r\) r#Zcreate_application_detailsr$rMrFrGrKrLr^rIrr%r1r&rssb%       z!DataFlowClient.create_applicationc s"g}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | durt j } | rt | t j s|j | |j| | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Create a pool to be used by dataflow runs or applications. :param oci.data_flow.models.CreatePoolDetails create_pool_details: (required) The parameter required to create a pool. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.Pool` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_pool API. /poolsr) create_poolrtcsg|]}|vr|qSr%r%r/r1r%r&r2Mr3z.DataFlowClient.create_pool..z create_pool got unknown kwargs: r<r.r,rucSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9Xr3z.DataFlowClient.create_pool..rrDNPoolrrw)rrOrPr!r5rQr"rVrrrdrRrWrXrYrZr r[r\) r#Zcreate_pool_detailsr$rMrFrGrKrLr^rIrr%r1r&r{sf%       zDataFlowClient.create_poolc sg}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | rt | t j s|j | |j | | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)aH Creates a private endpoint to be used by applications. :param oci.data_flow.models.CreatePrivateEndpointDetails create_private_endpoint_details: (required) The parameters required to create a private endpoint. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.PrivateEndpoint` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_private_endpoint API. /privateEndpointsr)create_private_endpointr|rtcsg|]}|vr|qSr%r%r/r1r%r&r2r3z:DataFlowClient.create_private_endpoint..z,create_private_endpoint got unknown kwargs: r<r.r,rucSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3z:DataFlowClient.create_private_endpoint..rrDPrivateEndpointrrwNry) r#Zcreate_private_endpoint_detailsr$rMrFrGrKrLr^rIrr%r1r&r}sb%       z&DataFlowClient.create_private_endpointc sg}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d t|d td } ddt| D} |jj|d|jd} | rt | t j s|j | |j | | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Creates a run for an application. :param oci.data_flow.models.CreateRunDetails create_run_details: (required) Details for creating a run of an application. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str opc_parent_rpt_url: (optional) (Optional header param, required for Resource Principal version 3.0+) Parent resource control plane endpoint used to exchange for upper level resource principal token. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.Run` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_run API. /runsr) create_runzFhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Run/CreateRun)rrr.r,opc_parent_rpt_urlcsg|]}|vr|qSr%r%r/r1r%r&r2r3z-DataFlowClient.create_run..zcreate_run got unknown kwargs: r<r.r,r)r>r?rBr@zopc-parent-rpt-urlcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9 r3z-DataFlowClient.create_run..rrDRunrrwNry) r#Zcreate_run_detailsr$rMrFrGrKrLr^rIrr%r1r&rsd)        zDataFlowClient.create_runc sg}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | rt | t j s|j | |j | | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Create a new Sql Endpoint. :param oci.data_flow.models.CreateSqlEndpointDetails create_sql_endpoint_details: (required) Details of the new Sql Endpoint. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.SqlEndpoint` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_sql_endpoint API. /sqlEndpointsr)create_sql_endpointr|rtcsg|]}|vr|qSr%r%r/r1r%r&r2ur3z6DataFlowClient.create_sql_endpoint..z(create_sql_endpoint got unknown kwargs: r<r.r,rucSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3z6DataFlowClient.create_sql_endpoint..rrD SqlEndpointrrwNry) r#Zcreate_sql_endpoint_detailsr$rMrFrGrKrLr^rIrr%r1r&rCsb%       z"DataFlowClient.create_sql_endpointc sldg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d}|rBt|t js|j | ||j|j|j j||| | |d|d|||d S|j j||| | |d|d|||d Sd S)am Executes a statement for a Session run. :param oci.data_flow.models.CreateStatementDetails create_statement_details: (required) Details for creating a statement. :param str run_id: (required) The unique ID for the run :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.Statement` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_statement API. rl/runs/{runId}/statementsr)create_statementzRhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Statement/CreateStatementrrr,csg|]}|vr|qSr%r%r/r1r%r&r2r3z3DataFlowClient.create_statement..z%create_statement got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z3DataFlowClient.create_statement..Nrr:r;r<r,r>r?r@cSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrD Statementr rFrGrHrIrJrxrrKrLrMrj)r#Zcreate_statement_detailsrnr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rsn"$    zDataFlowClient.create_statementc sndg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | rHt| t js"|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)aP Deletes an application using an `applicationId`. :param str application_id: (required) The unique ID for an application. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_application API. r(/applications/{applicationId}DELETEdelete_applicationzVhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Application/DeleteApplicationrhcsg|]}|vr|qSr%r%r/r1r%r&r2:r3z5DataFlowClient.delete_application..z'delete_application got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9Cr3z5DataFlowClient.delete_application..Nrr:r;r<r,r-ricSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9Or3rrDrrFrGrHrIrrKrLrMrjr#r]r$rMrFrGrKrLr^rHr7r8rIrr%r1r&r sh$$     z!DataFlowClient.delete_applicationc sndg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | rHt| t js"|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a# Deletes a pool using a `poolId`. :param str pool_id: (required) The unique ID for a pool. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_pool API. r_/pools/{poolId}r delete_poolzHhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Pool/DeletePoolrhcsg|]}|vr|qSr%r%r/r1r%r&r2r3z.DataFlowClient.delete_pool..z delete_pool got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z.DataFlowClient.delete_pool..Nrr:r;r<r,r-ricSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrrrjr#rer$rMrFrGrKrLr^rHr7r8rIrr%r1r&rosh$$     zDataFlowClient.delete_poolc sndg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | rHt| t js"|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)aj Deletes a private endpoint using a `privateEndpointId`. :param str private_endpoint_id: (required) The unique ID for a private endpoint. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_private_endpoint API. rf%/privateEndpoints/{privateEndpointId}rdelete_private_endpointz^https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/PrivateEndpoint/DeletePrivateEndpointrhcsg|]}|vr|qSr%r%r/r1r%r&r2r3z:DataFlowClient.delete_private_endpoint..z,delete_private_endpoint got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z:DataFlowClient.delete_private_endpoint..Nrr:r;r<r,r-ricSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrrrjr#rkr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rsh$$     z&DataFlowClient.delete_private_endpointc sndg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | rHt| t js"|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a Cancels the specified run if it has not already completed or was previously cancelled. If a run is in progress, the executing job will be killed. :param str run_id: (required) The unique ID for the run :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_run API. rl /runs/{runId}r delete_runzFhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Run/DeleteRunrhcsg|]}|vr|qSr%r%r/r1r%r&r2mr3z-DataFlowClient.delete_run..zdelete_run got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9vr3z-DataFlowClient.delete_run..Nrr:r;r<r,r-ricSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrrrjr#rnr$rMrFrGrKrLr^rHr7r8rIrr%r1r&r;sh%$     zDataFlowClient.delete_runc sndg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | rHt| t js"|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)ae Delete a Sql Endpoint resource, identified by the SqlEndpoint id. :param str sql_endpoint_id: (required) The unique id of the SQL Endpoint. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_sql_endpoint API. ro/sqlEndpoints/{sqlEndpointId}rdelete_sql_endpointzVhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/SqlEndpoint/DeleteSqlEndpointrrr-r,csg|]}|vr|qSr%r%r/r1r%r&r2r3z6DataFlowClient.delete_sql_endpoint..z(delete_sql_endpoint got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z6DataFlowClient.delete_sql_endpoint..Nrr:r;r<r-r,r>r?rAr@cSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrrrjr#rqr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rsh$$     z"DataFlowClient.delete_sql_endpointc sddg}d}d}d}d}gdfdd t|D} | rJtd | ||d } d d t| D} t| D]<\} } | dust| tjrrt| dkrrtd| dqrdd|dt |dt d} dd t| D} |j j |d|j d}|dur t j}|r\t|t js6|j | ||j|j|j j||| | |d|||d S|j j||| | |d|||dSdS)a_ Cancels the specified statement for a Session run. :param str run_id: (required) The unique ID for the run :param str statement_id: (required) The unique ID for the statement. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_statement API. rl statementId&/runs/{runId}/statements/{statementId}rdelete_statementzRhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Statement/DeleteStatementrhcsg|]}|vr|qSr%r%r/r1r%r&r2<r3z3DataFlowClient.delete_statement..z%delete_statement got unknown kwargs: rlrcSsi|]\}}|tur||qSr%r4r6r%r%r&r9Fr3z3DataFlowClient.delete_statement..Nrr:r;r<r,r-ricSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9Rr3rrDrrrrOrPrQrRrSrTrUr!r5r"rVrrrdrWrYrZr r[r\r#rnZ statement_idr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rsn'$      zDataFlowClient.delete_statementc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Retrieves an application using an `applicationId`. :param str application_id: (required) The unique ID for an application. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.Application` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_application API. r(rGETget_applicationzShttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Application/GetApplicationrcsg|]}|vr|qSr%r%r/r1r%r&r2r3z2DataFlowClient.get_application..z$get_application got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z2DataFlowClient.get_application..Nrr:r;r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrvr rFrGrHrIrxrrKrLrMrrr%r1r&rtsn$    zDataFlowClient.get_applicationc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Retrieves a pool using a `poolId`. :param str pool_id: (required) The unique ID for a pool. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.Pool` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_pool API. r_rrget_poolzEhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Pool/GetPoolrcsg|]}|vr|qSr%r%r/r1r%r&r2r3z+DataFlowClient.get_pool..zget_pool got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9 r3z+DataFlowClient.get_pool..Nrr:r;r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDr}rrrrr%r1r&rsn$    zDataFlowClient.get_poolc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Retrieves an private endpoint using a `privateEndpointId`. :param str private_endpoint_id: (required) The unique ID for a private endpoint. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.PrivateEndpoint` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_private_endpoint API. rfrrget_private_endpointz[https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/PrivateEndpoint/GetPrivateEndpointrcsg|]}|vr|qSr%r%r/r1r%r&r2er3z7DataFlowClient.get_private_endpoint..z)get_private_endpoint got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9nr3z7DataFlowClient.get_private_endpoint..Nrr:r;r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9yr3rrDrrrrrr%r1r&r:sn$    z#DataFlowClient.get_private_endpointc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Retrieves the run for the specified `runId`. :param str run_id: (required) The unique ID for the run :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.Run` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_run API. rlrrget_runzChttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Run/GetRunrcsg|]}|vr|qSr%r%r/r1r%r&r2r3z*DataFlowClient.get_run..zget_run got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z*DataFlowClient.get_run..Nrr:r;r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrrrrrr%r1r&rsn$    zDataFlowClient.get_runc szddg}d}d}d}d}gdfdd t|D} | rJtd | ||d } d d t| D} t| D]<\} } | dust| tjrrt| dkrrtd| dqrdd|dt d} dd t| D} |j j |d|j d}|durt j}|rRt|t js*|j | ||j|j|j j||| | d|d|||d S|j j||| | d|d|||d SdS)a Retrieves the content of an run log. :param str run_id: (required) The unique ID for the run :param str name: (required) The name of the log. Avoid entering confidential information. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type stream :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_run_log API. rlnamez/runs/{runId}/logs/{name}r get_run_logzFhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Run/GetRunLogrcsg|]}|vr|qSr%r%r/r1r%r&r2. r3z.DataFlowClient.get_run_log..z get_run_log got unknown kwargs: )rlrcSsi|]\}}|tur||qSr%r4r6r%r%r&r98 r3z.DataFlowClient.get_run_log..Nrr:r;zapplication/octet-streamr<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9C r3rrDstreamrrr)r#rnrr$rMrFrGrKrLr^rHr7r8rIrr%r1r&r sp"$    zDataFlowClient.get_run_logc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Retrieves a SQL Endpoint using a sqlEndpointId. :param str sql_endpoint_id: (required) The unique id of the SQL Endpoint. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.SqlEndpoint` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_sql_endpoint API. rorrget_sql_endpointzShttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/SqlEndpoint/GetSqlEndpointrcsg|]}|vr|qSr%r%r/r1r%r&r2 r3z3DataFlowClient.get_sql_endpoint..z%get_sql_endpoint got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9 r3z3DataFlowClient.get_sql_endpoint..Nrr:r;r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9 r3rrDrrrrrr%r1r&rg sn$    zDataFlowClient.get_sql_endpointc szddg}d}d}d}d}gdfdd t|D} | rJtd | ||d } d d t| D} t| D]<\} } | dust| tjrrt| dkrrtd| dqrdd|dt d} dd t| D} |j j |d|j d}|durt j}|rRt|t js*|j | ||j|j|j j||| | d|d|||d S|j j||| | d|d|||d SdS)a4 Retrieves the statement corresponding to the `statementId` for a Session run specified by `runId`. :param str run_id: (required) The unique ID for the run :param str statement_id: (required) The unique ID for the statement. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.Statement` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_statement API. rlrrr get_statementzOhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Statement/GetStatementrcsg|]}|vr|qSr%r%r/r1r%r&r2 r3z0DataFlowClient.get_statement..z"get_statement got unknown kwargs: rcSsi|]\}}|tur||qSr%r4r6r%r%r&r9 r3z0DataFlowClient.get_statement..Nrr:r;r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9 r3rrDrrrrrr%r1r&r sp"$    zDataFlowClient.get_statementc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Gets the status of the work request with the given OCID. :param str work_request_id: (required) The unique ID for a work request. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.WorkRequest` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_work_request API. workRequestIdz/workRequests/{workRequestId}rget_work_requestzShttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/WorkRequest/GetWorkRequestrcsg|]}|vr|qSr%r%r/r1r%r&r2\ r3z3DataFlowClient.get_work_request..z%get_work_request got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9e r3z3DataFlowClient.get_work_request..Nrr:r;r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9p r3rrDZ WorkRequestrrr)r#work_request_idr$rMrFrGrKrLr^rHr7r8rIrr%r1r&r1 sn$    zDataFlowClient.get_work_requestc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vrrgd } |d | vrrtd | d |vrddg} |d | vrtd| ||dt|dt|d t|d t|dt|dt|dt|dtd } ddt| D} dd|dtd} ddt| D} |jj|d|jd} | d urXt j } | rt | t j s|j | | |j| j|jj||| | d!|d"|||d# S|jj||| | d!|d"|||d# Sd S)$a Lists all applications in the specified compartment. Only one parameter other than compartmentId may also be included in a query. The query must include compartmentId. If the query does not include compartmentId, or includes compartmentId but two or more other parameters an error is returned. :param str compartment_id: (required) The OCID of the compartment. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param int limit: (optional) The maximum number of results to return in a paginated `List` call. :param str page: (optional) The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call to sent back to server for getting the next page of results. :param str sort_by: (optional) The field used to sort the results. Multiple fields are not supported. Allowed values are: "timeCreated", "displayName", "language" :param str sort_order: (optional) The ordering of results in ascending or descending order. Allowed values are: "ASC", "DESC" :param str display_name: (optional) The query parameter for the Spark application name. :param str owner_principal_id: (optional) The OCID of the user who created the resource. :param str display_name_starts_with: (optional) The displayName prefix. :param str spark_version: (optional) The Spark version utilized to run the application. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.data_flow.models.ApplicationSummary` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_applications API. compartmentIdrrrlist_applicationsz\https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/ApplicationSummary/ListApplications) rrr,limitpagesort_by sort_order display_nameowner_principal_iddisplay_name_starts_with spark_versioncsg|]}|vr|qSr%r%r/r1r%r&r2 r3z4DataFlowClient.list_applications..z&list_applications got unknown kwargs: r) timeCreated displayNamelanguage,Invalid value for `sort_by`, must be one of rASCDESC/Invalid value for `sort_order`, must be one of rrrrrr) rrrsortBy sortOrderrownerPrincipalIddisplayNameStartsWithZ sparkVersioncSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9 r3z4DataFlowClient.list_applications..r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9 r3rrDNzlist[ApplicationSummary]r rFrG query_paramsrIrxrrKrLrMrrOrPr!r5rQr"rVrrrdrRrWrYrZr r[r\)r#compartment_idr$rMrFrGrKrLr^sort_by_allowed_valuessort_order_allowed_valuesrrIrr%r1r&r s<                 z DataFlowClient.list_applicationsc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vrrgd } |d | vrrtd | d |vrdg} |d | vrtd| d|vrddg} |d| vrtd| ||dt|dt|d t|d t|dt|dt|dt|dtd } ddt| D} dd|dtd} ddt| D} |jj|d |jd!}|d"urt j }|rt |t j s|j | ||j|j|jj||| | d#|d$|||d% S|jj||| | d#|d$|||d% Sd"S)&aI Lists all pools in the specified compartment. The query must include compartmentId. The query may also include one other parameter. If the query does not include compartmentId, or includes compartmentId, but with two or more other parameters, an error is returned. :param str compartment_id: (required) The OCID of the compartment. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param int limit: (optional) The maximum number of results to return in a paginated `List` call. :param str page: (optional) The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call to sent back to server for getting the next page of results. :param str lifecycle_state: (optional) The LifecycleState of the pool. Allowed values are: "ACCEPTED", "SCHEDULED", "CREATING", "ACTIVE", "STOPPING", "STOPPED", "UPDATING", "DELETING", "DELETED", "FAILED" :param str sort_by: (optional) The field used to sort the results. Multiple fields are not supported. Allowed values are: "timeCreated" :param str sort_order: (optional) The ordering of results in ascending or descending order. Allowed values are: "ASC", "DESC" :param str display_name: (optional) The query parameter for the Spark application name. :param str owner_principal_id: (optional) The OCID of the user who created the resource. :param str display_name_starts_with: (optional) The displayName prefix. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.PoolCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_pools API. rrzr list_poolszGhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Pool/ListPools rrr,rrlifecycle_staterrrrrcsg|]}|vr|qSr%r%r/r1r%r&r2 r3z-DataFlowClient.list_pools..zlist_pools got unknown kwargs: r) ACCEPTEDZ SCHEDULEDCREATINGACTIVESTOPPINGSTOPPEDUPDATINGDELETINGDELETEDFAILED4Invalid value for `lifecycle_state`, must be one of rrrrrrrrrrrr rrrlifecycleStaterrrrrcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9 r3z-DataFlowClient.list_pools..r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9 r3rrDNZPoolCollectionrrrr#rr$rMrFrGrKrLr^lifecycle_state_allowed_valuesrrrrIrr%r1r&r- s>                  zDataFlowClient.list_poolsc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vrrgd } |d | vrrtd | d |vrdg} |d | vrtd| d|vrddg} |d| vrtd| ||dt|dt|d t|d t|dt|dt|dt|dtd } ddt| D} dd|dtd} ddt| D} |jj|d |jd!}|d"urt j }|rt |t j s|j | ||j|j|jj||| | d#|d$|||d% S|jj||| | d#|d$|||d% Sd"S)&a` Lists all private endpoints in the specified compartment. The query must include compartmentId. The query may also include one other parameter. If the query does not include compartmentId, or includes compartmentId, but with two or more other parameters, an error is returned. :param str compartment_id: (required) The OCID of the compartment. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param int limit: (optional) The maximum number of results to return in a paginated `List` call. :param str page: (optional) The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call to sent back to server for getting the next page of results. :param str lifecycle_state: (optional) The LifecycleState of the private endpoint. Allowed values are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED" :param str sort_by: (optional) The field used to sort the results. Multiple fields are not supported. Allowed values are: "timeCreated" :param str sort_order: (optional) The ordering of results in ascending or descending order. Allowed values are: "ASC", "DESC" :param str display_name: (optional) The query parameter for the Spark application name. :param str owner_principal_id: (optional) The OCID of the user who created the resource. :param str display_name_starts_with: (optional) The displayName prefix. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.PrivateEndpointCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_private_endpoints API. rr~rlist_private_endpointsz]https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/PrivateEndpoint/ListPrivateEndpointsrcsg|]}|vr|qSr%r%r/r1r%r&r2! r3z9DataFlowClient.list_private_endpoints..z+list_private_endpoints got unknown kwargs: r)rrZINACTIVErrrrrrrrrrrrrrrrrrcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9F r3z9DataFlowClient.list_private_endpoints..r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9M r3rrDNZPrivateEndpointCollectionrrrrr%r1r&r s>                  z%DataFlowClient.list_private_endpointsc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqn|dt |dt d} dd t| D} dd|dt d} dd t| D} |j j |d|j d}|d ur*t j}|rt|t jsV|j | ||j|j|j j||| | | d|d|||d S|j j||| | | d|d|||d Sd S)a Retrieves summaries of the run's logs. :param str run_id: (required) The unique ID for the run :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param int limit: (optional) The maximum number of results to return in a paginated "List" call. :param str page: (optional) The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call to sent back to server for getting the next page of results. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.data_flow.models.RunLogSummary` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_run_logs API. rlz/runs/{runId}/logsr list_run_logszRhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/RunLogSummary/ListRunLogs)rrr,rrcsg|]}|vr|qSr%r%r/r1r%r&r2 r3z0DataFlowClient.list_run_logs..z"list_run_logs got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9 r3z0DataFlowClient.list_run_logs..Nrr:r;rrrrcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9 r3r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9 r3rrDzlist[RunLogSummary]r rFrGrHrrIrxrrKrLrMr)r#rnr$rMrFrGrKrLr^rHr7r8rrIrr%r1r&rq sz&$       zDataFlowClient.list_run_logsc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vrrgd } |d | vrrtd | d |vrgd} |d | vrtd| d|vrddg} |d| vrtd| ||dt|dt|dt|dt|d t|dt|dt|dt|d t|dt|dtd } ddt| D} dd|d td!} d"dt| D} |jj|d#|jd$}|d%urt j }|rt |t j s|j | ||j|j|jj||| | d&|d'|||d( S|jj||| | d&|d'|||d( Sd%S))a Lists all runs of an application in the specified compartment. Only one parameter other than compartmentId may also be included in a query. The query must include compartmentId. If the query does not include compartmentId, or includes compartmentId but two or more other parameters an error is returned. :param str compartment_id: (required) The OCID of the compartment. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str application_id: (optional) The ID of the application. :param str pool_id: (optional) The ID of the pool. :param str owner_principal_id: (optional) The OCID of the user who created the resource. :param str display_name_starts_with: (optional) The displayName prefix. :param str lifecycle_state: (optional) The LifecycleState of the run. Allowed values are: "ACCEPTED", "IN_PROGRESS", "CANCELING", "CANCELED", "FAILED", "SUCCEEDED", "STOPPING", "STOPPED" :param datetime time_created_greater_than: (optional) The epoch time that the resource was created. :param int limit: (optional) The maximum number of results to return in a paginated `List` call. :param str page: (optional) The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call to sent back to server for getting the next page of results. :param str sort_by: (optional) The field used to sort the results. Multiple fields are not supported. Allowed values are: "timeCreated", "displayName", "language", "runDurationInMilliseconds", "lifecycleState", "totalOCpu", "dataReadInBytes", "dataWrittenInBytes" :param str sort_order: (optional) The ordering of results in ascending or descending order. Allowed values are: "ASC", "DESC" :param str display_name: (optional) The query parameter for the Spark application name. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.data_flow.models.RunSummary` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_runs API. rrr list_runszLhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/RunSummary/ListRuns)rrr,r]rerrrtime_created_greater_thanrrrrrcsg|]}|vr|qSr%r%r/r1r%r&r2C r3z,DataFlowClient.list_runs..zlist_runs got unknown kwargs: r)r IN_PROGRESSZ CANCELINGZCANCELEDr SUCCEEDEDrrrr)rrrZrunDurationInMillisecondsrZ totalOCpuZdataReadInBytesZdataWrittenInBytesrrrrrr]rerrrrrr) rr(r_rrrZtimeCreatedGreaterThanrrrrrcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9k r3z,DataFlowClient.list_runs..r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r r3rrDNzlist[RunSummary]rrrrr%r1r&r sG                   zDataFlowClient.list_runsc sg}d}d}d}d}gdfddt|D}|rFtd|d |vrpgd }|d |vrptd |d |vrd dg} |d | vrtd| d|vrgd} |d| vrtd| |dt|dt|d t|dt|dt|dt|d t|dtd} ddt| D} dd|dtd} ddt| D} |jj|d|jd } | d!ur~t j } | rt | t j s|j | | |j| j|jj||| | d"|d#|||d$ S|jj||| | d"|d#|||d$ Sd!S)%a Lists all Sql Endpoints in the specified compartment. The query must include compartmentId or sqlEndpointId. If the query does not include either compartmentId or sqlEndpointId, an error is returned. :param str compartment_id: (optional) The OCID of the compartment in which to query resources. :param str sql_endpoint_id: (optional) The unique id of the SQL Endpoint. :param str lifecycle_state: (optional) A filter to return only those resources whose sqlEndpointLifecycleState matches the given sqlEndpointLifecycleState. Allowed values are: "CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "UPDATING", "NEEDS_ATTENTION" :param str display_name: (optional) The query parameter for the Spark application name. :param int limit: (optional) The maximum number of items that can be returned. :param str page: (optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. :param str sort_order: (optional) The ordering of results in ascending or descending order. Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The field to sort by. Only one sort order may be provided. The default order for timeCreated is descending. The default order for displayName is ascending. If no value is specified timeCreated is used by default. Allowed values are: "id", "timeCreated", "displayName" :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.SqlEndpointCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_sql_endpoints API. rrlist_sql_endpointsz_https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/SqlEndpointCollection/ListSqlEndpoints) rrrrqrrrrrrr,csg|]}|vr|qSr%r%r/r1r%r&r2 r3z5DataFlowClient.list_sql_endpoints..z'list_sql_endpoints got unknown kwargs: r)rrrrrrZNEEDS_ATTENTIONrrrrrr)idrrrrrqrrr)rrorrrrrrcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9 r3z5DataFlowClient.list_sql_endpoints..r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDNZSqlEndpointCollectionrrr)r#r$rMrFrGrKrLr^rrrrrIrr%r1r&r s<                  z!DataFlowClient.list_sql_endpointsc sHdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqnd|vrgd} |d| vrtd| d|vrdg} |d| vrtd| d|vr,ddg}|d|vr,td||dt |dt |dt |dt |dt d}dd t|D}dd|dt d }d!d t|D}|j j |d"|j d#}|d urt j}|rt|t js|j |||j|j|j j||| ||d$|d%|||d& S|j j||| ||d$|d%|||d& Sd S)'a Lists all statements for a Session run. :param str run_id: (required) The unique ID for the run :param str lifecycle_state: (optional) The LifecycleState of the statement. Allowed values are: "ACCEPTED", "CANCELLING", "CANCELLED", "FAILED", "IN_PROGRESS", "SUCCEEDED" :param str sort_by: (optional) The field used to sort the results. Multiple fields are not supported. Allowed values are: "timeCreated" :param str sort_order: (optional) The ordering of results in ascending or descending order. Allowed values are: "ASC", "DESC" :param int limit: (optional) The maximum number of results to return in a paginated `List` call. :param str page: (optional) The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call to sent back to server for getting the next page of results. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.StatementCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_statements API. rlrrlist_statementsz[https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/StatementCollection/ListStatements)rrrrrrrr,csg|]}|vr|qSr%r%r/r1r%r&r2{r3z2DataFlowClient.list_statements..z$list_statements got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z2DataFlowClient.list_statements..Nrr:r;r)rZ CANCELLINGZ CANCELLEDrrrrrrrrrrrrr)rrrrrcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDZStatementCollectionrrr)r#rnr$rMrFrGrKrLr^rHr7r8rrrrrIrr%r1r&r5s5 $             zDataFlowClient.list_statementsc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqn|dt |dt d} dd t| D} dd|dt d} dd t| D} |j j |d|j d}|d ur*t j}|rt|t jsV|j | ||j|j|j j||| | | d|d|||d S|j j||| | | d|d|||d Sd S)a; Return a (paginated) list of errors for a given work request. :param str work_request_id: (required) The unique ID for a work request. :param int limit: (optional) The maximum number of results to return in a paginated `List` call. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str page: (optional) The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call to sent back to server for getting the next page of results. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.WorkRequestErrorCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_work_request_errors API. rz$/workRequests/{workRequestId}/errorsrlist_work_request_errorsz_https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/WorkRequestError/ListWorkRequestErrorsrrrr,rcsg|]}|vr|qSr%r%r/r1r%r&r2r3z;DataFlowClient.list_work_request_errors..z-list_work_request_errors got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z;DataFlowClient.list_work_request_errors..Nrr:r;rrrcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9!r3rrDZWorkRequestErrorCollectionrrrr#rr$rMrFrGrKrLr^rHr7r8rrIrr%r1r&rsz&$       z'DataFlowClient.list_work_request_errorsc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqn|dt |dt d} dd t| D} dd|dt d} dd t| D} |j j |d|j d}|d ur*t j}|rt|t jsV|j | ||j|j|j j||| | | d|d|||d S|j j||| | | d|d|||d Sd S)a1 Return a paginated list of logs for a given work request. :param str work_request_id: (required) The unique ID for a work request. :param int limit: (optional) The maximum number of results to return in a paginated `List` call. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str page: (optional) The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call to sent back to server for getting the next page of results. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.WorkRequestLogCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_work_request_logs API. rz"/workRequests/{workRequestId}/logsrlist_work_request_logsz[https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/WorkRequestLog/ListWorkRequestLogsrcsg|]}|vr|qSr%r%r/r1r%r&r2{r3z9DataFlowClient.list_work_request_logs..z+list_work_request_logs got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z9DataFlowClient.list_work_request_logs..Nrr:r;rrrcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDZWorkRequestLogCollectionrrrrr%r1r&rGsz&$       z%DataFlowClient.list_work_request_logsc s@dg}d}d}d}d}gdfddt|D}|rHtd |||d t|d td } d dt| D} dd|dtd} ddt| D} |jj|d|jd} | durt j } | rt | t j s|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS)a Lists the work requests in a compartment. :param str compartment_id: (required) The OCID of the compartment. :param int limit: (optional) The maximum number of results to return in a paginated `List` call. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str page: (optional) The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call to sent back to server for getting the next page of results. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.WorkRequestCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_work_requests API. rz /workRequestsrlist_work_requestszUhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/WorkRequest/ListWorkRequestsrcsg|]}|vr|qSr%r%r/r1r%r&r2r3z5DataFlowClient.list_work_requests..z'list_work_requests got unknown kwargs: rr)rrrcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3z5DataFlowClient.list_work_requests..r<r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDNZWorkRequestCollectionrrr) r#rr$rMrFrGrKrLr^rrIrr%r1r&rsl&       z!DataFlowClient.list_work_requestsc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rnt| t jsH|j | |j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a" Starts the dataflow pool for a given `poolId`. When provided, If-Match is checked against ETag values of the resource. :param str pool_id: (required) The unique ID for a pool. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use start_pool API. r_z/pools/{poolId}/actions/startr) start_poolzGhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Pool/StartPoolracsg|]}|vr|qSr%r%r/r1r%r&r2\r3z-DataFlowClient.start_pool..zstart_pool got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9er3z-DataFlowClient.start_pool..Nrr:r;r<r-r.r,rbcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9rr3rrDrrrcrr%r1r&r$sp*$        zDataFlowClient.start_poolc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rnt| t jsH|j | |j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a Stops the dataflow pool for a given `poolId`. When provided, If-Match is checked against ETag values of the resource. :param str pool_id: (required) The unique ID for a pool. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use stop_pool API. r_z/pools/{poolId}/actions/stopr) stop_poolzFhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Pool/StopPoolracsg|]}|vr|qSr%r%r/r1r%r&r2r3z,DataFlowClient.stop_pool..zstop_pool got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z,DataFlowClient.stop_pool..Nrr:r;r<r-r.r,rbcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrrrcrr%r1r&rsp*$        zDataFlowClient.stop_poolc svdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|rLt|t js"|j | ||j|j|j j||| | |d|d|||d S|j j||| | |d|d|||d Sd S)a Updates an application using an `applicationId`. :param oci.data_flow.models.UpdateApplicationDetails update_application_details: (required) Details for updating an application. :param str application_id: (required) The unique ID for an application. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.Application` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_application API. r(rPUTupdate_applicationzVhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Application/UpdateApplicationrhcsg|]}|vr|qSr%r%r/r1r%r&r2:r3z5DataFlowClient.update_application..z'update_application got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9Cr3z5DataFlowClient.update_application..Nrr:r;r<r,r-ricSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9Or3rrDrvrrrj)r#Zupdate_application_detailsr]r$rMrFrGrKrLr^rHr7r8rIrr%r1r&rsp'$     z!DataFlowClient.update_applicationc srdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|rJt|t js"|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)aI Updates a pool using a `poolId`.If changes to a pool doesn't match a previously defined pool,then a 409 status code will be returned.This indicates that a conflict has been detected. :param oci.data_flow.models.UpdatePoolDetails update_pool_details: (required) Details for updating a pool. :param str pool_id: (required) The unique ID for a pool. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_pool API. r_rr update_poolzHhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Pool/UpdatePoolrhcsg|]}|vr|qSr%r%r/r1r%r&r2r3z.DataFlowClient.update_pool..z update_pool got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z.DataFlowClient.update_pool..Nrr:r;r<r,r-ricSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrrErj)r#Zupdate_pool_detailsrer$rMrFrGrKrLr^rHr7r8rIrr%r1r&rssl)$     zDataFlowClient.update_poolc srdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|rJt|t js"|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Updates a private endpoint using a `privateEndpointId`. If changes to a private endpoint match a previously defined private endpoint, then a 409 status code will be returned. This indicates that a conflict has been detected. :param oci.data_flow.models.UpdatePrivateEndpointDetails update_private_endpoint_details: (required) Details for updating a private endpoint. :param str private_endpoint_id: (required) The unique ID for a private endpoint. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_private_endpoint API. rfrrupdate_private_endpointz^https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/PrivateEndpoint/UpdatePrivateEndpointrhcsg|]}|vr|qSr%r%r/r1r%r&r2r3z:DataFlowClient.update_private_endpoint..z,update_private_endpoint got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z:DataFlowClient.update_private_endpoint..Nrr:r;r<r,r-ricSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9+r3rrDrrErj)r#Zupdate_private_endpoint_detailsrkr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rsl)$     z&DataFlowClient.update_private_endpointc svdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|rLt|t js"|j | ||j|j|j j||| | |d|d|||d S|j j||| | |d|d|||d Sd S)a Updates a run using a `runId`. :param oci.data_flow.models.UpdateRunDetails update_run_details: (required) Details for updating a run. :param str run_id: (required) The unique ID for the run :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_flow.models.Run` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_run API. rlrr update_runzFhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Run/UpdateRunrhcsg|]}|vr|qSr%r%r/r1r%r&r2r3z-DataFlowClient.update_run..zupdate_run got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z-DataFlowClient.update_run..Nrr:r;r<r,r-ricSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrrrrj)r#Zupdate_run_detailsrnr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rMsp'$     zDataFlowClient.update_runc srdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|rJt|t js"|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Update a Sql Endpoint resource, identified by the SqlEndpoint id. :param oci.data_flow.models.UpdateSqlEndpointDetails update_sql_endpoint_details: (required) Details of the Sql Endpoint to be updated. :param str sql_endpoint_id: (required) The unique id of the SQL Endpoint. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_sql_endpoint API. rorrupdate_sql_endpointzVhttps://docs.oracle.com/iaas/api/#/en/data-flow/20200129/SqlEndpoint/UpdateSqlEndpointrcsg|]}|vr|qSr%r%r/r1r%r&r2r3z6DataFlowClient.update_sql_endpoint..z(update_sql_endpoint got unknown kwargs: cSsi|]\}}|tur||qSr%r4r6r%r%r&r9r3z6DataFlowClient.update_sql_endpoint..Nrr:r;r<r-r,rcSs&i|]\}}|tur|dur||qSrCr4r6r%r%r&r9r3rrDrrErj)r#Zupdate_sql_endpoint_detailsrqr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rsl'$     z"DataFlowClient.update_sql_endpointN)/__name__ __module__ __qualname____doc__r'r*r`rgrmrprsr{rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr%r%r%r&rsd[uykwt`b`f`ffffgflccccgcgc##t2 ttiqqmmmmrN)Z __future__rZ oci._vendorrrZocirrZoci.base_clientrZ oci.configrr Z oci.signerr Zoci.utilr r r Zoci.exceptionsrZ oci.alloyrZmodelsrr5objectrr%r%r%r&s