KafkaClusterClientCompositeOperations

class oci.managed_kafka.KafkaClusterClientCompositeOperations(client, **kwargs)

This class provides a wrapper around KafkaClusterClient and offers convenience methods for operations that would otherwise need to be chained together. For example, instead of performing an action on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource to enter a given state, you can call a single method in this class to accomplish the same functionality

Methods

__init__(client, **kwargs) Creates a new KafkaClusterClientCompositeOperations object
change_kafka_cluster_compartment_and_wait_for_state(…) Calls change_kafka_cluster_compartment() and waits for the WorkRequest to enter the given state(s).
create_kafka_cluster_and_wait_for_state(…) Calls create_kafka_cluster() and waits for the WorkRequest to enter the given state(s).
create_kafka_cluster_config_and_wait_for_state(…) Calls create_kafka_cluster_config() and waits for the KafkaClusterConfig acted upon to enter the given state(s).
delete_kafka_cluster_and_wait_for_state(…) Calls delete_kafka_cluster() and waits for the WorkRequest to enter the given state(s).
delete_kafka_cluster_config_and_wait_for_state(…) Calls delete_kafka_cluster_config() and waits for the KafkaClusterConfig acted upon to enter the given state(s).
disable_superuser_and_wait_for_state(…[, …]) Calls disable_superuser() and waits for the WorkRequest to enter the given state(s).
enable_superuser_and_wait_for_state(…[, …]) Calls enable_superuser() and waits for the WorkRequest to enter the given state(s).
update_kafka_cluster_and_wait_for_state(…) Calls update_kafka_cluster() and waits for the WorkRequest to enter the given state(s).
update_kafka_cluster_config_and_wait_for_state(…) Calls update_kafka_cluster_config() and waits for the KafkaClusterConfig acted upon to enter the given state(s).
__init__(client, **kwargs)

Creates a new KafkaClusterClientCompositeOperations object

Parameters:client (KafkaClusterClient) – The service client which will be wrapped by this object
change_kafka_cluster_compartment_and_wait_for_state(kafka_cluster_id, change_kafka_cluster_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls change_kafka_cluster_compartment() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • kafka_cluster_id (str) –

    (required) The OCID of the KafkaCluster.

  • change_kafka_cluster_compartment_details (oci.managed_kafka.models.ChangeKafkaClusterCompartmentDetails) – (required) The information to be updated.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to change_kafka_cluster_compartment()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
create_kafka_cluster_and_wait_for_state(create_kafka_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_kafka_cluster() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • create_kafka_cluster_details (oci.managed_kafka.models.CreateKafkaClusterDetails) – (required) Details for the new KafkaCluster.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to create_kafka_cluster()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
create_kafka_cluster_config_and_wait_for_state(create_kafka_cluster_config_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_kafka_cluster_config() and waits for the KafkaClusterConfig acted upon to enter the given state(s).

Parameters:
  • create_kafka_cluster_config_details (oci.managed_kafka.models.CreateKafkaClusterConfigDetails) – (required) Details for the new KafkaClusterConfig.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to create_kafka_cluster_config()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
delete_kafka_cluster_and_wait_for_state(kafka_cluster_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls delete_kafka_cluster() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • kafka_cluster_id (str) –

    (required) The OCID of the KafkaCluster.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to delete_kafka_cluster()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
delete_kafka_cluster_config_and_wait_for_state(kafka_cluster_config_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls delete_kafka_cluster_config() and waits for the KafkaClusterConfig acted upon to enter the given state(s).

Parameters:
  • kafka_cluster_config_id (str) –

    (required) The OCID of the KafkaClusterConfig.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to delete_kafka_cluster_config()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
disable_superuser_and_wait_for_state(kafka_cluster_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls disable_superuser() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • kafka_cluster_id (str) –

    (required) The OCID of the KafkaCluster.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to disable_superuser()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
enable_superuser_and_wait_for_state(kafka_cluster_id, enable_superuser_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls enable_superuser() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • kafka_cluster_id (str) –

    (required) The OCID of the KafkaCluster.

  • enable_superuser_details (oci.managed_kafka.models.EnableSuperuserDetails) – (required) The information to be updated.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to enable_superuser()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
update_kafka_cluster_and_wait_for_state(kafka_cluster_id, update_kafka_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_kafka_cluster() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • kafka_cluster_id (str) –

    (required) The OCID of the KafkaCluster.

  • update_kafka_cluster_details (oci.managed_kafka.models.UpdateKafkaClusterDetails) – (required) The information to be updated.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to update_kafka_cluster()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
update_kafka_cluster_config_and_wait_for_state(kafka_cluster_config_id, update_kafka_cluster_config_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_kafka_cluster_config() and waits for the KafkaClusterConfig acted upon to enter the given state(s).

Parameters:
  • kafka_cluster_config_id (str) –

    (required) The OCID of the KafkaClusterConfig.

  • update_kafka_cluster_config_details (oci.managed_kafka.models.UpdateKafkaClusterConfigDetails) – (required) The information to be updated.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to update_kafka_cluster_config()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait