google-cloud-network_management-v1 0.4.0 → 0.5.1

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: a66a103efcfa5e837101e0579faf44a100c66ece0b66705b42a52c06444c4773
4
+ data.tar.gz: 79e7f4939e8ecb2fab6570a2cf6849f30228102fd6981bc3188e7ca25a484acb
5
5
  SHA512:
6
- metadata.gz: 848fd7afff40b64f5d6eb5733b35cb7367e225eb16aad23a3a34f2585eea14b8a1aef3ec0cf7cba27fe6d44e155fe3cc7b300e644654ea6727e5af1b155e8edc
7
- data.tar.gz: 88d654ed9bafba5f126fbb84fc669723be307dd2f326d6133dcfa8577b0189d6befe548d0037b4f93641a08cb2692948eae6adea355544ca5d42407daf9506d7
6
+ metadata.gz: b1feb6d6107e1480a55f0ffdf27df113a68c6a45d35d0839ede229854f493c111897286fbb272edbf23a19c09f97fc84902fbb4fb0fa4b2ea8e10d8af9e4f72e
7
+ data.tar.gz: 9c613c32989fb80d930e8e65df3cd29376d23911e97389a3880845f90eee14f224c045f04f80117dda4457a479717e335d7fdac6f8ad36574527674b5f536c77
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,8 +46,8 @@ 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,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
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
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/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.
53
53
 
@@ -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
@@ -833,9 +831,9 @@ module Google
833
831
  # * (`String`) The path to a service account key file in JSON format
834
832
  # * (`Hash`) A service account key as a Hash
835
833
  # * (`Google::Auth::Credentials`) A googleauth credentials object
836
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
834
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
837
835
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
838
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
836
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
839
837
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
840
838
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
841
839
  # * (`nil`) indicating no credentials
@@ -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
@@ -622,9 +620,9 @@ module Google
622
620
  # * (`String`) The path to a service account key file in JSON format
623
621
  # * (`Hash`) A service account key as a Hash
624
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
625
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
626
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
627
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
628
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
629
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
630
628
  # * (`nil`) indicating no credentials