google-cloud-web_security_scanner-v1 0.9.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- 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 +29 -13
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/client.rb +29 -13
- data/lib/google/cloud/websecurityscanner/v1/finding_pb.rb +1 -1
- data/lib/google/cloud/websecurityscanner/v1/scan_config_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- metadata +4 -116
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8f99e9bc46b678c78bd6daa95bf7fdb383ba555eaf3c14dd2a0be330dcdf4dc
|
4
|
+
data.tar.gz: 28da81427c2ba7b64922ef27304fe5e719346360c091a169990061f99398e99f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e47d2b7ff974d8faf271ff7290926f27a8c76ed8233e11c21551cc284e8a9ff9b9001f0a61e92fc343c43d9863596d51eb69edb25e81d27a998ee357a16ea8d
|
7
|
+
data.tar.gz: eb7929cf89178f1c73b8fe6654e92cf10e97c88f31b0832e76e7163fcb3ee498780ab1a52eedee362e8c8e3b80a9cda9ca78e97f07100a2d346c31f50faccd84
|
data/README.md
CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.7+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# attempts to exercise as many user inputs and event handlers as possible.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "websecurityscanner.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -271,10 +274,11 @@ module Google
|
|
271
274
|
# Customize the options with defaults
|
272
275
|
metadata = @config.rpcs.create_scan_config.metadata.to_h
|
273
276
|
|
274
|
-
# Set x-goog-api-client
|
277
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
275
278
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
276
279
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
277
280
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
281
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
282
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
283
|
|
280
284
|
header_params = {}
|
@@ -357,10 +361,11 @@ module Google
|
|
357
361
|
# Customize the options with defaults
|
358
362
|
metadata = @config.rpcs.delete_scan_config.metadata.to_h
|
359
363
|
|
360
|
-
# Set x-goog-api-client
|
364
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
361
365
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
362
366
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
363
367
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
368
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
364
369
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
365
370
|
|
366
371
|
header_params = {}
|
@@ -443,10 +448,11 @@ module Google
|
|
443
448
|
# Customize the options with defaults
|
444
449
|
metadata = @config.rpcs.get_scan_config.metadata.to_h
|
445
450
|
|
446
|
-
# Set x-goog-api-client
|
451
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
447
452
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
448
453
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
449
454
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
455
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
450
456
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
451
457
|
|
452
458
|
header_params = {}
|
@@ -541,10 +547,11 @@ module Google
|
|
541
547
|
# Customize the options with defaults
|
542
548
|
metadata = @config.rpcs.list_scan_configs.metadata.to_h
|
543
549
|
|
544
|
-
# Set x-goog-api-client
|
550
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
545
551
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
546
552
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
547
553
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
554
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
548
555
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
549
556
|
|
550
557
|
header_params = {}
|
@@ -633,10 +640,11 @@ module Google
|
|
633
640
|
# Customize the options with defaults
|
634
641
|
metadata = @config.rpcs.update_scan_config.metadata.to_h
|
635
642
|
|
636
|
-
# Set x-goog-api-client
|
643
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
637
644
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
638
645
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
639
646
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
647
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
640
648
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
641
649
|
|
642
650
|
header_params = {}
|
@@ -719,10 +727,11 @@ module Google
|
|
719
727
|
# Customize the options with defaults
|
720
728
|
metadata = @config.rpcs.start_scan_run.metadata.to_h
|
721
729
|
|
722
|
-
# Set x-goog-api-client
|
730
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
723
731
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
724
732
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
725
733
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
734
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
726
735
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
727
736
|
|
728
737
|
header_params = {}
|
@@ -806,10 +815,11 @@ module Google
|
|
806
815
|
# Customize the options with defaults
|
807
816
|
metadata = @config.rpcs.get_scan_run.metadata.to_h
|
808
817
|
|
809
|
-
# Set x-goog-api-client
|
818
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
810
819
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
811
820
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
812
821
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
822
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
813
823
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
814
824
|
|
815
825
|
header_params = {}
|
@@ -905,10 +915,11 @@ module Google
|
|
905
915
|
# Customize the options with defaults
|
906
916
|
metadata = @config.rpcs.list_scan_runs.metadata.to_h
|
907
917
|
|
908
|
-
# Set x-goog-api-client
|
918
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
909
919
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
910
920
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
911
921
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
922
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
912
923
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
913
924
|
|
914
925
|
header_params = {}
|
@@ -993,10 +1004,11 @@ module Google
|
|
993
1004
|
# Customize the options with defaults
|
994
1005
|
metadata = @config.rpcs.stop_scan_run.metadata.to_h
|
995
1006
|
|
996
|
-
# Set x-goog-api-client
|
1007
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
997
1008
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
998
1009
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
999
1010
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
1011
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1000
1012
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1001
1013
|
|
1002
1014
|
header_params = {}
|
@@ -1092,10 +1104,11 @@ module Google
|
|
1092
1104
|
# Customize the options with defaults
|
1093
1105
|
metadata = @config.rpcs.list_crawled_urls.metadata.to_h
|
1094
1106
|
|
1095
|
-
# Set x-goog-api-client
|
1107
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1096
1108
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1097
1109
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1098
1110
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
1111
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1099
1112
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1100
1113
|
|
1101
1114
|
header_params = {}
|
@@ -1180,10 +1193,11 @@ module Google
|
|
1180
1193
|
# Customize the options with defaults
|
1181
1194
|
metadata = @config.rpcs.get_finding.metadata.to_h
|
1182
1195
|
|
1183
|
-
# Set x-goog-api-client
|
1196
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1184
1197
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1185
1198
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1186
1199
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
1200
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1187
1201
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1188
1202
|
|
1189
1203
|
header_params = {}
|
@@ -1284,10 +1298,11 @@ module Google
|
|
1284
1298
|
# Customize the options with defaults
|
1285
1299
|
metadata = @config.rpcs.list_findings.metadata.to_h
|
1286
1300
|
|
1287
|
-
# Set x-goog-api-client
|
1301
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1288
1302
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1289
1303
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1290
1304
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
1305
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1291
1306
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1292
1307
|
|
1293
1308
|
header_params = {}
|
@@ -1372,10 +1387,11 @@ module Google
|
|
1372
1387
|
# Customize the options with defaults
|
1373
1388
|
metadata = @config.rpcs.list_finding_type_stats.metadata.to_h
|
1374
1389
|
|
1375
|
-
# Set x-goog-api-client
|
1390
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1376
1391
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1377
1392
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1378
1393
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
1394
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1379
1395
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1380
1396
|
|
1381
1397
|
header_params = {}
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# attempts to exercise as many user inputs and event handlers as possible.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "websecurityscanner.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -263,12 +266,13 @@ module Google
|
|
263
266
|
# Customize the options with defaults
|
264
267
|
call_metadata = @config.rpcs.create_scan_config.metadata.to_h
|
265
268
|
|
266
|
-
# Set x-goog-api-client
|
269
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
267
270
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
268
271
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
269
272
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
270
273
|
transports_version_send: [:rest]
|
271
274
|
|
275
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
272
276
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
273
277
|
|
274
278
|
options.apply_defaults timeout: @config.rpcs.create_scan_config.timeout,
|
@@ -342,12 +346,13 @@ module Google
|
|
342
346
|
# Customize the options with defaults
|
343
347
|
call_metadata = @config.rpcs.delete_scan_config.metadata.to_h
|
344
348
|
|
345
|
-
# Set x-goog-api-client
|
349
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
346
350
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
347
351
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
348
352
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
349
353
|
transports_version_send: [:rest]
|
350
354
|
|
355
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
351
356
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
352
357
|
|
353
358
|
options.apply_defaults timeout: @config.rpcs.delete_scan_config.timeout,
|
@@ -421,12 +426,13 @@ module Google
|
|
421
426
|
# Customize the options with defaults
|
422
427
|
call_metadata = @config.rpcs.get_scan_config.metadata.to_h
|
423
428
|
|
424
|
-
# Set x-goog-api-client
|
429
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
425
430
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
426
431
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
427
432
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
428
433
|
transports_version_send: [:rest]
|
429
434
|
|
435
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
430
436
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
431
437
|
|
432
438
|
options.apply_defaults timeout: @config.rpcs.get_scan_config.timeout,
|
@@ -512,12 +518,13 @@ module Google
|
|
512
518
|
# Customize the options with defaults
|
513
519
|
call_metadata = @config.rpcs.list_scan_configs.metadata.to_h
|
514
520
|
|
515
|
-
# Set x-goog-api-client
|
521
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
516
522
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
517
523
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
518
524
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
519
525
|
transports_version_send: [:rest]
|
520
526
|
|
527
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
521
528
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
522
529
|
|
523
530
|
options.apply_defaults timeout: @config.rpcs.list_scan_configs.timeout,
|
@@ -597,12 +604,13 @@ module Google
|
|
597
604
|
# Customize the options with defaults
|
598
605
|
call_metadata = @config.rpcs.update_scan_config.metadata.to_h
|
599
606
|
|
600
|
-
# Set x-goog-api-client
|
607
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
601
608
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
602
609
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
603
610
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
604
611
|
transports_version_send: [:rest]
|
605
612
|
|
613
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
606
614
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
607
615
|
|
608
616
|
options.apply_defaults timeout: @config.rpcs.update_scan_config.timeout,
|
@@ -676,12 +684,13 @@ module Google
|
|
676
684
|
# Customize the options with defaults
|
677
685
|
call_metadata = @config.rpcs.start_scan_run.metadata.to_h
|
678
686
|
|
679
|
-
# Set x-goog-api-client
|
687
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
680
688
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
681
689
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
682
690
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
683
691
|
transports_version_send: [:rest]
|
684
692
|
|
693
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
685
694
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
686
695
|
|
687
696
|
options.apply_defaults timeout: @config.rpcs.start_scan_run.timeout,
|
@@ -756,12 +765,13 @@ module Google
|
|
756
765
|
# Customize the options with defaults
|
757
766
|
call_metadata = @config.rpcs.get_scan_run.metadata.to_h
|
758
767
|
|
759
|
-
# Set x-goog-api-client
|
768
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
760
769
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
761
770
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
762
771
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
763
772
|
transports_version_send: [:rest]
|
764
773
|
|
774
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
765
775
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
766
776
|
|
767
777
|
options.apply_defaults timeout: @config.rpcs.get_scan_run.timeout,
|
@@ -848,12 +858,13 @@ module Google
|
|
848
858
|
# Customize the options with defaults
|
849
859
|
call_metadata = @config.rpcs.list_scan_runs.metadata.to_h
|
850
860
|
|
851
|
-
# Set x-goog-api-client
|
861
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
852
862
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
853
863
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
854
864
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
855
865
|
transports_version_send: [:rest]
|
856
866
|
|
867
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
857
868
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
858
869
|
|
859
870
|
options.apply_defaults timeout: @config.rpcs.list_scan_runs.timeout,
|
@@ -929,12 +940,13 @@ module Google
|
|
929
940
|
# Customize the options with defaults
|
930
941
|
call_metadata = @config.rpcs.stop_scan_run.metadata.to_h
|
931
942
|
|
932
|
-
# Set x-goog-api-client
|
943
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
933
944
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
934
945
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
935
946
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
936
947
|
transports_version_send: [:rest]
|
937
948
|
|
949
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
938
950
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
939
951
|
|
940
952
|
options.apply_defaults timeout: @config.rpcs.stop_scan_run.timeout,
|
@@ -1021,12 +1033,13 @@ module Google
|
|
1021
1033
|
# Customize the options with defaults
|
1022
1034
|
call_metadata = @config.rpcs.list_crawled_urls.metadata.to_h
|
1023
1035
|
|
1024
|
-
# Set x-goog-api-client
|
1036
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1025
1037
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1026
1038
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1027
1039
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
1028
1040
|
transports_version_send: [:rest]
|
1029
1041
|
|
1042
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1030
1043
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1031
1044
|
|
1032
1045
|
options.apply_defaults timeout: @config.rpcs.list_crawled_urls.timeout,
|
@@ -1102,12 +1115,13 @@ module Google
|
|
1102
1115
|
# Customize the options with defaults
|
1103
1116
|
call_metadata = @config.rpcs.get_finding.metadata.to_h
|
1104
1117
|
|
1105
|
-
# Set x-goog-api-client
|
1118
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1106
1119
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1107
1120
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1108
1121
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
1109
1122
|
transports_version_send: [:rest]
|
1110
1123
|
|
1124
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1111
1125
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1112
1126
|
|
1113
1127
|
options.apply_defaults timeout: @config.rpcs.get_finding.timeout,
|
@@ -1199,12 +1213,13 @@ module Google
|
|
1199
1213
|
# Customize the options with defaults
|
1200
1214
|
call_metadata = @config.rpcs.list_findings.metadata.to_h
|
1201
1215
|
|
1202
|
-
# Set x-goog-api-client
|
1216
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1203
1217
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1204
1218
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1205
1219
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
1206
1220
|
transports_version_send: [:rest]
|
1207
1221
|
|
1222
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1208
1223
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1209
1224
|
|
1210
1225
|
options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
|
@@ -1280,12 +1295,13 @@ module Google
|
|
1280
1295
|
# Customize the options with defaults
|
1281
1296
|
call_metadata = @config.rpcs.list_finding_type_stats.metadata.to_h
|
1282
1297
|
|
1283
|
-
# Set x-goog-api-client
|
1298
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1284
1299
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1285
1300
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1286
1301
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
|
1287
1302
|
transports_version_send: [:rest]
|
1288
1303
|
|
1304
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1289
1305
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1290
1306
|
|
1291
1307
|
options.apply_defaults timeout: @config.rpcs.list_finding_type_stats.timeout,
|
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
|
|
9
9
|
require 'google/cloud/websecurityscanner/v1/finding_addon_pb'
|
10
10
|
|
11
11
|
|
12
|
-
descriptor_data = "\n0google/cloud/websecurityscanner/v1/finding.proto\x12\"google.cloud.websecurityscanner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x36google/cloud/websecurityscanner/v1/finding_addon.proto\"\
|
12
|
+
descriptor_data = "\n0google/cloud/websecurityscanner/v1/finding.proto\x12\"google.cloud.websecurityscanner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x36google/cloud/websecurityscanner/v1/finding_addon.proto\"\xec\x07\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x66inding_type\x18\x02 \x01(\t\x12K\n\x08severity\x18\x11 \x01(\x0e\x32\x34.google.cloud.websecurityscanner.v1.Finding.SeverityB\x03\xe0\x41\x03\x12\x13\n\x0bhttp_method\x18\x03 \x01(\t\x12\x12\n\nfuzzed_url\x18\x04 \x01(\t\x12\x0c\n\x04\x62ody\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x18\n\x10reproduction_url\x18\x07 \x01(\t\x12\x11\n\tframe_url\x18\x08 \x01(\t\x12\x11\n\tfinal_url\x18\t \x01(\t\x12\x13\n\x0btracking_id\x18\n \x01(\t\x12\x36\n\x04\x66orm\x18\x10 \x01(\x0b\x32(.google.cloud.websecurityscanner.v1.Form\x12M\n\x10outdated_library\x18\x0b \x01(\x0b\x32\x33.google.cloud.websecurityscanner.v1.OutdatedLibrary\x12Q\n\x12violating_resource\x18\x0c \x01(\x0b\x32\x35.google.cloud.websecurityscanner.v1.ViolatingResource\x12Q\n\x12vulnerable_headers\x18\x0f \x01(\x0b\x32\x35.google.cloud.websecurityscanner.v1.VulnerableHeaders\x12W\n\x15vulnerable_parameters\x18\r \x01(\x0b\x32\x38.google.cloud.websecurityscanner.v1.VulnerableParameters\x12\x34\n\x03xss\x18\x0e \x01(\x0b\x32\'.google.cloud.websecurityscanner.v1.Xss\x12\x39\n\x03xxe\x18\x12 \x01(\x0b\x32\'.google.cloud.websecurityscanner.v1.XxeB\x03\xe0\x41\x03\"Q\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RITICAL\x10\x01\x12\x08\n\x04HIGH\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x07\n\x03LOW\x10\x04:\x84\x01\xea\x41\x80\x01\n)websecurityscanner.googleapis.com/Finding\x12Sprojects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}B\x82\x02\n&com.google.cloud.websecurityscanner.v1B\x0c\x46indingProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::V1b\x06proto3"
|
13
13
|
|
14
14
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
15
|
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/protobuf/timestamp_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n4google/cloud/websecurityscanner/v1/scan_config.proto\x12\"google.cloud.websecurityscanner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
11
|
+
descriptor_data = "\n4google/cloud/websecurityscanner/v1/scan_config.proto\x12\"google.cloud.websecurityscanner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc4\r\n\nScanConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0f\n\x07max_qps\x18\x03 \x01(\x05\x12\x15\n\rstarting_urls\x18\x04 \x03(\t\x12U\n\x0e\x61uthentication\x18\x05 \x01(\x0b\x32=.google.cloud.websecurityscanner.v1.ScanConfig.Authentication\x12L\n\nuser_agent\x18\x06 \x01(\x0e\x32\x38.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent\x12\x1a\n\x12\x62lacklist_patterns\x18\x07 \x03(\t\x12I\n\x08schedule\x18\x08 \x01(\x0b\x32\x37.google.cloud.websecurityscanner.v1.ScanConfig.Schedule\x12w\n!export_to_security_command_center\x18\n \x01(\x0e\x32L.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter\x12L\n\nrisk_level\x18\x0c \x01(\x0e\x32\x38.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel\x12\x14\n\x0cmanaged_scan\x18\r \x01(\x08\x12\x16\n\x0estatic_ip_scan\x18\x0e \x01(\x08\x12!\n\x19ignore_http_status_errors\x18\x0f \x01(\x08\x1a\xd7\x05\n\x0e\x41uthentication\x12i\n\x0egoogle_account\x18\x01 \x01(\x0b\x32K.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountB\x02\x18\x01H\x00\x12\x65\n\x0e\x63ustom_account\x18\x02 \x01(\x0b\x32K.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountH\x00\x12\x65\n\x0eiap_credential\x18\x04 \x01(\x0b\x32K.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialH\x00\x1a\x37\n\rGoogleAccount\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t:\x02\x18\x01\x1a\x46\n\rCustomAccount\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x11\n\tlogin_url\x18\x03 \x01(\t\x1a\xf8\x01\n\rIapCredential\x12\x8e\x01\n\x1diap_test_service_account_info\x18\x01 \x01(\x0b\x32\x65.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoH\x00\x1a\x43\n\x19IapTestServiceAccountInfo\x12&\n\x19target_audience_client_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x11\n\x0fiap_credentialsB\x10\n\x0e\x61uthentication\x1a]\n\x08Schedule\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1e\n\x16interval_duration_days\x18\x02 \x01(\x05\"`\n\tUserAgent\x12\x1a\n\x16USER_AGENT_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43HROME_LINUX\x10\x01\x12\x12\n\x0e\x43HROME_ANDROID\x10\x02\x12\x11\n\rSAFARI_IPHONE\x10\x03\"<\n\tRiskLevel\x12\x1a\n\x16RISK_LEVEL_UNSPECIFIED\x10\x00\x12\n\n\x06NORMAL\x10\x01\x12\x07\n\x03LOW\x10\x02\"m\n\x1d\x45xportToSecurityCommandCenter\x12\x31\n-EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x42\x85\x02\n&com.google.cloud.websecurityscanner.v1B\x0fScanConfigProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::V1b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -118,6 +118,10 @@ module Google
|
|
118
118
|
# @return [::String]
|
119
119
|
# Optional link to proto reference documentation. Example:
|
120
120
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
121
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
122
|
+
# @return [::String]
|
123
|
+
# Optional link to REST reference documentation. Example:
|
124
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
125
|
class Publishing
|
122
126
|
include ::Google::Protobuf::MessageExts
|
123
127
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
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: 1.0.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: 2024-
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -44,118 +44,6 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: google-style
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.3
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.3
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: minitest
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '5.16'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '5.16'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: minitest-focus
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '1.1'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '1.1'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: minitest-rg
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '5.2'
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '5.2'
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: rake
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - ">="
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '13.0'
|
110
|
-
type: :development
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
requirements:
|
114
|
-
- - ">="
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: '13.0'
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
name: redcarpet
|
119
|
-
requirement: !ruby/object:Gem::Requirement
|
120
|
-
requirements:
|
121
|
-
- - "~>"
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
version: '3.0'
|
124
|
-
type: :development
|
125
|
-
prerelease: false
|
126
|
-
version_requirements: !ruby/object:Gem::Requirement
|
127
|
-
requirements:
|
128
|
-
- - "~>"
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: '3.0'
|
131
|
-
- !ruby/object:Gem::Dependency
|
132
|
-
name: simplecov
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- - "~>"
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: '0.18'
|
138
|
-
type: :development
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - "~>"
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '0.18'
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: yard
|
147
|
-
requirement: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - "~>"
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: '0.9'
|
152
|
-
type: :development
|
153
|
-
prerelease: false
|
154
|
-
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
requirements:
|
156
|
-
- - "~>"
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: '0.9'
|
159
47
|
description: Web Security Scanner scans your Compute and App Engine apps for common
|
160
48
|
web vulnerabilities. Note that google-cloud-web_security_scanner-v1 is a version-specific
|
161
49
|
client library. For most uses, we recommend installing the main client library google-cloud-web_security_scanner
|
@@ -223,14 +111,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
111
|
requirements:
|
224
112
|
- - ">="
|
225
113
|
- !ruby/object:Gem::Version
|
226
|
-
version: '2.
|
114
|
+
version: '2.7'
|
227
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
116
|
requirements:
|
229
117
|
- - ">="
|
230
118
|
- !ruby/object:Gem::Version
|
231
119
|
version: '0'
|
232
120
|
requirements: []
|
233
|
-
rubygems_version: 3.5.
|
121
|
+
rubygems_version: 3.5.6
|
234
122
|
signing_key:
|
235
123
|
specification_version: 4
|
236
124
|
summary: Scans your Compute and App Engine apps for common web vulnerabilities.
|