google-cloud-network_security-v1beta1 0.1.0 → 0.1.1

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: e0f3e917ba343e473e0ad1c8d6f858819d2226186476bd0fb327f00192242a21
4
- data.tar.gz: c527f49d79cc6d922c720ed781133f0cad023c49457a0170f02812e2e6b17d3c
3
+ metadata.gz: 29ae47026f50f0224991c1f763d86741401c10a19293f80deb2263896894ebbc
4
+ data.tar.gz: 6a082bd76d68a235340335f0aaab4eb6fb158a1e062d474915a75ef738d72d4e
5
5
  SHA512:
6
- metadata.gz: c801806536fa9c22eb10c70fbe59a280a4769271d4644215d0dfc99d5e1fbd029ab299945539df18fe66caa8fc898226eda567ef2451a4a2c6c72ec62f26704e
7
- data.tar.gz: 36ec3abe5168ec768d264d1d78b4777e4c5078cab26808bbad830175d496e029d1dad0bb96bebb3fa3d3a4aa51640513a8e12cf8fec5381e533ea9454e58e662
6
+ metadata.gz: 639fa61cda74280a676f0b501adecf3281547c163e584b6ba9e7901aa8eb4e5983f4b14a5e1b93181a5eea5005e857f47289759fe1af6e9aede746086080d3b3
7
+ data.tar.gz: 6a8b63159a06c99a7e958edd405517f4cc1a9e8c00baee37cd4c535794fa9a0c5cfb8e39c853ba6387543ebf468c4fea5d64b2c66706effe6f004b8a03a4fd34
@@ -194,6 +194,27 @@ module Google
194
194
  #
195
195
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
196
196
  #
197
+ # @example Basic example
198
+ # require "google/cloud/network_security/v1beta1"
199
+ #
200
+ # # Create a client object. The client can be reused for multiple calls.
201
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
202
+ #
203
+ # # Create a request. To set request fields, pass in keyword arguments.
204
+ # request = Google::Cloud::NetworkSecurity::V1beta1::ListAuthorizationPoliciesRequest.new
205
+ #
206
+ # # Call the list_authorization_policies method.
207
+ # result = client.list_authorization_policies request
208
+ #
209
+ # # The returned object is of type Gapic::PagedEnumerable. You can
210
+ # # iterate over all elements by calling #each, and the enumerable
211
+ # # will lazily make API calls to fetch subsequent pages. Other
212
+ # # methods are also available for managing paging directly.
213
+ # result.each do |response|
214
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy.
215
+ # p response
216
+ # end
217
+ #
197
218
  def list_authorization_policies request, options = nil
198
219
  raise ::ArgumentError, "request must be provided" if request.nil?
199
220
 
@@ -211,9 +232,11 @@ module Google
211
232
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
212
233
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
213
234
 
214
- header_params = {
215
- "parent" => request.parent
216
- }
235
+ header_params = {}
236
+ if request.parent
237
+ header_params["parent"] = request.parent
238
+ end
239
+
217
240
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
218
241
  metadata[:"x-goog-request-params"] ||= request_params_header
219
242
 
@@ -264,6 +287,21 @@ module Google
264
287
  #
265
288
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
266
289
  #
290
+ # @example Basic example
291
+ # require "google/cloud/network_security/v1beta1"
292
+ #
293
+ # # Create a client object. The client can be reused for multiple calls.
294
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
295
+ #
296
+ # # Create a request. To set request fields, pass in keyword arguments.
297
+ # request = Google::Cloud::NetworkSecurity::V1beta1::GetAuthorizationPolicyRequest.new
298
+ #
299
+ # # Call the get_authorization_policy method.
300
+ # result = client.get_authorization_policy request
301
+ #
302
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy.
303
+ # p result
304
+ #
267
305
  def get_authorization_policy request, options = nil
268
306
  raise ::ArgumentError, "request must be provided" if request.nil?
269
307
 
@@ -281,9 +319,11 @@ module Google
281
319
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
282
320
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
283
321
 
284
- header_params = {
285
- "name" => request.name
286
- }
322
+ header_params = {}
323
+ if request.name
324
+ header_params["name"] = request.name
325
+ end
326
+
287
327
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
288
328
  metadata[:"x-goog-request-params"] ||= request_params_header
289
329
 
@@ -340,6 +380,28 @@ module Google
340
380
  #
341
381
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
342
382
  #
