# Протокол

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

- [deviceapis/device/v1/deviceapis_device_update_v1.proto](#deviceapis_device_v1_deviceapis_device_update_v1-proto)
    - [UpdateService](#deviceapis-device-v1-UpdateService)
  
    - [PostUpdateApplyRequest](#deviceapis-device-v1-PostUpdateApplyRequest)
    - [PostUpdateApplyResponse](#deviceapis-device-v1-PostUpdateApplyResponse)
    - [PostUpdateDownloadRequest](#deviceapis-device-v1-PostUpdateDownloadRequest)
    - [PostUpdateDownloadResponse](#deviceapis-device-v1-PostUpdateDownloadResponse)
    - [PostUpdateDownloadResponse.Error](#deviceapis-device-v1-PostUpdateDownloadResponse-Error)
  


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




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

## [deviceapis/device/v1/deviceapis_device_update_v1.proto](/protos/key/deviceapis/device/v1/deviceapis_device_update_v1.proto)
Сервис управления обновлениями


<a name="deviceapis-device-v1-UpdateService"></a>

### UpdateService
 Сервис управления обновлениями

| Название метода | Описание | Тип запроса | Тип ответа |
| --------------- | -------- | ----------- | -----------|
| <a id="deviceapis-device-v1-PostUpdateDownload"></a> [PostUpdateDownload](#deviceapis-device-v1-PostUpdateDownload) | Скачать прошивку для обновления | [deviceapis.device.v1.PostUpdateDownloadRequest](#deviceapis-device-v1-PostUpdateDownloadRequest) | [deviceapis.device.v1.PostUpdateDownloadResponse](#deviceapis-device-v1-PostUpdateDownloadResponse) |
| <a id="deviceapis-device-v1-PostUpdateApply"></a> [PostUpdateApply](#deviceapis-device-v1-PostUpdateApply) | Запустить обновление домофона | [deviceapis.device.v1.PostUpdateApplyRequest](#deviceapis-device-v1-PostUpdateApplyRequest) | [deviceapis.device.v1.PostUpdateApplyResponse](#deviceapis-device-v1-PostUpdateApplyResponse) |

 <!-- end services -->


<a name="deviceapis-device-v1-PostUpdateApplyRequest"></a>


### [PostUpdateApplyRequest](#deviceapis-device-v1-PostUpdateApplyRequest)
 Запрос применения обновления






<a name="deviceapis-device-v1-PostUpdateApplyResponse"></a>


### [PostUpdateApplyResponse](#deviceapis-device-v1-PostUpdateApplyResponse)
 Ответ на запрос применения обновления






<a name="deviceapis-device-v1-PostUpdateDownloadRequest"></a>


### [PostUpdateDownloadRequest](#deviceapis-device-v1-PostUpdateDownloadRequest)
 Запрос скачивания обновления


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="deviceapis-device-v1-PostUpdateDownloadRequest-ftp_path"></a> [ftp_path](#deviceapis-device-v1-PostUpdateDownloadRequest-ftp_path) | Имя FTP папки |    [string](#scalar-types) | REQUIRED|
| <a id="deviceapis-device-v1-PostUpdateDownloadRequest-file_name"></a> [file_name](#deviceapis-device-v1-PostUpdateDownloadRequest-file_name) | Имя файла обновления |    [string](#scalar-types) | REQUIRED|
| <a id="deviceapis-device-v1-PostUpdateDownloadRequest-update_mode"></a> [update_mode](#deviceapis-device-v1-PostUpdateDownloadRequest-update_mode) | Режим обновления |    [string](#scalar-types) | REQUIRED|






<a name="deviceapis-device-v1-PostUpdateDownloadResponse"></a>


### [PostUpdateDownloadResponse](#deviceapis-device-v1-PostUpdateDownloadResponse)
 Ответ на запрос скачивания обновления


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






<a name="deviceapis-device-v1-PostUpdateDownloadResponse-Error"></a>


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


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

