google-cloud-web_security_scanner-v1 0.3.3 → 0.3.4
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/v1/version.rb +1 -1
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/client.rb +284 -39
- data/lib/google/cloud/websecurityscanner/v1/finding_pb.rb +2 -2
- data/lib/google/cloud/websecurityscanner/v1/scan_config_pb.rb +2 -2
- data/lib/google/cloud/websecurityscanner/v1/scan_run_error_trace_pb.rb +1 -1
- data/lib/google/cloud/websecurityscanner/v1/scan_run_pb.rb +2 -2
- data/lib/google/cloud/websecurityscanner/v1/web_security_scanner_pb.rb +2 -2
- data/lib/google/cloud/websecurityscanner/v1/web_security_scanner_services_pb.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c6c9ea48a162fad1b46d501dadacebdfbe66104b03d1f0ef128865981c1e1cd
|
4
|
+
data.tar.gz: 7535b702021d618d00d40744e48cb292dcbffa39293db0c2048d7f0df3d48cda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a75ed7a3f971c4dc089510c3144ac9028e7e27b7d06e7722acf03629de3c8a330fec76ea354f2dd1aae232c315b12f7c7bb6c5011b6701479e6cbe12cc8c5109
|
7
|
+
data.tar.gz: f8ca7136f0aa0ce2b444be0f98dd7d15795d56118623270ed39bd11cc30fc7418b41d6df293d547c49561ce9ad87f90cde68d0c31338db6bce335c7158606a12
|
@@ -229,6 +229,21 @@ module Google
|
|
229
229
|
#
|
230
230
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
231
231
|
#
|
232
|
+
# @example Basic example
|
233
|
+
# require "google/cloud/web_security_scanner/v1"
|
234
|
+
#
|
235
|
+
# # Create a client object. The client can be reused for multiple calls.
|
236
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
237
|
+
#
|
238
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
239
|
+
# request = Google::Cloud::WebSecurityScanner::V1::CreateScanConfigRequest.new
|
240
|
+
#
|
241
|
+
# # Call the create_scan_config method.
|
242
|
+
# result = client.create_scan_config request
|
243
|
+
#
|
244
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanConfig.
|
245
|
+
# p result
|
246
|
+
#
|
232
247
|
def create_scan_config request, options = nil
|
233
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
234
249
|
|
@@ -246,9 +261,11 @@ module Google
|
|
246
261
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
247
262
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
248
263
|
|
249
|
-
header_params = {
|
250
|
-
|
251
|
-
|
264
|
+
header_params = {}
|
265
|
+
if request.parent
|
266
|
+
header_params["parent"] = request.parent
|
267
|
+
end
|
268
|
+
|
252
269
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
253
270
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
254
271
|
|
@@ -298,6 +315,21 @@ module Google
|
|
298
315
|
#
|
299
316
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
300
317
|
#
|
318
|
+
# @example Basic example
|
319
|
+
# require "google/cloud/web_security_scanner/v1"
|
320
|
+
#
|
321
|
+
# # Create a client object. The client can be reused for multiple calls.
|
322
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
323
|
+
#
|
324
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
325
|
+
# request = Google::Cloud::WebSecurityScanner::V1::DeleteScanConfigRequest.new
|
326
|
+
#
|
327
|
+
# # Call the delete_scan_config method.
|
328
|
+
# result = client.delete_scan_config request
|
329
|
+
#
|
330
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
331
|
+
# p result
|
332
|
+
#
|
301
333
|
def delete_scan_config request, options = nil
|
302
334
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
303
335
|
|
@@ -315,9 +347,11 @@ module Google
|
|
315
347
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
316
348
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
317
349
|
|
318
|
-
header_params = {
|
319
|
-
|
320
|
-
|
350
|
+
header_params = {}
|
351
|
+
if request.name
|
352
|
+
header_params["name"] = request.name
|
353
|
+
end
|
354
|
+
|
321
355
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
322
356
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
323
357
|
|
@@ -367,6 +401,21 @@ module Google
|
|
367
401
|
#
|
368
402
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
369
403
|
#
|
404
|
+
# @example Basic example
|
405
|
+
# require "google/cloud/web_security_scanner/v1"
|
406
|
+
#
|
407
|
+
# # Create a client object. The client can be reused for multiple calls.
|
408
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
409
|
+
#
|
410
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
411
|
+
# request = Google::Cloud::WebSecurityScanner::V1::GetScanConfigRequest.new
|
412
|
+
#
|
413
|
+
# # Call the get_scan_config method.
|
414
|
+
# result = client.get_scan_config request
|
415
|
+
#
|
416
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanConfig.
|
417
|
+
# p result
|
418
|
+
#
|
370
419
|
def get_scan_config request, options = nil
|
371
420
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
372
421
|
|
@@ -384,9 +433,11 @@ module Google
|
|
384
433
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
385
434
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
386
435
|
|
387
|
-
header_params = {
|
388
|
-
|
389
|
-
|
436
|
+
header_params = {}
|
437
|
+
if request.name
|
438
|
+
header_params["name"] = request.name
|
439
|
+
end
|
440
|
+
|
390
441
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
391
442
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
392
443
|
|
@@ -444,6 +495,27 @@ module Google
|
|
444
495
|
#
|
445
496
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
497
|
#
|
498
|
+
# @example Basic example
|
499
|
+
# require "google/cloud/web_security_scanner/v1"
|
500
|
+
#
|
501
|
+
# # Create a client object. The client can be reused for multiple calls.
|
502
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
503
|
+
#
|
504
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
505
|
+
# request = Google::Cloud::WebSecurityScanner::V1::ListScanConfigsRequest.new
|
506
|
+
#
|
507
|
+
# # Call the list_scan_configs method.
|
508
|
+
# result = client.list_scan_configs request
|
509
|
+
#
|
510
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
511
|
+
# # iterate over all elements by calling #each, and the enumerable
|
512
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
513
|
+
# # methods are also available for managing paging directly.
|
514
|
+
# result.each do |response|
|
515
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::ScanConfig.
|
516
|
+
# p response
|
517
|
+
# end
|
518
|
+
#
|
447
519
|
def list_scan_configs request, options = nil
|
448
520
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
521
|
|
@@ -461,9 +533,11 @@ module Google
|
|
461
533
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
462
534
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
463
535
|
|
464
|
-
header_params = {
|
465
|
-
|
466
|
-
|
536
|
+
header_params = {}
|
537
|
+
if request.parent
|
538
|
+
header_params["parent"] = request.parent
|
539
|
+
end
|
540
|
+
|
467
541
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
468
542
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
469
543
|
|
@@ -519,6 +593,21 @@ module Google
|
|
519
593
|
#
|
520
594
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
521
595
|
#
|
596
|
+
# @example Basic example
|
597
|
+
# require "google/cloud/web_security_scanner/v1"
|
598
|
+
#
|
599
|
+
# # Create a client object. The client can be reused for multiple calls.
|
600
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
601
|
+
#
|
602
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
603
|
+
# request = Google::Cloud::WebSecurityScanner::V1::UpdateScanConfigRequest.new
|
604
|
+
#
|
605
|
+
# # Call the update_scan_config method.
|
606
|
+
# result = client.update_scan_config request
|
607
|
+
#
|
608
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanConfig.
|
609
|
+
# p result
|
610
|
+
#
|
522
611
|
def update_scan_config request, options = nil
|
523
612
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
524
613
|
|
@@ -536,9 +625,11 @@ module Google
|
|
536
625
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
537
626
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
538
627
|
|
539
|
-
header_params = {
|
540
|
-
|
541
|
-
|
628
|
+
header_params = {}
|
629
|
+
if request.scan_config&.name
|
630
|
+
header_params["scan_config.name"] = request.scan_config.name
|
631
|
+
end
|
632
|
+
|
542
633
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
543
634
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
544
635
|
|
@@ -588,6 +679,21 @@ module Google
|
|
588
679
|
#
|
589
680
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
590
681
|
#
|
682
|
+
# @example Basic example
|
683
|
+
# require "google/cloud/web_security_scanner/v1"
|
684
|
+
#
|
685
|
+
# # Create a client object. The client can be reused for multiple calls.
|
686
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
687
|
+
#
|
688
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
689
|
+
# request = Google::Cloud::WebSecurityScanner::V1::StartScanRunRequest.new
|
690
|
+
#
|
691
|
+
# # Call the start_scan_run method.
|
692
|
+
# result = client.start_scan_run request
|
693
|
+
#
|
694
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanRun.
|
695
|
+
# p result
|
696
|
+
#
|
591
697
|
def start_scan_run request, options = nil
|
592
698
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
593
699
|
|
@@ -605,9 +711,11 @@ module Google
|
|
605
711
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
606
712
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
607
713
|
|
608
|
-
header_params = {
|
609
|
-
|
610
|
-
|
714
|
+
header_params = {}
|
715
|
+
if request.name
|
716
|
+
header_params["name"] = request.name
|
717
|
+
end
|
718
|
+
|
611
719
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
612
720
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
613
721
|
|
@@ -658,6 +766,21 @@ module Google
|
|
658
766
|
#
|
659
767
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
660
768
|
#
|
769
|
+
# @example Basic example
|
770
|
+
# require "google/cloud/web_security_scanner/v1"
|
771
|
+
#
|
772
|
+
# # Create a client object. The client can be reused for multiple calls.
|
773
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
774
|
+
#
|
775
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
776
|
+
# request = Google::Cloud::WebSecurityScanner::V1::GetScanRunRequest.new
|
777
|
+
#
|
778
|
+
# # Call the get_scan_run method.
|
779
|
+
# result = client.get_scan_run request
|
780
|
+
#
|
781
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanRun.
|
782
|
+
# p result
|
783
|
+
#
|
661
784
|
def get_scan_run request, options = nil
|
662
785
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
663
786
|
|
@@ -675,9 +798,11 @@ module Google
|
|
675
798
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
676
799
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
677
800
|
|
678
|
-
header_params = {
|
679
|
-
|
680
|
-
|
801
|
+
header_params = {}
|
802
|
+
if request.name
|
803
|
+
header_params["name"] = request.name
|
804
|
+
end
|
805
|
+
|
681
806
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
682
807
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
683
808
|
|
@@ -736,6 +861,27 @@ module Google
|
|
736
861
|
#
|
737
862
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
738
863
|
#
|
864
|
+
# @example Basic example
|
865
|
+
# require "google/cloud/web_security_scanner/v1"
|
866
|
+
#
|
867
|
+
# # Create a client object. The client can be reused for multiple calls.
|
868
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
869
|
+
#
|
870
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
871
|
+
# request = Google::Cloud::WebSecurityScanner::V1::ListScanRunsRequest.new
|
872
|
+
#
|
873
|
+
# # Call the list_scan_runs method.
|
874
|
+
# result = client.list_scan_runs request
|
875
|
+
#
|
876
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
877
|
+
# # iterate over all elements by calling #each, and the enumerable
|
878
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
879
|
+
# # methods are also available for managing paging directly.
|
880
|
+
# result.each do |response|
|
881
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::ScanRun.
|
882
|
+
# p response
|
883
|
+
# end
|
884
|
+
#
|
739
885
|
def list_scan_runs request, options = nil
|
740
886
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
741
887
|
|
@@ -753,9 +899,11 @@ module Google
|
|
753
899
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
754
900
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
755
901
|
|
756
|
-
header_params = {
|
757
|
-
|
758
|
-
|
902
|
+
header_params = {}
|
903
|
+
if request.parent
|
904
|
+
header_params["parent"] = request.parent
|
905
|
+
end
|
906
|
+
|
759
907
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
760
908
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
761
909
|
|
@@ -807,6 +955,21 @@ module Google
|
|
807
955
|
#
|
808
956
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
809
957
|
#
|
958
|
+
# @example Basic example
|
959
|
+
# require "google/cloud/web_security_scanner/v1"
|
960
|
+
#
|
961
|
+
# # Create a client object. The client can be reused for multiple calls.
|
962
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
963
|
+
#
|
964
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
965
|
+
# request = Google::Cloud::WebSecurityScanner::V1::StopScanRunRequest.new
|
966
|
+
#
|
967
|
+
# # Call the stop_scan_run method.
|
968
|
+
# result = client.stop_scan_run request
|
969
|
+
#
|
970
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ScanRun.
|
971
|
+
# p result
|
972
|
+
#
|
810
973
|
def stop_scan_run request, options = nil
|
811
974
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
812
975
|
|
@@ -824,9 +987,11 @@ module Google
|
|
824
987
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
825
988
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
826
989
|
|
827
|
-
header_params = {
|
828
|
-
|
829
|
-
|
990
|
+
header_params = {}
|
991
|
+
if request.name
|
992
|
+
header_params["name"] = request.name
|
993
|
+
end
|
994
|
+
|
830
995
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
831
996
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
832
997
|
|
@@ -885,6 +1050,27 @@ module Google
|
|
885
1050
|
#
|
886
1051
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
887
1052
|
#
|
1053
|
+
# @example Basic example
|
1054
|
+
# require "google/cloud/web_security_scanner/v1"
|
1055
|
+
#
|
1056
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1057
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
1058
|
+
#
|
1059
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1060
|
+
# request = Google::Cloud::WebSecurityScanner::V1::ListCrawledUrlsRequest.new
|
1061
|
+
#
|
1062
|
+
# # Call the list_crawled_urls method.
|
1063
|
+
# result = client.list_crawled_urls request
|
1064
|
+
#
|
1065
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1066
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1067
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1068
|
+
# # methods are also available for managing paging directly.
|
1069
|
+
# result.each do |response|
|
1070
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::CrawledUrl.
|
1071
|
+
# p response
|
1072
|
+
# end
|
1073
|
+
#
|
888
1074
|
def list_crawled_urls request, options = nil
|
889
1075
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
890
1076
|
|
@@ -902,9 +1088,11 @@ module Google
|
|
902
1088
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
903
1089
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
904
1090
|
|
905
|
-
header_params = {
|
906
|
-
|
907
|
-
|
1091
|
+
header_params = {}
|
1092
|
+
if request.parent
|
1093
|
+
header_params["parent"] = request.parent
|
1094
|
+
end
|
1095
|
+
|
908
1096
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
909
1097
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
910
1098
|
|
@@ -956,6 +1144,21 @@ module Google
|
|
956
1144
|
#
|
957
1145
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
958
1146
|
#
|
1147
|
+
# @example Basic example
|
1148
|
+
# require "google/cloud/web_security_scanner/v1"
|
1149
|
+
#
|
1150
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1151
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
1152
|
+
#
|
1153
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1154
|
+
# request = Google::Cloud::WebSecurityScanner::V1::GetFindingRequest.new
|
1155
|
+
#
|
1156
|
+
# # Call the get_finding method.
|
1157
|
+
# result = client.get_finding request
|
1158
|
+
#
|
1159
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::Finding.
|
1160
|
+
# p result
|
1161
|
+
#
|
959
1162
|
def get_finding request, options = nil
|
960
1163
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
961
1164
|
|
@@ -973,9 +1176,11 @@ module Google
|
|
973
1176
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
974
1177
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
975
1178
|
|
976
|
-
header_params = {
|
977
|
-
|
978
|
-
|
1179
|
+
header_params = {}
|
1180
|
+
if request.name
|
1181
|
+
header_params["name"] = request.name
|
1182
|
+
end
|
1183
|
+
|
979
1184
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
980
1185
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
981
1186
|
|
@@ -1039,6 +1244,27 @@ module Google
|
|
1039
1244
|
#
|
1040
1245
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1041
1246
|
#
|
1247
|
+
# @example Basic example
|
1248
|
+
# require "google/cloud/web_security_scanner/v1"
|
1249
|
+
#
|
1250
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1251
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
1252
|
+
#
|
1253
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1254
|
+
# request = Google::Cloud::WebSecurityScanner::V1::ListFindingsRequest.new
|
1255
|
+
#
|
1256
|
+
# # Call the list_findings method.
|
1257
|
+
# result = client.list_findings request
|
1258
|
+
#
|
1259
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1260
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1261
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1262
|
+
# # methods are also available for managing paging directly.
|
1263
|
+
# result.each do |response|
|
1264
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::Finding.
|
1265
|
+
# p response
|
1266
|
+
# end
|
1267
|
+
#
|
1042
1268
|
def list_findings request, options = nil
|
1043
1269
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1044
1270
|
|
@@ -1056,9 +1282,11 @@ module Google
|
|
1056
1282
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
1057
1283
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1058
1284
|
|
1059
|
-
header_params = {
|
1060
|
-
|
1061
|
-
|
1285
|
+
header_params = {}
|
1286
|
+
if request.parent
|
1287
|
+
header_params["parent"] = request.parent
|
1288
|
+
end
|
1289
|
+
|
1062
1290
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1063
1291
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1064
1292
|
|
@@ -1110,6 +1338,21 @@ module Google
|
|
1110
1338
|
#
|
1111
1339
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1112
1340
|
#
|
1341
|
+
# @example Basic example
|
1342
|
+
# require "google/cloud/web_security_scanner/v1"
|
1343
|
+
#
|
1344
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1345
|
+
# client = Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
|
1346
|
+
#
|
1347
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1348
|
+
# request = Google::Cloud::WebSecurityScanner::V1::ListFindingTypeStatsRequest.new
|
1349
|
+
#
|
1350
|
+
# # Call the list_finding_type_stats method.
|
1351
|
+
# result = client.list_finding_type_stats request
|
1352
|
+
#
|
1353
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1::ListFindingTypeStatsResponse.
|
1354
|
+
# p result
|
1355
|
+
#
|
1113
1356
|
def list_finding_type_stats request, options = nil
|
1114
1357
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1115
1358
|
|
@@ -1127,9 +1370,11 @@ module Google
|
|
1127
1370
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
|
1128
1371
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1129
1372
|
|
1130
|
-
header_params = {
|
1131
|
-
|
1132
|
-
|
1373
|
+
header_params = {}
|
1374
|
+
if request.parent
|
1375
|
+
header_params["parent"] = request.parent
|
1376
|
+
end
|
1377
|
+
|
1133
1378
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1134
1379
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1135
1380
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/websecurityscanner/v1/finding.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/cloud/websecurityscanner/v1/finding_addon_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/websecurityscanner/v1/finding.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.websecurityscanner.v1.Finding" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/websecurityscanner/v1/scan_config.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/protobuf/timestamp_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/websecurityscanner/v1/scan_config.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.websecurityscanner.v1.ScanConfig" do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto
|
3
3
|
|
4
|
+
require 'google/cloud/websecurityscanner/v1/scan_config_error_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/cloud/websecurityscanner/v1/scan_config_error_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/websecurityscanner/v1/scan_run_error_trace.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.websecurityscanner.v1.ScanRunErrorTrace" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/websecurityscanner/v1/scan_run.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/cloud/websecurityscanner/v1/scan_run_error_trace_pb'
|
7
5
|
require 'google/cloud/websecurityscanner/v1/scan_run_warning_trace_pb'
|
8
6
|
require 'google/protobuf/timestamp_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/websecurityscanner/v1/scan_run.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.websecurityscanner.v1.ScanRun" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/websecurityscanner/v1/web_security_scanner.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/cloud/websecurityscanner/v1/crawled_url_pb'
|
8
6
|
require 'google/cloud/websecurityscanner/v1/finding_pb'
|
@@ -12,6 +10,8 @@ require 'google/cloud/websecurityscanner/v1/scan_run_pb'
|
|
12
10
|
require 'google/protobuf/empty_pb'
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
14
12
|
require 'google/api/client_pb'
|
13
|
+
require 'google/protobuf'
|
14
|
+
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_file("google/cloud/websecurityscanner/v1/web_security_scanner.proto", :syntax => :proto3) do
|
17
17
|
add_message "google.cloud.websecurityscanner.v1.CreateScanConfigRequest" do
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# attempts to exercise as many user inputs and event handlers as possible.
|
30
30
|
class Service
|
31
31
|
|
32
|
-
include GRPC::GenericService
|
32
|
+
include ::GRPC::GenericService
|
33
33
|
|
34
34
|
self.marshal_class_method = :encode
|
35
35
|
self.unmarshal_class_method = :decode
|
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.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|