示例#1
0
def sample_upgrade_instance():
    """Snippet for upgrade_instance"""

    # Create a client
    client = redis_v1.CloudRedisClient()

    # Initialize request argument(s)
    request = redis_v1.UpgradeInstanceRequest()

    # Make the request
    operation = client.upgrade_instance(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()
    print("{}".format(response))
示例#2
0
def sample_upgrade_instance():
    # Create a client
    client = redis_v1.CloudRedisClient()

    # Initialize request argument(s)
    request = redis_v1.UpgradeInstanceRequest(
        name="name_value",
        redis_version="redis_version_value",
    )

    # Make the request
    operation = client.upgrade_instance(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)