nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
use conjure_http::endpoint;
/// The internal secrets service provides functionality for retrieving customer secrets where the "user" is a service.
#[conjure_http::conjure_endpoints(
    name = "InternalSecretService",
    use_legacy_error_serialization
)]
pub trait InternalSecretService {
    /// Get decrypted secret by rid. This is a privileged operation that is restricted to services only.
    /// This endpoint must be a conjure endpoint in order to support TLS.
    #[endpoint(
        method = GET,
        path = "/secrets/internal/v1/secrets/{rid}/decrypted",
        name = "getDecrypted",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn get_decrypted(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[path(
            name = "rid",
            decoder = conjure_http::server::conjure::FromPlainDecoder,
            safe
        )]
        rid: super::super::super::super::objects::secrets::api::SecretRid,
    ) -> Result<
        super::super::super::super::objects::secrets::api::DecryptedSecret,
        conjure_http::private::Error,
    >;
}
/// The internal secrets service provides functionality for retrieving customer secrets where the "user" is a service.
#[conjure_http::conjure_endpoints(
    name = "InternalSecretService",
    use_legacy_error_serialization
)]
pub trait AsyncInternalSecretService {
    /// Get decrypted secret by rid. This is a privileged operation that is restricted to services only.
    /// This endpoint must be a conjure endpoint in order to support TLS.
    #[endpoint(
        method = GET,
        path = "/secrets/internal/v1/secrets/{rid}/decrypted",
        name = "getDecrypted",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn get_decrypted(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[path(
            name = "rid",
            decoder = conjure_http::server::conjure::FromPlainDecoder,
            safe
        )]
        rid: super::super::super::super::objects::secrets::api::SecretRid,
    ) -> Result<
        super::super::super::super::objects::secrets::api::DecryptedSecret,
        conjure_http::private::Error,
    >;
}
/// The internal secrets service provides functionality for retrieving customer secrets where the "user" is a service.
#[conjure_http::conjure_endpoints(
    name = "InternalSecretService",
    use_legacy_error_serialization,
    local
)]
pub trait LocalAsyncInternalSecretService {
    /// Get decrypted secret by rid. This is a privileged operation that is restricted to services only.
    /// This endpoint must be a conjure endpoint in order to support TLS.
    #[endpoint(
        method = GET,
        path = "/secrets/internal/v1/secrets/{rid}/decrypted",
        name = "getDecrypted",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn get_decrypted(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[path(
            name = "rid",
            decoder = conjure_http::server::conjure::FromPlainDecoder,
            safe
        )]
        rid: super::super::super::super::objects::secrets::api::SecretRid,
    ) -> Result<
        super::super::super::super::objects::secrets::api::DecryptedSecret,
        conjure_http::private::Error,
    >;
}