google-cloud-web_security_scanner-v1 0.7.1 → 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 +10 -1
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/client.rb +224 -0
- 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
|
@@ -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
|
|
@@ -1505,6 +1506,14 @@ module Google
|
|
1505
1506
|
end
|
1506
1507
|
end
|
1507
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
|
+
|
1508
1517
|
##
|
1509
1518
|
# Configuration RPC class for the WebSecurityScanner API.
|
1510
1519
|
#
|
@@ -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
|
|
@@ -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.
|