pub struct Tasks { /* private fields */ }Expand description
Implements a client for the Cloud Run Admin API.
§Service Description
Cloud Run Task Control Plane API.
§Configuration
Tasks has various configuration parameters, the defaults should
work with most applications.
§Pooling and Cloning
Tasks holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap Tasks in
an Rc or Arc to reuse it, because it already uses an Arc
internally.
Implementations§
Source§impl Tasks
impl Tasks
Sourcepub async fn new_with_config(conf: ClientConfig) -> Result<Self>
pub async fn new_with_config(conf: ClientConfig) -> Result<Self>
Creates a new client with the specified configuration.
Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: Tasks + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: Tasks + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is when mocking the client.
Sourcepub fn list_tasks(&self, parent: impl Into<String>) -> ListTasks
pub fn list_tasks(&self, parent: impl Into<String>) -> ListTasks
Lists Tasks from an Execution of a Job.
Sourcepub fn list_operations(&self, name: impl Into<String>) -> ListOperations
pub fn list_operations(&self, name: impl Into<String>) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self, name: impl Into<String>) -> GetOperation
pub fn get_operation(&self, name: impl Into<String>) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn delete_operation(&self, name: impl Into<String>) -> DeleteOperation
pub fn delete_operation(&self, name: impl Into<String>) -> DeleteOperation
Provides the Operations service functionality in this service.
Sourcepub fn wait_operation(&self, name: impl Into<String>) -> WaitOperation
pub fn wait_operation(&self, name: impl Into<String>) -> WaitOperation
Provides the Operations service functionality in this service.