google-cloud-network_management-v1 0.4.0 → 0.5.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: 92cfa7cf7dec8c8909c506f7c85bfd36bf9181860f726871d265699adae4b775
4
- data.tar.gz: a3d0bc9d429359dbb7afcd6e61398f1dea38ebd231e6535449a73e28f92be336
3
+ metadata.gz: d92c35e159229840ec365ac3e66abec02156774211b9623e6527c052af18903c
4
+ data.tar.gz: ca0c48e2da79049f81a76bc3b1c209ae9e5380e9f235d718f7210f4db0d094a1
5
5
  SHA512:
6
- metadata.gz: 848fd7afff40b64f5d6eb5733b35cb7367e225eb16aad23a3a34f2585eea14b8a1aef3ec0cf7cba27fe6d44e155fe3cc7b300e644654ea6727e5af1b155e8edc
7
- data.tar.gz: 88d654ed9bafba5f126fbb84fc669723be307dd2f326d6133dcfa8577b0189d6befe548d0037b4f93641a08cb2692948eae6adea355544ca5d42407daf9506d7
6
+ metadata.gz: b891f71cd6504520707bed362b7a9ba4b5a0d61291ccc6051e4ac06c5f609322157ebf5590a55c93f99f0639febe17e0622aba40ce85189d5d9aa9e54bdddfc2
7
+ data.tar.gz: 4ae2f035a519fa729cb0f410874cafb7b53277d1d9b2cd4e0857b6cb091783339a636511da6be8eab732d41ab3409a492134e9db89fdb83e6a2eead63a3b959c
data/AUTHENTICATION.md CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
112
112
  To configure your system for this, simply:
113
113
 
114
114
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
115
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
115
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
116
116
  3. Write code as if already authenticated.
117
117
 
118
118
  **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 Network Management V1 API
2
2
 
3
- API Client library for the Network Management V1 API
3
+ The Network Management API provides a collection of network performance monitoring and diagnostic capabilities.
4
4
 
5
5
  The Network Management API provides a collection of network performance monitoring and diagnostic capabilities.
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.
@@ -233,13 +233,11 @@ module Google
233
233
  # # Call the list_connectivity_tests method.
234
234
  # result = client.list_connectivity_tests request
235
235
  #
236
- # # The returned object is of type Gapic::PagedEnumerable. You can
237
- # # iterate over all elements by calling #each, and the enumerable
238
- # # will lazily make API calls to fetch subsequent pages. Other
239
- # # methods are also available for managing paging directly.
240
- # result.each do |response|
236
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
237
+ # # over elements, and API calls will be issued to fetch pages as needed.
238
+ # result.each do |item|
241
239
  # # Each element is of type ::Google::Cloud::NetworkManagement::V1::ConnectivityTest.
242
- # p response
240
+ # p item
243
241
  # end
244
242
  #
245
243
  def list_connectivity_tests request, options = nil
@@ -435,14 +433,14 @@ module Google
435
433
  # # Call the create_connectivity_test method.
436
434
  # result = client.create_connectivity_test request
437
435
  #
438
- # # The returned object is of type Gapic::Operation. You can use this
439
- # # object to check the status of an operation, cancel it, or wait
440
- # # for results. Here is how to block until completion:
436
+ # # The returned object is of type Gapic::Operation. You can use it to
437
+ # # check the status of an operation, cancel it, or wait for results.
438
+ # # Here is how to wait for a response.
441
439
  # result.wait_until_done! timeout: 60
442
440
  # if result.response?
443
441
  # p result.response
444
442
  # else
445
- # puts "Error!"
443
+ # puts "No response received."
446
444
  # end
447
445
  #
448
446
  def create_connectivity_test request, options = nil
@@ -544,14 +542,14 @@ module Google
544
542
  # # Call the update_connectivity_test method.
545
543
  # result = client.update_connectivity_test request
546
544
  #
547
- # # The returned object is of type Gapic::Operation. You can use this
548
- # # object to check the status of an operation, cancel it, or wait
549
- # # for results. Here is how to block until completion:
545
+ # # The returned object is of type Gapic::Operation. You can use it to
546
+ # # check the status of an operation, cancel it, or wait for results.
547
+ # # Here is how to wait for a response.
550
548
  # result.wait_until_done! timeout: 60
551
549
  # if result.response?
552
550
  # p result.response
553
551
  # else
554
- # puts "Error!"
552
+ # puts "No response received."
555
553
  # end
556
554
  #
557
555
  def update_connectivity_test request, options = nil
@@ -649,14 +647,14 @@ module Google
649
647
  # # Call the rerun_connectivity_test method.
650
648
  # result = client.rerun_connectivity_test request
651
649
  #
652
- # # The returned object is of type Gapic::Operation. You can use this
653
- # # object to check the status of an operation, cancel it, or wait
654
- # # for results. Here is how to block until completion:
650
+ # # The returned object is of type Gapic::Operation. You can use it to
651
+ # # check the status of an operation, cancel it, or wait for results.
652
+ # # Here is how to wait for a response.
655
653
  # result.wait_until_done! timeout: 60
656
654
  # if result.response?
657
655
  # p result.response
658
656
  # else
659
- # puts "Error!"
657
+ # puts "No response received."
660
658
  # end
661
659
  #
662
660
  def rerun_connectivity_test request, options = nil
@@ -743,14 +741,14 @@ module Google
743
741
  # # Call the delete_connectivity_test method.
744
742
  # result = client.delete_connectivity_test request
745
743
  #
746
- # # The returned object is of type Gapic::Operation. You can use this
747
- # # object to check the status of an operation, cancel it, or wait
748
- # # for results. Here is how to block until completion:
744
+ # # The returned object is of type Gapic::Operation. You can use it to
745
+ # # check the status of an operation, cancel it, or wait for results.
746
+ # # Here is how to wait for a response.
749
747
  # result.wait_until_done! timeout: 60
750
748
  # if result.response?
751
749
  # p result.response
752
750
  # else
753
- # puts "Error!"
751
+ # puts "No response received."
754
752
  # end
755
753
  #
756
754
  def delete_connectivity_test request, options = nil
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil