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