google-cloud-network_security-v1beta1 0.5.1 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b85fba0bd5a02b79a0e3ff190c43fbbced9896fc2cb27f7a89e437f580bdff06
4
- data.tar.gz: 5ab86cbfa6dbc2c8946d07d748fde7cc4ec61106292ba1beb23452e80095604d
3
+ metadata.gz: b7006973144527acb5f5bef7a8252f95c23ca4b371e89abf23598d9edc6925c4
4
+ data.tar.gz: bd21c1dc609616a178a13f689848a476381f0356f51a268e09ac1e1dab1a5349
5
5
  SHA512:
6
- metadata.gz: 12f7f91f231d1dd24507ec05dc13f266684a827a9aa1dba38395d80203609b3cf507881f57ef7e685bc4b883e8eebefeea68909ad01f572e5c9f9def16995d33
7
- data.tar.gz: 2777ddd619ddd8c5196b954cd817b46d1b6dc9561b9b8384e66429f70d81598a476ba76049f80621b63421bf93191117ec24e4e9a19af4f0f38a704c3c53a528
6
+ metadata.gz: 3032184cbec3b8d6b7eac8205841bb8fffb3fabc4031a06db1991086c69943cc8aadc1dba77d699d35e9fca7e8617c52bf7f4d5e47ca0eba851c2e544d40e778
7
+ data.tar.gz: 9dd7c670a786be8c3e595fda0c1e3e4aee5210dc1b37213b1d0acb272ae468462f4cd874e1759ccd96cee1adcbe622f2001b4ca9b15caad6150253a51490852f
@@ -162,7 +162,8 @@ module Google
162
162
  credentials: credentials,
163
163
  endpoint: @config.endpoint,
164
164
  channel_args: @config.channel_args,
165
- interceptors: @config.interceptors
165
+ interceptors: @config.interceptors,
166
+ channel_pool_config: @config.channel_pool
166
167
  )
167
168
  end
168
169
 
@@ -1745,6 +1746,14 @@ module Google
1745
1746
  end
1746
1747
  end
1747
1748
 
1749
+ ##
1750
+ # Configuration for the channel pool
1751
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1752
+ #
1753
+ def channel_pool
1754
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1755
+ end
1756
+
1748
1757
  ##
1749
1758
  # Configuration RPC class for the NetworkSecurity API.
1750
1759
  #
@@ -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
  #
@@ -218,6 +218,26 @@ module Google
218
218
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy>]
219
219
  #
220
220
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
221
+ #
222
+ # @example Basic example
223
+ # require "google/cloud/network_security/v1beta1"
224
+ #
225
+ # # Create a client object. The client can be reused for multiple calls.
226
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
227
+ #
228
+ # # Create a request. To set request fields, pass in keyword arguments.
229
+ # request = Google::Cloud::NetworkSecurity::V1beta1::ListAuthorizationPoliciesRequest.new
230
+ #
231
+ # # Call the list_authorization_policies method.
232
+ # result = client.list_authorization_policies request
233
+ #
234
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
235
+ # # over elements, and API calls will be issued to fetch pages as needed.
236
+ # result.each do |item|
237
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy.
238
+ # p item
239
+ # end
240
+ #
221
241
  def list_authorization_policies request, options = nil
222
242
  raise ::ArgumentError, "request must be provided" if request.nil?
223
243
 
@@ -282,6 +302,22 @@ module Google
282
302
  # @return [::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy]
283
303
  #
284
304
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
305
+ #
306
+ # @example Basic example
307
+ # require "google/cloud/network_security/v1beta1"
308
+ #
309
+ # # Create a client object. The client can be reused for multiple calls.
310
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
311
+ #
312
+ # # Create a request. To set request fields, pass in keyword arguments.
313
+ # request = Google::Cloud::NetworkSecurity::V1beta1::GetAuthorizationPolicyRequest.new
314
+ #
315
+ # # Call the get_authorization_policy method.
316
+ # result = client.get_authorization_policy request
317
+ #
318
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy.
319
+ # p result
320
+ #
285
321
  def get_authorization_policy request, options = nil
