Struct sendgrid_api::certificates::Certificates
source · pub struct Certificates {
pub client: Client,
}
Fields
client: Client
Implementations
sourceimpl Certificates
impl Certificates
sourcepub async fn post_sso(
&self,
body: &PostSsoCertificatesRequest
) -> Result<SsoCertificateBody>
pub async fn post_sso(
&self,
body: &PostSsoCertificatesRequest
) -> Result<SsoCertificateBody>
Create an SSO Certificate.
This function performs a POST
to the /sso/certificates
endpoint.
This endpoint allows you to create an SSO certificate.
sourcepub async fn get_sso_integrations_integration(
&self,
integration_id: &str
) -> Result<Vec<SsoCertificateBody>>
pub async fn get_sso_integrations_integration(
&self,
integration_id: &str
) -> Result<Vec<SsoCertificateBody>>
Get All SSO Certificates by Integration.
This function performs a GET
to the /sso/integrations/{integration_id}/certificates
endpoint.
This endpoint allows you to retrieve all your IdP configurations by configuration ID.
The integration_id
expected by this endpoint is the id
returned in the response by the “Get All SSO Integrations” endpoint.
sourcepub async fn get_all_sso_integrations_integration(
&self,
integration_id: &str
) -> Result<Vec<SsoCertificateBody>>
pub async fn get_all_sso_integrations_integration(
&self,
integration_id: &str
) -> Result<Vec<SsoCertificateBody>>
Get All SSO Certificates by Integration.
This function performs a GET
to the /sso/integrations/{integration_id}/certificates
endpoint.
As opposed to get_sso_integrations_integration
, this function returns all the pages of the request at once.
This endpoint allows you to retrieve all your IdP configurations by configuration ID.
The integration_id
expected by this endpoint is the id
returned in the response by the “Get All SSO Integrations” endpoint.
sourcepub async fn get_sso_cert(&self, cert_id: &str) -> Result<SsoCertificateBody>
pub async fn get_sso_cert(&self, cert_id: &str) -> Result<SsoCertificateBody>
Get an SSO Certificate.
This function performs a GET
to the /sso/certificates/{cert_id}
endpoint.
This endpoint allows you to retrieve an individual SSO certificate.
sourcepub async fn delete_sso_cert(&self, cert_id: &str) -> Result<SsoCertificateBody>
pub async fn delete_sso_cert(&self, cert_id: &str) -> Result<SsoCertificateBody>
Delete an SSO Certificate.
This function performs a DELETE
to the /sso/certificates/{cert_id}
endpoint.
This endpoint allows you to delete an SSO certificate.
You can retrieve a certificate’s ID from the response provided by the “Get All SSO Integrations” endpoint.
sourcepub async fn patch_sso_cert(
&self,
cert_id: &str,
body: &PatchSsoCertificatesCertRequest
) -> Result<Vec<SsoErrorResponse>>
pub async fn patch_sso_cert(
&self,
cert_id: &str,
body: &PatchSsoCertificatesCertRequest
) -> Result<Vec<SsoErrorResponse>>
Update SSO Certificate.
This function performs a PATCH
to the /sso/certificates/{cert_id}
endpoint.
This endpoint allows you to update an existing certificate by ID.
You can retrieve a certificate’s ID from the response provided by the “Get All SSO Integrations” endpoint.