Trait golem_cloud_client::api::ApiDefinitionClient

source ·
pub trait ApiDefinitionClient {
    // Required methods
    fn import_open_api<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
        value: &'life2 Value,
    ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn list_definitions<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
        api_definition_id: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<HttpApiDefinitionWithTypeInfo>, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn create_definition<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
        value: &'life2 HttpApiDefinitionRequest,
    ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_definition<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
        id: &'life2 str,
        version: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn update_definition<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
        id: &'life2 str,
        version: &'life3 str,
        value: &'life4 HttpApiDefinitionRequest,
    ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn delete_definition<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
        id: &'life2 str,
        version: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<String, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Methods§

source

fn import_open_api<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, value: &'life2 Value, ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn list_definitions<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, api_definition_id: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<HttpApiDefinitionWithTypeInfo>, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn create_definition<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, value: &'life2 HttpApiDefinitionRequest, ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn get_definition<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, id: &'life2 str, version: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

source

fn update_definition<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, id: &'life2 str, version: &'life3 str, value: &'life4 HttpApiDefinitionRequest, ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

source

fn delete_definition<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, id: &'life2 str, version: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<String, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§