286
322
  raise ::ArgumentError, "request must be provided" if request.nil?
287
323
 
@@ -352,6 +388,29 @@ module Google
352
388
  # @return [::Gapic::Operation]
353
389
  #
354
390
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
391
+ #
392
+ # @example Basic example
393
+ # require "google/cloud/network_security/v1beta1"
394
+ #
395
+ # # Create a client object. The client can be reused for multiple calls.
396
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
397
+ #
398
+ # # Create a request. To set request fields, pass in keyword arguments.
399
+ # request = Google::Cloud::NetworkSecurity::V1beta1::CreateAuthorizationPolicyRequest.new
400
+ #
401
+ # # Call the create_authorization_policy method.
402
+ # result = client.create_authorization_policy request
403
+ #
404
+ # # The returned object is of type Gapic::Operation. You can use it to
405
+ # # check the status of an operation, cancel it, or wait for results.
406
+ # # Here is how to wait for a response.
407
+ # result.wait_until_done! timeout: 60
408
+ # if result.response?
409
+ # p result.response
410
+ # else
411
+ # puts "No response received."
412
+ # end
413
+ #
355
414
  def create_authorization_policy request, options = nil
356
415
  raise ::ArgumentError, "request must be provided" if request.nil?
357
416
 
@@ -421,6 +480,29 @@ module Google
421
480
  # @return [::Gapic::Operation]
422
481
  #
423
482
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
483
+ #
484
+ # @example Basic example
485
+ # require "google/cloud/network_security/v1beta1"
486
+ #
487
+ # # Create a client object. The client can be reused for multiple calls.
488
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
489
+ #
490
+ # # Create a request. To set request fields, pass in keyword arguments.
491
+ # request = Google::Cloud::NetworkSecurity::V1beta1::UpdateAuthorizationPolicyRequest.new
492
+ #
493
+ # # Call the update_authorization_policy method.
494
+ # result = client.update_authorization_policy request
495
+ #
496
+ # # The returned object is of type Gapic::Operation. You can use it to
497
+ # # check the status of an operation, cancel it, or wait for results.
498
+ # # Here is how to wait for a response.
499
+ # result.wait_until_done! timeout: 60
500
+ # if result.response?
501
+ # p result.response
502
+ # else
503
+ # puts "No response received."
504
+ # end
505
+ #
424
506
  def update_authorization_policy request, options = nil
425
507
  raise ::ArgumentError, "request must be provided" if request.nil?
426
508
 
@@ -485,6 +567,29 @@ module Google
485
567
  # @return [::Gapic::Operation]
486
568
  #
487
569
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
570
+ #
571
+ # @example Basic example
572
+ # require "google/cloud/network_security/v1beta1"
573
+ #
574
+ # # Create a client object. The client can be reused for multiple calls.
575
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
576
+ #
577
+ # # Create a request. To set request fields, pass in keyword arguments.
578
+ # request = Google::Cloud::NetworkSecurity::V1beta1::DeleteAuthorizationPolicyRequest.new
579
+ #
580
+ # # Call the delete_authorization_policy method.
581
+ # result = client.delete_authorization_policy request
582
+ #
583
+ # # The returned object is of type Gapic::Operation. You can use it to
584
+ # # check the status of an operation, cancel it, or wait for results.
585
+ # # Here is how to wait for a response.
586
+ # result.wait_until_done! timeout: 60
587
+ # if result.response?
588
+ # p result.response
589
+ # else
590
+ # puts "No response received."
591
+ # end
592
+ #
488
593
  def delete_authorization_policy request, options = nil
489
594
  raise ::ArgumentError, "request must be provided" if request.nil?
490
595
 
@@ -556,6 +661,26 @@ module Google
556
661
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy>]
557
662
  #
