
### list <a name="list"></a>
List all managed SDKs



**API Endpoint**: `GET /sdk`

#### Example Snippet

```rust
let client = sideko_rest_api::SidekoClient::default()
    .with_api_key_auth(&std::env::var("API_KEY").unwrap())
    .with_cookie_auth(&std::env::var("API_KEY").unwrap());
let res = client
    .sdk()
    .list(sideko_rest_api::resources::sdk::ListRequest {
        ..Default::default()
    })
    .await;
```

### generate <a name="generate"></a>
Generate a new managed SDK from a Sideko configuration file



**API Endpoint**: `POST /sdk`

#### Example Snippet

```rust
let client = sideko_rest_api::SidekoClient::default()
    .with_api_key_auth(&std::env::var("API_KEY").unwrap())
    .with_cookie_auth(&std::env::var("API_KEY").unwrap());
let res = client
    .sdk()
    .generate(sideko_rest_api::resources::sdk::GenerateRequest {
        config: sideko_rest_api::UploadFile::from_path("uploads/config.yaml")
            .unwrap(),
        language: sideko_rest_api::models::SdkLanguageEnum::Go,
        ..Default::default()
    })
    .await;
```

### update <a name="update"></a>
Update an SDK to reflect the latest state of the API



**API Endpoint**: `POST /sdk/update`

#### Example Snippet

```rust
let client = sideko_rest_api::SidekoClient::default()
    .with_api_key_auth(&std::env::var("API_KEY").unwrap())
    .with_cookie_auth(&std::env::var("API_KEY").unwrap());
let res = client
    .sdk()
    .update(sideko_rest_api::resources::sdk::UpdateRequest {
        config: sideko_rest_api::UploadFile::from_path("uploads/config.yaml")
            .unwrap(),
        prev_sdk_git: sideko_rest_api::UploadFile::from_path("uploads/git.tar.gz")
            .unwrap(),
        prev_sdk_id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
        sdk_version: sideko_rest_api::models::VersionOrBump::VersionBumpEnum(
            sideko_rest_api::models::VersionBumpEnum::Major,
        ),
        ..Default::default()
    })
    .await;
```
