google-cloud-web_security_scanner-v1 0.5.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/README.md +3 -3
- data/lib/google/cloud/web_security_scanner/v1/rest.rb +37 -0
- 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 +18 -26
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/client.rb +1293 -0
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/service_stub.rb +819 -0
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest.rb +53 -0
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner.rb +7 -1
- data/lib/google/cloud/web_security_scanner/v1.rb +7 -2
- data/lib/google/cloud/websecurityscanner/v1/crawled_url_pb.rb +24 -6
- data/lib/google/cloud/websecurityscanner/v1/finding_addon_pb.rb +24 -57
- data/lib/google/cloud/websecurityscanner/v1/finding_pb.rb +25 -28
- data/lib/google/cloud/websecurityscanner/v1/finding_type_stats_pb.rb +24 -5
- data/lib/google/cloud/websecurityscanner/v1/scan_config_error_pb.rb +24 -49
- data/lib/google/cloud/websecurityscanner/v1/scan_config_pb.rb +25 -60
- data/lib/google/cloud/websecurityscanner/v1/scan_run_error_trace_pb.rb +25 -15
- data/lib/google/cloud/websecurityscanner/v1/scan_run_log_pb.rb +25 -11
- data/lib/google/cloud/websecurityscanner/v1/scan_run_pb.rb +27 -26
- data/lib/google/cloud/websecurityscanner/v1/scan_run_warning_trace_pb.rb +24 -12
- data/lib/google/cloud/websecurityscanner/v1/web_security_scanner_pb.rb +30 -70
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +15 -8
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/websecurityscanner/v1/scan_run_log.proto
|
3
4
|
|
@@ -6,19 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/cloud/websecurityscanner/v1/scan_run_pb'
|
7
8
|
require 'google/cloud/websecurityscanner/v1/scan_run_error_trace_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n5google/cloud/websecurityscanner/v1/scan_run_log.proto\x12\"google.cloud.websecurityscanner.v1\x1a\x31google/cloud/websecurityscanner/v1/scan_run.proto\x1a=google/cloud/websecurityscanner/v1/scan_run_error_trace.proto\"\xe8\x02\n\nScanRunLog\x12\x0f\n\x07summary\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12S\n\x0f\x65xecution_state\x18\x03 \x01(\x0e\x32:.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState\x12M\n\x0cresult_state\x18\x04 \x01(\x0e\x32\x37.google.cloud.websecurityscanner.v1.ScanRun.ResultState\x12\x1a\n\x12urls_crawled_count\x18\x05 \x01(\x03\x12\x19\n\x11urls_tested_count\x18\x06 \x01(\x03\x12\x14\n\x0chas_findings\x18\x07 \x01(\x08\x12J\n\x0b\x65rror_trace\x18\x08 \x01(\x0b\x32\x35.google.cloud.websecurityscanner.v1.ScanRunErrorTraceB\x85\x02\n&com.google.cloud.websecurityscanner.v1B\x0fScanRunLogProtoP\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
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.cloud.websecurityscanner.v1.ScanRunErrorTrace", "google/cloud/websecurityscanner/v1/scan_run_error_trace.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
20
32
|
end
|
21
33
|
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
22
36
|
end
|
23
37
|
|
24
38
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/websecurityscanner/v1/scan_run.proto
|
3
4
|
|
@@ -7,34 +8,34 @@ require 'google/cloud/websecurityscanner/v1/scan_run_error_trace_pb'
|
|
7
8
|
require 'google/cloud/websecurityscanner/v1/scan_run_warning_trace_pb'
|
8
9
|
require 'google/protobuf/timestamp_pb'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
value :ERROR, 2
|
35
|
-
value :KILLED, 3
|
11
|
+
|
12
|
+
descriptor_data = "\n1google/cloud/websecurityscanner/v1/scan_run.proto\x12\"google.cloud.websecurityscanner.v1\x1a=google/cloud/websecurityscanner/v1/scan_run_error_trace.proto\x1a?google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd0\x05\n\x07ScanRun\x12\x0c\n\x04name\x18\x01 \x01(\t\x12S\n\x0f\x65xecution_state\x18\x02 \x01(\x0e\x32:.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState\x12M\n\x0cresult_state\x18\x03 \x01(\x0e\x32\x37.google.cloud.websecurityscanner.v1.ScanRun.ResultState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12urls_crawled_count\x18\x06 \x01(\x03\x12\x19\n\x11urls_tested_count\x18\x07 \x01(\x03\x12\x1b\n\x13has_vulnerabilities\x18\x08 \x01(\x08\x12\x18\n\x10progress_percent\x18\t \x01(\x05\x12J\n\x0b\x65rror_trace\x18\n \x01(\x0b\x32\x35.google.cloud.websecurityscanner.v1.ScanRunErrorTrace\x12O\n\x0ewarning_traces\x18\x0b \x03(\x0b\x32\x37.google.cloud.websecurityscanner.v1.ScanRunWarningTrace\"Y\n\x0e\x45xecutionState\x12\x1f\n\x1b\x45XECUTION_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0c\n\x08SCANNING\x10\x02\x12\x0c\n\x08\x46INISHED\x10\x03\"O\n\x0bResultState\x12\x1c\n\x18RESULT_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SUCCESS\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\n\n\x06KILLED\x10\x03\x42\x82\x02\n&com.google.cloud.websecurityscanner.v1B\x0cScanRunProtoP\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
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
28
|
+
["google.cloud.websecurityscanner.v1.ScanRunErrorTrace", "google/cloud/websecurityscanner/v1/scan_run_error_trace.proto"],
|
29
|
+
["google.cloud.websecurityscanner.v1.ScanRunWarningTrace", "google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
36
35
|
end
|
37
36
|
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
38
39
|
end
|
39
40
|
|
40
41
|
module Google
|
@@ -1,22 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n?google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto\x12\"google.cloud.websecurityscanner.v1\"\x95\x02\n\x13ScanRunWarningTrace\x12J\n\x04\x63ode\x18\x01 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code\"\xb1\x01\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x1e\n\x1aINSUFFICIENT_CRAWL_RESULTS\x10\x01\x12\x1a\n\x16TOO_MANY_CRAWL_RESULTS\x10\x02\x12\x17\n\x13TOO_MANY_FUZZ_TASKS\x10\x03\x12\x12\n\x0e\x42LOCKED_BY_IAP\x10\x04\x12*\n&NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN\x10\x05\x42\x8e\x02\n&com.google.cloud.websecurityscanner.v1B\x18ScanRunWarningTraceProtoP\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"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
18
28
|
end
|
19
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
20
32
|
end
|
21
33
|
|
22
34
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/websecurityscanner/v1/web_security_scanner.proto
|
3
4
|
|
@@ -13,78 +14,37 @@ require 'google/cloud/websecurityscanner/v1/scan_run_pb'
|
|
13
14
|
require 'google/protobuf/empty_pb'
|
14
15
|
require 'google/protobuf/field_mask_pb'
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
end
|
44
|
-
add_message "google.cloud.websecurityscanner.v1.GetScanRunRequest" do
|
45
|
-
optional :name, :string, 1
|
46
|
-
end
|
47
|
-
add_message "google.cloud.websecurityscanner.v1.ListScanRunsRequest" do
|
48
|
-
optional :parent, :string, 1
|
49
|
-
optional :page_token, :string, 2
|
50
|
-
optional :page_size, :int32, 3
|
51
|
-
end
|
52
|
-
add_message "google.cloud.websecurityscanner.v1.ListScanRunsResponse" do
|
53
|
-
repeated :scan_runs, :message, 1, "google.cloud.websecurityscanner.v1.ScanRun"
|
54
|
-
optional :next_page_token, :string, 2
|
55
|
-
end
|
56
|
-
add_message "google.cloud.websecurityscanner.v1.StopScanRunRequest" do
|
57
|
-
optional :name, :string, 1
|
58
|
-
end
|
59
|
-
add_message "google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest" do
|
60
|
-
optional :parent, :string, 1
|
61
|
-
optional :page_token, :string, 2
|
62
|
-
optional :page_size, :int32, 3
|
63
|
-
end
|
64
|
-
add_message "google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse" do
|
65
|
-
repeated :crawled_urls, :message, 1, "google.cloud.websecurityscanner.v1.CrawledUrl"
|
66
|
-
optional :next_page_token, :string, 2
|
67
|
-
end
|
68
|
-
add_message "google.cloud.websecurityscanner.v1.GetFindingRequest" do
|
69
|
-
optional :name, :string, 1
|
70
|
-
end
|
71
|
-
add_message "google.cloud.websecurityscanner.v1.ListFindingsRequest" do
|
72
|
-
optional :parent, :string, 1
|
73
|
-
optional :filter, :string, 2
|
74
|
-
optional :page_token, :string, 3
|
75
|
-
optional :page_size, :int32, 4
|
76
|
-
end
|
77
|
-
add_message "google.cloud.websecurityscanner.v1.ListFindingsResponse" do
|
78
|
-
repeated :findings, :message, 1, "google.cloud.websecurityscanner.v1.Finding"
|
79
|
-
optional :next_page_token, :string, 2
|
80
|
-
end
|
81
|
-
add_message "google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest" do
|
82
|
-
optional :parent, :string, 1
|
83
|
-
end
|
84
|
-
add_message "google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse" do
|
85
|
-
repeated :finding_type_stats, :message, 1, "google.cloud.websecurityscanner.v1.FindingTypeStats"
|
17
|
+
|
18
|
+
descriptor_data = "\n=google/cloud/websecurityscanner/v1/web_security_scanner.proto\x12\"google.cloud.websecurityscanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x34google/cloud/websecurityscanner/v1/crawled_url.proto\x1a\x30google/cloud/websecurityscanner/v1/finding.proto\x1a;google/cloud/websecurityscanner/v1/finding_type_stats.proto\x1a\x34google/cloud/websecurityscanner/v1/scan_config.proto\x1a\x31google/cloud/websecurityscanner/v1/scan_run.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"n\n\x17\x43reateScanConfigRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x43\n\x0bscan_config\x18\x02 \x01(\x0b\x32..google.cloud.websecurityscanner.v1.ScanConfig\"\'\n\x17\x44\x65leteScanConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"$\n\x14GetScanConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"O\n\x16ListScanConfigsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"\x8f\x01\n\x17UpdateScanConfigRequest\x12\x43\n\x0bscan_config\x18\x02 \x01(\x0b\x32..google.cloud.websecurityscanner.v1.ScanConfig\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"x\n\x17ListScanConfigsResponse\x12\x44\n\x0cscan_configs\x18\x01 \x03(\x0b\x32..google.cloud.websecurityscanner.v1.ScanConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"#\n\x13StartScanRunRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"!\n\x11GetScanRunRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"L\n\x13ListScanRunsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"o\n\x14ListScanRunsResponse\x12>\n\tscan_runs\x18\x01 \x03(\x0b\x32+.google.cloud.websecurityscanner.v1.ScanRun\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\"\n\x12StopScanRunRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"O\n\x16ListCrawledUrlsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"x\n\x17ListCrawledUrlsResponse\x12\x44\n\x0c\x63rawled_urls\x18\x01 \x03(\x0b\x32..google.cloud.websecurityscanner.v1.CrawledUrl\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"!\n\x11GetFindingRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\\\n\x13ListFindingsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\"n\n\x14ListFindingsResponse\x12=\n\x08\x66indings\x18\x01 \x03(\x0b\x32+.google.cloud.websecurityscanner.v1.Finding\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"-\n\x1bListFindingTypeStatsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\"p\n\x1cListFindingTypeStatsResponse\x12P\n\x12\x66inding_type_stats\x18\x01 \x03(\x0b\x32\x34.google.cloud.websecurityscanner.v1.FindingTypeStats2\xe9\x13\n\x12WebSecurityScanner\x12\xb9\x01\n\x10\x43reateScanConfig\x12;.google.cloud.websecurityscanner.v1.CreateScanConfigRequest\x1a..google.cloud.websecurityscanner.v1.ScanConfig\"8\x82\xd3\xe4\x93\x02\x32\"#/v1/{parent=projects/*}/scanConfigs:\x0bscan_config\x12\x94\x01\n\x10\x44\x65leteScanConfig\x12;.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02%*#/v1/{name=projects/*/scanConfigs/*}\x12\xa6\x01\n\rGetScanConfig\x12\x38.google.cloud.websecurityscanner.v1.GetScanConfigRequest\x1a..google.cloud.websecurityscanner.v1.ScanConfig\"+\x82\xd3\xe4\x93\x02%\x12#/v1/{name=projects/*/scanConfigs/*}\x12\xb7\x01\n\x0fListScanConfigs\x12:.google.cloud.websecurityscanner.v1.ListScanConfigsRequest\x1a;.google.cloud.websecurityscanner.v1.ListScanConfigsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/v1/{parent=projects/*}/scanConfigs\x12\xc5\x01\n\x10UpdateScanConfig\x12;.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest\x1a..google.cloud.websecurityscanner.v1.ScanConfig\"D\x82\xd3\xe4\x93\x02>2//v1/{scan_config.name=projects/*/scanConfigs/*}:\x0bscan_config\x12\xaa\x01\n\x0cStartScanRun\x12\x37.google.cloud.websecurityscanner.v1.StartScanRunRequest\x1a+.google.cloud.websecurityscanner.v1.ScanRun\"4\x82\xd3\xe4\x93\x02.\")/v1/{name=projects/*/scanConfigs/*}:start:\x01*\x12\xa8\x01\n\nGetScanRun\x12\x35.google.cloud.websecurityscanner.v1.GetScanRunRequest\x1a+.google.cloud.websecurityscanner.v1.ScanRun\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/scanConfigs/*/scanRuns/*}\x12\xb9\x01\n\x0cListScanRuns\x12\x37.google.cloud.websecurityscanner.v1.ListScanRunsRequest\x1a\x38.google.cloud.websecurityscanner.v1.ListScanRunsResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/scanConfigs/*}/scanRuns\x12\xb2\x01\n\x0bStopScanRun\x12\x36.google.cloud.websecurityscanner.v1.StopScanRunRequest\x1a+.google.cloud.websecurityscanner.v1.ScanRun\">\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/scanConfigs/*/scanRuns/*}:stop:\x01*\x12\xd0\x01\n\x0fListCrawledUrls\x12:.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest\x1a;.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse\"D\x82\xd3\xe4\x93\x02>\x12</v1/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls\x12\xb3\x01\n\nGetFinding\x12\x35.google.cloud.websecurityscanner.v1.GetFindingRequest\x1a+.google.cloud.websecurityscanner.v1.Finding\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\x12\xc4\x01\n\x0cListFindings\x12\x37.google.cloud.websecurityscanner.v1.ListFindingsRequest\x1a\x38.google.cloud.websecurityscanner.v1.ListFindingsResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\x12\xe4\x01\n\x14ListFindingTypeStats\x12?.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest\x1a@.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats\x1aU\xca\x41!websecurityscanner.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x8d\x02\n&com.google.cloud.websecurityscanner.v1B\x17WebSecurityScannerProtoP\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"
|
19
|
+
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
|
+
|
22
|
+
begin
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
24
|
+
rescue TypeError => e
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
28
|
+
parsed.clear_dependency
|
29
|
+
serialized = parsed.class.encode(parsed)
|
30
|
+
file = pool.add_serialized_file(serialized)
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
32
|
+
imports = [
|
33
|
+
["google.cloud.websecurityscanner.v1.ScanConfig", "google/cloud/websecurityscanner/v1/scan_config.proto"],
|
34
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
35
|
+
["google.cloud.websecurityscanner.v1.ScanRun", "google/cloud/websecurityscanner/v1/scan_run.proto"],
|
36
|
+
["google.cloud.websecurityscanner.v1.CrawledUrl", "google/cloud/websecurityscanner/v1/crawled_url.proto"],
|
37
|
+
["google.cloud.websecurityscanner.v1.Finding", "google/cloud/websecurityscanner/v1/finding.proto"],
|
38
|
+
["google.cloud.websecurityscanner.v1.FindingTypeStats", "google/cloud/websecurityscanner/v1/finding_type_stats.proto"],
|
39
|
+
]
|
40
|
+
imports.each do |type_name, expected_filename|
|
41
|
+
import_file = pool.lookup(type_name).file_descriptor
|
42
|
+
if import_file.name != expected_filename
|
43
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
86
44
|
end
|
87
45
|
end
|
46
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
47
|
+
warn "This will become an error in the next major version."
|
88
48
|
end
|
89
49
|
|
90
50
|
module Google
|