# Протокол

## Оглавление

- [keyapis/device/v1/keyapis_device_command_v1.proto](#keyapis_device_v1_keyapis_device_command_v1-proto)
    - [CommandDeviceService](#keyapis-device-v1-CommandDeviceService)
  
    - [PostCommandDeviceOpenRequest](#keyapis-device-v1-PostCommandDeviceOpenRequest)
    - [PostCommandDeviceOpenResponse](#keyapis-device-v1-PostCommandDeviceOpenResponse)
    - [PostCommandDeviceOpenResponse.Error](#keyapis-device-v1-PostCommandDeviceOpenResponse-Error)
  


## [Схема классов](/svg/protos/key/keyapis/device/v1/keyapis_device_command_v1.proto.svg)
<a href="/svg/protos/key/keyapis/device/v1/keyapis_device_command_v1.proto.svg"><img src="/svg/protos/key/keyapis/device/v1/keyapis_device_command_v1.proto.svg" alt="/svg/protos/key/keyapis/device/v1/keyapis_device_command_v1.proto.svg" style="height:100%;"></a>




<a name="keyapis_device_v1_keyapis_device_command_v1-proto"></a>

## [keyapis/device/v1/keyapis_device_command_v1.proto](/protos/key/keyapis/device/v1/keyapis_device_command_v1.proto)
Сервис реализует функционал управления операциями с устройствами


<a name="keyapis-device-v1-CommandDeviceService"></a>

### CommandDeviceService
 Сервис устройств

| Название метода | Описание | Тип запроса | Тип ответа |
| --------------- | -------- | ----------- | -----------|
| <a id="keyapis-device-v1-PostCommandDeviceOpen"></a> [PostCommandDeviceOpen](#keyapis-device-v1-PostCommandDeviceOpen) | Метод отправки задания на открытие устройства. Метод доступен для: admin, service | [keyapis.device.v1.PostCommandDeviceOpenRequest](#keyapis-device-v1-PostCommandDeviceOpenRequest) | [keyapis.device.v1.PostCommandDeviceOpenResponse](#keyapis-device-v1-PostCommandDeviceOpenResponse) |

 <!-- end services -->


<a name="keyapis-device-v1-PostCommandDeviceOpenRequest"></a>


### [PostCommandDeviceOpenRequest](#keyapis-device-v1-PostCommandDeviceOpenRequest)
 Запрос на отправку задания на открытие устройства


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="keyapis-device-v1-PostCommandDeviceOpenRequest-device_id"></a> [device_id](#keyapis-device-v1-PostCommandDeviceOpenRequest-device_id) | Идентификатор устройства |    [int32](#scalar-types) | REQUIRED|






<a name="keyapis-device-v1-PostCommandDeviceOpenResponse"></a>


### [PostCommandDeviceOpenResponse](#keyapis-device-v1-PostCommandDeviceOpenResponse)
 Ответ на запрос на отправку задания на открытие устройства


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="keyapis-device-v1-PostCommandDeviceOpenResponse-error"></a> [error](#keyapis-device-v1-PostCommandDeviceOpenResponse-error) | Ошибка |  optional  [keyapis.device.v1.PostCommandDeviceOpenResponse.Error](#keyapis-device-v1-PostCommandDeviceOpenResponse-Error) | <nil>|






<a name="keyapis-device-v1-PostCommandDeviceOpenResponse-Error"></a>


### [PostCommandDeviceOpenResponse.Error](#keyapis-device-v1-PostCommandDeviceOpenResponse-Error)
 Ошибка запроса


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="keyapis-device-v1-PostCommandDeviceOpenResponse-Error-validation"></a> [validation](#keyapis-device-v1-PostCommandDeviceOpenResponse-Error-validation) | Ошибка валидации |  optional  [keyapis.device.v1.ValidationError](#keyapis-device-v1-ValidationError) | <nil>|





 <!-- end messages -->

 <!-- end enums -->

 <!-- end HasExtensions -->



## Скалярные типы значений
<a id="scalar-types"></a>

| .proto Type | Примечание | Python | Go | Ruby | C# | C++ | Java | PHP |
| ----------- | ---------- | ------ | -- | ---- | -- | --- | ---- | --- |
| [double](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) |  | float | float64 | Float | double | double | double | float |
| [float](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) |  | float | float32 | Float | float | float | float | float |
| [int32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int | int32 | Bignum or Fixnum (as required) | int | int32 | int | integer |
| [int64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int/long | int64 | Bignum | long | int64 | long | integer/string |
| [uint32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. | int/long | uint32 | Bignum or Fixnum (as required) | uint | uint32 | int | integer |
| [uint64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. | int/long | uint64 | Bignum or Fixnum (as required) | ulong | uint64 | long | integer/string |
| [sint32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int | int32 | Bignum or Fixnum (as required) | int | int32 | int | integer |
| [sint64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int/long | int64 | Bignum | long | int64 | long | integer/string |
| [fixed32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | int | uint32 | Bignum or Fixnum (as required) | uint | uint32 | int | integer |
| [fixed64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | int/long | uint64 | Bignum | ulong | uint64 | long | integer/string |
| [sfixed32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Always four bytes. | int | int32 | Bignum or Fixnum (as required) | int | int32 | int | integer |
| [sfixed64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Always eight bytes. | int/long | int64 | Bignum | long | int64 | long | integer/string |
| [bool](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) |  | boolean | bool | TrueClass/FalseClass | bool | bool | boolean | boolean |
| [string](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | A string must always contain UTF-8 encoded or 7-bit ASCII text. | str/unicode | string | String (UTF-8) | string | string | String | string |
| [bytes](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | May contain any arbitrary sequence of bytes. | str | []byte | String (ASCII-8BIT) | ByteString | string | ByteString | string |