558
663
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
664
+ #
665
+ # @example Basic example
666
+ # require "google/cloud/network_security/v1beta1"
667
+ #
668
+ # # Create a client object. The client can be reused for multiple calls.
669
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
670
+ #
671
+ # # Create a request. To set request fields, pass in keyword arguments.
672
+ # request = Google::Cloud::NetworkSecurity::V1beta1::ListServerTlsPoliciesRequest.new
673
+ #
674
+ # # Call the list_server_tls_policies method.
675
+ # result = client.list_server_tls_policies request
676
+ #
677
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
678
+ # # over elements, and API calls will be issued to fetch pages as needed.
679
+ # result.each do |item|
680
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy.
681
+ # p item
682
+ # end
683
+ #
559
684
  def list_server_tls_policies request, options = nil
560
685
  raise ::ArgumentError, "request must be provided" if request.nil?
561
686
 
@@ -620,6 +745,22 @@ module Google
620
745
  # @return [::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy]
621
746
  #
622
747
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
748
+ #
749
+ # @example Basic example
750
+ # require "google/cloud/network_security/v1beta1"
751
+ #
752
+ # # Create a client object. The client can be reused for multiple calls.
753
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
754
+ #
755
+ # # Create a request. To set request fields, pass in keyword arguments.
756
+ # request = Google::Cloud::NetworkSecurity::V1beta1::GetServerTlsPolicyRequest.new
757
+ #
758
+ # # Call the get_server_tls_policy method.
759
+ # result = client.get_server_tls_policy request
760
+ #
761
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy.
762
+ # p result
763
+ #
623
764
  def get_server_tls_policy request, options = nil
624
765
  raise ::ArgumentError, "request must be provided" if request.nil?
625
766
 
@@ -690,6 +831,29 @@ module Google
690
831
  # @return [::Gapic::Operation]
691
832
  #
692
833
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
834
+ #
835
+ # @example Basic example
836
+ # require "google/cloud/network_security/v1beta1"
837
+ #
838
+ # # Create a client object. The client can be reused for multiple calls.
839
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
840
+ #
841
+ # # Create a request. To set request fields, pass in keyword arguments.
842
+ # request = Google::Cloud::NetworkSecurity::V1beta1::CreateServerTlsPolicyRequest.new
843
+ #
844
+ # # Call the create_server_tls_policy method.
845
+ # result = client.create_server_tls_policy request
846
+ #
847
+ # # The returned object is of type Gapic::Operation. You can use it to
848
+ # # check the status of an operation, cancel it, or wait for results.
849
+ # # Here is how to wait for a response.
850
+ # result.wait_until_done! timeout: 60
851
+ # if result.response?
852
+ # p result.response
853
+ # else
854
+ # puts "No response received."
855
+ # end
856
+ #
693
857
  def create_server_tls_policy request, options = nil
694
858
  raise ::ArgumentError, "request must be provided" if request.nil?
695
859
 
@@ -760,6 +924,29 @@ module Google
760
924
  # @return [::Gapic::Operation]
761
925
  #
762
926
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
927
+ #
928
+ # @example Basic example
929
+ # require "google/cloud/network_security/v1beta1"
930
+ #
931
+ # # Create a client object. The client can be reused for multiple calls.
932
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
933
+ #
934
+ # # Create a request. To set request fields, pass in keyword arguments.
935
+ # request = Google::Cloud::NetworkSecurity::V1beta1::UpdateServerTlsPolicyRequest.new
936
+ #
937
+ # # Call the update_server_tls_policy method.
938
+ # result = client.update_server_tls_policy request
939
+ #
940
+ # # The returned object is of type Gapic::Operation. You can use it to
941
+ # # check the status of an operation, cancel it, or wait for results.
942
+ # # Here is how to wait for a response.
943
+ # result.wait_until_done! timeout: 60
944
+ # if result.response?
945
+ # p result.response
946
+ # else
947
+ # puts "No response received."
948
+ # end
949
+ #
763
950
  def update_server_tls_policy request, options = nil
