# 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_integration_client = oci.data_integration.DataIntegrationClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
create_workspace_response = data_integration_client.create_workspace(
    create_workspace_details=oci.data_integration.models.CreateWorkspaceDetails(
        display_name="EXAMPLE-displayName-Value",
        compartment_id="e8APLlocRIwn9KiMVCUGk3o9ZAqmRs9jfyWuM2k2DceI9o1LSIBQbnkBfO9Hc66m0JBCKnI3maTZe3TJ3ASVLotRsOiE90NZaejvpz7WwbPwx4RKe4gabIYqAM1D3rAwxKmBuwA6mGQ9Y1Gf2CiD2teqv3uFDFn3VX0sIchYDVwESIWiFH2Q2dsE0LPbh7kyCZW4qapUrHZhU6S08tMas3sFOujXGhMsaKXzThF0ROVZpPR2rJBxDcxITED652j",
        vcn_id="9jruTbz77U6Iy3Wft1gBKs9QV8zZfbwtFEdR61nwMcs3PHETsZCifoWxw1nn2jGvXlG0zTm70ziHkvPoWX1OqX7z4L6LcuZKIeQNzb621a3xuBqE4tPNrIYnOCJlrS91XwQrkNjOwFZORHde14lItz3SZh5RZKZHAG4RTzSCZtaW9mbf2VKiuouOwPLSqZbI0EamIai2R0L7givLg2GEJleZhu61Cr9i8t9k7W7TeCpDY1DPIiTIhw71Qa3qPeQ",
        subnet_id="KzlOhdeD2Bh8eP6X8XLrWyM0d4GYVXlRHO4TNatBet6QCt4g6W0bw3nGtWAwEM09CUxINnLuBx3SJun7MrDy1LMPBf9vesocIX8GP8B9yWB4Ee9O91LMkKYAOvrrbhcYflSWDHxEg7ltdxmi4gLoYScxjTSzz1eYSmq6IgjjhLE7MvrQNt925bb6fbSr9ednGSk86r4B276WcGZm1YvIhHx5KVCy1Sv8fEojnQBHuIid4HSIJCkrsQ187or79C0",
        dns_server_ip="EXAMPLE-dnsServerIp-Value",
        dns_server_zone="EXAMPLE-dnsServerZone-Value",
        freeform_tags={
            'EXAMPLE_KEY_3qXBd': 'EXAMPLE_VALUE_F8WGjniPpeOJhWqZF6I7'},
        defined_tags={
            'EXAMPLE_KEY_WVcWy': {
                'EXAMPLE_KEY_zW1JH': 'EXAMPLE--Value'}},
        description="EXAMPLE-description-Value",
        is_private_network_enabled=False),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="RXAIWJI2LQQOMD3HQI8B/OpcRequestIdExample/<unique_ID>")

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