pub struct SingleSignOnSettings {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl SingleSignOnSettings
impl SingleSignOnSettings
Sourcepub async fn get_sso_integrations(
&self,
si: bool,
) -> Result<Response<Vec<SsoIntegrationAllOf>>, ClientError>
pub async fn get_sso_integrations( &self, si: bool, ) -> Result<Response<Vec<SsoIntegrationAllOf>>, ClientError>
Get All SSO Integrations.
This function performs a GET to the /sso/integrations endpoint.
This endpoint allows you to retrieve all SSO integrations tied to your Twilio SendGrid account.
The IDs returned by this endpoint can be used by the APIs additional endpoints to modify your SSO integrations.
Parameters:
si: bool– If this parameter is set totrue, the response will include thecompleted_integrationfield.
Sourcepub async fn get_all_sso_integrations(
&self,
si: bool,
) -> Result<Response<Vec<SsoIntegrationAllOf>>, ClientError>
pub async fn get_all_sso_integrations( &self, si: bool, ) -> Result<Response<Vec<SsoIntegrationAllOf>>, ClientError>
Get All SSO Integrations.
This function performs a GET to the /sso/integrations endpoint.
As opposed to get_sso_integrations, this function returns all the pages of the request at once.
This endpoint allows you to retrieve all SSO integrations tied to your Twilio SendGrid account.
The IDs returned by this endpoint can be used by the APIs additional endpoints to modify your SSO integrations.
Sourcepub async fn post_sso_integration(
&self,
body: &CreateIntegrationRequest,
) -> Result<Response<SsoIntegrationAllOf>, ClientError>
pub async fn post_sso_integration( &self, body: &CreateIntegrationRequest, ) -> Result<Response<SsoIntegrationAllOf>, ClientError>
Create an SSO Integration.
This function performs a POST to the /sso/integrations endpoint.
This endpoint allows you to create an SSO integration.
Sourcepub async fn get_sso_integration(
&self,
id: &str,
si: bool,
) -> Result<Response<SsoIntegrationAllOf>, ClientError>
pub async fn get_sso_integration( &self, id: &str, si: bool, ) -> Result<Response<SsoIntegrationAllOf>, ClientError>
Get an SSO Integration.
This function performs a GET to the /sso/integrations/{id} endpoint.
This endpoint allows you to retrieve an SSO integration by ID.
You can retrieve the IDs for your configurations from the response provided by the “Get All SSO Integrations” endpoint.
Parameters:
si: bool– If this parameter is set totrue, the response will include thecompleted_integrationfield.
Sourcepub async fn delete_sso_integrations(
&self,
id: &str,
) -> Result<Response<()>, ClientError>
pub async fn delete_sso_integrations( &self, id: &str, ) -> Result<Response<()>, ClientError>
Delete an SSO Integration.
This function performs a DELETE to the /sso/integrations/{id} endpoint.
This endpoint allows you to delete an IdP configuration by ID.
You can retrieve the IDs for your configurations from the response provided by the “Get All SSO Integrations” endpoint.
Sourcepub async fn patch_sso_integrations(
&self,
id: &str,
si: bool,
body: &CreateIntegrationRequest,
) -> Result<Response<SsoIntegrationAllOf>, ClientError>
pub async fn patch_sso_integrations( &self, id: &str, si: bool, body: &CreateIntegrationRequest, ) -> Result<Response<SsoIntegrationAllOf>, ClientError>
Update an SSO Integration.
This function performs a PATCH to the /sso/integrations/{id} endpoint.
This endpoint allows you to modify an exisiting SSO integration.
You can retrieve the IDs for your configurations from the response provided by the “Get All SSO Integrations” endpoint.
Parameters:
si: bool– If this parameter is set totrue, the response will include thecompleted_integrationfield.