# 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_science_client = oci.data_science.DataScienceClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
create_compute_target_response = data_science_client.create_compute_target(
    create_compute_target_details=oci.data_science.models.CreateComputeTargetDetails(
        compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
        compute_configuration_details=oci.data_science.models.ManagedComputeClusterComputeConfigurationDetails(
            compute_type="MANAGED_COMPUTE_CLUSTER",
            instance_configuration=oci.data_science.models.ManagedComputeClusterInstanceConfigurationDetails(
                instance_shape="EXAMPLE-instanceShape-Value",
                boot_volume_size_in_gbs=4293,
                instance_shape_details=oci.data_science.models.ManagedComputeClusterInstanceShapeDetails(
                    ocpus=1619.8313,
                    memory_in_gbs=6010.3354)),
            scaling_policy=oci.data_science.models.ManagedComputeClusterFixedSizeScalingPolicy(
                policy_type="FIXED_SIZE",
                instance_count=727)),
        display_name="EXAMPLE-displayName-Value",
        description="EXAMPLE-description-Value",
        metadata={
            'EXAMPLE_KEY_svkPN': 'EXAMPLE_VALUE_LSXFJ6sAnzZvtbkte9Ry'},
        freeform_tags={
            'EXAMPLE_KEY_d2q7g': 'EXAMPLE_VALUE_DO4y0uCcDGICTjlIQaoL'},
        defined_tags={
            'EXAMPLE_KEY_qcuhm': {
                'EXAMPLE_KEY_Nz63q': 'EXAMPLE--Value'}}),
    opc_request_id="3BGVVMJGBYOO0MUVXVZ9<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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