use conjure_http::endpoint;
/// Exposes a simple endpoints for checking whether or not persistent compute is enabled.
#[conjure_http::conjure_client(name = "PersistentComputeService")]
pub trait PersistentComputeService<
    #[response_body]
    I: Iterator<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Simple "ping" like endpoint to see if the service is enabled (and available).
    #[endpoint(
        method = GET,
        path = "/persistent-compute/enabled",
        name = "isEnabled",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn is_enabled(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
    ) -> Result<
        super::super::super::super::super::objects::persistent::compute::api::IsEnabledResponse,
        conjure_http::private::Error,
    >;
}
/// Exposes a simple endpoints for checking whether or not persistent compute is enabled.
#[conjure_http::conjure_client(name = "PersistentComputeService")]
pub trait AsyncPersistentComputeService<
    #[response_body]
    I: conjure_http::private::Stream<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Simple "ping" like endpoint to see if the service is enabled (and available).
    #[endpoint(
        method = GET,
        path = "/persistent-compute/enabled",
        name = "isEnabled",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn is_enabled(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
    ) -> Result<
        super::super::super::super::super::objects::persistent::compute::api::IsEnabledResponse,
        conjure_http::private::Error,
    >;
}
/// Exposes a simple endpoints for checking whether or not persistent compute is enabled.
#[conjure_http::conjure_client(name = "PersistentComputeService", local)]
pub trait LocalAsyncPersistentComputeService<
    #[response_body]
    I: conjure_http::private::Stream<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Simple "ping" like endpoint to see if the service is enabled (and available).
    #[endpoint(
        method = GET,
        path = "/persistent-compute/enabled",
        name = "isEnabled",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn is_enabled(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
    ) -> Result<
        super::super::super::super::super::objects::persistent::compute::api::IsEnabledResponse,
        conjure_http::private::Error,
    >;
}
