github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/build/crds/devices/devices_v1alpha1_device.yaml (about) 1 apiVersion: apiextensions.k8s.io/v1beta1 2 kind: CustomResourceDefinition 3 metadata: 4 labels: 5 controller-tools.k8s.io: "1.0" 6 name: devices.devices.kubeedge.io 7 spec: 8 group: devices.kubeedge.io 9 names: 10 kind: Device 11 plural: devices 12 scope: Namespaced 13 validation: 14 openAPIV3Schema: 15 properties: 16 apiVersion: 17 description: 'APIVersion defines the versioned schema of this representation 18 of an object. Servers should convert recognized schemas to the latest 19 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' 20 type: string 21 kind: 22 description: 'Kind is a string value representing the REST resource this 23 object represents. Servers may infer this from the endpoint the client 24 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' 25 type: string 26 metadata: 27 type: object 28 spec: 29 properties: 30 deviceModelRef: 31 description: 'Required: DeviceModelRef is reference to the device model 32 used as a template to create the device instance.' 33 type: object 34 nodeSelector: 35 description: NodeSelector indicates the binding preferences between 36 devices and nodes. Refer to k8s.io/kubernetes/pkg/apis/core NodeSelector 37 for more details 38 type: object 39 protocol: 40 description: 'Required: The protocol configuration used to connect to 41 the device.' 42 properties: 43 bluetooth: 44 description: Protocol configuration for bluetooth 45 properties: 46 macAddress: 47 description: Unique identifier assigned to the device. 48 type: string 49 type: object 50 modbus: 51 description: Protocol configuration for modbus 52 properties: 53 rtu: 54 properties: 55 baudRate: 56 description: Required. BaudRate 115200|57600|38400|19200|9600|4800|2400|1800|1200|600|300|200|150|134|110|75|50 57 format: int64 58 type: integer 59 enum: 60 - 115200 61 - 57600 62 - 38400 63 - 19200 64 - 9600 65 - 4800 66 - 2400 67 - 1800 68 - 1200 69 - 600 70 - 300 71 - 200 72 - 150 73 - 134 74 - 110 75 - 75 76 - 50 77 dataBits: 78 description: Required. Valid values are 8, 7, 6, 5. 79 format: int64 80 type: integer 81 enum: 82 - 8 83 - 7 84 - 6 85 - 5 86 parity: 87 description: Required. Valid options are "none", "even", 88 "odd". Defaults to "none". 89 type: string 90 enum: 91 - none 92 - even 93 - odd 94 serialPort: 95 description: Required. 96 type: string 97 slaveID: 98 description: Required. 0-255 99 format: int64 100 type: integer 101 minimum: 0 102 maximum: 255 103 stopBits: 104 description: Required. Bit that stops 1|2 105 format: int64 106 type: integer 107 enum: 108 - 1 109 - 2 110 required: 111 - baudRate 112 - dataBits 113 - parity 114 - serialPort 115 - slaveID 116 - stopBits 117 type: object 118 tcp: 119 properties: 120 ip: 121 description: Required. 122 type: string 123 port: 124 description: Required. 125 format: int64 126 type: integer 127 slaveID: 128 description: Required. 129 type: string 130 required: 131 - ip 132 - port 133 - slaveID 134 type: object 135 type: object 136 opcua: 137 description: Protocol configuration for opc-ua 138 properties: 139 certificate: 140 description: Certificate for access opc server. 141 type: string 142 password: 143 description: Password for access opc server. 144 type: string 145 privateKey: 146 description: PrivateKey for access opc server. 147 type: string 148 securityMode: 149 description: Defaults to "none". 150 type: string 151 securityPolicy: 152 description: Defaults to "none". 153 type: string 154 timeout: 155 description: Timeout seconds for the opc server connection.??? 156 format: int64 157 type: integer 158 url: 159 description: 'Required: The URL for opc server endpoint.' 160 type: string 161 userName: 162 description: Username for access opc server. 163 type: string 164 required: 165 - url 166 type: object 167 type: object 168 required: 169 - deviceModelRef 170 type: object 171 status: 172 properties: 173 twins: 174 description: A list of device twins containing desired/reported desired/reported 175 values of twin properties. A passive device won't have twin properties 176 and this list could be empty. 177 items: 178 properties: 179 desired: 180 description: 'Required: the desired property value.' 181 properties: 182 metadata: 183 description: Additional metadata like timestamp when the value 184 was reported etc. 185 type: object 186 value: 187 description: 'Required: The value for this property.' 188 type: string 189 required: 190 - value 191 type: object 192 propertyName: 193 description: 'Required: The property name for which the desired/reported 194 values are specified. This property should be present in the 195 device model.' 196 type: string 197 reported: 198 description: 'Required: the reported property value.' 199 properties: 200 metadata: 201 description: Additional metadata like timestamp when the value 202 was reported etc. 203 type: object 204 value: 205 description: 'Required: The value for this property.' 206 type: string 207 required: 208 - value 209 type: object 210 required: 211 - propertyName 212 type: object 213 type: array 214 type: object 215 version: v1alpha1