pub struct Eventarc { /* private fields */ }Expand description
Implements a client for the Eventarc API.
§Example
let client = Eventarc::builder().build().await?;
// use `client` to make requests to the Eventarc API.§Service Description
Eventarc allows users to subscribe to various events that are provided by Google Cloud services and forward them to supported destinations.
§Configuration
To configure Eventarc 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://eventarc.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
Eventarc holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap Eventarc in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl Eventarc
impl Eventarc
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for Eventarc.
let client = Eventarc::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: Eventarc + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: Eventarc + '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 get_trigger(&self) -> GetTrigger
pub fn get_trigger(&self) -> GetTrigger
Get a single trigger.
Sourcepub fn list_triggers(&self) -> ListTriggers
pub fn list_triggers(&self) -> ListTriggers
List triggers.
Sourcepub fn create_trigger(&self) -> CreateTrigger
pub fn create_trigger(&self) -> CreateTrigger
Create a new trigger in a particular 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_trigger(&self) -> UpdateTrigger
pub fn update_trigger(&self) -> UpdateTrigger
Update a single trigger.
§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_trigger(&self) -> DeleteTrigger
pub fn delete_trigger(&self) -> DeleteTrigger
Delete a single trigger.
§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 get_channel(&self) -> GetChannel
pub fn get_channel(&self) -> GetChannel
Get a single Channel.
Sourcepub fn list_channels(&self) -> ListChannels
pub fn list_channels(&self) -> ListChannels
List channels.
Sourcepub fn create_channel(&self) -> CreateChannel
pub fn create_channel(&self) -> CreateChannel
Create a new channel in a particular 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_channel(&self) -> UpdateChannel
pub fn update_channel(&self) -> UpdateChannel
Update a single channel.
§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_channel(&self) -> DeleteChannel
pub fn delete_channel(&self) -> DeleteChannel
Delete a single channel.
§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 get_provider(&self) -> GetProvider
pub fn get_provider(&self) -> GetProvider
Get a single Provider.
Sourcepub fn list_providers(&self) -> ListProviders
pub fn list_providers(&self) -> ListProviders
List providers.
Sourcepub fn get_channel_connection(&self) -> GetChannelConnection
pub fn get_channel_connection(&self) -> GetChannelConnection
Get a single ChannelConnection.
Sourcepub fn list_channel_connections(&self) -> ListChannelConnections
pub fn list_channel_connections(&self) -> ListChannelConnections
List channel connections.
Sourcepub fn create_channel_connection(&self) -> CreateChannelConnection
pub fn create_channel_connection(&self) -> CreateChannelConnection
Create a new ChannelConnection in a particular 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 delete_channel_connection(&self) -> DeleteChannelConnection
pub fn delete_channel_connection(&self) -> DeleteChannelConnection
Delete a single ChannelConnection.
§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 get_google_channel_config(&self) -> GetGoogleChannelConfig
pub fn get_google_channel_config(&self) -> GetGoogleChannelConfig
Get a GoogleChannelConfig. The name of the GoogleChannelConfig in the response is ALWAYS coded with projectID.
Sourcepub fn update_google_channel_config(&self) -> UpdateGoogleChannelConfig
pub fn update_google_channel_config(&self) -> UpdateGoogleChannelConfig
Update a single GoogleChannelConfig
Sourcepub fn get_message_bus(&self) -> GetMessageBus
pub fn get_message_bus(&self) -> GetMessageBus
Get a single MessageBus.
Sourcepub fn list_message_buses(&self) -> ListMessageBuses
pub fn list_message_buses(&self) -> ListMessageBuses
List message buses.
Sourcepub fn list_message_bus_enrollments(&self) -> ListMessageBusEnrollments
pub fn list_message_bus_enrollments(&self) -> ListMessageBusEnrollments
List message bus enrollments.
Sourcepub fn create_message_bus(&self) -> CreateMessageBus
pub fn create_message_bus(&self) -> CreateMessageBus
Create a new MessageBus in a particular 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_message_bus(&self) -> UpdateMessageBus
pub fn update_message_bus(&self) -> UpdateMessageBus
Update a single message bus.
§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_message_bus(&self) -> DeleteMessageBus
pub fn delete_message_bus(&self) -> DeleteMessageBus
Delete a single message bus.
§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 get_enrollment(&self) -> GetEnrollment
pub fn get_enrollment(&self) -> GetEnrollment
Get a single Enrollment.
Sourcepub fn list_enrollments(&self) -> ListEnrollments
pub fn list_enrollments(&self) -> ListEnrollments
List Enrollments.
Sourcepub fn create_enrollment(&self) -> CreateEnrollment
pub fn create_enrollment(&self) -> CreateEnrollment
Create a new Enrollment in a particular 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_enrollment(&self) -> UpdateEnrollment
pub fn update_enrollment(&self) -> UpdateEnrollment
Update a single Enrollment.
§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_enrollment(&self) -> DeleteEnrollment
pub fn delete_enrollment(&self) -> DeleteEnrollment
Delete a single Enrollment.
§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 get_pipeline(&self) -> GetPipeline
pub fn get_pipeline(&self) -> GetPipeline
Get a single Pipeline.
Sourcepub fn list_pipelines(&self) -> ListPipelines
pub fn list_pipelines(&self) -> ListPipelines
List pipelines.
Sourcepub fn create_pipeline(&self) -> CreatePipeline
pub fn create_pipeline(&self) -> CreatePipeline
Create a new Pipeline in a particular 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_pipeline(&self) -> UpdatePipeline
pub fn update_pipeline(&self) -> UpdatePipeline
Update a single pipeline.
§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_pipeline(&self) -> DeletePipeline
pub fn delete_pipeline(&self) -> DeletePipeline
Delete a single pipeline.
§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 get_google_api_source(&self) -> GetGoogleApiSource
pub fn get_google_api_source(&self) -> GetGoogleApiSource
Get a single GoogleApiSource.
Sourcepub fn list_google_api_sources(&self) -> ListGoogleApiSources
pub fn list_google_api_sources(&self) -> ListGoogleApiSources
List GoogleApiSources.
Sourcepub fn create_google_api_source(&self) -> CreateGoogleApiSource
pub fn create_google_api_source(&self) -> CreateGoogleApiSource
Create a new GoogleApiSource in a particular 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_google_api_source(&self) -> UpdateGoogleApiSource
pub fn update_google_api_source(&self) -> UpdateGoogleApiSource
Update a single GoogleApiSource.
§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_google_api_source(&self) -> DeleteGoogleApiSource
pub fn delete_google_api_source(&self) -> DeleteGoogleApiSource
Delete a single GoogleApiSource.
§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_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 set_iam_policy(&self) -> SetIamPolicy
pub fn set_iam_policy(&self) -> SetIamPolicy
Sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
errors.
Sourcepub fn get_iam_policy(&self) -> GetIamPolicy
pub fn get_iam_policy(&self) -> GetIamPolicy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Sourcepub fn test_iam_permissions(&self) -> TestIamPermissions
pub fn test_iam_permissions(&self) -> TestIamPermissions
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of
permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
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.