github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/build/crd-samples/devices/led-light-device-model.yaml (about)

     1  
     2  apiVersion: devices.kubeedge.io/v1alpha1
     3  kind: DeviceModel
     4  metadata:
     5   name: led-light
     6   namespace: default
     7  spec:
     8   properties:
     9    - name: power-status
    10      description: Indicates whether the led light is ON/OFF
    11      type:
    12        string:
    13          accessMode: ReadWrite
    14          defaultValue: 'OFF'
    15    - name: gpio-pin-number
    16      description: Indicates the GPIO pin to which LED is connected 
    17      type:
    18        int:
    19          accessMode: ReadOnly
    20          defaultValue: 18   # Indicates the GPIO pin number to which the LED is connected, pls give the appropriate number according to the connection made