google-cloud-iot-v1 0.3.0 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/iot/v1/device_manager/client.rb +489 -153
- data/lib/google/cloud/iot/v1/device_manager_pb.rb +2 -2
- data/lib/google/cloud/iot/v1/device_manager_services_pb.rb +1 -1
- data/lib/google/cloud/iot/v1/resources_pb.rb +2 -2
- data/lib/google/cloud/iot/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51a7961c348afedb04f95977d7832d152cf158fcd13cc187c997d8712ea4d18f
|
4
|
+
data.tar.gz: a9b1d98a1575bb88e432ce6265f4fa7c8d28602e890fa7a431858f52f8ca3c8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 807c5e134956a0e13c9f550a52ada9f1078bd0b98906cf0ccc5d7e799dd42eac1c76650f4daee15cbdc9b5179893c8893c6a2ca504f95094b82c69b88253b517
|
7
|
+
data.tar.gz: 9c348dbc3e18f9290296e042cb227acadc0b5ba8efaca8ede9640729907aee4a7a30fc11fb1cab6106f2afa9b7244a4319afc904781600471be907ecf419b504
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-iot-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Iot::V1::DeviceManager::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `IOT_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `IOT_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/iot/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Iot::V1::DeviceManager::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/iot/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Iot::V1::DeviceManager::Client.new do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/iot/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/iot/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Iot::V1::DeviceManager::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Iot::V1::CreateDeviceRegistryRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_device_registry request
|
38
38
|
```
|
39
39
|
|