google-cloud-iot-v1 0.4.0 → 0.6.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: 2a75b27c2906196f59d422a6595b5e69f4ed52ed6609e4ddba00b263aea8a233
4
- data.tar.gz: b3616b835adcebd5f05fb6e7dbe3bc4cc361986ec83acd2906de7834c452df2e
3
+ metadata.gz: 8e1b7f0330b95fec4616b59e8925c0f038588fa522f1b87726f2091e940a5b69
4
+ data.tar.gz: 52861294930fe8c357cb8b12223766f98c213f8e3e30346a948839b5e710ca42
5
5
  SHA512:
6
- metadata.gz: 12712ba1c3d05ea58adb3ac7653a1fd0781c8329cf1234f82d7acbb897301a0a62f5b52d8ceb6f1fabac3cd0dd040357e65c87217c8a23b65c72a84655f4293c
7
- data.tar.gz: b9809bb98015d84e6b90e13e2c712c1189506e1d1b133df987226fc26b0631dbad2ac42ef490e5603113e465d8d08668c2ce667b6e144cb1549197fd7c52ad84
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
- API Client library for the Cloud IoT V1 API
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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.5+.
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. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
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
- # # iterate over all elements by calling #each, and the enumerable
623
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
1100
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
1100
+ # p item
1105
1101
  # end
1106
1102
  #
1107
1103
  def list_devices request, options = nil