# Storage

> **Package : spaceone.api.inventory.plugin**

## Storage

{% hint style="info" %}
**Storage Methods:**
{% endhint %}

| NO | Method                | Request Type                    | Response Type                                                                                                    | Description |
| -- | --------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ----------- |
| 1  | [**init**](#init)     | [InitRequest](#initrequest)     | [PluginInfo](#plugininfo)                                                                                        |             |
| 2  | [**verify**](#verify) | [VerifyRequest](#verifyrequest) | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) |             |
| 3  | [**export**](#export) | [ExportRequest](#exportrequest) | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) |             |

### init

| Type     | Message                     |
| -------- | --------------------------- |
| Request  | [InitRequest](#initrequest) |
| Response | [PluginInfo](#plugininfo)   |

### verify

| Type     | Message                                                                                                          |
| -------- | ---------------------------------------------------------------------------------------------------------------- |
| Request  | [VerifyRequest](#verifyrequest)                                                                                  |
| Response | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) |

### export

| Type     | Message                                                                                                          |
| -------- | ---------------------------------------------------------------------------------------------------------------- |
| Request  | [ExportRequest](#exportrequest)                                                                                  |
| Response | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) |

## Message

### ExportRequest

| No | Field        | Type                                                                                                               | Required | Description |
| -- | ------------ | ------------------------------------------------------------------------------------------------------------------ | :------: | ----------- |
| 1  | options      | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✅    |             |
| 2  | schema       | string                                                                                                             |     ❌    |             |
| 3  | secret\_data | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✅    |             |
| 4  | data         | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✅    |             |

### InitRequest

| No | Field   | Type                                                                                                               | Required | Description |
| -- | ------- | ------------------------------------------------------------------------------------------------------------------ | :------: | ----------- |
| 1  | options | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✅    |             |

### PluginInfo

| No | Field    | Type                                                                                                               | Description |
| -- | -------- | ------------------------------------------------------------------------------------------------------------------ | ----------- |
| 1  | metadata | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |             |

### VerifyRequest

| No | Field        | Type                                                                                                               | Required | Description |
| -- | ------------ | ------------------------------------------------------------------------------------------------------------------ | :------: | ----------- |
| 1  | options      | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✅    |             |
| 2  | schema       | string                                                                                                             |     ❌    |             |
| 3  | secret\_data | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✅    |             |
