# Протокол

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

- [keyapis/device/v1/keyapis_device_access_v1.proto](#keyapis_device_v1_keyapis_device_access_v1-proto)
    - [DeviceAccess](#keyapis-device-v1-DeviceAccess)
  
    - [DeviceAccess.AccessorType](#keyapis-device-v1-DeviceAccess-AccessorType)
  


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




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

## [keyapis/device/v1/keyapis_device_access_v1.proto](/protos/key/keyapis/device/v1/keyapis_device_access_v1.proto)
Сервис работы с доступами к устройствам

 <!-- end services -->


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


### [DeviceAccess](#keyapis-device-v1-DeviceAccess)
 Доступ к устройству.
# Описание модели


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="keyapis-device-v1-DeviceAccess-device_id"></a> [device_id](#keyapis-device-v1-DeviceAccess-device_id) | Идентификатор. # Диапазон: 0..2147483647 |    [int32](#scalar-types) | REQUIRED|
| <a id="keyapis-device-v1-DeviceAccess-accessor_type"></a> [accessor_type](#keyapis-device-v1-DeviceAccess-accessor_type) | Тип субъекта доступа |    [keyapis.device.v1.DeviceAccess.AccessorType](#keyapis-device-v1-DeviceAccess-AccessorType) | REQUIRED|
| <a id="keyapis-device-v1-DeviceAccess-accessor_id"></a> [accessor_id](#keyapis-device-v1-DeviceAccess-accessor_id) | Идентификатор субъекта доступа. # Диапазон: 1..36 |    [string](#scalar-types) | REQUIRED|





 <!-- end messages -->



<a name="keyapis-device-v1-DeviceAccess-AccessorType"></a>

### [DeviceAccess.AccessorType](#keyapis-device-v1-DeviceAccess-AccessorType)
 Тип субъекта доступа

| Номер | Тип | Название |
| ----- | --- | -------- |
| 0 | <a id="keyapis-device-v1-DeviceAccess-AccessorType-ACCESSOR_TYPE_UNKNOWN"></a> [ACCESSOR_TYPE_UNKNOWN](#keyapis-device-v1-DeviceAccess-AccessorType-ACCESSOR_TYPE_UNKNOWN) | Значение не указно |
| 1 | <a id="keyapis-device-v1-DeviceAccess-AccessorType-GROUP"></a> [GROUP](#keyapis-device-v1-DeviceAccess-AccessorType-GROUP) | ГРуппа |


 <!-- 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 |