383
+ # @example Basic example
384
+ # require "google/cloud/network_security/v1beta1"
385
+ #
386
+ # # Create a client object. The client can be reused for multiple calls.
387
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
388
+ #
389
+ # # Create a request. To set request fields, pass in keyword arguments.
390
+ # request = Google::Cloud::NetworkSecurity::V1beta1::CreateAuthorizationPolicyRequest.new
391
+ #
392
+ # # Call the create_authorization_policy method.
393
+ # result = client.create_authorization_policy request
394
+ #
395
+ # # The returned object is of type Gapic::Operation. You can use this
396
+ # # object to check the status of an operation, cancel it, or wait
397
+ # # for results. Here is how to block until completion:
398
+ # result.wait_until_done! timeout: 60
399
+ # if result.response?
400
+ # p result.response
401
+ # else
402
+ # puts "Error!"
403
+ # end
404
+ #
343
405
  def create_authorization_policy request, options = nil
344
406
  raise ::ArgumentError, "request must be provided" if request.nil?
345
407
 
@@ -357,9 +419,11 @@ module Google
357
419
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
358
420
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
359
421
 
360
- header_params = {
361
- "parent" => request.parent
362
- }
422
+ header_params = {}
423
+ if request.parent
424
+ header_params["parent"] = request.parent
425
+ end
426
+
363
427
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
364
428
  metadata[:"x-goog-request-params"] ||= request_params_header
365
429
 
@@ -415,6 +479,28 @@ module Google
415
479
  #
416
480
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
417
481
  #
482
+ # @example Basic example
483
+ # require "google/cloud/network_security/v1beta1"
484
+ #
485
+ # # Create a client object. The client can be reused for multiple calls.
486
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
487
+ #
488
+ # # Create a request. To set request fields, pass in keyword arguments.
489
+ # request = Google::Cloud::NetworkSecurity::V1beta1::UpdateAuthorizationPolicyRequest.new
490
+ #
491
+ # # Call the update_authorization_policy method.
492
+ # result = client.update_authorization_policy request
493
+ #
494
+ # # The returned object is of type Gapic::Operation. You can use this
495
+ # # object to check the status of an operation, cancel it, or wait
496
+ # # for results. Here is how to block until completion:
497
+ # result.wait_until_done! timeout: 60
498
+ # if result.response?
499
+ # p result.response
500
+ # else
501
+ # puts "Error!"
502
+ # end
503
+ #
418
504
  def update_authorization_policy request, options = nil
419
505
  raise ::ArgumentError, "request must be provided" if request.nil?
420
506
 
@@ -432,9 +518,11 @@ module Google
432
518
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
433
519
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
434
520
 
435
- header_params = {
436
- "authorization_policy.name" => request.authorization_policy.name
437
- }
521
+ header_params = {}
522
+ if request.authorization_policy&.name
523
+ header_params["authorization_policy.name"] = request.authorization_policy.name
524
+ end
525
+
438
526
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
439
527
  metadata[:"x-goog-request-params"] ||= request_params_header
440
528
 
@@ -485,6 +573,28 @@ module Google
485
573
  #
486
574
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
487
575
  #
576
+ # @example Basic example
577
+ # require "google/cloud/network_security/v1beta1"
578
+ #
579
+ # # Create a client object. The client can be reused for multiple calls.
580
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
581
+ #
582
+ # # Create a request. To set request fields, pass in keyword arguments.
583
+ # request = Google::Cloud::NetworkSecurity::V1beta1::DeleteAuthorizationPolicyRequest.new
584
+ #
585
+ # # Call the delete_authorization_policy method.
586
+ # result = client.delete_authorization_policy request
587
+ #
588
+ # # The returned object is of type Gapic::Operation. You can use this
589
+ # # object to check the status of an operation, cancel it, or wait
590
+ # # for results. Here is how to block until completion:
591
+ # result.wait_until_done! timeout: 60
592
+ # if result.response?
593
+ # p result.response
594
+ # else
595
+ # puts "Error!"
596
+ # end
597
+ #
488
598
  def delete_authorization_policy request, options = nil
489
599
  raise ::ArgumentError, "request must be provided" if request.nil?
490
600
 
@@ -502,9 +612,11 @@ module Google
502
612
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
503
613
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
504
614
 
505
- header_params = {
506
- "name" => request.name
507
- }
615
+ header_params = {}
616
+ if request.name
617
+ header_params["name"] = request.name
618
+ end
619
+
508
620
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
509
621
  metadata[:"x-goog-request-params"] ||= request_params_header
