google-cloud-iot-v1 0.4.0 → 0.6.0
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/AUTHENTICATION.md +1 -1
- data/README.md +12 -7
- data/lib/google/cloud/iot/v1/device_manager/client.rb +8 -12
- data/lib/google/cloud/iot/v1/device_manager/rest/client.rb +1817 -0
- data/lib/google/cloud/iot/v1/device_manager/rest/service_stub.rb +1272 -0
- data/lib/google/cloud/iot/v1/device_manager/rest.rb +52 -0
- data/lib/google/cloud/iot/v1/device_manager.rb +7 -1
- data/lib/google/cloud/iot/v1/device_manager_pb.rb +2 -2
- data/lib/google/cloud/iot/v1/resources_pb.rb +2 -1
- data/lib/google/cloud/iot/v1/rest.rb +37 -0
- data/lib/google/cloud/iot/v1/version.rb +1 -1
- data/lib/google/cloud/iot/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +21 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e1b7f0330b95fec4616b59e8925c0f038588fa522f1b87726f2091e940a5b69
|
4
|
+
data.tar.gz: 52861294930fe8c357cb8b12223766f98c213f8e3e30346a948839b5e710ca42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e80ce13e0870333d4f51d8cf621fd1f27b75566dd3802e9fec04d1fbcbbe76f4172418c78609a5685b5be052d5440431bedf6e60166bc8a4d1f0e7b79945a99b
|
7
|
+
data.tar.gz: f6cd9e14fb8d440cf4bca4970201bcb99170886e36df6df25576edc973d697d617ba7352607aa97b46b76a900cd95749e8fe395776f75c293bd2e51ce9aef85b
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud IoT V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform.
|
4
4
|
|
5
5
|
Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -618,13 +618,11 @@ module Google
|
|
618
618
|
# # Call the list_device_registries method.
|
619
619
|
# result = client.list_device_registries request
|
620
620
|
#
|
621
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
622
|
-
# #
|
623
|
-
#
|
624
|
-
# # methods are also available for managing paging directly.
|
625
|
-
# result.each do |response|
|
621
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
622
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
623
|
+
# result.each do |item|
|
626
624
|
# # Each element is of type ::Google::Cloud::Iot::V1::DeviceRegistry.
|
627
|
-
# p
|
625
|
+
# p item
|
628
626
|
# end
|
629
627
|
#
|
630
628
|
def list_device_registries request, options = nil
|
@@ -1095,13 +1093,11 @@ module Google
|
|
1095
1093
|
# # Call the list_devices method.
|
1096
1094
|
# result = client.list_devices request
|
1097
1095
|
#
|
1098
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1099
|
-
# #
|
1100
|
-
#
|
1101
|
-
# # methods are also available for managing paging directly.
|
1102
|
-
# result.each do |response|
|
1096
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1097
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1098
|
+
# result.each do |item|
|
1103
1099
|
# # Each element is of type ::Google::Cloud::Iot::V1::Device.
|
1104
|
-
# p
|
1100
|
+
# p item
|
1105
1101
|
# end
|
1106
1102
|
#
|
1107
1103
|
def list_devices request, options = nil
|