pub struct ManagedKafkaConnect { /* private fields */ }Expand description
Implements a client for the Managed Service for Apache Kafka API.
§Example
let client = ManagedKafkaConnect::builder().build().await?;
// use `client` to make requests to the Managed Service for Apache Kafka API.§Service Description
The service that a client application uses to manage Apache Kafka Connect clusters and connectors.
§Configuration
To configure ManagedKafkaConnect use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://managedkafka.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
ManagedKafkaConnect holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap ManagedKafkaConnect in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl ManagedKafkaConnect
impl ManagedKafkaConnect
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for ManagedKafkaConnect.
let client = ManagedKafkaConnect::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: ManagedKafkaConnect + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: ManagedKafkaConnect + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn list_connect_clusters(&self) -> ListConnectClusters
pub fn list_connect_clusters(&self) -> ListConnectClusters
Lists the Kafka Connect clusters in a given project and location.
Sourcepub fn get_connect_cluster(&self) -> GetConnectCluster
pub fn get_connect_cluster(&self) -> GetConnectCluster
Returns the properties of a single Kafka Connect cluster.
Sourcepub fn create_connect_cluster(&self) -> CreateConnectCluster
pub fn create_connect_cluster(&self) -> CreateConnectCluster
Creates a new Kafka Connect cluster in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_connect_cluster(&self) -> UpdateConnectCluster
pub fn update_connect_cluster(&self) -> UpdateConnectCluster
Updates the properties of a single Kafka Connect cluster.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_connect_cluster(&self) -> DeleteConnectCluster
pub fn delete_connect_cluster(&self) -> DeleteConnectCluster
Deletes a single Connect cluster.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_connectors(&self) -> ListConnectors
pub fn list_connectors(&self) -> ListConnectors
Lists the connectors in a given Connect cluster.
Sourcepub fn get_connector(&self) -> GetConnector
pub fn get_connector(&self) -> GetConnector
Returns the properties of a single connector.
Sourcepub fn create_connector(&self) -> CreateConnector
pub fn create_connector(&self) -> CreateConnector
Creates a new connector in a given Connect cluster.
Sourcepub fn update_connector(&self) -> UpdateConnector
pub fn update_connector(&self) -> UpdateConnector
Updates the properties of a connector.
Sourcepub fn delete_connector(&self) -> DeleteConnector
pub fn delete_connector(&self) -> DeleteConnector
Deletes a connector.
Sourcepub fn pause_connector(&self) -> PauseConnector
pub fn pause_connector(&self) -> PauseConnector
Pauses the connector and its tasks.
Sourcepub fn resume_connector(&self) -> ResumeConnector
pub fn resume_connector(&self) -> ResumeConnector
Resumes the connector and its tasks.
Sourcepub fn restart_connector(&self) -> RestartConnector
pub fn restart_connector(&self) -> RestartConnector
Restarts the connector.
Sourcepub fn stop_connector(&self) -> StopConnector
pub fn stop_connector(&self) -> StopConnector
Stops the connector.
Sourcepub fn list_locations(&self) -> ListLocations
pub fn list_locations(&self) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self) -> GetLocation
pub fn get_location(&self) -> GetLocation
Gets information about a location.
Sourcepub fn list_operations(&self) -> ListOperations
pub fn list_operations(&self) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn delete_operation(&self) -> DeleteOperation
pub fn delete_operation(&self) -> DeleteOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self) -> CancelOperation
pub fn cancel_operation(&self) -> CancelOperation
Provides the Operations service functionality in this service.
Trait Implementations§
Source§impl Clone for ManagedKafkaConnect
impl Clone for ManagedKafkaConnect
Source§fn clone(&self) -> ManagedKafkaConnect
fn clone(&self) -> ManagedKafkaConnect
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more