---
sidebar:
  label: roboto.storage.credentials
  order: 2
title: roboto.storage.credentials
---
## Module Contents

### RobotoCredentials

```python
class roboto.storage.credentials.RobotoCredentials(/, **data: Any)
```

`from roboto.storage import RobotoCredentials`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/storage/credentials.py#L16-L42)

Bases: `pydantic.BaseModel`

Credentials returned from the Roboto Platform

**Parameters**

- **data** (`Any`)

**Attributes**

- **RobotoCredentials.access_key_id** (`str`)
- **RobotoCredentials.bucket** (`str`)
- **RobotoCredentials.expiration** (`datetime.datetime`)
- **RobotoCredentials.region** (`str`)
- **RobotoCredentials.required_prefix** (`str`)
- **RobotoCredentials.secret_access_key** (`str`)
- **RobotoCredentials.session_token** (`str`)

#### RobotoCredentials.is_expired()

```python
def is_expired() -> bool
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/storage/credentials.py#L29-L30)

**Returns**

- `bool`

#### RobotoCredentials.to_dict()

```python
def to_dict() -> dict[str, Any]
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/storage/credentials.py#L32-L33)

**Returns**

- `dict[str, Any]`

#### RobotoCredentials.to_object_store_credentials()

```python
def to_object_store_credentials() -> roboto.storage.object_store.Credentials
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/storage/credentials.py#L35-L42)

**Returns**

- `roboto.storage.object_store.Credentials`
