google-cloud-web_security_scanner-v1 0.7.0 → 0.8.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 +4 -4
- data/lib/google/cloud/web_security_scanner/v1/version.rb +1 -1
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/client.rb +14 -3
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/client.rb +228 -2
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/service_stub.rb +13 -13
- 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: d581cad5b52f9d5b9d1706378ce23ddc2f9d9ed8638105014b0d131650168492
|
4
|
+
data.tar.gz: 26eefd07b13ebd54b5aad51a034e49e707dbaba00a1567703e686b011a8b0877
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8eed4c4081ce44e583930fb9e93631c1f2c04d4055e2e86008b17559405921cce62769416a32688d204b6cfa3bcb72ab087a6075fdda40ba5226fe5ac9d5a41
|
7
|
+
data.tar.gz: d480189820ae4ca6d89e15c9b894bda60a53bdcd1f658c4eeef7101c17bb1e622530cbc497d4ccd7794a8648e7d67d2f97a5481f267a0ed170d5d8c49a5be57e
|
@@ -176,7 +176,7 @@ module Google
|
|
176
176
|
credentials = @config.credentials
|
177
177
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
178
178
|
# but only if the default endpoint does not have a region prefix.
|
179
|
-
enable_self_signed_jwt = @config.endpoint ==
|
179
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
180
180
|
!@config.endpoint.split(".").first.include?("-")
|
181
181
|
credentials ||= Credentials.default scope: @config.scope,
|
182
182
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -191,7 +191,8 @@ module Google
|
|
191
191
|
credentials: credentials,
|
192
192
|
endpoint: @config.endpoint,
|
193
193
|
channel_args: @config.channel_args,
|
194
|
-
interceptors: @config.interceptors
|
194
|
+
interceptors: @config.interceptors,
|
195
|
+
channel_pool_config: @config.channel_pool
|
195
196
|
)
|
196
197
|
end
|
197
198
|
|
@@ -1468,7 +1469,9 @@ module Google
|
|
1468
1469
|
class Configuration
|
1469
1470
|
extend ::Gapic::Config
|
1470
1471
|
|
1471
|
-
|
1472
|
+
DEFAULT_ENDPOINT = "websecurityscanner.googleapis.com"
|
1473
|
+
|
1474
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1472
1475
|
config_attr :credentials, nil do |value|
|
1473
1476
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1474
1477
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -1503,6 +1506,14 @@ module Google
|
|
1503
1506
|
end
|
1504
1507
|
end
|
1505
1508
|
|
1509
|
+
##
|
1510
|
+
# Configuration for the channel pool
|
1511
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1512
|
+
#
|
1513
|
+
def channel_pool
|
1514
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1515
|
+
end
|
1516
|
+
|
1506
1517
|
##
|
1507
1518
|
# Configuration RPC class for the WebSecurityScanner API.
|
1508
1519
|
#
|
@@ -172,7 +172,7 @@ module Google
|
|
172
172
|
credentials = @config.credentials
|
173
173
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
174
174
|
# but only if the default endpoint does not have a region prefix.
|
175
|
-
enable_self_signed_jwt = @config.endpoint ==
|
175
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
176
176
|
!@config.endpoint.split(".").first.include?("-")
|
177
177
|
credentials ||= Credentials.default scope: @config.scope,
|
178
178
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -218,6 +218,22 @@ module Google
|
|
218
218
|
# @return [::Google::Cloud::WebSecurityScanner::V1::ScanConfig]
|
219
219
|
#
|
220
220
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
221
|
+
#
|
222
|
+
# @example Basic example
|
223
|
+
# require "google/cloud/web_security_scanner/v1"
|
224
|
+
#
|
225
|
+
# # Create a client object. The client can be reused for multiple calls.
|
226
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
227
|
+
#
|
228
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
229
|
+
# request = Google::Cloud::WebSecurityScanner::V1::CreateScanConfigRequest.new
|
230
|
+
#
|
231
|
+
# # Call the create_scan_config method.
|
232
|
+
# result = client.create_scan_config request
|
233
|
+
#
|
234
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanConfig.
|
235
|
+
# p result
|
236
|
+
#
|
221
237
|
def create_scan_config request, options = nil
|
222
238
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
223
239
|
|
@@ -281,6 +297,22 @@ module Google
|
|
281
297
|
# @return [::Google::Protobuf::Empty]
|
282
298
|
#
|
283
299
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
300
|
+
#
|
301
|
+
# @example Basic example
|
302
|
+
# require "google/cloud/web_security_scanner/v1"
|
303
|
+
#
|
304
|
+
# # Create a client object. The client can be reused for multiple calls.
|
305
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
306
|
+
#
|
307
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
308
|
+
# request = Google::Cloud::WebSecurityScanner::V1::DeleteScanConfigRequest.new
|
309
|
+
#
|
310
|
+
# # Call the delete_scan_config method.
|
311
|
+
# result = client.delete_scan_config request
|
312
|
+
#
|
313
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
314
|
+
# p result
|
315
|
+
#
|
284
316
|
def delete_scan_config request, options = nil
|
285
317
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
286
318
|
|
@@ -344,6 +376,22 @@ module Google
|
|
344
376
|
# @return [::Google::Cloud::WebSecurityScanner::V1::ScanConfig]
|
345
377
|
#
|
346
378
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
379
|
+
#
|
380
|
+
# @example Basic example
|
381
|
+
# require "google/cloud/web_security_scanner/v1"
|
382
|
+
#
|
383
|
+
# # Create a client object. The client can be reused for multiple calls.
|
384
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
385
|
+
#
|
386
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
387
|
+
# request = Google::Cloud::WebSecurityScanner::V1::GetScanConfigRequest.new
|
388
|
+
#
|
389
|
+
# # Call the get_scan_config method.
|
390
|
+
# result = client.get_scan_config request
|
391
|
+
#
|
392
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanConfig.
|
393
|
+
# p result
|
394
|
+
#
|
347
395
|
def get_scan_config request, options = nil
|
348
396
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
349
397
|
|
@@ -415,6 +463,26 @@ module Google
|
|
415
463
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::WebSecurityScanner::V1::ScanConfig>]
|
416
464
|
#
|
417
465
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
466
|
+
#
|
467
|
+
# @example Basic example
|
468
|
+
# require "google/cloud/web_security_scanner/v1"
|
469
|
+
#
|
470
|
+
# # Create a client object. The client can be reused for multiple calls.
|
471
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
472
|
+
#
|
473
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
474
|
+
# request = Google::Cloud::WebSecurityScanner::V1::ListScanConfigsRequest.new
|
475
|
+
#
|
476
|
+
# # Call the list_scan_configs method.
|
477
|
+
# result = client.list_scan_configs request
|
478
|
+
#
|
479
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
480
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
481
|
+
# result.each do |item|
|
482
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::ScanConfig.
|
483
|
+
# p item
|
484
|
+
# end
|
485
|
+
#
|
418
486
|
def list_scan_configs request, options = nil
|
419
487
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
420
488
|
|
@@ -484,6 +552,22 @@ module Google
|
|
484
552
|
# @return [::Google::Cloud::WebSecurityScanner::V1::ScanConfig]
|
485
553
|
#
|
486
554
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
555
|
+
#
|
556
|
+
# @example Basic example
|
557
|
+
# require "google/cloud/web_security_scanner/v1"
|
558
|
+
#
|
559
|
+
# # Create a client object. The client can be reused for multiple calls.
|
560
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
561
|
+
#
|
562
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
563
|
+
# request = Google::Cloud::WebSecurityScanner::V1::UpdateScanConfigRequest.new
|
564
|
+
#
|
565
|
+
# # Call the update_scan_config method.
|
566
|
+
# result = client.update_scan_config request
|
567
|
+
#
|
568
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanConfig.
|
569
|
+
# p result
|
570
|
+
#
|
487
571
|
def update_scan_config request, options = nil
|
488
572
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
489
573
|
|
@@ -547,6 +631,22 @@ module Google
|
|
547
631
|
# @return [::Google::Cloud::WebSecurityScanner::V1::ScanRun]
|
548
632
|
#
|
549
633
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
634
|
+
#
|
635
|
+
# @example Basic example
|
636
|
+
# require "google/cloud/web_security_scanner/v1"
|
637
|
+
#
|
638
|
+
# # Create a client object. The client can be reused for multiple calls.
|
639
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
640
|
+
#
|
641
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
642
|
+
# request = Google::Cloud::WebSecurityScanner::V1::StartScanRunRequest.new
|
643
|
+
#
|
644
|
+
# # Call the start_scan_run method.
|
645
|
+
# result = client.start_scan_run request
|
646
|
+
#
|
647
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanRun.
|
648
|
+
# p result
|
649
|
+
#
|
550
650
|
def start_scan_run request, options = nil
|
551
651
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
552
652
|
|
@@ -611,6 +711,22 @@ module Google
|
|
611
711
|
# @return [::Google::Cloud::WebSecurityScanner::V1::ScanRun]
|
612
712
|
#
|
613
713
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
714
|
+
#
|
715
|
+
# @example Basic example
|
716
|
+
# require "google/cloud/web_security_scanner/v1"
|
717
|
+
#
|
718
|
+
# # Create a client object. The client can be reused for multiple calls.
|
719
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
720
|
+
#
|
721
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
722
|
+
# request = Google::Cloud::WebSecurityScanner::V1::GetScanRunRequest.new
|
723
|
+
#
|
724
|
+
# # Call the get_scan_run method.
|
725
|
+
# result = client.get_scan_run request
|
726
|
+
#
|
727
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanRun.
|
728
|
+
# p result
|
729
|
+
#
|
614
730
|
def get_scan_run request, options = nil
|
615
731
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
616
732
|
|
@@ -683,6 +799,26 @@ module Google
|
|
683
799
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::WebSecurityScanner::V1::ScanRun>]
|
684
800
|
#
|
685
801
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
802
|
+
#
|
803
|
+
# @example Basic example
|
804
|
+
# require "google/cloud/web_security_scanner/v1"
|
805
|
+
#
|
806
|
+
# # Create a client object. The client can be reused for multiple calls.
|
807
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
808
|
+
#
|
809
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
810
|
+
# request = Google::Cloud::WebSecurityScanner::V1::ListScanRunsRequest.new
|
811
|
+
#
|
812
|
+
# # Call the list_scan_runs method.
|
813
|
+
# result = client.list_scan_runs request
|
814
|
+
#
|
815
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
816
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
817
|
+
# result.each do |item|
|
818
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::ScanRun.
|
819
|
+
# p item
|
820
|
+
# end
|
821
|
+
#
|
686
822
|
def list_scan_runs request, options = nil
|
687
823
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
688
824
|
|
@@ -748,6 +884,22 @@ module Google
|
|
748
884
|
# @return [::Google::Cloud::WebSecurityScanner::V1::ScanRun]
|
749
885
|
#
|
750
886
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
887
|
+
#
|
888
|
+
# @example Basic example
|
889
|
+
# require "google/cloud/web_security_scanner/v1"
|
890
|
+
#
|
891
|
+
# # Create a client object. The client can be reused for multiple calls.
|
892
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
893
|
+
#
|
894
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
895
|
+
# request = Google::Cloud::WebSecurityScanner::V1::StopScanRunRequest.new
|
896
|
+
#
|
897
|
+
# # Call the stop_scan_run method.
|
898
|
+
# result = client.stop_scan_run request
|
899
|
+
#
|
900
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanRun.
|
901
|
+
# p result
|
902
|
+
#
|
751
903
|
def stop_scan_run request, options = nil
|
752
904
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
753
905
|
|
@@ -820,6 +972,26 @@ module Google
|
|
820
972
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::WebSecurityScanner::V1::CrawledUrl>]
|
821
973
|
#
|
822
974
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
975
|
+
#
|
976
|
+
# @example Basic example
|
977
|
+
# require "google/cloud/web_security_scanner/v1"
|
978
|
+
#
|
979
|
+
# # Create a client object. The client can be reused for multiple calls.
|
980
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
981
|
+
#
|
982
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
983
|
+
# request = Google::Cloud::WebSecurityScanner::V1::ListCrawledUrlsRequest.new
|
984
|
+
#
|
985
|
+
# # Call the list_crawled_urls method.
|
986
|
+
# result = client.list_crawled_urls request
|
987
|
+
#
|
988
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
989
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
990
|
+
# result.each do |item|
|
991
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::CrawledUrl.
|
992
|
+
# p item
|
993
|
+
# end
|
994
|
+
#
|
823
995
|
def list_crawled_urls request, options = nil
|
824
996
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
825
997
|
|
@@ -885,6 +1057,22 @@ module Google
|
|
885
1057
|
# @return [::Google::Cloud::WebSecurityScanner::V1::Finding]
|
886
1058
|
#
|
887
1059
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1060
|
+
#
|
1061
|
+
# @example Basic example
|
1062
|
+
# require "google/cloud/web_security_scanner/v1"
|
1063
|
+
#
|
1064
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1065
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
1066
|
+
#
|
1067
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1068
|
+
# request = Google::Cloud::WebSecurityScanner::V1::GetFindingRequest.new
|
1069
|
+
#
|
1070
|
+
# # Call the get_finding method.
|
1071
|
+
# result = client.get_finding request
|
1072
|
+
#
|
1073
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::Finding.
|
1074
|
+
# p result
|
1075
|
+
#
|
888
1076
|
def get_finding request, options = nil
|
889
1077
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
890
1078
|
|
@@ -962,6 +1150,26 @@ module Google
|
|
962
1150
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::WebSecurityScanner::V1::Finding>]
|
963
1151
|
#
|
964
1152
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1153
|
+
#
|
1154
|
+
# @example Basic example
|
1155
|
+
# require "google/cloud/web_security_scanner/v1"
|
1156
|
+
#
|
1157
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1158
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
1159
|
+
#
|
1160
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1161
|
+
# request = Google::Cloud::WebSecurityScanner::V1::ListFindingsRequest.new
|
1162
|
+
#
|
1163
|
+
# # Call the list_findings method.
|
1164
|
+
# result = client.list_findings request
|
1165
|
+
#
|
1166
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1167
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1168
|
+
# result.each do |item|
|
1169
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::Finding.
|
1170
|
+
# p item
|
1171
|
+
# end
|
1172
|
+
#
|
965
1173
|
def list_findings request, options = nil
|
966
1174
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
967
1175
|
|
@@ -1027,6 +1235,22 @@ module Google
|
|
1027
1235
|
# @return [::Google::Cloud::WebSecurityScanner::V1::ListFindingTypeStatsResponse]
|
1028
1236
|
#
|
1029
1237
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1238
|
+
#
|
1239
|
+
# @example Basic example
|
1240
|
+
# require "google/cloud/web_security_scanner/v1"
|
1241
|
+
#
|
1242
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1243
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
1244
|
+
#
|
1245
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1246
|
+
# request = Google::Cloud::WebSecurityScanner::V1::ListFindingTypeStatsRequest.new
|
1247
|
+
#
|
1248
|
+
# # Call the list_finding_type_stats method.
|
1249
|
+
# result = client.list_finding_type_stats request
|
1250
|
+
#
|
1251
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ListFindingTypeStatsResponse.
|
1252
|
+
# p result
|
1253
|
+
#
|
1030
1254
|
def list_finding_type_stats request, options = nil
|
1031
1255
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1032
1256
|
|
@@ -1135,7 +1359,9 @@ module Google
|
|
1135
1359
|
class Configuration
|
1136
1360
|
extend ::Gapic::Config
|
1137
1361
|
|
1138
|
-
|
1362
|
+
DEFAULT_ENDPOINT = "websecurityscanner.googleapis.com"
|
1363
|
+
|
1364
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1139
1365
|
config_attr :credentials, nil do |value|
|
1140
1366
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1141
1367
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_scan_config_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_delete_scan_config_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_get_scan_config_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_list_scan_configs_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_update_scan_config_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_start_scan_run_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_scan_run_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_list_scan_runs_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_stop_scan_run_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_list_crawled_urls_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_get_finding_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_list_findings_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_list_finding_type_stats_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
|
@@ -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-web_security_scanner-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
- !ruby/object:Gem::Version
|
231
231
|
version: '0'
|
232
232
|
requirements: []
|
233
|
-
rubygems_version: 3.4.
|
233
|
+
rubygems_version: 3.4.19
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: Scans your Compute and App Engine apps for common web vulnerabilities.
|