pub trait PamAccessConnectorsApi: Send + Sync {
// Required methods
fn assign_target<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
assign_access_connector_target_request_model: AssignAccessConnectorTargetRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn disable<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn enable<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PamAccessConnectorDetailResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PamAccessConnectorResponseModelListResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn post<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
register_access_connector_request_model: RegisterAccessConnectorRequestModel,
) -> Pin<Box<dyn Future<Output = Result<RegisterAccessConnectorResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn unassign_target<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
target_system_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}Required Methods§
Sourcefn assign_target<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
assign_access_connector_target_request_model: AssignAccessConnectorTargetRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn assign_target<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
assign_access_connector_target_request_model: AssignAccessConnectorTargetRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/access-connectors/{id}/assignments
Sourcefn delete<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /organizations/{orgId}/access-connectors/{id} Permanently deletes an access connector and invalidates its credential. The access connector held the plaintext organization key – rotating the organization key is the remediation for a suspected compromise.
Sourcefn disable<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn disable<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/access-connectors/{id}/disable Disables an access connector (reversible): it stops claiming new jobs and its running jobs are released, but its credential is retained so it can be re-enabled later.
Sourcefn enable<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn enable<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/access-connectors/{id}/enable Re-enables a disabled access connector so it can authenticate and claim jobs again.
Sourcefn get<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PamAccessConnectorDetailResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PamAccessConnectorDetailResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/access-connectors/{id} Returns one access connector with its recent rotation activity – the jobs it has worked and the attempts it recorded against them, newest first.
Sourcefn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PamAccessConnectorResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PamAccessConnectorResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/access-connectors
Sourcefn post<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
register_access_connector_request_model: RegisterAccessConnectorRequestModel,
) -> Pin<Box<dyn Future<Output = Result<RegisterAccessConnectorResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
register_access_connector_request_model: RegisterAccessConnectorRequestModel,
) -> Pin<Box<dyn Future<Output = Result<RegisterAccessConnectorResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/access-connectors Registers an access connector and returns its client secret. The secret is shown exactly once here – the server hashes it for storage and cannot return it again.
Sourcefn unassign_target<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
target_system_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn unassign_target<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
target_system_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /organizations/{orgId}/access-connectors/{id}/assignments/{targetSystemId}
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".