google-cloud-network_management-v1 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e93f5ba481d8712b6a4dae5f5edd178a32fdaca4ad4ed55700a22aeb4906eeb0
4
- data.tar.gz: 4189b9037aa3e18425a09fcf2475e26f480dc83377c0bdcf36651be4f42bd87c
3
+ metadata.gz: d216d1b407e93161d0d80384bbb5e6b368746ccf76608d1fe1a6e26ba14b56b2
4
+ data.tar.gz: 880790de34b9bd469da4952d013b3bcc5d30ffe00b4ff402c986f98c140f8bf4
5
5
  SHA512:
6
- metadata.gz: 06b28eb46ff05cc4b81313303da9e35bc6360912ca98e8ed24d00f79c0dbef151493062a010f80e41c5ea0ea3852bf2fe7dc31002fc3cd25023dead15298be19
7
- data.tar.gz: 0552f637d4a6022529915b0b896c427843bbf090fa1bd80425cac46bf43c5998326741078d6b4679be2d38ea173e748aa691af2c1072ef4731eb51f887a00d61
6
+ metadata.gz: 1cad28b8765da997fbbc23794dd9f4426c5afba5443fb9bc72e10420b77f6b2c8b251fd4b25b5df14a91d80c827b41890b0b75e05c88dde073f919ae25f4c106
7
+ data.tar.gz: 55032ad7e79ecc0552d66264a3fc3b24f456c569ffb289cc0760ca583a016b27c4ed8027e7f3e7b0deb90000edc7f51d2e84ea7c2954c921e221f301b77b8914
@@ -220,6 +220,27 @@ module Google
220
220
  #
221
221
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
222
222
  #
223
+ # @example Basic example
224
+ # require "google/cloud/network_management/v1"
225
+ #
226
+ # # Create a client object. The client can be reused for multiple calls.
227
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
228
+ #
229
+ # # Create a request. To set request fields, pass in keyword arguments.
230
+ # request = Google::Cloud::NetworkManagement::V1::ListConnectivityTestsRequest.new
231
+ #
232
+ # # Call the list_connectivity_tests method.
233
+ # result = client.list_connectivity_tests request
234
+ #
235
+ # # The returned object is of type Gapic::PagedEnumerable. You can
236
+ # # iterate over all elements by calling #each, and the enumerable
237
+ # # will lazily make API calls to fetch subsequent pages. Other
238
+ # # methods are also available for managing paging directly.
239
+ # result.each do |response|
240
+ # # Each element is of type ::Google::Cloud::NetworkManagement::V1::ConnectivityTest.
241
+ # p response
242
+ # end
243
+ #
223
244
  def list_connectivity_tests request, options = nil
224
245
  raise ::ArgumentError, "request must be provided" if request.nil?
225
246
 
@@ -237,9 +258,11 @@ module Google
237
258
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
238
259
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
239
260
 
240
- header_params = {
241
- "parent" => request.parent
242
- }
261
+ header_params = {}
262
+ if request.parent
263
+ header_params["parent"] = request.parent
264
+ end
265
+
243
266
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
244
267
  metadata[:"x-goog-request-params"] ||= request_params_header
245
268
 
@@ -290,6 +313,21 @@ module Google
290
313
  #
291
314
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
292
315
  #
316
+ # @example Basic example
317
+ # require "google/cloud/network_management/v1"
318
+ #
319
+ # # Create a client object. The client can be reused for multiple calls.
320
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
321
+ #
322
+ # # Create a request. To set request fields, pass in keyword arguments.
323
+ # request = Google::Cloud::NetworkManagement::V1::GetConnectivityTestRequest.new
324
+ #
325
+ # # Call the get_connectivity_test method.
326
+ # result = client.get_connectivity_test request
327
+ #
328
+ # # The returned object is of type Google::Cloud::NetworkManagement::V1::ConnectivityTest.
329
+ # p result
330
+ #
293
331
  def get_connectivity_test request, options = nil
294
332
  raise ::ArgumentError, "request must be provided" if request.nil?
