# 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
generative_ai_client = oci.generative_ai.GenerativeAiClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
update_vector_store_connector_response = generative_ai_client.update_vector_store_connector(
    vector_store_connector_id="ocid1.test.oc1..<unique_ID>EXAMPLE-vectorStoreConnectorId-Value",
    update_vector_store_connector_details=oci.generative_ai.models.UpdateVectorStoreConnectorDetails(
        description="EXAMPLE-description-Value",
        display_name="EXAMPLE-displayName-Value",
        schedule_config=oci.generative_ai.models.ScheduleIntervalConfig(
            config_type="INTERVAL",
            frequency="HOURLY",
            interval=473,
            state="DISABLED",
            time_start=datetime.strptime(
                "2005-02-07T18:05:01.667Z",
                "%Y-%m-%dT%H:%M:%S.%fZ"),
            time_end=datetime.strptime(
                "2011-06-03T06:10:22.009Z",
                "%Y-%m-%dT%H:%M:%S.%fZ")),
        configuration=oci.generative_ai.models.OciObjectStorageConfiguration(
            type="OBJECT_STORAGE_FILES",
            storage_config_list=[
                oci.generative_ai.models.ObjectStorageConfig(
                    namespace="EXAMPLE-namespace-Value",
                    bucket_name="EXAMPLE-bucketName-Value",
                    prefix_list=["EXAMPLE--Value"])]),
        freeform_tags={
            'EXAMPLE_KEY_S0IzA': 'EXAMPLE_VALUE_cKgwH85xEJfWhA00WjXU'},
        defined_tags={
            'EXAMPLE_KEY_18i0Z': {
                'EXAMPLE_KEY_p40ij': 'EXAMPLE--Value'}}),
    if_match="EXAMPLE-ifMatch-Value",
    opc_request_id="HJHSTHYS5AWHD6GKNSDU<unique_ID>")

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