pub struct SingleSignOnSettings {
pub client: Client,
}
Fields
client: Client
Implementations
sourceimpl SingleSignOnSettings
impl SingleSignOnSettings
sourcepub async fn get_sso_integrations(
&self,
si: bool
) -> Result<Vec<SsoIntegrationAllOf>>
pub async fn get_sso_integrations(
&self,
si: bool
) -> Result<Vec<SsoIntegrationAllOf>>
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_integration
field.
sourcepub async fn get_all_sso_integrations(
&self,
si: bool
) -> Result<Vec<SsoIntegrationAllOf>>
pub async fn get_all_sso_integrations(
&self,
si: bool
) -> Result<Vec<SsoIntegrationAllOf>>
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<SsoIntegrationAllOf>
pub async fn post_sso_integration(
&self,
body: &CreateIntegrationRequest
) -> Result<SsoIntegrationAllOf>
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<SsoIntegrationAllOf>
pub async fn get_sso_integration(
&self,
id: &str,
si: bool
) -> Result<SsoIntegrationAllOf>
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_integration
field.
sourcepub async fn delete_sso_integrations(&self, id: &str) -> Result<()>
pub async fn delete_sso_integrations(&self, id: &str) -> Result<()>
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<SsoIntegrationAllOf>
pub async fn patch_sso_integrations(
&self,
id: &str,
si: bool,
body: &CreateIntegrationRequest
) -> Result<SsoIntegrationAllOf>
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_integration
field.