# 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
rover_client = oci.rover.RoverClusterClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
update_rover_cluster_response = rover_client.update_rover_cluster(
    rover_cluster_id="ocid1.test.oc1..<unique_ID>EXAMPLE-roverClusterId-Value",
    update_rover_cluster_details=oci.rover.models.UpdateRoverClusterDetails(
        display_name="EXAMPLE-displayName-Value",
        cluster_size=973,
        customer_shipping_address=oci.rover.models.ShippingAddress(
            addressee="EXAMPLE-addressee-Value",
            address1="EXAMPLE-address1-Value",
            city_or_locality="EXAMPLE-cityOrLocality-Value",
            state_or_region="EXAMPLE-stateOrRegion-Value",
            zipcode="EXAMPLE-zipcode-Value",
            country="EXAMPLE-country-Value",
            phone_number="EXAMPLE-phoneNumber-Value",
            care_of="EXAMPLE-careOf-Value",
            address2="EXAMPLE-address2-Value",
            address3="EXAMPLE-address3-Value",
            address4="EXAMPLE-address4-Value",
            email="EXAMPLE-email-Value"),
        cluster_workloads=[
            oci.rover.models.RoverWorkload(
                compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
                id="ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
                workload_type="EXAMPLE-workloadType-Value",
                name="EXAMPLE-name-Value",
                size="EXAMPLE-size-Value",
                object_count="EXAMPLE-objectCount-Value",
                prefix="EXAMPLE-prefix-Value",
                range_start="EXAMPLE-rangeStart-Value",
                range_end="EXAMPLE-rangeEnd-Value",
                work_request_id="ocid1.test.oc1..<unique_ID>EXAMPLE-workRequestId-Value")],
        super_user_password="EXAMPLE-superUserPassword-Value",
        lifecycle_state="CREATING",
        lifecycle_state_details="EXAMPLE-lifecycleStateDetails-Value",
        unlock_passphrase="EXAMPLE-unlockPassphrase-Value",
        enclosure_type="RUGGADIZED",
        point_of_contact="EXAMPLE-pointOfContact-Value",
        point_of_contact_phone_number="EXAMPLE-pointOfContactPhoneNumber-Value",
        shipping_preference="ORACLE_SHIPPED",
        oracle_shipping_tracking_url="EXAMPLE-oracleShippingTrackingUrl-Value",
        shipping_vendor="EXAMPLE-shippingVendor-Value",
        time_pickup_expected=datetime.strptime(
                        "2024-03-28T19:38:29.147Z",
                        "%Y-%m-%dT%H:%M:%S.%fZ"),
        freeform_tags={
            'EXAMPLE_KEY_fkSad': 'EXAMPLE_VALUE_0QtOThnwRpXn6ol86SWl'},
        defined_tags={
            'EXAMPLE_KEY_Ig1OV': {
                'EXAMPLE_KEY_NBiBo': 'EXAMPLE--Value'}},
        system_tags={
            'EXAMPLE_KEY_hbZ2H': {
                'EXAMPLE_KEY_dXJrt': 'EXAMPLE--Value'}}),
    if_match="EXAMPLE-ifMatch-Value",
    opc_request_id="KNOBDZW64OL0ZC5BRHWH<unique_ID>")

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