google-cloud-network_security-v1beta1 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/network_security/v1beta1/network_security/client.rb +14 -3
- data/lib/google/cloud/network_security/v1beta1/network_security/operations.rb +13 -2
- data/lib/google/cloud/network_security/v1beta1/network_security/rest/client.rb +319 -2
- data/lib/google/cloud/network_security/v1beta1/network_security/rest/operations.rb +82 -5
- data/lib/google/cloud/network_security/v1beta1/network_security/rest/service_stub.rb +15 -15
- data/lib/google/cloud/network_security/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7006973144527acb5f5bef7a8252f95c23ca4b371e89abf23598d9edc6925c4
|
4
|
+
data.tar.gz: bd21c1dc609616a178a13f689848a476381f0356f51a268e09ac1e1dab1a5349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3032184cbec3b8d6b7eac8205841bb8fffb3fabc4031a06db1991086c69943cc8aadc1dba77d699d35e9fca7e8617c52bf7f4d5e47ca0eba851c2e544d40e778
|
7
|
+
data.tar.gz: 9dd7c670a786be8c3e595fda0c1e3e4aee5210dc1b37213b1d0acb272ae468462f4cd874e1759ccd96cee1adcbe622f2001b4ca9b15caad6150253a51490852f
|
@@ -129,7 +129,7 @@ module Google
|
|
129
129
|
credentials = @config.credentials
|
130
130
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
131
131
|
# but only if the default endpoint does not have a region prefix.
|
132
|
-
enable_self_signed_jwt = @config.endpoint ==
|
132
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
133
133
|
!@config.endpoint.split(".").first.include?("-")
|
134
134
|
credentials ||= Credentials.default scope: @config.scope,
|
135
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -1708,7 +1709,9 @@ module Google
|
|
1708
1709
|
class Configuration
|
1709
1710
|
extend ::Gapic::Config
|
1710
1711
|
|
1711
|
-
|
1712
|
+
DEFAULT_ENDPOINT = "networksecurity.googleapis.com"
|
1713
|
+
|
1714
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1712
1715
|
config_attr :credentials, nil do |value|
|
1713
1716
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1714
1717
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -1743,6 +1746,14 @@ module Google
|
|
1743
1746
|
end
|
1744
1747
|
end
|
1745
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
|
+
|
1746
1757
|
##
|
1747
1758
|
# Configuration RPC class for the NetworkSecurity API.
|
1748
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
|
@@ -664,7 +665,9 @@ module Google
|
|
664
665
|
class Configuration
|
665
666
|
extend ::Gapic::Config
|
666
667
|
|
667
|
-
|
668
|
+
DEFAULT_ENDPOINT = "networksecurity.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
671
|
config_attr :credentials, nil do |value|
|
669
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -699,6 +702,14 @@ module Google
|
|
699
702
|
end
|
700
703
|
end
|
701
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
|
+
|
702
713
|
##
|
703
714
|
# Configuration RPC class for the Operations API.
|
704
715
|
#
|
@@ -125,7 +125,7 @@ module Google
|
|
125
125
|
credentials = @config.credentials
|
126
126
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
127
127
|
# but only if the default endpoint does not have a region prefix.
|
128
|
-
enable_self_signed_jwt = @config.endpoint ==
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
129
129
|
!@config.endpoint.split(".").first.include?("-")
|
130
130
|
credentials ||= Credentials.default scope: @config.scope,
|
131
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -1272,7 +1587,9 @@ module Google
|
|
1272
1587
|
class Configuration
|
1273
1588
|
extend ::Gapic::Config
|
1274
1589
|
|
1275
|
-
|
1590
|
+
DEFAULT_ENDPOINT = "networksecurity.googleapis.com"
|
1591
|
+
|
1592
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1276
1593
|
config_attr :credentials, nil do |value|
|
1277
1594
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1278
1595
|
allowed.any? { |klass| klass === value }
|
@@ -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
|
|
@@ -446,7 +521,9 @@ module Google
|
|
446
521
|
class Configuration
|
447
522
|
extend ::Gapic::Config
|
448
523
|
|
449
|
-
|
524
|
+
DEFAULT_ENDPOINT = "networksecurity.googleapis.com"
|
525
|
+
|
526
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
527
|
config_attr :credentials, nil do |value|
|
451
528
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
529
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +644,7 @@ module Google
|
|
567
644
|
|
568
645
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
646
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
647
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
648
|
else
|
572
649
|
{}
|
573
650
|
end
|
@@ -605,7 +682,7 @@ module Google
|
|
605
682
|
|
606
683
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
684
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
685
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
686
|
else
|
610
687
|
{}
|
611
688
|
end
|
@@ -643,7 +720,7 @@ module Google
|
|
643
720
|
|
644
721
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
722
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
723
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
724
|
else
|
648
725
|
{}
|
649
726
|
end
|
@@ -681,7 +758,7 @@ module Google
|
|
681
758
|
|
682
759
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
760
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
761
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
762
|
else
|
686
763
|
{}
|
687
764
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_authorization_policies_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_authorization_policy_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_authorization_policy_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_authorization_policy_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_authorization_policy_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_server_tls_policies_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_server_tls_policy_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_server_tls_policy_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_server_tls_policy_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
end
|
@@ -401,7 +401,7 @@ module Google
|
|
401
401
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_server_tls_policy_request request_pb
|
403
403
|
query_string_params = if query_string_params.any?
|
404
|
-
query_string_params.to_h { |p| p.split
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
405
|
else
|
406
406
|
{}
|
407
407
|
end
|
@@ -439,7 +439,7 @@ module Google
|
|
439
439
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_client_tls_policies_request request_pb
|
441
441
|
query_string_params = if query_string_params.any?
|
442
|
-
query_string_params.to_h { |p| p.split
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
443
443
|
else
|
444
444
|
{}
|
445
445
|
end
|
@@ -477,7 +477,7 @@ module Google
|
|
477
477
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_client_tls_policy_request request_pb
|
479
479
|
query_string_params = if query_string_params.any?
|
480
|
-
query_string_params.to_h { |p| p.split
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
481
481
|
else
|
482
482
|
{}
|
483
483
|
end
|
@@ -515,7 +515,7 @@ module Google
|
|
515
515
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_client_tls_policy_request request_pb
|
517
517
|
query_string_params = if query_string_params.any?
|
518
|
-
query_string_params.to_h { |p| p.split
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
519
519
|
else
|
520
520
|
{}
|
521
521
|
end
|
@@ -553,7 +553,7 @@ module Google
|
|
553
553
|
|
554
554
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_client_tls_policy_request request_pb
|
555
555
|
query_string_params = if query_string_params.any?
|
556
|
-
query_string_params.to_h { |p| p.split
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
557
557
|
else
|
558
558
|
{}
|
559
559
|
end
|
@@ -591,7 +591,7 @@ module Google
|
|
591
591
|
|
592
592
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_client_tls_policy_request request_pb
|
593
593
|
query_string_params = if query_string_params.any?
|
594
|
-
query_string_params.to_h { |p| p.split
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
595
595
|
else
|
596
596
|
{}
|
597
597
|
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.
|
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-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.
|
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
|