google-cloud-web_security_scanner-v1beta 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +75 -0
- data/lib/google-cloud-web_security_scanner-v1beta.rb +21 -0
- data/lib/google/cloud/web_security_scanner/v1beta.rb +35 -0
- data/lib/google/cloud/web_security_scanner/v1beta/version.rb +28 -0
- data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner.rb +51 -0
- data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/client.rb +1395 -0
- data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/credentials.rb +51 -0
- data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/paths.rb +104 -0
- data/lib/google/cloud/websecurityscanner/v1beta/crawled_url_pb.rb +24 -0
- data/lib/google/cloud/websecurityscanner/v1beta/finding_addon_pb.rb +53 -0
- data/lib/google/cloud/websecurityscanner/v1beta/finding_pb.rb +39 -0
- data/lib/google/cloud/websecurityscanner/v1beta/finding_type_stats_pb.rb +23 -0
- data/lib/google/cloud/websecurityscanner/v1beta/scan_config_error_pb.rb +68 -0
- data/lib/google/cloud/websecurityscanner/v1beta/scan_config_pb.rb +85 -0
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_error_trace_pb.rb +35 -0
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_pb.rb +50 -0
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace_pb.rb +30 -0
- data/lib/google/cloud/websecurityscanner/v1beta/web_security_scanner_pb.rb +116 -0
- data/lib/google/cloud/websecurityscanner/v1beta/web_security_scanner_services_pb.rb +73 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/websecurityscanner/v1beta/crawled_url.rb +44 -0
- data/proto_docs/google/cloud/websecurityscanner/v1beta/finding.rb +93 -0
- data/proto_docs/google/cloud/websecurityscanner/v1beta/finding_addon.rb +111 -0
- data/proto_docs/google/cloud/websecurityscanner/v1beta/finding_type_stats.rb +39 -0
- data/proto_docs/google/cloud/websecurityscanner/v1beta/scan_config.rb +188 -0
- data/proto_docs/google/cloud/websecurityscanner/v1beta/scan_config_error.rb +191 -0
- data/proto_docs/google/cloud/websecurityscanner/v1beta/scan_run.rb +110 -0
- data/proto_docs/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.rb +77 -0
- data/proto_docs/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.rb +62 -0
- data/proto_docs/google/cloud/websecurityscanner/v1beta/web_security_scanner.rb +278 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- metadata +221 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module WebSecurityScanner
|
24
|
+
module V1beta
|
25
|
+
module WebSecurityScanner
|
26
|
+
# Credentials for the WebSecurityScanner API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"WEB_SECURITY_SCANNER_CREDENTIALS",
|
33
|
+
"WEB_SECURITY_SCANNER_KEYFILE",
|
34
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
35
|
+
"GOOGLE_CLOUD_KEYFILE",
|
36
|
+
"GCLOUD_KEYFILE",
|
37
|
+
"WEB_SECURITY_SCANNER_CREDENTIALS_JSON",
|
38
|
+
"WEB_SECURITY_SCANNER_KEYFILE_JSON",
|
39
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
40
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
41
|
+
"GCLOUD_KEYFILE_JSON"
|
42
|
+
]
|
43
|
+
self.paths = [
|
44
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
45
|
+
]
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module WebSecurityScanner
|
23
|
+
module V1beta
|
24
|
+
module WebSecurityScanner
|
25
|
+
# Path helper methods for the WebSecurityScanner API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Finding resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param scan_config [String]
|
36
|
+
# @param scan_run [String]
|
37
|
+
# @param finding [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def finding_path project:, scan_config:, scan_run:, finding:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "scan_config cannot contain /" if scan_config.to_s.include? "/"
|
43
|
+
raise ::ArgumentError, "scan_run cannot contain /" if scan_run.to_s.include? "/"
|
44
|
+
|
45
|
+
"projects/#{project}/scanConfigs/#{scan_config}/scanRuns/#{scan_run}/findings/#{finding}"
|
46
|
+
end
|
47
|
+
|
48
|
+
##
|
49
|
+
# Create a fully-qualified Project resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
#
|
57
|
+
# @return [::String]
|
58
|
+
def project_path project:
|
59
|
+
"projects/#{project}"
|
60
|
+
end
|
61
|
+
|
62
|
+
##
|
63
|
+
# Create a fully-qualified ScanConfig resource string.
|
64
|
+
#
|
65
|
+
# The resource will be in the following format:
|
66
|
+
#
|
67
|
+
# `projects/{project}/scanConfigs/{scan_config}`
|
68
|
+
#
|
69
|
+
# @param project [String]
|
70
|
+
# @param scan_config [String]
|
71
|
+
#
|
72
|
+
# @return [::String]
|
73
|
+
def scan_config_path project:, scan_config:
|
74
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
75
|
+
|
76
|
+
"projects/#{project}/scanConfigs/#{scan_config}"
|
77
|
+
end
|
78
|
+
|
79
|
+
##
|
80
|
+
# Create a fully-qualified ScanRun resource string.
|
81
|
+
#
|
82
|
+
# The resource will be in the following format:
|
83
|
+
#
|
84
|
+
# `projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}`
|
85
|
+
#
|
86
|
+
# @param project [String]
|
87
|
+
# @param scan_config [String]
|
88
|
+
# @param scan_run [String]
|
89
|
+
#
|
90
|
+
# @return [::String]
|
91
|
+
def scan_run_path project:, scan_config:, scan_run:
|
92
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
93
|
+
raise ::ArgumentError, "scan_config cannot contain /" if scan_config.to_s.include? "/"
|
94
|
+
|
95
|
+
"projects/#{project}/scanConfigs/#{scan_config}/scanRuns/#{scan_run}"
|
96
|
+
end
|
97
|
+
|
98
|
+
extend self
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/websecurityscanner/v1beta/crawled_url.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("google/cloud/websecurityscanner/v1beta/crawled_url.proto", :syntax => :proto3) do
|
8
|
+
add_message "google.cloud.websecurityscanner.v1beta.CrawledUrl" do
|
9
|
+
optional :http_method, :string, 1
|
10
|
+
optional :url, :string, 2
|
11
|
+
optional :body, :string, 3
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Cloud
|
18
|
+
module WebSecurityScanner
|
19
|
+
module V1beta
|
20
|
+
CrawledUrl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.CrawledUrl").msgclass
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/websecurityscanner/v1beta/finding_addon.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("google/cloud/websecurityscanner/v1beta/finding_addon.proto", :syntax => :proto3) do
|
8
|
+
add_message "google.cloud.websecurityscanner.v1beta.Form" do
|
9
|
+
optional :action_uri, :string, 1
|
10
|
+
repeated :fields, :string, 2
|
11
|
+
end
|
12
|
+
add_message "google.cloud.websecurityscanner.v1beta.OutdatedLibrary" do
|
13
|
+
optional :library_name, :string, 1
|
14
|
+
optional :version, :string, 2
|
15
|
+
repeated :learn_more_urls, :string, 3
|
16
|
+
end
|
17
|
+
add_message "google.cloud.websecurityscanner.v1beta.ViolatingResource" do
|
18
|
+
optional :content_type, :string, 1
|
19
|
+
optional :resource_url, :string, 2
|
20
|
+
end
|
21
|
+
add_message "google.cloud.websecurityscanner.v1beta.VulnerableParameters" do
|
22
|
+
repeated :parameter_names, :string, 1
|
23
|
+
end
|
24
|
+
add_message "google.cloud.websecurityscanner.v1beta.VulnerableHeaders" do
|
25
|
+
repeated :headers, :message, 1, "google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header"
|
26
|
+
repeated :missing_headers, :message, 2, "google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header"
|
27
|
+
end
|
28
|
+
add_message "google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header" do
|
29
|
+
optional :name, :string, 1
|
30
|
+
optional :value, :string, 2
|
31
|
+
end
|
32
|
+
add_message "google.cloud.websecurityscanner.v1beta.Xss" do
|
33
|
+
repeated :stack_traces, :string, 1
|
34
|
+
optional :error_message, :string, 2
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
module Google
|
40
|
+
module Cloud
|
41
|
+
module WebSecurityScanner
|
42
|
+
module V1beta
|
43
|
+
Form = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.Form").msgclass
|
44
|
+
OutdatedLibrary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.OutdatedLibrary").msgclass
|
45
|
+
ViolatingResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ViolatingResource").msgclass
|
46
|
+
VulnerableParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.VulnerableParameters").msgclass
|
47
|
+
VulnerableHeaders = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.VulnerableHeaders").msgclass
|
48
|
+
VulnerableHeaders::Header = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header").msgclass
|
49
|
+
Xss = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.Xss").msgclass
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/websecurityscanner/v1beta/finding.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/cloud/websecurityscanner/v1beta/finding_addon_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/websecurityscanner/v1beta/finding.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.websecurityscanner.v1beta.Finding" do
|
11
|
+
optional :name, :string, 1
|
12
|
+
optional :finding_type, :string, 2
|
13
|
+
optional :http_method, :string, 3
|
14
|
+
optional :fuzzed_url, :string, 4
|
15
|
+
optional :body, :string, 5
|
16
|
+
optional :description, :string, 6
|
17
|
+
optional :reproduction_url, :string, 7
|
18
|
+
optional :frame_url, :string, 8
|
19
|
+
optional :final_url, :string, 9
|
20
|
+
optional :tracking_id, :string, 10
|
21
|
+
optional :form, :message, 16, "google.cloud.websecurityscanner.v1beta.Form"
|
22
|
+
optional :outdated_library, :message, 11, "google.cloud.websecurityscanner.v1beta.OutdatedLibrary"
|
23
|
+
optional :violating_resource, :message, 12, "google.cloud.websecurityscanner.v1beta.ViolatingResource"
|
24
|
+
optional :vulnerable_headers, :message, 15, "google.cloud.websecurityscanner.v1beta.VulnerableHeaders"
|
25
|
+
optional :vulnerable_parameters, :message, 13, "google.cloud.websecurityscanner.v1beta.VulnerableParameters"
|
26
|
+
optional :xss, :message, 14, "google.cloud.websecurityscanner.v1beta.Xss"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module WebSecurityScanner
|
34
|
+
module V1beta
|
35
|
+
Finding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.Finding").msgclass
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("google/cloud/websecurityscanner/v1beta/finding_type_stats.proto", :syntax => :proto3) do
|
8
|
+
add_message "google.cloud.websecurityscanner.v1beta.FindingTypeStats" do
|
9
|
+
optional :finding_type, :string, 1
|
10
|
+
optional :finding_count, :int32, 2
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Cloud
|
17
|
+
module WebSecurityScanner
|
18
|
+
module V1beta
|
19
|
+
FindingTypeStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.FindingTypeStats").msgclass
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("google/cloud/websecurityscanner/v1beta/scan_config_error.proto", :syntax => :proto3) do
|
8
|
+
add_message "google.cloud.websecurityscanner.v1beta.ScanConfigError" do
|
9
|
+
optional :code, :enum, 1, "google.cloud.websecurityscanner.v1beta.ScanConfigError.Code"
|
10
|
+
optional :field_name, :string, 2
|
11
|
+
end
|
12
|
+
add_enum "google.cloud.websecurityscanner.v1beta.ScanConfigError.Code" do
|
13
|
+
value :CODE_UNSPECIFIED, 0
|
14
|
+
value :OK, 0
|
15
|
+
value :INTERNAL_ERROR, 1
|
16
|
+
value :APPENGINE_API_BACKEND_ERROR, 2
|
17
|
+
value :APPENGINE_API_NOT_ACCESSIBLE, 3
|
18
|
+
value :APPENGINE_DEFAULT_HOST_MISSING, 4
|
19
|
+
value :CANNOT_USE_GOOGLE_COM_ACCOUNT, 6
|
20
|
+
value :CANNOT_USE_OWNER_ACCOUNT, 7
|
21
|
+
value :COMPUTE_API_BACKEND_ERROR, 8
|
22
|
+
value :COMPUTE_API_NOT_ACCESSIBLE, 9
|
23
|
+
value :CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, 10
|
24
|
+
value :CUSTOM_LOGIN_URL_MALFORMED, 11
|
25
|
+
value :CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, 12
|
26
|
+
value :CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, 13
|
27
|
+
value :CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, 14
|
28
|
+
value :CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, 15
|
29
|
+
value :DUPLICATE_SCAN_NAME, 16
|
30
|
+
value :INVALID_FIELD_VALUE, 18
|
31
|
+
value :FAILED_TO_AUTHENTICATE_TO_TARGET, 19
|
32
|
+
value :FINDING_TYPE_UNSPECIFIED, 20
|
33
|
+
value :FORBIDDEN_TO_SCAN_COMPUTE, 21
|
34
|
+
value :FORBIDDEN_UPDATE_TO_MANAGED_SCAN, 43
|
35
|
+
value :MALFORMED_FILTER, 22
|
36
|
+
value :MALFORMED_RESOURCE_NAME, 23
|
37
|
+
value :PROJECT_INACTIVE, 24
|
38
|
+
value :REQUIRED_FIELD, 25
|
39
|
+
value :RESOURCE_NAME_INCONSISTENT, 26
|
40
|
+
value :SCAN_ALREADY_RUNNING, 27
|
41
|
+
value :SCAN_NOT_RUNNING, 28
|
42
|
+
value :SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, 29
|
43
|
+
value :SEED_URL_MALFORMED, 30
|
44
|
+
value :SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, 31
|
45
|
+
value :SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, 32
|
46
|
+
value :SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, 33
|
47
|
+
value :SEED_URL_HAS_UNRESERVED_IP_ADDRESS, 35
|
48
|
+
value :SERVICE_ACCOUNT_NOT_CONFIGURED, 36
|
49
|
+
value :TOO_MANY_SCANS, 37
|
50
|
+
value :UNABLE_TO_RESOLVE_PROJECT_INFO, 38
|
51
|
+
value :UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, 39
|
52
|
+
value :UNSUPPORTED_FILTER, 40
|
53
|
+
value :UNSUPPORTED_FINDING_TYPE, 41
|
54
|
+
value :UNSUPPORTED_URL_SCHEME, 42
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
module Google
|
60
|
+
module Cloud
|
61
|
+
module WebSecurityScanner
|
62
|
+
module V1beta
|
63
|
+
ScanConfigError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ScanConfigError").msgclass
|
64
|
+
ScanConfigError::Code = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ScanConfigError.Code").enummodule
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/websecurityscanner/v1beta/scan_config.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/websecurityscanner/v1beta/scan_run_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_file("google/cloud/websecurityscanner/v1beta/scan_config.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.cloud.websecurityscanner.v1beta.ScanConfig" do
|
13
|
+
optional :name, :string, 1
|
14
|
+
optional :display_name, :string, 2
|
15
|
+
optional :max_qps, :int32, 3
|
16
|
+
repeated :starting_urls, :string, 4
|
17
|
+
optional :authentication, :message, 5, "google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication"
|
18
|
+
optional :user_agent, :enum, 6, "google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent"
|
19
|
+
repeated :blacklist_patterns, :string, 7
|
20
|
+
optional :schedule, :message, 8, "google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule"
|
21
|
+
repeated :target_platforms, :enum, 9, "google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform"
|
22
|
+
optional :export_to_security_command_center, :enum, 10, "google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter"
|
23
|
+
optional :latest_run, :message, 11, "google.cloud.websecurityscanner.v1beta.ScanRun"
|
24
|
+
optional :risk_level, :enum, 12, "google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel"
|
25
|
+
end
|
26
|
+
add_message "google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication" do
|
27
|
+
oneof :authentication do
|
28
|
+
optional :google_account, :message, 1, "google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount"
|
29
|
+
optional :custom_account, :message, 2, "google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
add_message "google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount" do
|
33
|
+
optional :username, :string, 1
|
34
|
+
optional :password, :string, 2
|
35
|
+
end
|
36
|
+
add_message "google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount" do
|
37
|
+
optional :username, :string, 1
|
38
|
+
optional :password, :string, 2
|
39
|
+
optional :login_url, :string, 3
|
40
|
+
end
|
41
|
+
add_message "google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule" do
|
42
|
+
optional :schedule_time, :message, 1, "google.protobuf.Timestamp"
|
43
|
+
optional :interval_duration_days, :int32, 2
|
44
|
+
end
|
45
|
+
add_enum "google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent" do
|
46
|
+
value :USER_AGENT_UNSPECIFIED, 0
|
47
|
+
value :CHROME_LINUX, 1
|
48
|
+
value :CHROME_ANDROID, 2
|
49
|
+
value :SAFARI_IPHONE, 3
|
50
|
+
end
|
51
|
+
add_enum "google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform" do
|
52
|
+
value :TARGET_PLATFORM_UNSPECIFIED, 0
|
53
|
+
value :APP_ENGINE, 1
|
54
|
+
value :COMPUTE, 2
|
55
|
+
end
|
56
|
+
add_enum "google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel" do
|
57
|
+
value :RISK_LEVEL_UNSPECIFIED, 0
|
58
|
+
value :NORMAL, 1
|
59
|
+
value :LOW, 2
|
60
|
+
end
|
61
|
+
add_enum "google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter" do
|
62
|
+
value :EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED, 0
|
63
|
+
value :ENABLED, 1
|
64
|
+
value :DISABLED, 2
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
module Google
|
70
|
+
module Cloud
|
71
|
+
module WebSecurityScanner
|
72
|
+
module V1beta
|
73
|
+
ScanConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ScanConfig").msgclass
|
74
|
+
ScanConfig::Authentication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication").msgclass
|
75
|
+
ScanConfig::Authentication::GoogleAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount").msgclass
|
76
|
+
ScanConfig::Authentication::CustomAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount").msgclass
|
77
|
+
ScanConfig::Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule").msgclass
|
78
|
+
ScanConfig::UserAgent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent").enummodule
|
79
|
+
ScanConfig::TargetPlatform = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform").enummodule
|
80
|
+
ScanConfig::RiskLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel").enummodule
|
81
|
+
ScanConfig::ExportToSecurityCommandCenter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter").enummodule
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|