764
951
  raise ::ArgumentError, "request must be provided" if request.nil?
765
952
 
@@ -824,6 +1011,29 @@ module Google
824
1011
  # @return [::Gapic::Operation]
825
1012
  #
826
1013
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1014
+ #
1015
+ # @example Basic example
1016
+ # require "google/cloud/network_security/v1beta1"
1017
+ #
1018
+ # # Create a client object. The client can be reused for multiple calls.
1019
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1020
+ #
1021
+ # # Create a request. To set request fields, pass in keyword arguments.
1022
+ # request = Google::Cloud::NetworkSecurity::V1beta1::DeleteServerTlsPolicyRequest.new
1023
+ #
1024
+ # # Call the delete_server_tls_policy method.
1025
+ # result = client.delete_server_tls_policy request
1026
+ #
1027
+ # # The returned object is of type Gapic::Operation. You can use it to
1028
+ # # check the status of an operation, cancel it, or wait for results.
1029
+ # # Here is how to wait for a response.
1030
+ # result.wait_until_done! timeout: 60
1031
+ # if result.response?
1032
+ # p result.response
1033
+ # else
1034
+ # puts "No response received."
1035
+ # end
1036
+ #
827
1037
  def delete_server_tls_policy request, options = nil
828
1038
  raise ::ArgumentError, "request must be provided" if request.nil?
829
1039
 
@@ -895,6 +1105,26 @@ module Google
895
1105
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy>]
896
1106
  #
897
1107
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1108
+ #
1109
+ # @example Basic example
1110
+ # require "google/cloud/network_security/v1beta1"
1111
+ #
1112
+ # # Create a client object. The client can be reused for multiple calls.
1113
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1114
+ #
1115
+ # # Create a request. To set request fields, pass in keyword arguments.
1116
+ # request = Google::Cloud::NetworkSecurity::V1beta1::ListClientTlsPoliciesRequest.new
1117
+ #
1118
+ # # Call the list_client_tls_policies method.
1119
+ # result = client.list_client_tls_policies request
1120
+ #
1121
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1122
+ # # over elements, and API calls will be issued to fetch pages as needed.
1123
+ # result.each do |item|
1124
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy.
1125
+ # p item
1126
+ # end
1127
+ #
898
1128
  def list_client_tls_policies request, options = nil
899
1129
  raise ::ArgumentError, "request must be provided" if request.nil?
900
1130
 
@@ -959,6 +1189,22 @@ module Google
959
1189
  # @return [::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy]
960
1190
  #
961
1191
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1192
+ #
1193
+ # @example Basic example
1194
+ # require "google/cloud/network_security/v1beta1"
1195
+ #
1196
+ # # Create a client object. The client can be reused for multiple calls.
1197
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1198
+ #
1199
+ # # Create a request. To set request fields, pass in keyword arguments.
1200
+ # request = Google::Cloud::NetworkSecurity::V1beta1::GetClientTlsPolicyRequest.new
1201
+ #
1202
+ # # Call the get_client_tls_policy method.
1203
+ # result = client.get_client_tls_policy request
1204
+ #
1205
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy.
1206
+ # p result
1207
+ #
962
1208
  def get_client_tls_policy request, options = nil
963
1209
  raise ::ArgumentError, "request must be provided" if request.nil?
964
1210
 
@@ -1029,6 +1275,29 @@ module Google
1029
1275
  # @return [::Gapic::Operation]
1030
1276
  #