510
622
 
@@ -562,6 +674,27 @@ module Google
562
674
  #
563
675
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
564
676
  #
677
+ # @example Basic example
678
+ # require "google/cloud/network_security/v1beta1"
679
+ #
680
+ # # Create a client object. The client can be reused for multiple calls.
681
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
682
+ #
683
+ # # Create a request. To set request fields, pass in keyword arguments.
684
+ # request = Google::Cloud::NetworkSecurity::V1beta1::ListServerTlsPoliciesRequest.new
685
+ #
686
+ # # Call the list_server_tls_policies method.
687
+ # result = client.list_server_tls_policies request
688
+ #
689
+ # # The returned object is of type Gapic::PagedEnumerable. You can
690
+ # # iterate over all elements by calling #each, and the enumerable
691
+ # # will lazily make API calls to fetch subsequent pages. Other
692
+ # # methods are also available for managing paging directly.
693
+ # result.each do |response|
694
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy.
695
+ # p response
696
+ # end
697
+ #
565
698
  def list_server_tls_policies request, options = nil
566
699
  raise ::ArgumentError, "request must be provided" if request.nil?
567
700
 
@@ -579,9 +712,11 @@ module Google
579
712
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
580
713
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
581
714
 
582
- header_params = {
583
- "parent" => request.parent
584
- }
715
+ header_params = {}
716
+ if request.parent
717
+ header_params["parent"] = request.parent
718
+ end
719
+
585
720
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
586
721
  metadata[:"x-goog-request-params"] ||= request_params_header
587
722
 
@@ -632,6 +767,21 @@ module Google
632
767
  #
633
768
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
634
769
  #
770
+ # @example Basic example
771
+ # require "google/cloud/network_security/v1beta1"
772
+ #
773
+ # # Create a client object. The client can be reused for multiple calls.
774
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
775
+ #
776
+ # # Create a request. To set request fields, pass in keyword arguments.
777
+ # request = Google::Cloud::NetworkSecurity::V1beta1::GetServerTlsPolicyRequest.new
778
+ #
779
+ # # Call the get_server_tls_policy method.
780
+ # result = client.get_server_tls_policy request
781
+ #
782
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy.
783
+ # p result
784
+ #
635
785
  def get_server_tls_policy request, options = nil
636
786
  raise ::ArgumentError, "request must be provided" if request.nil?
637
787
 
@@ -649,9 +799,11 @@ module Google
649
799
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
650
800
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
651
801
 
652
- header_params = {
653
- "name" => request.name
654
- }
802
+ header_params = {}
803
+ if request.name
804
+ header_params["name"] = request.name
805
+ end
806
+
655
807
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
656
808
  metadata[:"x-goog-request-params"] ||= request_params_header
657
809
 
@@ -707,6 +859,28 @@ module Google
707
859
  #
708
860
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
709
861
  #
862
+ # @example Basic example
863
+ # require "google/cloud/network_security/v1beta1"
864
+ #
865
+ # # Create a client object. The client can be reused for multiple calls.
866
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
867
+ #
868
+ # # Create a request. To set request fields, pass in keyword arguments.
869
+ # request = Google::Cloud::NetworkSecurity::V1beta1::CreateServerTlsPolicyRequest.new
870
+ #
871
+ # # Call the create_server_tls_policy method.
872
+ # result = client.create_server_tls_policy request
873
+ #
874
+ # # The returned object is of type Gapic::Operation. You can use this
875
+ # # object to check the status of an operation, cancel it, or wait
876
+ # # for results. Here is how to block until completion:
877
+ # result.wait_until_done! timeout: 60
878
+ # if result.response?
879
+ # p result.response
880
+ # else
881
+ # puts "Error!"
882
+ # end
883
+ #
710
884
  def create_server_tls_policy request, options = nil
711
885
  raise ::ArgumentError, "request must be provided" if request.nil?
712
886
 
@@ -724,9 +898,11 @@ module Google
724
898
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
725
899
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
726
900
 
727
- header_params = {
728
- "parent" => request.parent
729
- }
901
+ header_params = {}
902
+ if request.parent
903
+ header_params["parent"] = request.parent
904
+ end
905
+
730
906
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
731
907
  metadata[:"x-goog-request-params"] ||= request_params_header
732
908
 
@@ -783,6 +959,28 @@ module Google
783
959
  #
784
960
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
785
961
  #
