# 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).

from datetime import datetime
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
desktops_client = oci.desktops.DesktopServiceClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
create_desktop_pool_response = desktops_client.create_desktop_pool(
    create_desktop_pool_details=oci.desktops.models.CreateDesktopPoolDetails(
        compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
        display_name="EXAMPLE-displayName-Value",
        maximum_size=7517,
        standby_size=102,
        shape_name="EXAMPLE-shapeName-Value",
        is_storage_enabled=True,
        storage_size_in_gbs=11600,
        storage_backup_policy_id="ocid1.test.oc1..<unique_ID>EXAMPLE-storageBackupPolicyId-Value",
        device_policy=oci.desktops.models.DesktopDevicePolicy(
            clipboard_mode="TODESKTOP",
            audio_mode="FROMDESKTOP",
            cdm_mode="READONLY",
            is_printing_enabled=True,
            is_pointer_enabled=True,
            is_keyboard_enabled=True,
            is_display_enabled=True),
        availability_policy=oci.desktops.models.DesktopAvailabilityPolicy(
            start_schedule=oci.desktops.models.DesktopSchedule(
                cron_expression="EXAMPLE-cronExpression-Value",
                timezone="EXAMPLE-timezone-Value")),
        image=oci.desktops.models.DesktopImage(
            image_id="ocid1.test.oc1..<unique_ID>EXAMPLE-imageId-Value",
            image_name="EXAMPLE-imageName-Value"),
        network_configuration=oci.desktops.models.DesktopNetworkConfiguration(
            vcn_id="ocid1.test.oc1..<unique_ID>EXAMPLE-vcnId-Value",
            subnet_id="ocid1.test.oc1..<unique_ID>EXAMPLE-subnetId-Value"),
        contact_details="EXAMPLE-contactDetails-Value",
        are_privileged_users=False,
        availability_domain="EXAMPLE-availabilityDomain-Value",
        description="EXAMPLE-description-Value",
        time_start_scheduled=datetime.strptime(
            "2014-07-25T02:43:52.023Z",
            "%Y-%m-%dT%H:%M:%S.%fZ"),
        time_stop_scheduled=datetime.strptime(
            "2022-02-05T21:51:06.058Z",
            "%Y-%m-%dT%H:%M:%S.%fZ"),
        freeform_tags={
            'EXAMPLE_KEY_S2Ikg': 'EXAMPLE_VALUE_gJmVNDORepSyIp7n9U3s'},
        defined_tags={
            'EXAMPLE_KEY_fcjin': {
                'EXAMPLE_KEY_WDPB2': 'EXAMPLE--Value'}},
        nsg_ids=["EXAMPLE--Value"]),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="HTDXJHWWDVXQNDFG4GBA<unique_ID>")

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