google-cloud-iot-v1 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/iot/v1/device_manager/client.rb +86 -55
- data/lib/google/cloud/iot/v1/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86e25f26ac1b940ba6719a859d4b7f81d3b560eb6ffb1c140c44057156a0e274
|
4
|
+
data.tar.gz: 49fb3d71b4b6cbfdab639ec2e2b0128fd0e863879dbdadccbf50032571378245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acec59480ef98856f968cb39550b8d968ba425c1da61cdd144ebd9d7d4be63e05eb3d37adcb4f752f4e50e46c3fff15a41eecc0a8c1c68560916afcbf090620c
|
7
|
+
data.tar.gz: 185ee3295284b63391e6bb5241520690d5398d6b475d25dce469adccf7bfebe4ff89906115abf4be6e95caf22f058735c873640ac0d688eac0e78613384a0dd0
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Iot::V1::DeviceManager::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all DeviceManager clients
|
47
|
+
# ::Google::Cloud::Iot::V1::DeviceManager::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -162,19 +161,15 @@ module Google
|
|
162
161
|
##
|
163
162
|
# Create a new DeviceManager client object.
|
164
163
|
#
|
165
|
-
#
|
166
|
-
#
|
167
|
-
# To create a new DeviceManager client with the default
|
168
|
-
# configuration:
|
164
|
+
# @example
|
169
165
|
#
|
170
|
-
#
|
166
|
+
# # Create a client using the default configuration
|
167
|
+
# client = ::Google::Cloud::Iot::V1::DeviceManager::Client.new
|
171
168
|
#
|
172
|
-
#
|
173
|
-
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
# config.timeout = 10.0
|
177
|
-
# end
|
169
|
+
# # Create a client using a custom configuration
|
170
|
+
# client = ::Google::Cloud::Iot::V1::DeviceManager::Client.new do |config|
|
171
|
+
# config.timeout = 10.0
|
172
|
+
# end
|
178
173
|
#
|
179
174
|
# @yield [config] Configure the DeviceManager client.
|
180
175
|
# @yieldparam config [Client::Configuration]
|
@@ -194,10 +189,9 @@ module Google
|
|
194
189
|
|
195
190
|
# Create credentials
|
196
191
|
credentials = @config.credentials
|
197
|
-
# Use self-signed JWT if the
|
192
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
198
193
|
# but only if the default endpoint does not have a region prefix.
|
199
|
-
enable_self_signed_jwt = @config.
|
200
|
-
@config.endpoint == Client.configure.endpoint &&
|
194
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
201
195
|
!@config.endpoint.split(".").first.include?("-")
|
202
196
|
credentials ||= Credentials.default scope: @config.scope,
|
203
197
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -278,7 +272,9 @@ module Google
|
|
278
272
|
options.apply_defaults timeout: @config.rpcs.create_device_registry.timeout,
|
279
273
|
metadata: metadata,
|
280
274
|
retry_policy: @config.rpcs.create_device_registry.retry_policy
|
281
|
-
|
275
|
+
|
276
|
+
options.apply_defaults timeout: @config.timeout,
|
277
|
+
metadata: @config.metadata,
|
282
278
|
retry_policy: @config.retry_policy
|
283
279
|
|
284
280
|
@device_manager_stub.call_rpc :create_device_registry, request, options: options do |response, operation|
|
@@ -345,7 +341,9 @@ module Google
|
|
345
341
|
options.apply_defaults timeout: @config.rpcs.get_device_registry.timeout,
|
346
342
|
metadata: metadata,
|
347
343
|
retry_policy: @config.rpcs.get_device_registry.retry_policy
|
348
|
-
|
344
|
+
|
345
|
+
options.apply_defaults timeout: @config.timeout,
|
346
|
+
metadata: @config.metadata,
|
349
347
|
retry_policy: @config.retry_policy
|
350
348
|
|
351
349
|
@device_manager_stub.call_rpc :get_device_registry, request, options: options do |response, operation|
|
@@ -419,7 +417,9 @@ module Google
|
|
419
417
|
options.apply_defaults timeout: @config.rpcs.update_device_registry.timeout,
|
420
418
|
metadata: metadata,
|
421
419
|
retry_policy: @config.rpcs.update_device_registry.retry_policy
|
422
|
-
|
420
|
+
|
421
|
+
options.apply_defaults timeout: @config.timeout,
|
422
|
+
metadata: @config.metadata,
|
423
423
|
retry_policy: @config.retry_policy
|
424
424
|
|
425
425
|
@device_manager_stub.call_rpc :update_device_registry, request, options: options do |response, operation|
|
@@ -486,7 +486,9 @@ module Google
|
|
486
486
|
options.apply_defaults timeout: @config.rpcs.delete_device_registry.timeout,
|
487
487
|
metadata: metadata,
|
488
488
|
retry_policy: @config.rpcs.delete_device_registry.retry_policy
|
489
|
-
|
489
|
+
|
490
|
+
options.apply_defaults timeout: @config.timeout,
|
491
|
+
metadata: @config.metadata,
|
490
492
|
retry_policy: @config.retry_policy
|
491
493
|
|
492
494
|
@device_manager_stub.call_rpc :delete_device_registry, request, options: options do |response, operation|
|
@@ -562,7 +564,9 @@ module Google
|
|
562
564
|
options.apply_defaults timeout: @config.rpcs.list_device_registries.timeout,
|
563
565
|
metadata: metadata,
|
564
566
|
retry_policy: @config.rpcs.list_device_registries.retry_policy
|
565
|
-
|
567
|
+
|
568
|
+
options.apply_defaults timeout: @config.timeout,
|
569
|
+
metadata: @config.metadata,
|
566
570
|
retry_policy: @config.retry_policy
|
567
571
|
|
568
572
|
@device_manager_stub.call_rpc :list_device_registries, request, options: options do |response, operation|
|
@@ -635,7 +639,9 @@ module Google
|
|
635
639
|
options.apply_defaults timeout: @config.rpcs.create_device.timeout,
|
636
640
|
metadata: metadata,
|
637
641
|
retry_policy: @config.rpcs.create_device.retry_policy
|
638
|
-
|
642
|
+
|
643
|
+
options.apply_defaults timeout: @config.timeout,
|
644
|
+
metadata: @config.metadata,
|
639
645
|
retry_policy: @config.retry_policy
|
640
646
|
|
641
647
|
@device_manager_stub.call_rpc :create_device, request, options: options do |response, operation|
|
@@ -707,7 +713,9 @@ module Google
|
|
707
713
|
options.apply_defaults timeout: @config.rpcs.get_device.timeout,
|
708
714
|
metadata: metadata,
|
709
715
|
retry_policy: @config.rpcs.get_device.retry_policy
|
710
|
-
|
716
|
+
|
717
|
+
options.apply_defaults timeout: @config.timeout,
|
718
|
+
metadata: @config.metadata,
|
711
719
|
retry_policy: @config.retry_policy
|
712
720
|
|
713
721
|
@device_manager_stub.call_rpc :get_device, request, options: options do |response, operation|
|
@@ -781,7 +789,9 @@ module Google
|
|
781
789
|
options.apply_defaults timeout: @config.rpcs.update_device.timeout,
|
782
790
|
metadata: metadata,
|
783
791
|
retry_policy: @config.rpcs.update_device.retry_policy
|
784
|
-
|
792
|
+
|
793
|
+
options.apply_defaults timeout: @config.timeout,
|
794
|
+
metadata: @config.metadata,
|
785
795
|
retry_policy: @config.retry_policy
|
786
796
|
|
787
797
|
@device_manager_stub.call_rpc :update_device, request, options: options do |response, operation|
|
@@ -849,7 +859,9 @@ module Google
|
|
849
859
|
options.apply_defaults timeout: @config.rpcs.delete_device.timeout,
|
850
860
|
metadata: metadata,
|
851
861
|
retry_policy: @config.rpcs.delete_device.retry_policy
|
852
|
-
|
862
|
+
|
863
|
+
options.apply_defaults timeout: @config.timeout,
|
864
|
+
metadata: @config.metadata,
|
853
865
|
retry_policy: @config.retry_policy
|
854
866
|
|
855
867
|
@device_manager_stub.call_rpc :delete_device, request, options: options do |response, operation|
|
@@ -938,7 +950,9 @@ module Google
|
|
938
950
|
options.apply_defaults timeout: @config.rpcs.list_devices.timeout,
|
939
951
|
metadata: metadata,
|
940
952
|
retry_policy: @config.rpcs.list_devices.retry_policy
|
941
|
-
|
953
|
+
|
954
|
+
options.apply_defaults timeout: @config.timeout,
|
955
|
+
metadata: @config.metadata,
|
942
956
|
retry_policy: @config.retry_policy
|
943
957
|
|
944
958
|
@device_manager_stub.call_rpc :list_devices, request, options: options do |response, operation|
|
@@ -1017,7 +1031,9 @@ module Google
|
|
1017
1031
|
options.apply_defaults timeout: @config.rpcs.modify_cloud_to_device_config.timeout,
|
1018
1032
|
metadata: metadata,
|
1019
1033
|
retry_policy: @config.rpcs.modify_cloud_to_device_config.retry_policy
|
1020
|
-
|
1034
|
+
|
1035
|
+
options.apply_defaults timeout: @config.timeout,
|
1036
|
+
metadata: @config.metadata,
|
1021
1037
|
retry_policy: @config.retry_policy
|
1022
1038
|
|
1023
1039
|
@device_manager_stub.call_rpc :modify_cloud_to_device_config, request, options: options do |response, operation|
|
@@ -1090,7 +1106,9 @@ module Google
|
|
1090
1106
|
options.apply_defaults timeout: @config.rpcs.list_device_config_versions.timeout,
|
1091
1107
|
metadata: metadata,
|
1092
1108
|
retry_policy: @config.rpcs.list_device_config_versions.retry_policy
|
1093
|
-
|
1109
|
+
|
1110
|
+
options.apply_defaults timeout: @config.timeout,
|
1111
|
+
metadata: @config.metadata,
|
1094
1112
|
retry_policy: @config.retry_policy
|
1095
1113
|
|
1096
1114
|
@device_manager_stub.call_rpc :list_device_config_versions, request, options: options do |response, operation|
|
@@ -1163,7 +1181,9 @@ module Google
|
|
1163
1181
|
options.apply_defaults timeout: @config.rpcs.list_device_states.timeout,
|
1164
1182
|
metadata: metadata,
|
1165
1183
|
retry_policy: @config.rpcs.list_device_states.retry_policy
|
1166
|
-
|
1184
|
+
|
1185
|
+
options.apply_defaults timeout: @config.timeout,
|
1186
|
+
metadata: @config.metadata,
|
1167
1187
|
retry_policy: @config.retry_policy
|
1168
1188
|
|
1169
1189
|
@device_manager_stub.call_rpc :list_device_states, request, options: options do |response, operation|
|
@@ -1236,7 +1256,9 @@ module Google
|
|
1236
1256
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1237
1257
|
metadata: metadata,
|
1238
1258
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1239
|
-
|
1259
|
+
|
1260
|
+
options.apply_defaults timeout: @config.timeout,
|
1261
|
+
metadata: @config.metadata,
|
1240
1262
|
retry_policy: @config.retry_policy
|
1241
1263
|
|
1242
1264
|
@device_manager_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -1308,7 +1330,9 @@ module Google
|
|
1308
1330
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
1309
1331
|
metadata: metadata,
|
1310
1332
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
1311
|
-
|
1333
|
+
|
1334
|
+
options.apply_defaults timeout: @config.timeout,
|
1335
|
+
metadata: @config.metadata,
|
1312
1336
|
retry_policy: @config.retry_policy
|
1313
1337
|
|
1314
1338
|
@device_manager_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -1382,7 +1406,9 @@ module Google
|
|
1382
1406
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1383
1407
|
metadata: metadata,
|
1384
1408
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1385
|
-
|
1409
|
+
|
1410
|
+
options.apply_defaults timeout: @config.timeout,
|
1411
|
+
metadata: @config.metadata,
|
1386
1412
|
retry_policy: @config.retry_policy
|
1387
1413
|
|
1388
1414
|
@device_manager_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -1470,7 +1496,9 @@ module Google
|
|
1470
1496
|
options.apply_defaults timeout: @config.rpcs.send_command_to_device.timeout,
|
1471
1497
|
metadata: metadata,
|
1472
1498
|
retry_policy: @config.rpcs.send_command_to_device.retry_policy
|
1473
|
-
|
1499
|
+
|
1500
|
+
options.apply_defaults timeout: @config.timeout,
|
1501
|
+
metadata: @config.metadata,
|
1474
1502
|
retry_policy: @config.retry_policy
|
1475
1503
|
|
1476
1504
|
@device_manager_stub.call_rpc :send_command_to_device, request, options: options do |response, operation|
|
@@ -1544,7 +1572,9 @@ module Google
|
|
1544
1572
|
options.apply_defaults timeout: @config.rpcs.bind_device_to_gateway.timeout,
|
1545
1573
|
metadata: metadata,
|
1546
1574
|
retry_policy: @config.rpcs.bind_device_to_gateway.retry_policy
|
1547
|
-
|
1575
|
+
|
1576
|
+
options.apply_defaults timeout: @config.timeout,
|
1577
|
+
metadata: @config.metadata,
|
1548
1578
|
retry_policy: @config.retry_policy
|
1549
1579
|
|
1550
1580
|
@device_manager_stub.call_rpc :bind_device_to_gateway, request, options: options do |response, operation|
|
@@ -1618,7 +1648,9 @@ module Google
|
|
1618
1648
|
options.apply_defaults timeout: @config.rpcs.unbind_device_from_gateway.timeout,
|
1619
1649
|
metadata: metadata,
|
1620
1650
|
retry_policy: @config.rpcs.unbind_device_from_gateway.retry_policy
|
1621
|
-
|
1651
|
+
|
1652
|
+
options.apply_defaults timeout: @config.timeout,
|
1653
|
+
metadata: @config.metadata,
|
1622
1654
|
retry_policy: @config.retry_policy
|
1623
1655
|
|
1624
1656
|
@device_manager_stub.call_rpc :unbind_device_from_gateway, request, options: options do |response, operation|
|
@@ -1642,22 +1674,21 @@ module Google
|
|
1642
1674
|
# Configuration can be applied globally to all clients, or to a single client
|
1643
1675
|
# on construction.
|
1644
1676
|
#
|
1645
|
-
#
|
1646
|
-
#
|
1647
|
-
#
|
1648
|
-
# to 20 seconds,
|
1649
|
-
#
|
1650
|
-
#
|
1651
|
-
#
|
1652
|
-
#
|
1653
|
-
#
|
1654
|
-
#
|
1655
|
-
#
|
1656
|
-
#
|
1657
|
-
#
|
1658
|
-
#
|
1659
|
-
#
|
1660
|
-
# end
|
1677
|
+
# @example
|
1678
|
+
#
|
1679
|
+
# # Modify the global config, setting the timeout for
|
1680
|
+
# # create_device_registry to 20 seconds,
|
1681
|
+
# # and all remaining timeouts to 10 seconds.
|
1682
|
+
# ::Google::Cloud::Iot::V1::DeviceManager::Client.configure do |config|
|
1683
|
+
# config.timeout = 10.0
|
1684
|
+
# config.rpcs.create_device_registry.timeout = 20.0
|
1685
|
+
# end
|
1686
|
+
#
|
1687
|
+
# # Apply the above configuration only to a new client.
|
1688
|
+
# client = ::Google::Cloud::Iot::V1::DeviceManager::Client.new do |config|
|
1689
|
+
# config.timeout = 10.0
|
1690
|
+
# config.rpcs.create_device_registry.timeout = 20.0
|
1691
|
+
# end
|
1661
1692
|
#
|
1662
1693
|
# @!attribute [rw] endpoint
|
1663
1694
|
# The hostname or hostname:port of the service endpoint.
|
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.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 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.7'
|
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.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|