# 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
database_client = oci.database.DatabaseClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
update_autonomous_database_response = database_client.update_autonomous_database(
    autonomous_database_id="ocid1.test.oc1..<unique_ID>EXAMPLE-autonomousDatabaseId-Value",
    update_autonomous_database_details=oci.database.models.UpdateAutonomousDatabaseDetails(
        cpu_core_count=746,
        data_storage_size_in_tbs=735,
        display_name="EXAMPLE-displayName-Value",
        is_free_tier=True,
        admin_password="EXAMPLE-adminPassword-Value",
        db_name="EXAMPLE-dbName-Value",
        freeform_tags={
            'EXAMPLE_KEY_LjJSh': 'EXAMPLE_VALUE_zX6U1poC7PSpIClP4ECz'},
        defined_tags={
            'EXAMPLE_KEY_NFDWo': {
                'EXAMPLE_KEY_BiBb9': 'EXAMPLE--Value'}},
        db_workload="DW",
        license_model="LICENSE_INCLUDED",
        is_access_control_enabled=False,
        whitelisted_ips=["EXAMPLE--Value"],
        are_primary_whitelisted_ips_used=False,
        standby_whitelisted_ips=["EXAMPLE--Value"],
        is_auto_scaling_enabled=False,
        is_refreshable_clone=True,
        refreshable_mode="MANUAL",
        is_data_guard_enabled=False,
        db_version="EXAMPLE-dbVersion-Value",
        open_mode="READ_WRITE",
        permission_level="RESTRICTED",
        subnet_id="ocid1.test.oc1..<unique_ID>EXAMPLE-subnetId-Value",
        private_endpoint_label="EXAMPLE-privateEndpointLabel-Value",
        nsg_ids=["EXAMPLE--Value"]),
    if_match="EXAMPLE-ifMatch-Value",
    opc_request_id="FPIMTZA6OTFQJAQG5Q2C/OpcRequestIdExample/<unique_ID>")

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