google-cloud-network_management-v1 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/network_management/v1/reachability_service/client.rb +10 -1
- data/lib/google/cloud/network_management/v1/reachability_service/operations.rb +10 -1
- data/lib/google/cloud/network_management/v1/reachability_service/rest/client.rb +128 -0
- data/lib/google/cloud/network_management/v1/reachability_service/rest/operations.rb +75 -0
- data/lib/google/cloud/network_management/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 434d0004b03febf6619606d81f6bfb8bef3ca7c97111ca88005a5dbe637fdde4
|
4
|
+
data.tar.gz: 804a4946a1c07ab2c462b343ddf47e480d0cff68481ae29c8c984824042679ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca8a4e53289ddd815f1f558ce62b201dc8c5ed2c2a1cf31a6162f20622c335ebcdfd67862310dc8a137a41cef8c9bd68a3db0c2e4a485cc2d673aa2df696e8e0
|
7
|
+
data.tar.gz: '07876bb1be94798e37d59724bb50d6407b6dc6135f6af8b5d525057a7045f912f976a7e938d1f39df1c352ebb03b6532774b040c5d60aa80a7dfdd28b6ffdb4d'
|
@@ -153,7 +153,8 @@ module Google
|
|
153
153
|
credentials: credentials,
|
154
154
|
endpoint: @config.endpoint,
|
155
155
|
channel_args: @config.channel_args,
|
156
|
-
interceptors: @config.interceptors
|
156
|
+
interceptors: @config.interceptors,
|
157
|
+
channel_pool_config: @config.channel_pool
|
157
158
|
)
|
158
159
|
end
|
159
160
|
|
@@ -912,6 +913,14 @@ module Google
|
|
912
913
|
end
|
913
914
|
end
|
914
915
|
|
916
|
+
##
|
917
|
+
# Configuration for the channel pool
|
918
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
919
|
+
#
|
920
|
+
def channel_pool
|
921
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
922
|
+
end
|
923
|
+
|
915
924
|
##
|
916
925
|
# Configuration RPC class for the ReachabilityService API.
|
917
926
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -210,6 +210,26 @@ module Google
|
|
210
210
|
# @return [::Google::Cloud::NetworkManagement::V1::ListConnectivityTestsResponse]
|
211
211
|
#
|
212
212
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
213
|
+
#
|
214
|
+
# @example Basic example
|
215
|
+
# require "google/cloud/network_management/v1"
|
216
|
+
#
|
217
|
+
# # Create a client object. The client can be reused for multiple calls.
|
218
|
+
# client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Rest::Client.new
|
219
|
+
#
|
220
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
221
|
+
# request = Google::Cloud::NetworkManagement::V1::ListConnectivityTestsRequest.new
|
222
|
+
#
|
223
|
+
# # Call the list_connectivity_tests method.
|
224
|
+
# result = client.list_connectivity_tests request
|
225
|
+
#
|
226
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
227
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
228
|
+
# result.each do |item|
|
229
|
+
# # Each element is of type ::Google::Cloud::NetworkManagement::V1::ConnectivityTest.
|
230
|
+
# p item
|
231
|
+
# end
|
232
|
+
#
|
213
233
|
def list_connectivity_tests request, options = nil
|
214
234
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
215
235
|
|
@@ -273,6 +293,22 @@ module Google
|
|
273
293
|
# @return [::Google::Cloud::NetworkManagement::V1::ConnectivityTest]
|
274
294
|
#
|
275
295
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
296
|
+
#
|
297
|
+
# @example Basic example
|
298
|
+
# require "google/cloud/network_management/v1"
|
299
|
+
#
|
300
|
+
# # Create a client object. The client can be reused for multiple calls.
|
301
|
+
# client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Rest::Client.new
|
302
|
+
#
|
303
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
304
|
+
# request = Google::Cloud::NetworkManagement::V1::GetConnectivityTestRequest.new
|
305
|
+
#
|
306
|
+
# # Call the get_connectivity_test method.
|
307
|
+
# result = client.get_connectivity_test request
|
308
|
+
#
|
309
|
+
# # The returned object is of type Google::Cloud::NetworkManagement::V1::ConnectivityTest.
|
310
|
+
# p result
|
311
|
+
#
|
276
312
|
def get_connectivity_test request, options = nil
|
277
313
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
278
314
|
|
@@ -359,6 +395,29 @@ module Google
|
|
359
395
|
# @return [::Gapic::Operation]
|
360
396
|
#
|
361
397
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
398
|
+
#
|
399
|
+
# @example Basic example
|
400
|
+
# require "google/cloud/network_management/v1"
|
401
|
+
#
|
402
|
+
# # Create a client object. The client can be reused for multiple calls.
|
403
|
+
# client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Rest::Client.new
|
404
|
+
#
|
405
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
406
|
+
# request = Google::Cloud::NetworkManagement::V1::CreateConnectivityTestRequest.new
|
407
|
+
#
|
408
|
+
# # Call the create_connectivity_test method.
|
409
|
+
# result = client.create_connectivity_test request
|
410
|
+
#
|
411
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
412
|
+
# # check the status of an operation, cancel it, or wait for results.
|
413
|
+
# # Here is how to wait for a response.
|
414
|
+
# result.wait_until_done! timeout: 60
|
415
|
+
# if result.response?
|
416
|
+
# p result.response
|
417
|
+
# else
|
418
|
+
# puts "No response received."
|
419
|
+
# end
|
420
|
+
#
|
362
421
|
def create_connectivity_test request, options = nil
|
363
422
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
364
423
|
|
@@ -438,6 +497,29 @@ module Google
|
|
438
497
|
# @return [::Gapic::Operation]
|
439
498
|
#
|
440
499
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
500
|
+
#
|
501
|
+
# @example Basic example
|
502
|
+
# require "google/cloud/network_management/v1"
|
503
|
+
#
|
504
|
+
# # Create a client object. The client can be reused for multiple calls.
|
505
|
+
# client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Rest::Client.new
|
506
|
+
#
|
507
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
508
|
+
# request = Google::Cloud::NetworkManagement::V1::UpdateConnectivityTestRequest.new
|
509
|
+
#
|
510
|
+
# # Call the update_connectivity_test method.
|
511
|
+
# result = client.update_connectivity_test request
|
512
|
+
#
|
513
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
514
|
+
# # check the status of an operation, cancel it, or wait for results.
|
515
|
+
# # Here is how to wait for a response.
|
516
|
+
# result.wait_until_done! timeout: 60
|
517
|
+
# if result.response?
|
518
|
+
# p result.response
|
519
|
+
# else
|
520
|
+
# puts "No response received."
|
521
|
+
# end
|
522
|
+
#
|
441
523
|
def update_connectivity_test request, options = nil
|
442
524
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
443
525
|
|
@@ -513,6 +595,29 @@ module Google
|
|
513
595
|
# @return [::Gapic::Operation]
|
514
596
|
#
|
515
597
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
598
|
+
#
|
599
|
+
# @example Basic example
|
600
|
+
# require "google/cloud/network_management/v1"
|
601
|
+
#
|
602
|
+
# # Create a client object. The client can be reused for multiple calls.
|
603
|
+
# client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Rest::Client.new
|
604
|
+
#
|
605
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
606
|
+
# request = Google::Cloud::NetworkManagement::V1::RerunConnectivityTestRequest.new
|
607
|
+
#
|
608
|
+
# # Call the rerun_connectivity_test method.
|
609
|
+
# result = client.rerun_connectivity_test request
|
610
|
+
#
|
611
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
612
|
+
# # check the status of an operation, cancel it, or wait for results.
|
613
|
+
# # Here is how to wait for a response.
|
614
|
+
# result.wait_until_done! timeout: 60
|
615
|
+
# if result.response?
|
616
|
+
# p result.response
|
617
|
+
# else
|
618
|
+
# puts "No response received."
|
619
|
+
# end
|
620
|
+
#
|
516
621
|
def rerun_connectivity_test request, options = nil
|
517
622
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
518
623
|
|
@@ -577,6 +682,29 @@ module Google
|
|
577
682
|
# @return [::Gapic::Operation]
|
578
683
|
#
|
579
684
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
685
|
+
#
|
686
|
+
# @example Basic example
|
687
|
+
# require "google/cloud/network_management/v1"
|
688
|
+
#
|
689
|
+
# # Create a client object. The client can be reused for multiple calls.
|
690
|
+
# client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Rest::Client.new
|
691
|
+
#
|
692
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
693
|
+
# request = Google::Cloud::NetworkManagement::V1::DeleteConnectivityTestRequest.new
|
694
|
+
#
|
695
|
+
# # Call the delete_connectivity_test method.
|
696
|
+
# result = client.delete_connectivity_test request
|
697
|
+
#
|
698
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
699
|
+
# # check the status of an operation, cancel it, or wait for results.
|
700
|
+
# # Here is how to wait for a response.
|
701
|
+
# result.wait_until_done! timeout: 60
|
702
|
+
# if result.response?
|
703
|
+
# p result.response
|
704
|
+
# else
|
705
|
+
# puts "No response received."
|
706
|
+
# end
|
707
|
+
#
|
580
708
|
def delete_connectivity_test request, options = nil
|
581
709
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
582
710
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-network_management-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
requirements: []
|
224
|
-
rubygems_version: 3.4.
|
224
|
+
rubygems_version: 3.4.19
|
225
225
|
signing_key:
|
226
226
|
specification_version: 4
|
227
227
|
summary: The Network Management API provides a collection of network performance monitoring
|