apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: rooms.bench.digi.dev
spec:
  group: bench.digi.dev
  names:
    kind: Room
    listKind: RoomList
    plural: rooms
    singular: room
  scope: Namespaced
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        properties:
          apiVersion:
            type: string
          kind:
            type: string
          metadata:
            type: object
          spec:
            properties:
              control:
                properties:
                  brightness:
                    properties:
                      intent:
                        type: number
                      status:
                        type: number
                    type: object
                type: object
              mount:
                properties:
                  bench.digi.dev/v1/cams:
                    additionalProperties:
                      properties:
                        generation:
                          type: number
                        mode:
                          type: string
                        spec:
                          properties:
                            control:
                              properties:
                                angle:
                                  properties:
                                    intent:
                                      type: number
                                    status:
                                      type: number
                                  type: object
                                endpoint:
                                  properties:
                                    intent:
                                      type: string
                                    status:
                                      type: string
                                  type: object
                                sensitivity:
                                  properties:
                                    intent:
                                      type: number
                                    status:
                                      type: number
                                  type: object
                              type: object
                            obs:
                              properties:
                                reason:
                                  type: string
                              type: object
                          type: object
                        status:
                          type: string
                      type: object
                    type: object
                  bench.digi.dev/v1/lamps:
                    additionalProperties:
                      properties:
                        generation:
                          type: number
                        mode:
                          type: string
                        spec:
                          properties:
                            control:
                              properties:
                                brightness:
                                  properties:
                                    intent:
                                      type: number
                                    status:
                                      type: number
                                  type: object
                                power:
                                  properties:
                                    intent:
                                      type: string
                                    status:
                                      type: string
                                  type: object
                              type: object
                            meta:
                              properties:
                                backward_value:
                                  type: number
                                discover_retry:
                                  type: number
                                endpoint:
                                  type: string
                                forward_value:
                                  type: number
                                poll_interval:
                                  type: number
                              type: object
                            obs:
                              properties:
                                backward_ts:
                                  type: number
                                forward_ts:
                                  type: number
                              type: object
                          type: object
                        status:
                          type: string
                      type: object
                    type: object
                  bench.digi.dev/v1/scenes:
                    additionalProperties:
                      properties:
                        generation:
                          type: number
                        mode:
                          type: string
                        status:
                          type: string
                      type: object
                    type: object
                type: object
              obs:
                properties:
                  backward_ts:
                    type: number
                  forward_ts:
                    type: number
                  objects:
                    items:
                      additionalProperties:
                        properties:
                          h:
                            type: number
                          w:
                            type: number
                          x1:
                            type: number
                          x2:
                            type: number
                        type: object
                      type: object
                    type: array
                type: object
            type: object
        type: object
    served: true
    storage: true
