google-apis-cloudiot_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
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
+
15
+ module Google
16
+ module Apis
17
+ module CloudiotV1
18
+ # Version of the google-apis-cloudiot_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201110"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,553 @@
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
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudiotV1
24
+
25
+ class BindDeviceToGatewayRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class BindDeviceToGatewayResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Binding
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Device
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class DeviceConfig
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class DeviceCredential
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class DeviceRegistry
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DeviceState
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Empty
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class EventNotificationConfig
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Expr
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GatewayConfig
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GetIamPolicyRequest
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GetPolicyOptions
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class HttpConfig
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListDeviceConfigVersionsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListDeviceRegistriesResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ListDeviceStatesResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListDevicesResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ModifyCloudToDeviceConfigRequest
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class MqttConfig
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Policy
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class PublicKeyCertificate
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class PublicKeyCredential
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class RegistryCredential
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class SendCommandToDeviceRequest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class SendCommandToDeviceResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class SetIamPolicyRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class StateNotificationConfig
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class Status
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class TestIamPermissionsRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class TestIamPermissionsResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class UnbindDeviceFromGatewayRequest
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class UnbindDeviceFromGatewayResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class X509CertificateDetails
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class BindDeviceToGatewayRequest
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ property :device_id, as: 'deviceId'
239
+ property :gateway_id, as: 'gatewayId'
240
+ end
241
+ end
242
+
243
+ class BindDeviceToGatewayResponse
244
+ # @private
245
+ class Representation < Google::Apis::Core::JsonRepresentation
246
+ end
247
+ end
248
+
249
+ class Binding
250
+ # @private
251
+ class Representation < Google::Apis::Core::JsonRepresentation
252
+ property :condition, as: 'condition', class: Google::Apis::CloudiotV1::Expr, decorator: Google::Apis::CloudiotV1::Expr::Representation
253
+
254
+ collection :members, as: 'members'
255
+ property :role, as: 'role'
256
+ end
257
+ end
258
+
259
+ class Device
260
+ # @private
261
+ class Representation < Google::Apis::Core::JsonRepresentation
262
+ property :blocked, as: 'blocked'
263
+ property :config, as: 'config', class: Google::Apis::CloudiotV1::DeviceConfig, decorator: Google::Apis::CloudiotV1::DeviceConfig::Representation
264
+
265
+ collection :credentials, as: 'credentials', class: Google::Apis::CloudiotV1::DeviceCredential, decorator: Google::Apis::CloudiotV1::DeviceCredential::Representation
266
+
267
+ property :gateway_config, as: 'gatewayConfig', class: Google::Apis::CloudiotV1::GatewayConfig, decorator: Google::Apis::CloudiotV1::GatewayConfig::Representation
268
+
269
+ property :id, as: 'id'
270
+ property :last_config_ack_time, as: 'lastConfigAckTime'
271
+ property :last_config_send_time, as: 'lastConfigSendTime'
272
+ property :last_error_status, as: 'lastErrorStatus', class: Google::Apis::CloudiotV1::Status, decorator: Google::Apis::CloudiotV1::Status::Representation
273
+
274
+ property :last_error_time, as: 'lastErrorTime'
275
+ property :last_event_time, as: 'lastEventTime'
276
+ property :last_heartbeat_time, as: 'lastHeartbeatTime'
277
+ property :last_state_time, as: 'lastStateTime'
278
+ property :log_level, as: 'logLevel'
279
+ hash :metadata, as: 'metadata'
280
+ property :name, as: 'name'
281
+ property :num_id, :numeric_string => true, as: 'numId'
282
+ property :state, as: 'state', class: Google::Apis::CloudiotV1::DeviceState, decorator: Google::Apis::CloudiotV1::DeviceState::Representation
283
+
284
+ end
285
+ end
286
+
287
+ class DeviceConfig
288
+ # @private
289
+ class Representation < Google::Apis::Core::JsonRepresentation
290
+ property :binary_data, :base64 => true, as: 'binaryData'
291
+ property :cloud_update_time, as: 'cloudUpdateTime'
292
+ property :device_ack_time, as: 'deviceAckTime'
293
+ property :version, :numeric_string => true, as: 'version'
294
+ end
295
+ end
296
+
297
+ class DeviceCredential
298
+ # @private
299
+ class Representation < Google::Apis::Core::JsonRepresentation
300
+ property :expiration_time, as: 'expirationTime'
301
+ property :public_key, as: 'publicKey', class: Google::Apis::CloudiotV1::PublicKeyCredential, decorator: Google::Apis::CloudiotV1::PublicKeyCredential::Representation
302
+
303
+ end
304
+ end
305
+
306
+ class DeviceRegistry
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ collection :credentials, as: 'credentials', class: Google::Apis::CloudiotV1::RegistryCredential, decorator: Google::Apis::CloudiotV1::RegistryCredential::Representation
310
+
311
+ collection :event_notification_configs, as: 'eventNotificationConfigs', class: Google::Apis::CloudiotV1::EventNotificationConfig, decorator: Google::Apis::CloudiotV1::EventNotificationConfig::Representation
312
+
313
+ property :http_config, as: 'httpConfig', class: Google::Apis::CloudiotV1::HttpConfig, decorator: Google::Apis::CloudiotV1::HttpConfig::Representation
314
+
315
+ property :id, as: 'id'
316
+ property :log_level, as: 'logLevel'
317
+ property :mqtt_config, as: 'mqttConfig', class: Google::Apis::CloudiotV1::MqttConfig, decorator: Google::Apis::CloudiotV1::MqttConfig::Representation
318
+
319
+ property :name, as: 'name'
320
+ property :state_notification_config, as: 'stateNotificationConfig', class: Google::Apis::CloudiotV1::StateNotificationConfig, decorator: Google::Apis::CloudiotV1::StateNotificationConfig::Representation
321
+
322
+ end
323
+ end
324
+
325
+ class DeviceState
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ property :binary_data, :base64 => true, as: 'binaryData'
329
+ property :update_time, as: 'updateTime'
330
+ end
331
+ end
332
+
333
+ class Empty
334
+ # @private
335
+ class Representation < Google::Apis::Core::JsonRepresentation
336
+ end
337
+ end
338
+
339
+ class EventNotificationConfig
340
+ # @private
341
+ class Representation < Google::Apis::Core::JsonRepresentation
342
+ property :pubsub_topic_name, as: 'pubsubTopicName'
343
+ property :subfolder_matches, as: 'subfolderMatches'
344
+ end
345
+ end
346
+
347
+ class Expr
348
+ # @private
349
+ class Representation < Google::Apis::Core::JsonRepresentation
350
+ property :description, as: 'description'
351
+ property :expression, as: 'expression'
352
+ property :location, as: 'location'
353
+ property :title, as: 'title'
354
+ end
355
+ end
356
+
357
+ class GatewayConfig
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ property :gateway_auth_method, as: 'gatewayAuthMethod'
361
+ property :gateway_type, as: 'gatewayType'
362
+ property :last_accessed_gateway_id, as: 'lastAccessedGatewayId'
363
+ property :last_accessed_gateway_time, as: 'lastAccessedGatewayTime'
364
+ end
365
+ end
366
+
367
+ class GetIamPolicyRequest
368
+ # @private
369
+ class Representation < Google::Apis::Core::JsonRepresentation
370
+ property :options, as: 'options', class: Google::Apis::CloudiotV1::GetPolicyOptions, decorator: Google::Apis::CloudiotV1::GetPolicyOptions::Representation
371
+
372
+ end
373
+ end
374
+
375
+ class GetPolicyOptions
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ property :requested_policy_version, as: 'requestedPolicyVersion'
379
+ end
380
+ end
381
+
382
+ class HttpConfig
383
+ # @private
384
+ class Representation < Google::Apis::Core::JsonRepresentation
385
+ property :http_enabled_state, as: 'httpEnabledState'
386
+ end
387
+ end
388
+
389
+ class ListDeviceConfigVersionsResponse
390
+ # @private
391
+ class Representation < Google::Apis::Core::JsonRepresentation
392
+ collection :device_configs, as: 'deviceConfigs', class: Google::Apis::CloudiotV1::DeviceConfig, decorator: Google::Apis::CloudiotV1::DeviceConfig::Representation
393
+
394
+ end
395
+ end
396
+
397
+ class ListDeviceRegistriesResponse
398
+ # @private
399
+ class Representation < Google::Apis::Core::JsonRepresentation
400
+ collection :device_registries, as: 'deviceRegistries', class: Google::Apis::CloudiotV1::DeviceRegistry, decorator: Google::Apis::CloudiotV1::DeviceRegistry::Representation
401
+
402
+ property :next_page_token, as: 'nextPageToken'
403
+ end
404
+ end
405
+
406
+ class ListDeviceStatesResponse
407
+ # @private
408
+ class Representation < Google::Apis::Core::JsonRepresentation
409
+ collection :device_states, as: 'deviceStates', class: Google::Apis::CloudiotV1::DeviceState, decorator: Google::Apis::CloudiotV1::DeviceState::Representation
410
+
411
+ end
412
+ end
413
+
414
+ class ListDevicesResponse
415
+ # @private
416
+ class Representation < Google::Apis::Core::JsonRepresentation
417
+ collection :devices, as: 'devices', class: Google::Apis::CloudiotV1::Device, decorator: Google::Apis::CloudiotV1::Device::Representation
418
+
419
+ property :next_page_token, as: 'nextPageToken'
420
+ end
421
+ end
422
+
423
+ class ModifyCloudToDeviceConfigRequest
424
+ # @private
425
+ class Representation < Google::Apis::Core::JsonRepresentation
426
+ property :binary_data, :base64 => true, as: 'binaryData'
427
+ property :version_to_update, :numeric_string => true, as: 'versionToUpdate'
428
+ end
429
+ end
430
+
431
+ class MqttConfig
432
+ # @private
433
+ class Representation < Google::Apis::Core::JsonRepresentation
434
+ property :mqtt_enabled_state, as: 'mqttEnabledState'
435
+ end
436
+ end
437
+
438
+ class Policy
439
+ # @private
440
+ class Representation < Google::Apis::Core::JsonRepresentation
441
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudiotV1::Binding, decorator: Google::Apis::CloudiotV1::Binding::Representation
442
+
443
+ property :etag, :base64 => true, as: 'etag'
444
+ property :version, as: 'version'
445
+ end
446
+ end
447
+
448
+ class PublicKeyCertificate
449
+ # @private
450
+ class Representation < Google::Apis::Core::JsonRepresentation
451
+ property :certificate, as: 'certificate'
452
+ property :format, as: 'format'
453
+ property :x509_details, as: 'x509Details', class: Google::Apis::CloudiotV1::X509CertificateDetails, decorator: Google::Apis::CloudiotV1::X509CertificateDetails::Representation
454
+
455
+ end
456
+ end
457
+
458
+ class PublicKeyCredential
459
+ # @private
460
+ class Representation < Google::Apis::Core::JsonRepresentation
461
+ property :format, as: 'format'
462
+ property :key, as: 'key'
463
+ end
464
+ end
465
+
466
+ class RegistryCredential
467
+ # @private
468
+ class Representation < Google::Apis::Core::JsonRepresentation
469
+ property :public_key_certificate, as: 'publicKeyCertificate', class: Google::Apis::CloudiotV1::PublicKeyCertificate, decorator: Google::Apis::CloudiotV1::PublicKeyCertificate::Representation
470
+
471
+ end
472
+ end
473
+
474
+ class SendCommandToDeviceRequest
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :binary_data, :base64 => true, as: 'binaryData'
478
+ property :subfolder, as: 'subfolder'
479
+ end
480
+ end
481
+
482
+ class SendCommandToDeviceResponse
483
+ # @private
484
+ class Representation < Google::Apis::Core::JsonRepresentation
485
+ end
486
+ end
487
+
488
+ class SetIamPolicyRequest
489
+ # @private
490
+ class Representation < Google::Apis::Core::JsonRepresentation
491
+ property :policy, as: 'policy', class: Google::Apis::CloudiotV1::Policy, decorator: Google::Apis::CloudiotV1::Policy::Representation
492
+
493
+ end
494
+ end
495
+
496
+ class StateNotificationConfig
497
+ # @private
498
+ class Representation < Google::Apis::Core::JsonRepresentation
499
+ property :pubsub_topic_name, as: 'pubsubTopicName'
500
+ end
501
+ end
502
+
503
+ class Status
504
+ # @private
505
+ class Representation < Google::Apis::Core::JsonRepresentation
506
+ property :code, as: 'code'
507
+ collection :details, as: 'details'
508
+ property :message, as: 'message'
509
+ end
510
+ end
511
+
512
+ class TestIamPermissionsRequest
513
+ # @private
514
+ class Representation < Google::Apis::Core::JsonRepresentation
515
+ collection :permissions, as: 'permissions'
516
+ end
517
+ end
518
+
519
+ class TestIamPermissionsResponse
520
+ # @private
521
+ class Representation < Google::Apis::Core::JsonRepresentation
522
+ collection :permissions, as: 'permissions'
523
+ end
524
+ end
525
+
526
+ class UnbindDeviceFromGatewayRequest
527
+ # @private
528
+ class Representation < Google::Apis::Core::JsonRepresentation
529
+ property :device_id, as: 'deviceId'
530
+ property :gateway_id, as: 'gatewayId'
531
+ end
532
+ end
533
+
534
+ class UnbindDeviceFromGatewayResponse
535
+ # @private
536
+ class Representation < Google::Apis::Core::JsonRepresentation
537
+ end
538
+ end
539
+
540
+ class X509CertificateDetails
541
+ # @private
542
+ class Representation < Google::Apis::Core::JsonRepresentation
543
+ property :expiry_time, as: 'expiryTime'
544
+ property :issuer, as: 'issuer'
545
+ property :public_key_type, as: 'publicKeyType'
546
+ property :signature_algorithm, as: 'signatureAlgorithm'
547
+ property :start_time, as: 'startTime'
548
+ property :subject, as: 'subject'
549
+ end
550
+ end
551
+ end
552
+ end
553
+ end