962
+ # @example Basic example
963
+ # require "google/cloud/network_security/v1beta1"
964
+ #
965
+ # # Create a client object. The client can be reused for multiple calls.
966
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
967
+ #
968
+ # # Create a request. To set request fields, pass in keyword arguments.
969
+ # request = Google::Cloud::NetworkSecurity::V1beta1::UpdateServerTlsPolicyRequest.new
970
+ #
971
+ # # Call the update_server_tls_policy method.
972
+ # result = client.update_server_tls_policy request
973
+ #
974
+ # # The returned object is of type Gapic::Operation. You can use this
975
+ # # object to check the status of an operation, cancel it, or wait
976
+ # # for results. Here is how to block until completion:
977
+ # result.wait_until_done! timeout: 60
978
+ # if result.response?
979
+ # p result.response
980
+ # else
981
+ # puts "Error!"
982
+ # end
983
+ #
786
984
  def update_server_tls_policy request, options = nil
787
985
  raise ::ArgumentError, "request must be provided" if request.nil?
788
986
 
@@ -800,9 +998,11 @@ module Google
800
998
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
801
999
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
802
1000
 
803
- header_params = {
804
- "server_tls_policy.name" => request.server_tls_policy.name
805
- }
1001
+ header_params = {}
1002
+ if request.server_tls_policy&.name
1003
+ header_params["server_tls_policy.name"] = request.server_tls_policy.name
1004
+ end
1005
+
806
1006
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
807
1007
  metadata[:"x-goog-request-params"] ||= request_params_header
808
1008
 
@@ -853,6 +1053,28 @@ module Google
853
1053
  #
854
1054
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
855
1055
  #
1056
+ # @example Basic example
1057
+ # require "google/cloud/network_security/v1beta1"
1058
+ #
1059
+ # # Create a client object. The client can be reused for multiple calls.
1060
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
1061
+ #
1062
+ # # Create a request. To set request fields, pass in keyword arguments.
1063
+ # request = Google::Cloud::NetworkSecurity::V1beta1::DeleteServerTlsPolicyRequest.new
1064
+ #
1065
+ # # Call the delete_server_tls_policy method.
1066
+ # result = client.delete_server_tls_policy request
1067
+ #
1068
+ # # The returned object is of type Gapic::Operation. You can use this
1069
+ # # object to check the status of an operation, cancel it, or wait
1070
+ # # for results. Here is how to block until completion:
1071
+ # result.wait_until_done! timeout: 60
1072
+ # if result.response?
1073
+ # p result.response
1074
+ # else
1075
+ # puts "Error!"
1076
+ # end
1077
+ #
856
1078
  def delete_server_tls_policy request, options = nil
857
1079
  raise ::ArgumentError, "request must be provided" if request.nil?
858
1080
 
@@ -870,9 +1092,11 @@ module Google
870
1092
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
871
1093
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
872
1094
 
873
- header_params = {
874
- "name" => request.name
875
- }
1095
+ header_params = {}
1096
+ if request.name
1097
+ header_params["name"] = request.name
1098
+ end
1099
+
876
1100
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
877
1101
  metadata[:"x-goog-request-params"] ||= request_params_header
878
1102
 
@@ -930,6 +1154,27 @@ module Google
930
1154
  #
931
1155
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
932
1156
  #
1157
+ # @example Basic example
1158
+ # require "google/cloud/network_security/v1beta1"
1159
+ #
1160
+ # # Create a client object. The client can be reused for multiple calls.
1161
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
1162
+ #
1163
+ # # Create a request. To set request fields, pass in keyword arguments.
1164
+ # request = Google::Cloud::NetworkSecurity::V1beta1::ListClientTlsPoliciesRequest.new
1165
+ #
1166
+ # # Call the list_client_tls_policies method.
1167
+ # result = client.list_client_tls_policies request
1168
+ #
1169
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1170
+ # # iterate over all elements by calling #each, and the enumerable
1171
+ # # will lazily make API calls to fetch subsequent pages. Other
1172
+ # # methods are also available for managing paging directly.
1173
+ # result.each do |response|
1174
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy.
1175
+ # p response
1176
+ # end
1177
+ #
933
1178
  def list_client_tls_policies request, options = nil
934
1179
  raise ::ArgumentError, "request must be provided" if request.nil?
935
1180
 
@@ -947,9 +1192,11 @@ module Google
947
1192
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
948
1193
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
949
1194
 