1031
1277
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1278
+ #
1279
+ # @example Basic example
1280
+ # require "google/cloud/network_security/v1beta1"
1281
+ #
1282
+ # # Create a client object. The client can be reused for multiple calls.
1283
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1284
+ #
1285
+ # # Create a request. To set request fields, pass in keyword arguments.
1286
+ # request = Google::Cloud::NetworkSecurity::V1beta1::CreateClientTlsPolicyRequest.new
1287
+ #
1288
+ # # Call the create_client_tls_policy method.
1289
+ # result = client.create_client_tls_policy request
1290
+ #
1291
+ # # The returned object is of type Gapic::Operation. You can use it to
1292
+ # # check the status of an operation, cancel it, or wait for results.
1293
+ # # Here is how to wait for a response.
1294
+ # result.wait_until_done! timeout: 60
1295
+ # if result.response?
1296
+ # p result.response
1297
+ # else
1298
+ # puts "No response received."
1299
+ # end
1300
+ #
1032
1301
  def create_client_tls_policy request, options = nil
1033
1302
  raise ::ArgumentError, "request must be provided" if request.nil?
1034
1303
 
@@ -1099,6 +1368,29 @@ module Google
1099
1368
  # @return [::Gapic::Operation]
1100
1369
  #
1101
1370
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1371
+ #
1372
+ # @example Basic example
1373
+ # require "google/cloud/network_security/v1beta1"
1374
+ #
1375
+ # # Create a client object. The client can be reused for multiple calls.
1376
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1377
+ #
1378
+ # # Create a request. To set request fields, pass in keyword arguments.
1379
+ # request = Google::Cloud::NetworkSecurity::V1beta1::UpdateClientTlsPolicyRequest.new
1380
+ #
1381
+ # # Call the update_client_tls_policy method.
1382
+ # result = client.update_client_tls_policy request
1383
+ #
1384
+ # # The returned object is of type Gapic::Operation. You can use it to
1385
+ # # check the status of an operation, cancel it, or wait for results.
1386
+ # # Here is how to wait for a response.
1387
+ # result.wait_until_done! timeout: 60
1388
+ # if result.response?
1389
+ # p result.response
1390
+ # else
1391
+ # puts "No response received."
1392
+ # end
1393
+ #
1102
1394
  def update_client_tls_policy request, options = nil
1103
1395
  raise ::ArgumentError, "request must be provided" if request.nil?
1104
1396
 
@@ -1163,6 +1455,29 @@ module Google
1163
1455
  # @return [::Gapic::Operation]
1164
1456
  #
1165
1457
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1458
+ #
1459
+ # @example Basic example
1460
+ # require "google/cloud/network_security/v1beta1"
1461
+ #
1462
+ # # Create a client object. The client can be reused for multiple calls.
1463
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1464
+ #
1465
+ # # Create a request. To set request fields, pass in keyword arguments.
1466
+ # request = Google::Cloud::NetworkSecurity::V1beta1::DeleteClientTlsPolicyRequest.new
1467
+ #
1468
+ # # Call the delete_client_tls_policy method.
1469
+ # result = client.delete_client_tls_policy request
1470
+ #
1471
+ # # The returned object is of type Gapic::Operation. You can use it to
1472
+ # # check the status of an operation, cancel it, or wait for results.
1473
+ # # Here is how to wait for a response.
1474
+ # result.wait_until_done! timeout: 60
1475
+ # if result.response?
1476
+ # p result.response
1477
+ # else
1478
+ # puts "No response received."
1479
+ # end
1480
+ #
1166
1481
  def delete_client_tls_policy request, options = nil
1167
1482
  raise ::ArgumentError, "request must be provided" if request.nil?
1168
1483
 
@@ -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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module NetworkSecurity
23
23
  module V1beta1
24
- VERSION = "0.5.1"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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_security-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.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-06-06 00:00:00.000000000 Z
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.1
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  - !ruby/object:Gem::Version
268
268
  version: '0'
269
269
  requirements: []
270
- rubygems_version: 3.4.2
270
+ rubygems_version: 3.4.19
271
271
  signing_key:
272
272
  specification_version: 4
273
273
  summary: API Client library for the Network Security V1beta1 API