295
333
 
@@ -307,9 +345,11 @@ module Google
307
345
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
308
346
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
309
347
 
310
- header_params = {
311
- "name" => request.name
312
- }
348
+ header_params = {}
349
+ if request.name
350
+ header_params["name"] = request.name
351
+ end
352
+
313
353
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
314
354
  metadata[:"x-goog-request-params"] ||= request_params_header
315
355
 
@@ -382,6 +422,28 @@ module Google
382
422
  #
383
423
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
384
424
  #
425
+ # @example Basic example
426
+ # require "google/cloud/network_management/v1"
427
+ #
428
+ # # Create a client object. The client can be reused for multiple calls.
429
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
430
+ #
431
+ # # Create a request. To set request fields, pass in keyword arguments.
432
+ # request = Google::Cloud::NetworkManagement::V1::CreateConnectivityTestRequest.new
433
+ #
434
+ # # Call the create_connectivity_test method.
435
+ # result = client.create_connectivity_test request
436
+ #
437
+ # # The returned object is of type Gapic::Operation. You can use this
438
+ # # object to check the status of an operation, cancel it, or wait
439
+ # # for results. Here is how to block until completion:
440
+ # result.wait_until_done! timeout: 60
441
+ # if result.response?
442
+ # p result.response
443
+ # else
444
+ # puts "Error!"
445
+ # end
446
+ #
385
447
  def create_connectivity_test request, options = nil
386
448
  raise ::ArgumentError, "request must be provided" if request.nil?
387
449
 
@@ -399,9 +461,11 @@ module Google
399
461
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
400
462
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
401
463
 
402
- header_params = {
403
- "parent" => request.parent
404
- }
464
+ header_params = {}
465
+ if request.parent
466
+ header_params["parent"] = request.parent
467
+ end
468
+
405
469
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
406
470
  metadata[:"x-goog-request-params"] ||= request_params_header
407
471
 
@@ -467,6 +531,28 @@ module Google
467
531
  #
468
532
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
469
533
  #
534
+ # @example Basic example
535
+ # require "google/cloud/network_management/v1"
536
+ #
537
+ # # Create a client object. The client can be reused for multiple calls.
538
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
539
+ #
540
+ # # Create a request. To set request fields, pass in keyword arguments.
541
+ # request = Google::Cloud::NetworkManagement::V1::UpdateConnectivityTestRequest.new
542
+ #
543
+ # # Call the update_connectivity_test method.
544
+ # result = client.update_connectivity_test request
545
+ #
546
+ # # The returned object is of type Gapic::Operation. You can use this
547
+ # # object to check the status of an operation, cancel it, or wait
548
+ # # for results. Here is how to block until completion:
549
+ # result.wait_until_done! timeout: 60
550
+ # if result.response?
551
+ # p result.response
552
+ # else
553
+ # puts "Error!"
554
+ # end
555
+ #
470
556
  def update_connectivity_test request, options = nil
471
557
  raise ::ArgumentError, "request must be provided" if request.nil?
472
558
 
@@ -484,9 +570,11 @@ module Google
484
570
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
485
571
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
486
572
 
487
- header_params = {
488
- "resource.name" => request.resource.name
489
- }
573
+ header_params = {}
574
+ if request.resource&.name
575
+ header_params["resource.name"] = request.resource.name
576
+ end
577
+
490
578
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
491
579
  metadata[:"x-goog-request-params"] ||= request_params_header
492
580
 
@@ -548,6 +636,28 @@ module Google
548
636
  #
549
637
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
550
638
  #