950
- header_params = {
951
- "parent" => request.parent
952
- }
1195
+ header_params = {}
1196
+ if request.parent
1197
+ header_params["parent"] = request.parent
1198
+ end
1199
+
953
1200
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
954
1201
  metadata[:"x-goog-request-params"] ||= request_params_header
955
1202
 
@@ -1000,6 +1247,21 @@ module Google
1000
1247
  #
1001
1248
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1002
1249
  #
1250
+ # @example Basic example
1251
+ # require "google/cloud/network_security/v1beta1"
1252
+ #
1253
+ # # Create a client object. The client can be reused for multiple calls.
1254
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
1255
+ #
1256
+ # # Create a request. To set request fields, pass in keyword arguments.
1257
+ # request = Google::Cloud::NetworkSecurity::V1beta1::GetClientTlsPolicyRequest.new
1258
+ #
1259
+ # # Call the get_client_tls_policy method.
1260
+ # result = client.get_client_tls_policy request
1261
+ #
1262
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy.
1263
+ # p result
1264
+ #
1003
1265
  def get_client_tls_policy request, options = nil
1004
1266
  raise ::ArgumentError, "request must be provided" if request.nil?
1005
1267
 
@@ -1017,9 +1279,11 @@ module Google
1017
1279
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
1018
1280
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1019
1281
 
1020
- header_params = {
1021
- "name" => request.name
1022
- }
1282
+ header_params = {}
1283
+ if request.name
1284
+ header_params["name"] = request.name
1285
+ end
1286
+
1023
1287
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1024
1288
  metadata[:"x-goog-request-params"] ||= request_params_header
1025
1289
 
@@ -1075,6 +1339,28 @@ module Google
1075
1339
  #
1076
1340
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1077
1341
  #
1342
+ # @example Basic example
1343
+ # require "google/cloud/network_security/v1beta1"
1344
+ #
1345
+ # # Create a client object. The client can be reused for multiple calls.
1346
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
1347
+ #
1348
+ # # Create a request. To set request fields, pass in keyword arguments.
1349
+ # request = Google::Cloud::NetworkSecurity::V1beta1::CreateClientTlsPolicyRequest.new
1350
+ #
1351
+ # # Call the create_client_tls_policy method.
1352
+ # result = client.create_client_tls_policy request
1353
+ #
1354
+ # # The returned object is of type Gapic::Operation. You can use this
1355
+ # # object to check the status of an operation, cancel it, or wait
1356
+ # # for results. Here is how to block until completion:
1357
+ # result.wait_until_done! timeout: 60
1358
+ # if result.response?
1359
+ # p result.response
1360
+ # else
1361
+ # puts "Error!"
1362
+ # end
1363
+ #
1078
1364
  def create_client_tls_policy request, options = nil
1079
1365
  raise ::ArgumentError, "request must be provided" if request.nil?
1080
1366
 
@@ -1092,9 +1378,11 @@ module Google
1092
1378
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
1093
1379
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1094
1380
 
1095
- header_params = {
1096
- "parent" => request.parent
1097
- }
1381
+ header_params = {}
1382
+ if request.parent
1383
+ header_params["parent"] = request.parent
1384
+ end
1385
+
1098
1386
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1099
1387
  metadata[:"x-goog-request-params"] ||= request_params_header
1100
1388
 
@@ -1151,6 +1439,28 @@ module Google
1151
1439
  #
1152
1440
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1153
1441
  #
1442
+ # @example Basic example
1443
+ # require "google/cloud/network_security/v1beta1"
1444
+ #
1445
+ # # Create a client object. The client can be reused for multiple calls.
1446
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
1447
+ #
1448
+ # # Create a request. To set request fields, pass in keyword arguments.
1449
+ # request = Google::Cloud::NetworkSecurity::V1beta1::UpdateClientTlsPolicyRequest.new
1450
+ #
1451
+ # # Call the update_client_tls_policy method.
1452
+ # result = client.update_client_tls_policy request
1453
+ #
1454
+ # # The returned object is of type Gapic::Operation. You can use this
1455
+ # # object to check the status of an operation, cancel it, or wait
1456
+ # # for results. Here is how to block until completion:
1457
+ # result.wait_until_done! timeout: 60
1458
+ # if result.response?
1459
+ # p result.response
1460
+ # else
1461
+ # puts "Error!"
1462
+ # end
1463
+ #
1154
1464
  def update_client_tls_policy request, options = nil
1155
1465
  raise ::ArgumentError, "request must be provided" if request.nil?
1156
1466
 
