...
1apiVersion: apiextensions.k8s.io/v1
2kind: CustomResourceDefinition
3metadata:
4 annotations:
5 cnrm.cloud.google.com/version: 0.0.0-dev
6 creationTimestamp: null
7 labels:
8 cnrm.cloud.google.com/managed-by-kcc: "true"
9 cnrm.cloud.google.com/stability-level: alpha
10 cnrm.cloud.google.com/system: "true"
11 cnrm.cloud.google.com/tf2crd: "true"
12 name: cloudiotdevices.cloudiot.cnrm.cloud.google.com
13spec:
14 group: cloudiot.cnrm.cloud.google.com
15 names:
16 categories:
17 - gcp
18 kind: CloudIOTDevice
19 plural: cloudiotdevices
20 shortNames:
21 - gcpcloudiotdevice
22 - gcpcloudiotdevices
23 singular: cloudiotdevice
24 preserveUnknownFields: false
25 scope: Namespaced
26 versions:
27 - additionalPrinterColumns:
28 - jsonPath: .metadata.creationTimestamp
29 name: Age
30 type: date
31 - description: When 'True', the most recent reconcile of the resource succeeded
32 jsonPath: .status.conditions[?(@.type=='Ready')].status
33 name: Ready
34 type: string
35 - description: The reason for the value in 'Ready'
36 jsonPath: .status.conditions[?(@.type=='Ready')].reason
37 name: Status
38 type: string
39 - description: The last transition time for the value in 'Status'
40 jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime
41 name: Status Age
42 type: date
43 name: v1alpha1
44 schema:
45 openAPIV3Schema:
46 properties:
47 apiVersion:
48 description: 'apiVersion defines the versioned schema of this representation
49 of an object. Servers should convert recognized schemas to the latest
50 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
51 type: string
52 kind:
53 description: 'kind is a string value representing the REST resource this
54 object represents. Servers may infer this from the endpoint the client
55 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
56 type: string
57 metadata:
58 type: object
59 spec:
60 properties:
61 blocked:
62 description: If a device is blocked, connections or requests from
63 this device will fail.
64 type: boolean
65 credentials:
66 description: The credentials used to authenticate this device.
67 items:
68 properties:
69 expirationTime:
70 description: The time at which this credential becomes invalid.
71 type: string
72 publicKey:
73 description: A public key used to verify the signature of JSON
74 Web Tokens (JWTs).
75 properties:
76 format:
77 description: 'The format of the key. Possible values: ["RSA_PEM",
78 "RSA_X509_PEM", "ES256_PEM", "ES256_X509_PEM"].'
79 type: string
80 key:
81 description: The key data.
82 type: string
83 required:
84 - format
85 - key
86 type: object
87 required:
88 - publicKey
89 type: object
90 type: array
91 gatewayConfig:
92 description: Gateway-related configuration and state.
93 properties:
94 gatewayAuthMethod:
95 description: 'Indicates whether the device is a gateway. Possible
96 values: ["ASSOCIATION_ONLY", "DEVICE_AUTH_TOKEN_ONLY", "ASSOCIATION_AND_DEVICE_AUTH_TOKEN"].'
97 type: string
98 gatewayType:
99 description: 'Immutable. Indicates whether the device is a gateway.
100 Default value: "NON_GATEWAY" Possible values: ["GATEWAY", "NON_GATEWAY"].'
101 type: string
102 lastAccessedGatewayId:
103 description: The ID of the gateway the device accessed most recently.
104 type: string
105 lastAccessedGatewayTime:
106 description: The most recent time at which the device accessed
107 the gateway specified in last_accessed_gateway.
108 type: string
109 type: object
110 logLevel:
111 description: 'The logging verbosity for device activity. Possible
112 values: ["NONE", "ERROR", "INFO", "DEBUG"].'
113 type: string
114 metadata:
115 additionalProperties:
116 type: string
117 description: The metadata key-value pairs assigned to the device.
118 type: object
119 registry:
120 description: Immutable. The name of the device registry where this
121 device should be created.
122 type: string
123 resourceID:
124 description: Immutable. Optional. The name of the resource. Used for
125 creation and acquisition. When unset, the value of `metadata.name`
126 is used as the default.
127 type: string
128 required:
129 - registry
130 type: object
131 status:
132 properties:
133 conditions:
134 description: Conditions represent the latest available observation
135 of the resource's current state.
136 items:
137 properties:
138 lastTransitionTime:
139 description: Last time the condition transitioned from one status
140 to another.
141 type: string
142 message:
143 description: Human-readable message indicating details about
144 last transition.
145 type: string
146 reason:
147 description: Unique, one-word, CamelCase reason for the condition's
148 last transition.
149 type: string
150 status:
151 description: Status is the status of the condition. Can be True,
152 False, Unknown.
153 type: string
154 type:
155 description: Type is the type of the condition.
156 type: string
157 type: object
158 type: array
159 config:
160 description: The most recent device configuration, which is eventually
161 sent from Cloud IoT Core to the device.
162 items:
163 properties:
164 binaryData:
165 description: The device configuration data.
166 type: string
167 cloudUpdateTime:
168 description: The time at which this configuration version was
169 updated in Cloud IoT Core.
170 type: string
171 deviceAckTime:
172 description: |-
173 The time at which Cloud IoT Core received the acknowledgment from the device,
174 indicating that the device has received this configuration version.
175 type: string
176 version:
177 description: The version of this update.
178 type: string
179 type: object
180 type: array
181 lastConfigAckTime:
182 description: The last time a cloud-to-device config version acknowledgment
183 was received from the device.
184 type: string
185 lastConfigSendTime:
186 description: The last time a cloud-to-device config version was sent
187 to the device.
188 type: string
189 lastErrorStatus:
190 description: The error message of the most recent error, such as a
191 failure to publish to Cloud Pub/Sub.
192 items:
193 properties:
194 details:
195 description: A list of messages that carry the error details.
196 items:
197 type: object
198 x-kubernetes-preserve-unknown-fields: true
199 type: array
200 message:
201 description: A developer-facing error message, which should
202 be in English.
203 type: string
204 number:
205 description: The status code, which should be an enum value
206 of google.rpc.Code.
207 type: integer
208 type: object
209 type: array
210 lastErrorTime:
211 description: The time the most recent error occurred, such as a failure
212 to publish to Cloud Pub/Sub.
213 type: string
214 lastEventTime:
215 description: The last time a telemetry event was received.
216 type: string
217 lastHeartbeatTime:
218 description: The last time an MQTT PINGREQ was received.
219 type: string
220 lastStateTime:
221 description: The last time a state event was received.
222 type: string
223 numId:
224 description: |-
225 A server-defined unique numeric ID for the device.
226 This is a more compact way to identify devices, and it is globally unique.
227 type: string
228 observedGeneration:
229 description: ObservedGeneration is the generation of the resource
230 that was most recently observed by the Config Connector controller.
231 If this is equal to metadata.generation, then that means that the
232 current reported status reflects the most recent desired state of
233 the resource.
234 type: integer
235 state:
236 description: The state most recently received from the device.
237 items:
238 properties:
239 binaryData:
240 description: The device state data.
241 type: string
242 updateTime:
243 description: The time at which this state version was updated
244 in Cloud IoT Core.
245 type: string
246 type: object
247 type: array
248 type: object
249 required:
250 - spec
251 type: object
252 served: true
253 storage: true
254 subresources:
255 status: {}
256status:
257 acceptedNames:
258 kind: ""
259 plural: ""
260 conditions: []
261 storedVersions: []
View as plain text