639
+ # @example Basic example
640
+ # require "google/cloud/network_management/v1"
641
+ #
642
+ # # Create a client object. The client can be reused for multiple calls.
643
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
644
+ #
645
+ # # Create a request. To set request fields, pass in keyword arguments.
646
+ # request = Google::Cloud::NetworkManagement::V1::RerunConnectivityTestRequest.new
647
+ #
648
+ # # Call the rerun_connectivity_test method.
649
+ # result = client.rerun_connectivity_test request
650
+ #
651
+ # # The returned object is of type Gapic::Operation. You can use this
652
+ # # object to check the status of an operation, cancel it, or wait
653
+ # # for results. Here is how to block until completion:
654
+ # result.wait_until_done! timeout: 60
655
+ # if result.response?
656
+ # p result.response
657
+ # else
658
+ # puts "Error!"
659
+ # end
660
+ #
551
661
  def rerun_connectivity_test request, options = nil
552
662
  raise ::ArgumentError, "request must be provided" if request.nil?
553
663
 
@@ -565,9 +675,11 @@ module Google
565
675
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
566
676
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
567
677
 
568
- header_params = {
569
- "name" => request.name
570
- }
678
+ header_params = {}
679
+ if request.name
680
+ header_params["name"] = request.name
681
+ end
682
+
571
683
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
572
684
  metadata[:"x-goog-request-params"] ||= request_params_header
573
685
 
@@ -618,6 +730,28 @@ module Google
618
730
  #
619
731
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
620
732
  #
733
+ # @example Basic example
734
+ # require "google/cloud/network_management/v1"
735
+ #
736
+ # # Create a client object. The client can be reused for multiple calls.
737
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
738
+ #
739
+ # # Create a request. To set request fields, pass in keyword arguments.
740
+ # request = Google::Cloud::NetworkManagement::V1::DeleteConnectivityTestRequest.new
741
+ #
742
+ # # Call the delete_connectivity_test method.
743
+ # result = client.delete_connectivity_test request
744
+ #
745
+ # # The returned object is of type Gapic::Operation. You can use this
746
+ # # object to check the status of an operation, cancel it, or wait
747
+ # # for results. Here is how to block until completion:
748
+ # result.wait_until_done! timeout: 60
749
+ # if result.response?
750
+ # p result.response
751
+ # else
752
+ # puts "Error!"
753
+ # end
754
+ #
621
755
  def delete_connectivity_test request, options = nil
622
756
  raise ::ArgumentError, "request must be provided" if request.nil?
623
757
 
@@ -635,9 +769,11 @@ module Google
635
769
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
636
770
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
637
771
 
638
- header_params = {
639
- "name" => request.name
640
- }
772
+ header_params = {}
773
+ if request.name
774
+ header_params["name"] = request.name
775
+ end
776
+
641
777
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
642
778
  metadata[:"x-goog-request-params"] ||= request_params_header
643
779
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module NetworkManagement
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.1.2"
25
25
  end
26
26
  end
27
27
  end
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/networkmanagement/v1/connectivity_test.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/cloud/networkmanagement/v1/trace_pb'
9
7
  require 'google/protobuf/timestamp_pb'
10
8
  require 'google/rpc/status_pb'
11
9
  require 'google/api/annotations_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/cloud/networkmanagement/v1/connectivity_test.proto", :syntax => :proto3) do
14
14
  add_message "google.cloud.networkmanagement.v1.ConnectivityTest" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/networkmanagement/v1/reachability.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -11,6 +9,8 @@ require 'google/cloud/networkmanagement/v1/connectivity_test_pb'
11
9
  require 'google/longrunning/operations_pb'
12
10
  require 'google/protobuf/field_mask_pb'
13
11
  require 'google/protobuf/timestamp_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/networkmanagement/v1/reachability.proto", :syntax => :proto3) do
16
16
  add_message "google.cloud.networkmanagement.v1.ListConnectivityTestsRequest" do
@@ -36,7 +36,7 @@ module Google
36
36
  # to troubleshoot connectivity issues.
37
37
  class Service
38
38
 
39
- include GRPC::GenericService
39
+ include ::GRPC::GenericService
40
40
 
41
41
  self.marshal_class_method = :encode
42
42
  self.unmarshal_class_method = :decode
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/networkmanagement/v1/trace.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/cloud/networkmanagement/v1/trace.proto", :syntax => :proto3) do
9
9
  add_message "google.cloud.networkmanagement.v1.Trace" do
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common