google-cloud-iot-v1 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70a8c6822aef0f83a6a68bee245c9ef9815b1974f1a9447afdd529a18ebc0023
|
4
|
+
data.tar.gz: df70abc4c2f6a2e84f1f46fc8a40c8494ed1101b9fec66a6d4fd49be4205de8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63a55657c6dcb6cb902ddf19106e2fc46aa34d705a84086888d4c27da7a7c7b03bd308929077b9039c664433195e081ae7a245d0d698813739c5a746649f5ef0
|
7
|
+
data.tar.gz: 865ed356aa499d4e0a5d59002e7fa72880aea271f01cf5f0e464258d36e77dfa5147f4fce2ce0dab5cdd96e3f7b891925db3a1c70caa2847dbf04faa4cf75737
|
@@ -206,7 +206,8 @@ module Google
|
|
206
206
|
credentials: credentials,
|
207
207
|
endpoint: @config.endpoint,
|
208
208
|
channel_args: @config.channel_args,
|
209
|
-
interceptors: @config.interceptors
|
209
|
+
interceptors: @config.interceptors,
|
210
|
+
channel_pool_config: @config.channel_pool
|
210
211
|
)
|
211
212
|
end
|
212
213
|
|
@@ -2117,6 +2118,14 @@ module Google
|
|
2117
2118
|
end
|
2118
2119
|
end
|
2119
2120
|
|
2121
|
+
##
|
2122
|
+
# Configuration for the channel pool
|
2123
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
2124
|
+
#
|
2125
|
+
def channel_pool
|
2126
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
2127
|
+
end
|
2128
|
+
|
2120
2129
|
##
|
2121
2130
|
# Configuration RPC class for the DeviceManager API.
|
2122
2131
|
#
|
@@ -235,6 +235,22 @@ module Google
|
|
235
235
|
# @return [::Google::Cloud::Iot::V1::DeviceRegistry]
|
236
236
|
#
|
237
237
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
238
|
+
#
|
239
|
+
# @example Basic example
|
240
|
+
# require "google/cloud/iot/v1"
|
241
|
+
#
|
242
|
+
# # Create a client object. The client can be reused for multiple calls.
|
243
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
244
|
+
#
|
245
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
246
|
+
# request = Google::Cloud::Iot::V1::CreateDeviceRegistryRequest.new
|
247
|
+
#
|
248
|
+
# # Call the create_device_registry method.
|
249
|
+
# result = client.create_device_registry request
|
250
|
+
#
|
251
|
+
# # The returned object is of type Google::Cloud::Iot::V1::DeviceRegistry.
|
252
|
+
# p result
|
253
|
+
#
|
238
254
|
def create_device_registry request, options = nil
|
239
255
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
240
256
|
|
@@ -298,6 +314,22 @@ module Google
|
|
298
314
|
# @return [::Google::Cloud::Iot::V1::DeviceRegistry]
|
299
315
|
#
|
300
316
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
317
|
+
#
|
318
|
+
# @example Basic example
|
319
|
+
# require "google/cloud/iot/v1"
|
320
|
+
#
|
321
|
+
# # Create a client object. The client can be reused for multiple calls.
|
322
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
323
|
+
#
|
324
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
325
|
+
# request = Google::Cloud::Iot::V1::GetDeviceRegistryRequest.new
|
326
|
+
#
|
327
|
+
# # Call the get_device_registry method.
|
328
|
+
# result = client.get_device_registry request
|
329
|
+
#
|
330
|
+
# # The returned object is of type Google::Cloud::Iot::V1::DeviceRegistry.
|
331
|
+
# p result
|
332
|
+
#
|
301
333
|
def get_device_registry request, options = nil
|
302
334
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
303
335
|
|
@@ -368,6 +400,22 @@ module Google
|
|
368
400
|
# @return [::Google::Cloud::Iot::V1::DeviceRegistry]
|
369
401
|
#
|
370
402
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
403
|
+
#
|
404
|
+
# @example Basic example
|
405
|
+
# require "google/cloud/iot/v1"
|
406
|
+
#
|
407
|
+
# # Create a client object. The client can be reused for multiple calls.
|
408
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
409
|
+
#
|
410
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
411
|
+
# request = Google::Cloud::Iot::V1::UpdateDeviceRegistryRequest.new
|
412
|
+
#
|
413
|
+
# # Call the update_device_registry method.
|
414
|
+
# result = client.update_device_registry request
|
415
|
+
#
|
416
|
+
# # The returned object is of type Google::Cloud::Iot::V1::DeviceRegistry.
|
417
|
+
# p result
|
418
|
+
#
|
371
419
|
def update_device_registry request, options = nil
|
372
420
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
373
421
|
|
@@ -431,6 +479,22 @@ module Google
|
|
431
479
|
# @return [::Google::Protobuf::Empty]
|
432
480
|
#
|
433
481
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
482
|
+
#
|
483
|
+
# @example Basic example
|
484
|
+
# require "google/cloud/iot/v1"
|
485
|
+
#
|
486
|
+
# # Create a client object. The client can be reused for multiple calls.
|
487
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
488
|
+
#
|
489
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
490
|
+
# request = Google::Cloud::Iot::V1::DeleteDeviceRegistryRequest.new
|
491
|
+
#
|
492
|
+
# # Call the delete_device_registry method.
|
493
|
+
# result = client.delete_device_registry request
|
494
|
+
#
|
495
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
496
|
+
# p result
|
497
|
+
#
|
434
498
|
def delete_device_registry request, options = nil
|
435
499
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
436
500
|
|
@@ -503,6 +567,26 @@ module Google
|
|
503
567
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Iot::V1::DeviceRegistry>]
|
504
568
|
#
|
505
569
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
570
|
+
#
|
571
|
+
# @example Basic example
|
572
|
+
# require "google/cloud/iot/v1"
|
573
|
+
#
|
574
|
+
# # Create a client object. The client can be reused for multiple calls.
|
575
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
576
|
+
#
|
577
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
578
|
+
# request = Google::Cloud::Iot::V1::ListDeviceRegistriesRequest.new
|
579
|
+
#
|
580
|
+
# # Call the list_device_registries method.
|
581
|
+
# result = client.list_device_registries request
|
582
|
+
#
|
583
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
584
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
585
|
+
# result.each do |item|
|
586
|
+
# # Each element is of type ::Google::Cloud::Iot::V1::DeviceRegistry.
|
587
|
+
# p item
|
588
|
+
# end
|
589
|
+
#
|
506
590
|
def list_device_registries request, options = nil
|
507
591
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
508
592
|
|
@@ -572,6 +656,22 @@ module Google
|
|
572
656
|
# @return [::Google::Cloud::Iot::V1::Device]
|
573
657
|
#
|
574
658
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
659
|
+
#
|
660
|
+
# @example Basic example
|
661
|
+
# require "google/cloud/iot/v1"
|
662
|
+
#
|
663
|
+
# # Create a client object. The client can be reused for multiple calls.
|
664
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
665
|
+
#
|
666
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
667
|
+
# request = Google::Cloud::Iot::V1::CreateDeviceRequest.new
|
668
|
+
#
|
669
|
+
# # Call the create_device method.
|
670
|
+
# result = client.create_device request
|
671
|
+
#
|
672
|
+
# # The returned object is of type Google::Cloud::Iot::V1::Device.
|
673
|
+
# p result
|
674
|
+
#
|
575
675
|
def create_device request, options = nil
|
576
676
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
577
677
|
|
@@ -640,6 +740,22 @@ module Google
|
|
640
740
|
# @return [::Google::Cloud::Iot::V1::Device]
|
641
741
|
#
|
642
742
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
743
|
+
#
|
744
|
+
# @example Basic example
|
745
|
+
# require "google/cloud/iot/v1"
|
746
|
+
#
|
747
|
+
# # Create a client object. The client can be reused for multiple calls.
|
748
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
749
|
+
#
|
750
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
751
|
+
# request = Google::Cloud::Iot::V1::GetDeviceRequest.new
|
752
|
+
#
|
753
|
+
# # Call the get_device method.
|
754
|
+
# result = client.get_device request
|
755
|
+
#
|
756
|
+
# # The returned object is of type Google::Cloud::Iot::V1::Device.
|
757
|
+
# p result
|
758
|
+
#
|
643
759
|
def get_device request, options = nil
|
644
760
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
645
761
|
|
@@ -710,6 +826,22 @@ module Google
|
|
710
826
|
# @return [::Google::Cloud::Iot::V1::Device]
|
711
827
|
#
|
712
828
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
829
|
+
#
|
830
|
+
# @example Basic example
|
831
|
+
# require "google/cloud/iot/v1"
|
832
|
+
#
|
833
|
+
# # Create a client object. The client can be reused for multiple calls.
|
834
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
835
|
+
#
|
836
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
837
|
+
# request = Google::Cloud::Iot::V1::UpdateDeviceRequest.new
|
838
|
+
#
|
839
|
+
# # Call the update_device method.
|
840
|
+
# result = client.update_device request
|
841
|
+
#
|
842
|
+
# # The returned object is of type Google::Cloud::Iot::V1::Device.
|
843
|
+
# p result
|
844
|
+
#
|
713
845
|
def update_device request, options = nil
|
714
846
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
715
847
|
|
@@ -774,6 +906,22 @@ module Google
|
|
774
906
|
# @return [::Google::Protobuf::Empty]
|
775
907
|
#
|
776
908
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
909
|
+
#
|
910
|
+
# @example Basic example
|
911
|
+
# require "google/cloud/iot/v1"
|
912
|
+
#
|
913
|
+
# # Create a client object. The client can be reused for multiple calls.
|
914
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
915
|
+
#
|
916
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
917
|
+
# request = Google::Cloud::Iot::V1::DeleteDeviceRequest.new
|
918
|
+
#
|
919
|
+
# # Call the delete_device method.
|
920
|
+
# result = client.delete_device request
|
921
|
+
#
|
922
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
923
|
+
# p result
|
924
|
+
#
|
777
925
|
def delete_device request, options = nil
|
778
926
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
779
927
|
|
@@ -859,6 +1007,26 @@ module Google
|
|
859
1007
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Iot::V1::Device>]
|
860
1008
|
#
|
861
1009
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1010
|
+
#
|
1011
|
+
# @example Basic example
|
1012
|
+
# require "google/cloud/iot/v1"
|
1013
|
+
#
|
1014
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1015
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
1016
|
+
#
|
1017
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1018
|
+
# request = Google::Cloud::Iot::V1::ListDevicesRequest.new
|
1019
|
+
#
|
1020
|
+
# # Call the list_devices method.
|
1021
|
+
# result = client.list_devices request
|
1022
|
+
#
|
1023
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1024
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1025
|
+
# result.each do |item|
|
1026
|
+
# # Each element is of type ::Google::Cloud::Iot::V1::Device.
|
1027
|
+
# p item
|
1028
|
+
# end
|
1029
|
+
#
|
862
1030
|
def list_devices request, options = nil
|
863
1031
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
864
1032
|
|
@@ -934,6 +1102,22 @@ module Google
|
|
934
1102
|
# @return [::Google::Cloud::Iot::V1::DeviceConfig]
|
935
1103
|
#
|
936
1104
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1105
|
+
#
|
1106
|
+
# @example Basic example
|
1107
|
+
# require "google/cloud/iot/v1"
|
1108
|
+
#
|
1109
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1110
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
1111
|
+
#
|
1112
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1113
|
+
# request = Google::Cloud::Iot::V1::ModifyCloudToDeviceConfigRequest.new
|
1114
|
+
#
|
1115
|
+
# # Call the modify_cloud_to_device_config method.
|
1116
|
+
# result = client.modify_cloud_to_device_config request
|
1117
|
+
#
|
1118
|
+
# # The returned object is of type Google::Cloud::Iot::V1::DeviceConfig.
|
1119
|
+
# p result
|
1120
|
+
#
|
937
1121
|
def modify_cloud_to_device_config request, options = nil
|
938
1122
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
939
1123
|
|
@@ -1003,6 +1187,22 @@ module Google
|
|
1003
1187
|
# @return [::Google::Cloud::Iot::V1::ListDeviceConfigVersionsResponse]
|
1004
1188
|
#
|
1005
1189
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1190
|
+
#
|
1191
|
+
# @example Basic example
|
1192
|
+
# require "google/cloud/iot/v1"
|
1193
|
+
#
|
1194
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1195
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
1196
|
+
#
|
1197
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1198
|
+
# request = Google::Cloud::Iot::V1::ListDeviceConfigVersionsRequest.new
|
1199
|
+
#
|
1200
|
+
# # Call the list_device_config_versions method.
|
1201
|
+
# result = client.list_device_config_versions request
|
1202
|
+
#
|
1203
|
+
# # The returned object is of type Google::Cloud::Iot::V1::ListDeviceConfigVersionsResponse.
|
1204
|
+
# p result
|
1205
|
+
#
|
1006
1206
|
def list_device_config_versions request, options = nil
|
1007
1207
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1008
1208
|
|
@@ -1072,6 +1272,22 @@ module Google
|
|
1072
1272
|
# @return [::Google::Cloud::Iot::V1::ListDeviceStatesResponse]
|
1073
1273
|
#
|
1074
1274
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1275
|
+
#
|
1276
|
+
# @example Basic example
|
1277
|
+
# require "google/cloud/iot/v1"
|
1278
|
+
#
|
1279
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1280
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
1281
|
+
#
|
1282
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1283
|
+
# request = Google::Cloud::Iot::V1::ListDeviceStatesRequest.new
|
1284
|
+
#
|
1285
|
+
# # Call the list_device_states method.
|
1286
|
+
# result = client.list_device_states request
|
1287
|
+
#
|
1288
|
+
# # The returned object is of type Google::Cloud::Iot::V1::ListDeviceStatesResponse.
|
1289
|
+
# p result
|
1290
|
+
#
|
1075
1291
|
def list_device_states request, options = nil
|
1076
1292
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1077
1293
|
|
@@ -1147,6 +1363,22 @@ module Google
|
|
1147
1363
|
# @return [::Google::Iam::V1::Policy]
|
1148
1364
|
#
|
1149
1365
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1366
|
+
#
|
1367
|
+
# @example Basic example
|
1368
|
+
# require "google/cloud/iot/v1"
|
1369
|
+
#
|
1370
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1371
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
1372
|
+
#
|
1373
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1374
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
1375
|
+
#
|
1376
|
+
# # Call the set_iam_policy method.
|
1377
|
+
# result = client.set_iam_policy request
|
1378
|
+
#
|
1379
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1380
|
+
# p result
|
1381
|
+
#
|
1150
1382
|
def set_iam_policy request, options = nil
|
1151
1383
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1152
1384
|
|
@@ -1215,6 +1447,22 @@ module Google
|
|
1215
1447
|
# @return [::Google::Iam::V1::Policy]
|
1216
1448
|
#
|
1217
1449
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1450
|
+
#
|
1451
|
+
# @example Basic example
|
1452
|
+
# require "google/cloud/iot/v1"
|
1453
|
+
#
|
1454
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1455
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
1456
|
+
#
|
1457
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1458
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
1459
|
+
#
|
1460
|
+
# # Call the get_iam_policy method.
|
1461
|
+
# result = client.get_iam_policy request
|
1462
|
+
#
|
1463
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1464
|
+
# p result
|
1465
|
+
#
|
1218
1466
|
def get_iam_policy request, options = nil
|
1219
1467
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1220
1468
|
|
@@ -1285,6 +1533,22 @@ module Google
|
|
1285
1533
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
1286
1534
|
#
|
1287
1535
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1536
|
+
#
|
1537
|
+
# @example Basic example
|
1538
|
+
# require "google/cloud/iot/v1"
|
1539
|
+
#
|
1540
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1541
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
1542
|
+
#
|
1543
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1544
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
1545
|
+
#
|
1546
|
+
# # Call the test_iam_permissions method.
|
1547
|
+
# result = client.test_iam_permissions request
|
1548
|
+
#
|
1549
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
1550
|
+
# p result
|
1551
|
+
#
|
1288
1552
|
def test_iam_permissions request, options = nil
|
1289
1553
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1290
1554
|
|
@@ -1369,6 +1633,22 @@ module Google
|
|
1369
1633
|
# @return [::Google::Cloud::Iot::V1::SendCommandToDeviceResponse]
|
1370
1634
|
#
|
1371
1635
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1636
|
+
#
|
1637
|
+
# @example Basic example
|
1638
|
+
# require "google/cloud/iot/v1"
|
1639
|
+
#
|
1640
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1641
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
1642
|
+
#
|
1643
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1644
|
+
# request = Google::Cloud::Iot::V1::SendCommandToDeviceRequest.new
|
1645
|
+
#
|
1646
|
+
# # Call the send_command_to_device method.
|
1647
|
+
# result = client.send_command_to_device request
|
1648
|
+
#
|
1649
|
+
# # The returned object is of type Google::Cloud::Iot::V1::SendCommandToDeviceResponse.
|
1650
|
+
# p result
|
1651
|
+
#
|
1372
1652
|
def send_command_to_device request, options = nil
|
1373
1653
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1374
1654
|
|
@@ -1439,6 +1719,22 @@ module Google
|
|
1439
1719
|
# @return [::Google::Cloud::Iot::V1::BindDeviceToGatewayResponse]
|
1440
1720
|
#
|
1441
1721
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1722
|
+
#
|
1723
|
+
# @example Basic example
|
1724
|
+
# require "google/cloud/iot/v1"
|
1725
|
+
#
|
1726
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1727
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
1728
|
+
#
|
1729
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1730
|
+
# request = Google::Cloud::Iot::V1::BindDeviceToGatewayRequest.new
|
1731
|
+
#
|
1732
|
+
# # Call the bind_device_to_gateway method.
|
1733
|
+
# result = client.bind_device_to_gateway request
|
1734
|
+
#
|
1735
|
+
# # The returned object is of type Google::Cloud::Iot::V1::BindDeviceToGatewayResponse.
|
1736
|
+
# p result
|
1737
|
+
#
|
1442
1738
|
def bind_device_to_gateway request, options = nil
|
1443
1739
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1444
1740
|
|
@@ -1509,6 +1805,22 @@ module Google
|
|
1509
1805
|
# @return [::Google::Cloud::Iot::V1::UnbindDeviceFromGatewayResponse]
|
1510
1806
|
#
|
1511
1807
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1808
|
+
#
|
1809
|
+
# @example Basic example
|
1810
|
+
# require "google/cloud/iot/v1"
|
1811
|
+
#
|
1812
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1813
|
+
# client = Google::Cloud::Iot::V1::DeviceManager::Rest::Client.new
|
1814
|
+
#
|
1815
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1816
|
+
# request = Google::Cloud::Iot::V1::UnbindDeviceFromGatewayRequest.new
|
1817
|
+
#
|
1818
|
+
# # Call the unbind_device_from_gateway method.
|
1819
|
+
# result = client.unbind_device_from_gateway request
|
1820
|
+
#
|
1821
|
+
# # The returned object is of type Google::Cloud::Iot::V1::UnbindDeviceFromGatewayResponse.
|
1822
|
+
# p result
|
1823
|
+
#
|
1512
1824
|
def unbind_device_from_gateway request, options = nil
|
1513
1825
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1514
1826
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-iot-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
233
|
- !ruby/object:Gem::Version
|
234
234
|
version: '0'
|
235
235
|
requirements: []
|
236
|
-
rubygems_version: 3.4.
|
236
|
+
rubygems_version: 3.4.19
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: Registers and manages IoT (Internet of Things) devices that connect to the
|