@@ -1168,9 +1478,11 @@ module Google
1168
1478
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
1169
1479
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1170
1480
 
1171
- header_params = {
1172
- "client_tls_policy.name" => request.client_tls_policy.name
1173
- }
1481
+ header_params = {}
1482
+ if request.client_tls_policy&.name
1483
+ header_params["client_tls_policy.name"] = request.client_tls_policy.name
1484
+ end
1485
+
1174
1486
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1175
1487
  metadata[:"x-goog-request-params"] ||= request_params_header
1176
1488
 
@@ -1221,6 +1533,28 @@ module Google
1221
1533
  #
1222
1534
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1223
1535
  #
1536
+ # @example Basic example
1537
+ # require "google/cloud/network_security/v1beta1"
1538
+ #
1539
+ # # Create a client object. The client can be reused for multiple calls.
1540
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
1541
+ #
1542
+ # # Create a request. To set request fields, pass in keyword arguments.
1543
+ # request = Google::Cloud::NetworkSecurity::V1beta1::DeleteClientTlsPolicyRequest.new
1544
+ #
1545
+ # # Call the delete_client_tls_policy method.
1546
+ # result = client.delete_client_tls_policy request
1547
+ #
1548
+ # # The returned object is of type Gapic::Operation. You can use this
1549
+ # # object to check the status of an operation, cancel it, or wait
1550
+ # # for results. Here is how to block until completion:
1551
+ # result.wait_until_done! timeout: 60
1552
+ # if result.response?
1553
+ # p result.response
1554
+ # else
1555
+ # puts "Error!"
1556
+ # end
1557
+ #
1224
1558
  def delete_client_tls_policy request, options = nil
1225
1559
  raise ::ArgumentError, "request must be provided" if request.nil?
1226
1560
 
@@ -1238,9 +1572,11 @@ module Google
1238
1572
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
1239
1573
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1240
1574
 
1241
- header_params = {
1242
- "name" => request.name
1243
- }
1575
+ header_params = {}
1576
+ if request.name
1577
+ header_params["name"] = request.name
1578
+ end
1579
+
1244
1580
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1245
1581
  metadata[:"x-goog-request-params"] ||= request_params_header
1246
1582
 
@@ -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::NetworkSecurity::V1beta1::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::NetworkSecurity::V1beta1::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::NetworkSecurity::V1beta1::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::NetworkSecurity::V1beta1::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 NetworkSecurity
23
23
  module V1beta1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.1.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/networksecurity/v1beta1/authorization_policy.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/protobuf/field_mask_pb'
9
7
  require 'google/protobuf/timestamp_pb'
10
8
  require 'google/api/annotations_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/networksecurity/v1beta1/authorization_policy.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.networksecurity.v1beta1.AuthorizationPolicy" do
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/networksecurity/v1beta1/client_tls_policy.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/networksecurity/v1beta1/tls_pb'
9
7
  require 'google/protobuf/field_mask_pb'
10
8
  require 'google/protobuf/timestamp_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/networksecurity/v1beta1/client_tls_policy.proto", :syntax => :proto3) do
14
14
  add_message "google.cloud.networksecurity.v1beta1.ClientTlsPolicy" do
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/networksecurity/v1beta1/common.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/protobuf/timestamp_pb'
8
6
  require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/networksecurity/v1beta1/common.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.networksecurity.v1beta1.OperationMetadata" do
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/networksecurity/v1beta1/network_security.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/cloud/networksecurity/v1beta1/authorization_policy_pb'
9
7
  require 'google/cloud/networksecurity/v1beta1/client_tls_policy_pb'
10
8
  require 'google/cloud/networksecurity/v1beta1/server_tls_policy_pb'
11
9
  require 'google/longrunning/operations_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/cloud/networksecurity/v1beta1/network_security.proto", :syntax => :proto3) do
14
14
  end
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/networksecurity/v1beta1/server_tls_policy.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/networksecurity/v1beta1/tls_pb'
9
7
  require 'google/protobuf/field_mask_pb'
10
8
  require 'google/protobuf/timestamp_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/networksecurity/v1beta1/server_tls_policy.proto", :syntax => :proto3) do
14
14
  add_message "google.cloud.networksecurity.v1beta1.ServerTlsPolicy" do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/networksecurity/v1beta1/tls.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/networksecurity/v1beta1/tls.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.networksecurity.v1beta1.GrpcEndpoint" do
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.1.0
4
+ version: 0.1.1
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-09-23 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