# 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
media_services_client = oci.media_services.MediaServicesClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
update_media_asset_response = media_services_client.update_media_asset(
    media_asset_id="ocid1.test.oc1..<unique_ID>EXAMPLE-mediaAssetId-Value",
    update_media_asset_details=oci.media_services.models.UpdateMediaAssetDetails(
        display_name="EXAMPLE-displayName-Value",
        type="AUDIO",
        parent_media_asset_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentMediaAssetId-Value",
        master_media_asset_id="ocid1.test.oc1..<unique_ID>EXAMPLE-masterMediaAssetId-Value",
        metadata=[
            oci.media_services.models.Metadata(
                metadata="EXAMPLE-metadata-Value")],
        media_asset_tags=[
            oci.media_services.models.MediaAssetTag(
                value="EXAMPLE-value-Value",
                type="USER")],
        freeform_tags={
            'EXAMPLE_KEY_WLOC1': 'EXAMPLE_VALUE_XlCUhhYzUVlaew45o7qg'},
        defined_tags={
            'EXAMPLE_KEY_tmEmF': {
                'EXAMPLE_KEY_aeCUn': 'EXAMPLE--Value'}}),
    is_lock_override=False,
    if_match="EXAMPLE-ifMatch-Value",
    opc_request_id="HI1E7AZEUXAAHY3VZ7MZ<unique_ID>")

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