google-cloud-network_management-v1 0.1.1 → 0.2.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: e93f5ba481d8712b6a4dae5f5edd178a32fdaca4ad4ed55700a22aeb4906eeb0
4
- data.tar.gz: 4189b9037aa3e18425a09fcf2475e26f480dc83377c0bdcf36651be4f42bd87c
3
+ metadata.gz: ab440b2ab1a8e955642562e65078c8c164411e52b36e85e69628bd4c7beb210e
4
+ data.tar.gz: ca6722621b947a93748a8b782672df9334b9ca12c68bbda26d902a2b6d0b452b
5
5
  SHA512:
6
- metadata.gz: 06b28eb46ff05cc4b81313303da9e35bc6360912ca98e8ed24d00f79c0dbef151493062a010f80e41c5ea0ea3852bf2fe7dc31002fc3cd25023dead15298be19
7
- data.tar.gz: 0552f637d4a6022529915b0b896c427843bbf090fa1bd80425cac46bf43c5998326741078d6b4679be2d38ea173e748aa691af2c1072ef4731eb51f887a00d61
6
+ metadata.gz: b9cbed328737d2d9ba30606c22da0b2451e9c1a9d67e580af946c186e9f9273d6e0777ede5410a992ee78718c39b1c662e43847356af933c73d1f106472205f2
7
+ data.tar.gz: bb0978d70030f8b2a7856b47fa5da8c6f226af75347f2b5e7f9c6ad86692e17425f8cd0f3425d7f333ef9d6816870aef51e29ce58ac3957ea057a2a638d8eb45
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Network Management V1 API
2
+ --title="Network Management V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -118,15 +118,6 @@ To configure your system for this, simply:
118
118
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
119
119
  *should* only be used during development.
120
120
 
121
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
122
- [dev-console]: https://console.cloud.google.com/project
123
-
124
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
125
-
126
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
127
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
128
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
129
-
130
121
  ## Creating a Service Account
131
122
 
132
123
  Google Cloud requires **Service Account Credentials** to
@@ -137,31 +128,22 @@ If you are not running this client within
137
128
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
138
129
  need a Google Developers service account.
139
130
 
140
- 1. Visit the [Google Developers Console][dev-console].
131
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
141
132
  2. Create a new project or click on an existing project.
142
- 3. Activate the slide-out navigation tray and select **API Manager**. From
133
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
143
134
  here, you will enable the APIs that your application requires.
144
135
 
145
- ![Enable the APIs that your application requires][enable-apis]
146
-
147
136
  *Note: You may need to enable billing in order to use these services.*
148
137
 
149
138
  4. Select **Credentials** from the side navigation.
150
139
 
151
- You should see a screen like one of the following.
152
-
153
- ![Create a new service account][create-new-service-account]
154
-
155
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
156
-
157
- Find the "Add credentials" drop down and select "Service account" to be
158
- guided through downloading a new JSON key file.
140
+ Find the "Create credentials" drop down near the top of the page, and select
141
+ "Service account" to be guided through downloading a new JSON key file.
159
142
 
160
143
  If you want to re-use an existing service account, you can easily generate a
161
- new key file. Just select the account you wish to re-use, and click "Generate
162
- new JSON key":
163
-
164
- ![Re-use an existing service account][reuse-service-account]
144
+ new key file. Just select the account you wish to re-use, click the pencil
145
+ tool on the right side to edit the service account, select the **Keys** tab,
146
+ and then select **Add Key**.
165
147
 
166
148
  The key file you download will be used by this library to authenticate API
167
149
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::NetworkManagement::V1::ListConnectivityTestsRequest.n
37
37
  response = client.list_connectivity_tests request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-network_management-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/reference/networkmanagement/rest)
@@ -69,6 +69,11 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
79
  This library is supported on Ruby 2.5+.
@@ -144,6 +144,7 @@ module Google
144
144
 
145
145
  @operations_client = Operations.new do |config|
146
146
  config.credentials = credentials
147
+ config.quota_project = @quota_project_id
147
148
  config.endpoint = @config.endpoint
148
149
  end
149
150
 
@@ -220,6 +221,27 @@ module Google
220
221
  #
221
222
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
222
223
  #
224
+ # @example Basic example
225
+ # require "google/cloud/network_management/v1"
226
+ #
227
+ # # Create a client object. The client can be reused for multiple calls.
228
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
229
+ #
230
+ # # Create a request. To set request fields, pass in keyword arguments.
231
+ # request = Google::Cloud::NetworkManagement::V1::ListConnectivityTestsRequest.new
232
+ #
233
+ # # Call the list_connectivity_tests method.
234
+ # result = client.list_connectivity_tests request
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|
241
+ # # Each element is of type ::Google::Cloud::NetworkManagement::V1::ConnectivityTest.
242
+ # p response
243
+ # end
244
+ #
223
245
  def list_connectivity_tests request, options = nil
