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