# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).

import oci

# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()


# Initialize service client with default config file
data_flow_client = oci.data_flow.DataFlowClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
create_sql_endpoint_response = data_flow_client.create_sql_endpoint(
    create_sql_endpoint_details=oci.data_flow.models.CreateSqlEndpointDetails(
        compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
        display_name="EXAMPLE-displayName-Value",
        sql_endpoint_version="EXAMPLE-sqlEndpointVersion-Value",
        driver_shape="EXAMPLE-driverShape-Value",
        executor_shape="EXAMPLE-executorShape-Value",
        min_executor_count=716,
        max_executor_count=704,
        metastore_id="ocid1.test.oc1..<unique_ID>EXAMPLE-metastoreId-Value",
        lake_id="ocid1.test.oc1..<unique_ID>EXAMPLE-lakeId-Value",
        warehouse_bucket_uri="EXAMPLE-warehouseBucketUri-Value",
        network_configuration=oci.data_flow.models.SqlEndpointVcnConfig(
            network_type="VCN",
            vcn_id="ocid1.test.oc1..<unique_ID>EXAMPLE-vcnId-Value",
            subnet_id="ocid1.test.oc1..<unique_ID>EXAMPLE-subnetId-Value",
            host_name_prefix="EXAMPLE-hostNamePrefix-Value",
            nsg_ids=["EXAMPLE--Value"],
            private_endpoint_ip="EXAMPLE-privateEndpointIp-Value"),
        description="EXAMPLE-description-Value",
        driver_shape_config=oci.data_flow.models.ShapeConfig(
            ocpus=1316.6565,
            memory_in_gbs=2648.4304),
        executor_shape_config=oci.data_flow.models.ShapeConfig(
            ocpus=5880.294,
            memory_in_gbs=8347.694),
        freeform_tags={
            'EXAMPLE_KEY_UnFzt': 'EXAMPLE_VALUE_GSBLkrulhXP4quDE74Fa'},
        defined_tags={
            'EXAMPLE_KEY_NLHmx': {
                'EXAMPLE_KEY_2Fpb4': 'EXAMPLE--Value'}},
        spark_advanced_configurations={
            'EXAMPLE_KEY_duq7T': 'EXAMPLE_VALUE_BjtPIWnJ9ntzWmImQOYn'}),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="1TXUUO7CBHFXU9T07TBJ<unique_ID>")

# Get the data from response
print(create_sql_endpoint_response.data)