224
246
  raise ::ArgumentError, "request must be provided" if request.nil?
225
247
 
@@ -237,9 +259,11 @@ module Google
237
259
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
238
260
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
239
261
 
240
- header_params = {
241
- "parent" => request.parent
242
- }
262
+ header_params = {}
263
+ if request.parent
264
+ header_params["parent"] = request.parent
265
+ end
266
+
243
267
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
244
268
  metadata[:"x-goog-request-params"] ||= request_params_header
245
269
 
@@ -290,6 +314,21 @@ module Google
290
314
  #
291
315
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
292
316
  #
317
+ # @example Basic example
318
+ # require "google/cloud/network_management/v1"
319
+ #
320
+ # # Create a client object. The client can be reused for multiple calls.
321
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
322
+ #
323
+ # # Create a request. To set request fields, pass in keyword arguments.
324
+ # request = Google::Cloud::NetworkManagement::V1::GetConnectivityTestRequest.new
325
+ #
326
+ # # Call the get_connectivity_test method.
327
+ # result = client.get_connectivity_test request
328
+ #
329
+ # # The returned object is of type Google::Cloud::NetworkManagement::V1::ConnectivityTest.
330
+ # p result
331
+ #
293
332
  def get_connectivity_test request, options = nil
294
333
  raise ::ArgumentError, "request must be provided" if request.nil?
295
334
 
@@ -307,9 +346,11 @@ module Google
307
346
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
308
347
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
309
348
 
310
- header_params = {
311
- "name" => request.name
312
- }
349
+ header_params = {}
350
+ if request.name
351
+ header_params["name"] = request.name
352
+ end
353
+
313
354
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
314
355
  metadata[:"x-goog-request-params"] ||= request_params_header
315
356
 
@@ -382,6 +423,28 @@ module Google
382
423
  #
383
424
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
384
425
  #
426
+ # @example Basic example
427
+ # require "google/cloud/network_management/v1"
428
+ #
429
+ # # Create a client object. The client can be reused for multiple calls.
430
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
431
+ #
432
+ # # Create a request. To set request fields, pass in keyword arguments.
433
+ # request = Google::Cloud::NetworkManagement::V1::CreateConnectivityTestRequest.new
434
+ #
435
+ # # Call the create_connectivity_test method.
436
+ # result = client.create_connectivity_test request
437
+ #
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:
441
+ # result.wait_until_done! timeout: 60
442
+ # if result.response?
443
+ # p result.response
444
+ # else
445
+ # puts "Error!"
446
+ # end
447
+ #
385
448
  def create_connectivity_test request, options = nil
386
449
  raise ::ArgumentError, "request must be provided" if request.nil?
387
450
 
@@ -399,9 +462,11 @@ module Google
399
462
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
400
463
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
401
464
 
402
- header_params = {
403
- "parent" => request.parent
404
- }
465
+ header_params = {}
466
+ if request.parent
467
+ header_params["parent"] = request.parent
468
+ end
469
+
405
470
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
406
471
  metadata[:"x-goog-request-params"] ||= request_params_header
407
472
 
@@ -467,6 +532,28 @@ module Google
467
532
  #
468
533
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
469
534
  #
535
+ # @example Basic example
536
+ # require "google/cloud/network_management/v1"
537
+ #
538
+ # # Create a client object. The client can be reused for multiple calls.
539
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
540
+ #
541
+ # # Create a request. To set request fields, pass in keyword arguments.
542
+ # request = Google::Cloud::NetworkManagement::V1::UpdateConnectivityTestRequest.new
543
+ #
544
+ # # Call the update_connectivity_test method.
545
+ # result = client.update_connectivity_test request
546
+ #
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:
550
+ # result.wait_until_done! timeout: 60
551
+ # if result.response?
552
+ # p result.response
553
+ # else
554
+ # puts "Error!"
555
+ # end
556
+ #
470
557
  def update_connectivity_test request, options = nil
471
558
  raise ::ArgumentError, "request must be provided" if request.nil?
472
559
 
@@ -484,9 +571,11 @@ module Google
484
571
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
485
572
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
486
573
 
487
- header_params = {
488
- "resource.name" => request.resource.name
489
- }
574
+ header_params = {}
575
+ if request.resource&.name
576
+ header_params["resource.name"] = request.resource.name
577
+ end
578
+
490
579
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
491
580
  metadata[:"x-goog-request-params"] ||= request_params_header
492
581
 
@@ -548,6 +637,28 @@ module Google
548
637
  #
549
638
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
550
639
  #
