# 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
golden_gate_client = oci.golden_gate.GoldenGateClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
update_pipeline_response = golden_gate_client.update_pipeline(
    pipeline_id="ocid1.test.oc1..<unique_ID>EXAMPLE-pipelineId-Value",
    update_pipeline_details=oci.golden_gate.models.UpdateZeroEtlPipelineDetails(
        recipe_type="ZERO_ETL",
        display_name="EXAMPLE-displayName-Value",
        description="EXAMPLE-description-Value",
        license_model="LICENSE_INCLUDED",
        freeform_tags={
            'EXAMPLE_KEY_mc67Y': 'EXAMPLE_VALUE_Dxg6wF23AoKuJ7b7dEgM'},
        defined_tags={
            'EXAMPLE_KEY_Eg16j': {
                'EXAMPLE_KEY_qok2D': 'EXAMPLE--Value'}},
        process_options=oci.golden_gate.models.ProcessOptions(
            initial_data_load=oci.golden_gate.models.InitialDataLoad(
                is_initial_load="DISABLED",
                action_on_existing_table="SKIP"),
            replicate_schema_change=oci.golden_gate.models.ReplicateSchemaChange(
                can_replicate_schema_change="DISABLED",
                action_on_ddl_error="TERMINATE",
                action_on_dml_error="IGNORE"),
            should_restart_on_failure="ENABLED"),
        mapping_rules=[
            oci.golden_gate.models.MappingRule(
                mapping_type="EXCLUDE",
                source="EXAMPLE-source-Value",
                target="EXAMPLE-target-Value")]),
    if_match="EXAMPLE-ifMatch-Value",
    opc_request_id="NMGRQ4A4G6EFED1RLX12<unique_ID>",
    is_lock_override=True)

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

Was this article helpful?