google-cloud-network_management-v1 0.3.0 → 0.5.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 +2 -2
- data/lib/google/cloud/network_management/v1/reachability_service/client.rb +20 -22
- data/lib/google/cloud/network_management/v1/reachability_service/operations.rb +12 -14
- data/lib/google/cloud/network_management/v1/reachability_service/rest/client.rb +795 -0
- data/lib/google/cloud/network_management/v1/reachability_service/rest/operations.rb +793 -0
- data/lib/google/cloud/network_management/v1/reachability_service/rest/service_stub.rb +405 -0
- data/lib/google/cloud/network_management/v1/reachability_service/rest.rb +60 -0
- data/lib/google/cloud/network_management/v1/reachability_service.rb +7 -1
- data/lib/google/cloud/network_management/v1/rest.rb +37 -0
- data/lib/google/cloud/network_management/v1/version.rb +1 -1
- data/lib/google/cloud/network_management/v1.rb +7 -2
- data/lib/google/cloud/networkmanagement/v1/trace_pb.rb +2 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/networkmanagement/v1/trace.rb +9 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +16 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d92c35e159229840ec365ac3e66abec02156774211b9623e6527c052af18903c
|
4
|
+
data.tar.gz: ca0c48e2da79049f81a76bc3b1c209ae9e5380e9f235d718f7210f4db0d094a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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/
|
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
|
-
# #
|
238
|
-
#
|
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
|
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
|
439
|
-
# #
|
440
|
-
# #
|
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 "
|
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
|
548
|
-
# #
|
549
|
-
# #
|
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 "
|
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
|
653
|
-
# #
|
654
|
-
# #
|
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 "
|
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
|
747
|
-
# #
|
748
|
-
# #
|
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 "
|
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
|
-
# #
|
163
|
-
#
|
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
|
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
|
257
|
-
# #
|
258
|
-
# #
|
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 "
|
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
|
544
|
-
# #
|
545
|
-
# #
|
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 "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|