# 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
mysql_client = oci.mysql.DbSystemClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
update_db_system_response = mysql_client.update_db_system(
    db_system_id="ocid1.test.oc1..<unique_ID>EXAMPLE-dbSystemId-Value",
    update_db_system_details=oci.mysql.models.UpdateDbSystemDetails(
        display_name="EXAMPLE-displayName-Value",
        description="EXAMPLE-description-Value",
        subnet_id="ocid1.test.oc1..<unique_ID>EXAMPLE-subnetId-Value",
        is_highly_available=True,
        availability_domain="EXAMPLE-availabilityDomain-Value",
        fault_domain="EXAMPLE-faultDomain-Value",
        shape_name="EXAMPLE-shapeName-Value",
        mysql_version="EXAMPLE-mysqlVersion-Value",
        configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-configurationId-Value",
        admin_username="EXAMPLE-adminUsername-Value",
        admin_password="EXAMPLE-adminPassword-Value",
        data_storage_size_in_gbs=352,
        hostname_label="EXAMPLE-hostnameLabel-Value",
        ip_address="EXAMPLE-ipAddress-Value",
        port=32,
        port_x=318,
        backup_policy=oci.mysql.models.UpdateBackupPolicyDetails(
            is_enabled=False,
            window_start_time="EXAMPLE-windowStartTime-Value",
            retention_in_days=972,
            freeform_tags={
                'EXAMPLE_KEY_JX1hV': 'EXAMPLE_VALUE_F57W8RDI0KWXdpIjX02E'},
            defined_tags={
                'EXAMPLE_KEY_DZ5bb': {
                    'EXAMPLE_KEY_4kGws': 'EXAMPLE--Value'}}),
        maintenance=oci.mysql.models.UpdateMaintenanceDetails(
            window_start_time="EXAMPLE-windowStartTime-Value"),
        freeform_tags={
            'EXAMPLE_KEY_TNel7': 'EXAMPLE_VALUE_lKSDhXxqyUgOexqrv5dK'},
        defined_tags={
            'EXAMPLE_KEY_8OQxe': {
                'EXAMPLE_KEY_cUPCW': 'EXAMPLE--Value'}}),
    if_match="EXAMPLE-ifMatch-Value",
    opc_request_id="WFJA8Z8RE0N1AUUXRHQN<unique_ID>")

# Get the data from response
print(update_db_system_response.headers)