box-open-sdk 0.3.1

Box API client for Rust (open source, community, punk rock) — typed models, async managers, and a reqwest runtime with retry, backoff, and token refresh.
Documentation
<!-- Generated by box-gantry. DO NOT EDIT. -->
# TermsOfServicesManager

Reach these methods through the `terms_of_services` field on `client::Client`.

## list

`GET /terms_of_services`

| Parameter | In | Type | Required |
|---|---|---|---|
| `tos_type` | query | `GetTosType` | no |

**Returns:** `TermsOfServices`

**Example**

```rust
let result = client.terms_of_services.list(None).await?;
```

## create

`POST /terms_of_services`

**Request body** (`application/json`): `TermsOfServiceCreateRequest`

**Returns:** `TermsOfService`

**Example**

```rust
let result = client.terms_of_services.create(schemas::TermsOfServiceCreateRequest { /* … */ }).await?;
```

## get

`GET /terms_of_services/{terms_of_service_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `terms_of_service_id` | path | `String` | yes |

**Returns:** `TermsOfService`

**Example**

```rust
let result = client.terms_of_services.get("TERMS_OF_SERVICE_ID".to_string()).await?;
```

## update

`PUT /terms_of_services/{terms_of_service_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `terms_of_service_id` | path | `String` | yes |

**Request body** (`application/json`): `TermsOfServiceUpdateRequest`

**Returns:** `TermsOfService`

**Example**

```rust
let result = client.terms_of_services.update("TERMS_OF_SERVICE_ID".to_string(), schemas::TermsOfServiceUpdateRequest { /* … */ }).await?;
```