640
+ # @example Basic example
641
+ # require "google/cloud/network_management/v1"
642
+ #
643
+ # # Create a client object. The client can be reused for multiple calls.
644
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
645
+ #
646
+ # # Create a request. To set request fields, pass in keyword arguments.
647
+ # request = Google::Cloud::NetworkManagement::V1::RerunConnectivityTestRequest.new
648
+ #
649
+ # # Call the rerun_connectivity_test method.
650
+ # result = client.rerun_connectivity_test request
651
+ #
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:
655
+ # result.wait_until_done! timeout: 60
656
+ # if result.response?
657
+ # p result.response
658
+ # else
659
+ # puts "Error!"
660
+ # end
661
+ #
551
662
  def rerun_connectivity_test request, options = nil
552
663
  raise ::ArgumentError, "request must be provided" if request.nil?
553
664
 
@@ -565,9 +676,11 @@ module Google
565
676
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
566
677
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
567
678
 
568
- header_params = {
569
- "name" => request.name
570
- }
679
+ header_params = {}
680
+ if request.name
681
+ header_params["name"] = request.name
682
+ end
683
+
571
684
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
572
685
  metadata[:"x-goog-request-params"] ||= request_params_header
573
686
 
@@ -618,6 +731,28 @@ module Google
618
731
  #
619
732
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
620
733
  #
734
+ # @example Basic example
735
+ # require "google/cloud/network_management/v1"
736
+ #
737
+ # # Create a client object. The client can be reused for multiple calls.
738
+ # client = Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
739
+ #
740
+ # # Create a request. To set request fields, pass in keyword arguments.
741
+ # request = Google::Cloud::NetworkManagement::V1::DeleteConnectivityTestRequest.new
742
+ #
743
+ # # Call the delete_connectivity_test method.
744
+ # result = client.delete_connectivity_test request
745
+ #
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:
749
+ # result.wait_until_done! timeout: 60
750
+ # if result.response?
751
+ # p result.response
752
+ # else
753
+ # puts "Error!"
754
+ # end
755
+ #
621
756
  def delete_connectivity_test request, options = nil
622
757
  raise ::ArgumentError, "request must be provided" if request.nil?
623
758
 
@@ -635,9 +770,11 @@ module Google
635
770
  gapic_version: ::Google::Cloud::NetworkManagement::V1::VERSION
636
771
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
637
772
 
638
- header_params = {
639
- "name" => request.name
640
- }
773
+ header_params = {}
774
+ if request.name
775
+ header_params["name"] = request.name
776
+ end
777
+
641
778
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
642
779
  metadata[:"x-goog-request-params"] ||= request_params_header
643
780
 
@@ -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.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/network_management/v1"
29
31
  # client = ::Google::Cloud::NetworkManagement::V1::ReachabilityService::Client.new
30
32
  #
@@ -8,7 +8,7 @@ require 'google/api/resource_pb'
8
8
  require 'google/cloud/networkmanagement/v1/trace_pb'
9
9
  require 'google/protobuf/timestamp_pb'
10
10
  require 'google/rpc/status_pb'
11
- require 'google/api/annotations_pb'
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
@@ -6,11 +6,11 @@ require 'google/protobuf'
6
6
  require 'google/api/annotations_pb'
7
7
  require 'google/api/client_pb'
8
8
  require 'google/api/field_behavior_pb'
9
- require 'google/api/resource_pb'
10
9
  require 'google/cloud/networkmanagement/v1/connectivity_test_pb'
11
10
  require 'google/longrunning/operations_pb'
12
11
  require 'google/protobuf/field_mask_pb'
13
12
  require 'google/protobuf/timestamp_pb'
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
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
7
  add_file("google/cloud/networkmanagement/v1/trace.proto", :syntax => :proto3) do
9
8
  add_message "google.cloud.networkmanagement.v1.Trace" do
@@ -227,6 +226,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
227
226
  add_message "google.cloud.networkmanagement.v1.AbortInfo" do
228
227
  optional :cause, :enum, 1, "google.cloud.networkmanagement.v1.AbortInfo.Cause"
229
228
  optional :resource_uri, :string, 2
229
+ repeated :projects_missing_permission, :string, 3
230
230
  end
231
231
  add_enum "google.cloud.networkmanagement.v1.AbortInfo.Cause" do
232
232
  value :CAUSE_UNSPECIFIED, 0
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -710,6 +710,11 @@ module Google
710
710
  # @!attribute [rw] resource_uri
711
711
  # @return [::String]
712
712
  # URI of the resource that caused the abort.
713
+ # @!attribute [rw] projects_missing_permission
714
+ # @return [::Array<::String>]
715
+ # List of project IDs that the user has specified in the request but does
716
+ # not have permission to access network configs. Analysis is aborted in this
717
+ # case with the PERMISSION_DENIED cause.
713
718
  class AbortInfo
714
719
  include ::Google::Protobuf::MessageExts
715
720
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
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.2.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: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2022-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.2.17
217
+ rubygems_version: 3.3.14
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: API Client library for the Network Management V1 API