...

Text file src/edge-infra.dev/pkg/sds/devices/k8s/apis/v1/testdata/deviceclass_valid.json

Documentation: edge-infra.dev/pkg/sds/devices/k8s/apis/v1/testdata

     1{
     2    "apiVersion": "device-system.edge.ncr.com/v1",
     3    "kind": "DeviceClass",
     4    "metadata": {
     5        "annotations": {
     6            "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"device-system.edge.ncr.com/v1\",\"kind\":\"DeviceClass\",\"metadata\":{\"annotations\":{},\"labels\":{\"platform.edge.ncr.com/workload\":\"platform\"},\"name\":\"mousekeyboard\"},\"spec\":{\"deviceSets\":[{\"attributes\":[{\"name\":\"idProduct\",\"value\":\"6800\"},{\"name\":\"idVendor\",\"value\":\"0000\"}],\"name\":\"mouse\",\"properties\":[{\"name\":\"SUBSYSTEM\",\"value\":\"usb\"}]},{\"attributes\":[{\"name\":\"idProduct\",\"value\":\"2113\"},{\"name\":\"idVendor\",\"value\":\"413c\"}],\"name\":\"keyboard\",\"properties\":[{\"name\":\"SUBSYSTEM\",\"value\":\"usb\"}]}]}}\n"
     7        },
     8        "creationTimestamp": "2024-10-15T11:08:34Z",
     9        "generation": 3,
    10        "labels": {
    11            "platform.edge.ncr.com/workload": "platform"
    12        },
    13        "managedFields": [
    14            {
    15                "apiVersion": "device-system.edge.ncr.com/v1",
    16                "fieldsType": "FieldsV1",
    17                "fieldsV1": {
    18                    "f:metadata": {
    19                        "f:annotations": {
    20                            ".": {},
    21                            "f:kubectl.kubernetes.io/last-applied-configuration": {}
    22                        },
    23                        "f:labels": {
    24                            ".": {},
    25                            "f:platform.edge.ncr.com/workload": {}
    26                        }
    27                    },
    28                    "f:spec": {
    29                        ".": {},
    30                        "f:deviceSets": {}
    31                    }
    32                },
    33                "manager": "kubectl-client-side-apply",
    34                "operation": "Update",
    35                "time": "2024-10-15T11:08:34Z"
    36            },
    37            {
    38                "apiVersion": "device-system.edge.ncr.com/v1",
    39                "fieldsType": "FieldsV1",
    40                "fieldsV1": {
    41                    "f:spec": {
    42                        "f:logging": {
    43                            ".": {},
    44                            "f:level": {}
    45                        }
    46                    }
    47                },
    48                "manager": "kubectl-edit",
    49                "operation": "Update",
    50                "time": "2024-10-22T14:38:03Z"
    51            }
    52        ],
    53        "name": "mousekeyboard",
    54        "resourceVersion": "38971180",
    55        "uid": "086994d2-1ba5-4ad9-957d-7329d175427a"
    56    },
    57    "spec": {
    58        "deviceSets": [
    59            {
    60                "attributes": [
    61                    {
    62                        "name": "idProduct",
    63                        "value": "6800"
    64                    },
    65                    {
    66                        "name": "idVendor",
    67                        "value": "0000"
    68                    }
    69                ],
    70                "name": "mouse",
    71                "properties": [
    72                    {
    73                        "name": "SUBSYSTEM",
    74                        "value": "usb"
    75                    }
    76                ]
    77            },
    78            {
    79                "attributes": [
    80                    {
    81                        "name": "idProduct",
    82                        "value": "2113"
    83                    },
    84                    {
    85                        "name": "idVendor",
    86                        "value": "413c"
    87                    }
    88                ],
    89                "name": "keyboard",
    90                "properties": [
    91                    {
    92                        "name": "SUBSYSTEM",
    93                        "value": "usb"
    94                    }
    95                ]
    96            }
    97        ],
    98        "logging": {
    99            "level": "info"
   100        }
   101    }
   102}

View as plain text