google-apis-websecurityscanner_v1alpha 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ba44b62dc1bb47bc638188c7ada5ce0fe1bd32a620f524c93b1e5040fbbe6d79
4
+ data.tar.gz: 035b5ed11c565957a4590ebab73ccc3e0b9ec45d582ae7059b54a41b74704a68
5
+ SHA512:
6
+ metadata.gz: 56078e23c56365d4d70c815b01225ed75a82f3be6d5f05c7568ee0a30f2cb2dcda804c37fea7379759316a95237d0033c69eceb6e57c5179878bb037eab2cf56
7
+ data.tar.gz: 7974a0238f9ea8dcbf5089b0577170f74bf6267d022fa152fdc285104bd55cb48ba543c7c8f7f0d12853cc6a8eed8b10860f1689381048cf3363e039374f5a88
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-websecurityscanner_v1alpha
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/websecurityscanner_v1alpha/*.rb
9
+ lib/google/apis/websecurityscanner_v1alpha.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-websecurityscanner_v1alpha
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20200826
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1alpha of the Web Security Scanner API
2
+
3
+ This is a simple client library for version V1alpha of the Web Security Scanner API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/websecurityscanner.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-websecurityscanner_v1alpha', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-websecurityscanner_v1alpha
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/websecurityscanner_v1alpha"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::WebsecurityscannerV1alpha::WebSecurityScannerService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Websecurityscanner service in particular.)
67
+
68
+ For reference information on specific calls in the Web Security Scanner API, see the {Google::Apis::WebsecurityscannerV1alpha::WebSecurityScannerService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-websecurityscanner_v1alpha`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview/) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/websecurityscanner_v1alpha"
@@ -0,0 +1,36 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/websecurityscanner_v1alpha/service.rb'
16
+ require 'google/apis/websecurityscanner_v1alpha/classes.rb'
17
+ require 'google/apis/websecurityscanner_v1alpha/representations.rb'
18
+ require 'google/apis/websecurityscanner_v1alpha/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Web Security Scanner API
23
+ #
24
+ # Scans your Compute and App Engine apps for common web vulnerabilities.
25
+ #
26
+ # @see https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview/
27
+ module WebsecurityscannerV1alpha
28
+ # Version of the Web Security Scanner API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1alpha'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,784 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module WebsecurityscannerV1alpha
24
+
25
+ # Scan authentication configuration.
26
+ class Authentication
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Describes authentication configuration that uses a custom account.
30
+ # Corresponds to the JSON property `customAccount`
31
+ # @return [Google::Apis::WebsecurityscannerV1alpha::CustomAccount]
32
+ attr_accessor :custom_account
33
+
34
+ # Describes authentication configuration that uses a Google account.
35
+ # Corresponds to the JSON property `googleAccount`
36
+ # @return [Google::Apis::WebsecurityscannerV1alpha::GoogleAccount]
37
+ attr_accessor :google_account
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @custom_account = args[:custom_account] if args.key?(:custom_account)
46
+ @google_account = args[:google_account] if args.key?(:google_account)
47
+ end
48
+ end
49
+
50
+ # A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
51
+ # Security Scanner Service crawls the web applications, following all links
52
+ # within the scope of sites, to find the URLs to test against.
53
+ class CrawledUrl
54
+ include Google::Apis::Core::Hashable
55
+
56
+ # Output only. The body of the request that was used to visit the URL.
57
+ # Corresponds to the JSON property `body`
58
+ # @return [String]
59
+ attr_accessor :body
60
+
61
+ # Output only. The http method of the request that was used to visit the URL, in
62
+ # uppercase.
63
+ # Corresponds to the JSON property `httpMethod`
64
+ # @return [String]
65
+ attr_accessor :http_method
66
+
67
+ # Output only. The URL that was crawled.
68
+ # Corresponds to the JSON property `url`
69
+ # @return [String]
70
+ attr_accessor :url
71
+
72
+ def initialize(**args)
73
+ update!(**args)
74
+ end
75
+
76
+ # Update properties of this object
77
+ def update!(**args)
78
+ @body = args[:body] if args.key?(:body)
79
+ @http_method = args[:http_method] if args.key?(:http_method)
80
+ @url = args[:url] if args.key?(:url)
81
+ end
82
+ end
83
+
84
+ # Describes authentication configuration that uses a custom account.
85
+ class CustomAccount
86
+ include Google::Apis::Core::Hashable
87
+
88
+ # Required. The login form URL of the website.
89
+ # Corresponds to the JSON property `loginUrl`
90
+ # @return [String]
91
+ attr_accessor :login_url
92
+
93
+ # Required. Input only. The password of the custom account. The credential is
94
+ # stored encrypted and not returned in any response nor included in audit logs.
95
+ # Corresponds to the JSON property `password`
96
+ # @return [String]
97
+ attr_accessor :password
98
+
99
+ # Required. The user name of the custom account.
100
+ # Corresponds to the JSON property `username`
101
+ # @return [String]
102
+ attr_accessor :username
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ @login_url = args[:login_url] if args.key?(:login_url)
111
+ @password = args[:password] if args.key?(:password)
112
+ @username = args[:username] if args.key?(:username)
113
+ end
114
+ end
115
+
116
+ # A generic empty message that you can re-use to avoid defining duplicated empty
117
+ # messages in your APIs. A typical example is to use it as the request or the
118
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
119
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
120
+ # `Empty` is empty JSON object ````.
121
+ class Empty
122
+ include Google::Apis::Core::Hashable
123
+
124
+ def initialize(**args)
125
+ update!(**args)
126
+ end
127
+
128
+ # Update properties of this object
129
+ def update!(**args)
130
+ end
131
+ end
132
+
133
+ # A Finding resource represents a vulnerability instance identified during a
134
+ # ScanRun.
135
+ class Finding
136
+ include Google::Apis::Core::Hashable
137
+
138
+ # The body of the request that triggered the vulnerability.
139
+ # Corresponds to the JSON property `body`
140
+ # @return [String]
141
+ attr_accessor :body
142
+
143
+ # The description of the vulnerability.
144
+ # Corresponds to the JSON property `description`
145
+ # @return [String]
146
+ attr_accessor :description
147
+
148
+ # The URL where the browser lands when the vulnerability is detected.
149
+ # Corresponds to the JSON property `finalUrl`
150
+ # @return [String]
151
+ attr_accessor :final_url
152
+
153
+ # The type of the Finding.
154
+ # Corresponds to the JSON property `findingType`
155
+ # @return [String]
156
+ attr_accessor :finding_type
157
+
158
+ # If the vulnerability was originated from nested IFrame, the immediate parent
159
+ # IFrame is reported.
160
+ # Corresponds to the JSON property `frameUrl`
161
+ # @return [String]
162
+ attr_accessor :frame_url
163
+
164
+ # The URL produced by the server-side fuzzer and used in the request that
165
+ # triggered the vulnerability.
166
+ # Corresponds to the JSON property `fuzzedUrl`
167
+ # @return [String]
168
+ attr_accessor :fuzzed_url
169
+
170
+ # The http method of the request that triggered the vulnerability, in uppercase.
171
+ # Corresponds to the JSON property `httpMethod`
172
+ # @return [String]
173
+ attr_accessor :http_method
174
+
175
+ # The resource name of the Finding. The name follows the format of 'projects/`
176
+ # projectId`/scanConfigs/`scanConfigId`/scanruns/`scanRunId`/findings/`findingId`
177
+ # '. The finding IDs are generated by the system.
178
+ # Corresponds to the JSON property `name`
179
+ # @return [String]
180
+ attr_accessor :name
181
+
182
+ # Information reported for an outdated library.
183
+ # Corresponds to the JSON property `outdatedLibrary`
184
+ # @return [Google::Apis::WebsecurityscannerV1alpha::OutdatedLibrary]
185
+ attr_accessor :outdated_library
186
+
187
+ # The URL containing human-readable payload that user can leverage to reproduce
188
+ # the vulnerability.
189
+ # Corresponds to the JSON property `reproductionUrl`
190
+ # @return [String]
191
+ attr_accessor :reproduction_url
192
+
193
+ # The tracking ID uniquely identifies a vulnerability instance across multiple
194
+ # ScanRuns.
195
+ # Corresponds to the JSON property `trackingId`
196
+ # @return [String]
197
+ attr_accessor :tracking_id
198
+
199
+ # Information regarding any resource causing the vulnerability such as
200
+ # JavaScript sources, image, audio files, etc.
201
+ # Corresponds to the JSON property `violatingResource`
202
+ # @return [Google::Apis::WebsecurityscannerV1alpha::ViolatingResource]
203
+ attr_accessor :violating_resource
204
+
205
+ # Information about vulnerable or missing HTTP Headers.
206
+ # Corresponds to the JSON property `vulnerableHeaders`
207
+ # @return [Google::Apis::WebsecurityscannerV1alpha::VulnerableHeaders]
208
+ attr_accessor :vulnerable_headers
209
+
210
+ # Information about vulnerable request parameters.
211
+ # Corresponds to the JSON property `vulnerableParameters`
212
+ # @return [Google::Apis::WebsecurityscannerV1alpha::VulnerableParameters]
213
+ attr_accessor :vulnerable_parameters
214
+
215
+ # Information reported for an XSS.
216
+ # Corresponds to the JSON property `xss`
217
+ # @return [Google::Apis::WebsecurityscannerV1alpha::Xss]
218
+ attr_accessor :xss
219
+
220
+ def initialize(**args)
221
+ update!(**args)
222
+ end
223
+
224
+ # Update properties of this object
225
+ def update!(**args)
226
+ @body = args[:body] if args.key?(:body)
227
+ @description = args[:description] if args.key?(:description)
228
+ @final_url = args[:final_url] if args.key?(:final_url)
229
+ @finding_type = args[:finding_type] if args.key?(:finding_type)
230
+ @frame_url = args[:frame_url] if args.key?(:frame_url)
231
+ @fuzzed_url = args[:fuzzed_url] if args.key?(:fuzzed_url)
232
+ @http_method = args[:http_method] if args.key?(:http_method)
233
+ @name = args[:name] if args.key?(:name)
234
+ @outdated_library = args[:outdated_library] if args.key?(:outdated_library)
235
+ @reproduction_url = args[:reproduction_url] if args.key?(:reproduction_url)
236
+ @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
237
+ @violating_resource = args[:violating_resource] if args.key?(:violating_resource)
238
+ @vulnerable_headers = args[:vulnerable_headers] if args.key?(:vulnerable_headers)
239
+ @vulnerable_parameters = args[:vulnerable_parameters] if args.key?(:vulnerable_parameters)
240
+ @xss = args[:xss] if args.key?(:xss)
241
+ end
242
+ end
243
+
244
+ # A FindingTypeStats resource represents stats regarding a specific FindingType
245
+ # of Findings under a given ScanRun.
246
+ class FindingTypeStats
247
+ include Google::Apis::Core::Hashable
248
+
249
+ # The count of findings belonging to this finding type.
250
+ # Corresponds to the JSON property `findingCount`
251
+ # @return [Fixnum]
252
+ attr_accessor :finding_count
253
+
254
+ # The finding type associated with the stats.
255
+ # Corresponds to the JSON property `findingType`
256
+ # @return [String]
257
+ attr_accessor :finding_type
258
+
259
+ def initialize(**args)
260
+ update!(**args)
261
+ end
262
+
263
+ # Update properties of this object
264
+ def update!(**args)
265
+ @finding_count = args[:finding_count] if args.key?(:finding_count)
266
+ @finding_type = args[:finding_type] if args.key?(:finding_type)
267
+ end
268
+ end
269
+
270
+ # Describes authentication configuration that uses a Google account.
271
+ class GoogleAccount
272
+ include Google::Apis::Core::Hashable
273
+
274
+ # Required. Input only. The password of the Google account. The credential is
275
+ # stored encrypted and not returned in any response nor included in audit logs.
276
+ # Corresponds to the JSON property `password`
277
+ # @return [String]
278
+ attr_accessor :password
279
+
280
+ # Required. The user name of the Google account.
281
+ # Corresponds to the JSON property `username`
282
+ # @return [String]
283
+ attr_accessor :username
284
+
285
+ def initialize(**args)
286
+ update!(**args)
287
+ end
288
+
289
+ # Update properties of this object
290
+ def update!(**args)
291
+ @password = args[:password] if args.key?(:password)
292
+ @username = args[:username] if args.key?(:username)
293
+ end
294
+ end
295
+
296
+ # Describes a HTTP Header.
297
+ class Header
298
+ include Google::Apis::Core::Hashable
299
+
300
+ # Header name.
301
+ # Corresponds to the JSON property `name`
302
+ # @return [String]
303
+ attr_accessor :name
304
+
305
+ # Header value.
306
+ # Corresponds to the JSON property `value`
307
+ # @return [String]
308
+ attr_accessor :value
309
+
310
+ def initialize(**args)
311
+ update!(**args)
312
+ end
313
+
314
+ # Update properties of this object
315
+ def update!(**args)
316
+ @name = args[:name] if args.key?(:name)
317
+ @value = args[:value] if args.key?(:value)
318
+ end
319
+ end
320
+
321
+ # Response for the `ListCrawledUrls` method.
322
+ class ListCrawledUrlsResponse
323
+ include Google::Apis::Core::Hashable
324
+
325
+ # The list of CrawledUrls returned.
326
+ # Corresponds to the JSON property `crawledUrls`
327
+ # @return [Array<Google::Apis::WebsecurityscannerV1alpha::CrawledUrl>]
328
+ attr_accessor :crawled_urls
329
+
330
+ # Token to retrieve the next page of results, or empty if there are no more
331
+ # results in the list.
332
+ # Corresponds to the JSON property `nextPageToken`
333
+ # @return [String]
334
+ attr_accessor :next_page_token
335
+
336
+ def initialize(**args)
337
+ update!(**args)
338
+ end
339
+
340
+ # Update properties of this object
341
+ def update!(**args)
342
+ @crawled_urls = args[:crawled_urls] if args.key?(:crawled_urls)
343
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
344
+ end
345
+ end
346
+
347
+ # Response for the `ListFindingTypeStats` method.
348
+ class ListFindingTypeStatsResponse
349
+ include Google::Apis::Core::Hashable
350
+
351
+ # The list of FindingTypeStats returned.
352
+ # Corresponds to the JSON property `findingTypeStats`
353
+ # @return [Array<Google::Apis::WebsecurityscannerV1alpha::FindingTypeStats>]
354
+ attr_accessor :finding_type_stats
355
+
356
+ def initialize(**args)
357
+ update!(**args)
358
+ end
359
+
360
+ # Update properties of this object
361
+ def update!(**args)
362
+ @finding_type_stats = args[:finding_type_stats] if args.key?(:finding_type_stats)
363
+ end
364
+ end
365
+
366
+ # Response for the `ListFindings` method.
367
+ class ListFindingsResponse
368
+ include Google::Apis::Core::Hashable
369
+
370
+ # The list of Findings returned.
371
+ # Corresponds to the JSON property `findings`
372
+ # @return [Array<Google::Apis::WebsecurityscannerV1alpha::Finding>]
373
+ attr_accessor :findings
374
+
375
+ # Token to retrieve the next page of results, or empty if there are no more
376
+ # results in the list.
377
+ # Corresponds to the JSON property `nextPageToken`
378
+ # @return [String]
379
+ attr_accessor :next_page_token
380
+
381
+ def initialize(**args)
382
+ update!(**args)
383
+ end
384
+
385
+ # Update properties of this object
386
+ def update!(**args)
387
+ @findings = args[:findings] if args.key?(:findings)
388
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
389
+ end
390
+ end
391
+
392
+ # Response for the `ListScanConfigs` method.
393
+ class ListScanConfigsResponse
394
+ include Google::Apis::Core::Hashable
395
+
396
+ # Token to retrieve the next page of results, or empty if there are no more
397
+ # results in the list.
398
+ # Corresponds to the JSON property `nextPageToken`
399
+ # @return [String]
400
+ attr_accessor :next_page_token
401
+
402
+ # The list of ScanConfigs returned.
403
+ # Corresponds to the JSON property `scanConfigs`
404
+ # @return [Array<Google::Apis::WebsecurityscannerV1alpha::ScanConfig>]
405
+ attr_accessor :scan_configs
406
+
407
+ def initialize(**args)
408
+ update!(**args)
409
+ end
410
+
411
+ # Update properties of this object
412
+ def update!(**args)
413
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
414
+ @scan_configs = args[:scan_configs] if args.key?(:scan_configs)
415
+ end
416
+ end
417
+
418
+ # Response for the `ListScanRuns` method.
419
+ class ListScanRunsResponse
420
+ include Google::Apis::Core::Hashable
421
+
422
+ # Token to retrieve the next page of results, or empty if there are no more
423
+ # results in the list.
424
+ # Corresponds to the JSON property `nextPageToken`
425
+ # @return [String]
426
+ attr_accessor :next_page_token
427
+
428
+ # The list of ScanRuns returned.
429
+ # Corresponds to the JSON property `scanRuns`
430
+ # @return [Array<Google::Apis::WebsecurityscannerV1alpha::ScanRun>]
431
+ attr_accessor :scan_runs
432
+
433
+ def initialize(**args)
434
+ update!(**args)
435
+ end
436
+
437
+ # Update properties of this object
438
+ def update!(**args)
439
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
440
+ @scan_runs = args[:scan_runs] if args.key?(:scan_runs)
441
+ end
442
+ end
443
+
444
+ # Information reported for an outdated library.
445
+ class OutdatedLibrary
446
+ include Google::Apis::Core::Hashable
447
+
448
+ # URLs to learn more information about the vulnerabilities in the library.
449
+ # Corresponds to the JSON property `learnMoreUrls`
450
+ # @return [Array<String>]
451
+ attr_accessor :learn_more_urls
452
+
453
+ # The name of the outdated library.
454
+ # Corresponds to the JSON property `libraryName`
455
+ # @return [String]
456
+ attr_accessor :library_name
457
+
458
+ # The version number.
459
+ # Corresponds to the JSON property `version`
460
+ # @return [String]
461
+ attr_accessor :version
462
+
463
+ def initialize(**args)
464
+ update!(**args)
465
+ end
466
+
467
+ # Update properties of this object
468
+ def update!(**args)
469
+ @learn_more_urls = args[:learn_more_urls] if args.key?(:learn_more_urls)
470
+ @library_name = args[:library_name] if args.key?(:library_name)
471
+ @version = args[:version] if args.key?(:version)
472
+ end
473
+ end
474
+
475
+ # A ScanConfig resource contains the configurations to launch a scan. next id:
476
+ # 12
477
+ class ScanConfig
478
+ include Google::Apis::Core::Hashable
479
+
480
+ # Scan authentication configuration.
481
+ # Corresponds to the JSON property `authentication`
482
+ # @return [Google::Apis::WebsecurityscannerV1alpha::Authentication]
483
+ attr_accessor :authentication
484
+
485
+ # The excluded URL patterns as described in https://cloud.google.com/security-
486
+ # command-center/docs/how-to-use-web-security-scanner#excluding_urls
487
+ # Corresponds to the JSON property `blacklistPatterns`
488
+ # @return [Array<String>]
489
+ attr_accessor :blacklist_patterns
490
+
491
+ # Required. The user provided display name of the ScanConfig.
492
+ # Corresponds to the JSON property `displayName`
493
+ # @return [String]
494
+ attr_accessor :display_name
495
+
496
+ # A ScanRun is a output-only resource representing an actual run of the scan.
497
+ # Corresponds to the JSON property `latestRun`
498
+ # @return [Google::Apis::WebsecurityscannerV1alpha::ScanRun]
499
+ attr_accessor :latest_run
500
+
501
+ # The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively.
502
+ # If the field is unspecified or its value is set 0, server will default to 15.
503
+ # Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT
504
+ # error.
505
+ # Corresponds to the JSON property `maxQps`
506
+ # @return [Fixnum]
507
+ attr_accessor :max_qps
508
+
509
+ # The resource name of the ScanConfig. The name follows the format of 'projects/`
510
+ # projectId`/scanConfigs/`scanConfigId`'. The ScanConfig IDs are generated by
511
+ # the system.
512
+ # Corresponds to the JSON property `name`
513
+ # @return [String]
514
+ attr_accessor :name
515
+
516
+ # Scan schedule configuration.
517
+ # Corresponds to the JSON property `schedule`
518
+ # @return [Google::Apis::WebsecurityscannerV1alpha::Schedule]
519
+ attr_accessor :schedule
520
+
521
+ # Required. The starting URLs from which the scanner finds site pages.
522
+ # Corresponds to the JSON property `startingUrls`
523
+ # @return [Array<String>]
524
+ attr_accessor :starting_urls
525
+
526
+ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will
527
+ # be used as a default.
528
+ # Corresponds to the JSON property `targetPlatforms`
529
+ # @return [Array<String>]
530
+ attr_accessor :target_platforms
531
+
532
+ # The user agent used during scanning.
533
+ # Corresponds to the JSON property `userAgent`
534
+ # @return [String]
535
+ attr_accessor :user_agent
536
+
537
+ def initialize(**args)
538
+ update!(**args)
539
+ end
540
+
541
+ # Update properties of this object
542
+ def update!(**args)
543
+ @authentication = args[:authentication] if args.key?(:authentication)
544
+ @blacklist_patterns = args[:blacklist_patterns] if args.key?(:blacklist_patterns)
545
+ @display_name = args[:display_name] if args.key?(:display_name)
546
+ @latest_run = args[:latest_run] if args.key?(:latest_run)
547
+ @max_qps = args[:max_qps] if args.key?(:max_qps)
548
+ @name = args[:name] if args.key?(:name)
549
+ @schedule = args[:schedule] if args.key?(:schedule)
550
+ @starting_urls = args[:starting_urls] if args.key?(:starting_urls)
551
+ @target_platforms = args[:target_platforms] if args.key?(:target_platforms)
552
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
553
+ end
554
+ end
555
+
556
+ # A ScanRun is a output-only resource representing an actual run of the scan.
557
+ class ScanRun
558
+ include Google::Apis::Core::Hashable
559
+
560
+ # The time at which the ScanRun reached termination state - that the ScanRun is
561
+ # either finished or stopped by user.
562
+ # Corresponds to the JSON property `endTime`
563
+ # @return [String]
564
+ attr_accessor :end_time
565
+
566
+ # The execution state of the ScanRun.
567
+ # Corresponds to the JSON property `executionState`
568
+ # @return [String]
569
+ attr_accessor :execution_state
570
+
571
+ # Whether the scan run has found any vulnerabilities.
572
+ # Corresponds to the JSON property `hasVulnerabilities`
573
+ # @return [Boolean]
574
+ attr_accessor :has_vulnerabilities
575
+ alias_method :has_vulnerabilities?, :has_vulnerabilities
576
+
577
+ # The resource name of the ScanRun. The name follows the format of 'projects/`
578
+ # projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'. The ScanRun IDs
579
+ # are generated by the system.
580
+ # Corresponds to the JSON property `name`
581
+ # @return [String]
582
+ attr_accessor :name
583
+
584
+ # The percentage of total completion ranging from 0 to 100. If the scan is in
585
+ # queue, the value is 0. If the scan is running, the value ranges from 0 to 100.
586
+ # If the scan is finished, the value is 100.
587
+ # Corresponds to the JSON property `progressPercent`
588
+ # @return [Fixnum]
589
+ attr_accessor :progress_percent
590
+
591
+ # The result state of the ScanRun. This field is only available after the
592
+ # execution state reaches "FINISHED".
593
+ # Corresponds to the JSON property `resultState`
594
+ # @return [String]
595
+ attr_accessor :result_state
596
+
597
+ # The time at which the ScanRun started.
598
+ # Corresponds to the JSON property `startTime`
599
+ # @return [String]
600
+ attr_accessor :start_time
601
+
602
+ # The number of URLs crawled during this ScanRun. If the scan is in progress,
603
+ # the value represents the number of URLs crawled up to now.
604
+ # Corresponds to the JSON property `urlsCrawledCount`
605
+ # @return [Fixnum]
606
+ attr_accessor :urls_crawled_count
607
+
608
+ # The number of URLs tested during this ScanRun. If the scan is in progress, the
609
+ # value represents the number of URLs tested up to now. The number of URLs
610
+ # tested is usually larger than the number URLS crawled because typically a
611
+ # crawled URL is tested with multiple test payloads.
612
+ # Corresponds to the JSON property `urlsTestedCount`
613
+ # @return [Fixnum]
614
+ attr_accessor :urls_tested_count
615
+
616
+ def initialize(**args)
617
+ update!(**args)
618
+ end
619
+
620
+ # Update properties of this object
621
+ def update!(**args)
622
+ @end_time = args[:end_time] if args.key?(:end_time)
623
+ @execution_state = args[:execution_state] if args.key?(:execution_state)
624
+ @has_vulnerabilities = args[:has_vulnerabilities] if args.key?(:has_vulnerabilities)
625
+ @name = args[:name] if args.key?(:name)
626
+ @progress_percent = args[:progress_percent] if args.key?(:progress_percent)
627
+ @result_state = args[:result_state] if args.key?(:result_state)
628
+ @start_time = args[:start_time] if args.key?(:start_time)
629
+ @urls_crawled_count = args[:urls_crawled_count] if args.key?(:urls_crawled_count)
630
+ @urls_tested_count = args[:urls_tested_count] if args.key?(:urls_tested_count)
631
+ end
632
+ end
633
+
634
+ # Scan schedule configuration.
635
+ class Schedule
636
+ include Google::Apis::Core::Hashable
637
+
638
+ # Required. The duration of time between executions in days.
639
+ # Corresponds to the JSON property `intervalDurationDays`
640
+ # @return [Fixnum]
641
+ attr_accessor :interval_duration_days
642
+
643
+ # A timestamp indicates when the next run will be scheduled. The value is
644
+ # refreshed by the server after each run. If unspecified, it will default to
645
+ # current server time, which means the scan will be scheduled to start
646
+ # immediately.
647
+ # Corresponds to the JSON property `scheduleTime`
648
+ # @return [String]
649
+ attr_accessor :schedule_time
650
+
651
+ def initialize(**args)
652
+ update!(**args)
653
+ end
654
+
655
+ # Update properties of this object
656
+ def update!(**args)
657
+ @interval_duration_days = args[:interval_duration_days] if args.key?(:interval_duration_days)
658
+ @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
659
+ end
660
+ end
661
+
662
+ # Request for the `StartScanRun` method.
663
+ class StartScanRunRequest
664
+ include Google::Apis::Core::Hashable
665
+
666
+ def initialize(**args)
667
+ update!(**args)
668
+ end
669
+
670
+ # Update properties of this object
671
+ def update!(**args)
672
+ end
673
+ end
674
+
675
+ # Request for the `StopScanRun` method.
676
+ class StopScanRunRequest
677
+ include Google::Apis::Core::Hashable
678
+
679
+ def initialize(**args)
680
+ update!(**args)
681
+ end
682
+
683
+ # Update properties of this object
684
+ def update!(**args)
685
+ end
686
+ end
687
+
688
+ # Information regarding any resource causing the vulnerability such as
689
+ # JavaScript sources, image, audio files, etc.
690
+ class ViolatingResource
691
+ include Google::Apis::Core::Hashable
692
+
693
+ # The MIME type of this resource.
694
+ # Corresponds to the JSON property `contentType`
695
+ # @return [String]
696
+ attr_accessor :content_type
697
+
698
+ # URL of this violating resource.
699
+ # Corresponds to the JSON property `resourceUrl`
700
+ # @return [String]
701
+ attr_accessor :resource_url
702
+
703
+ def initialize(**args)
704
+ update!(**args)
705
+ end
706
+
707
+ # Update properties of this object
708
+ def update!(**args)
709
+ @content_type = args[:content_type] if args.key?(:content_type)
710
+ @resource_url = args[:resource_url] if args.key?(:resource_url)
711
+ end
712
+ end
713
+
714
+ # Information about vulnerable or missing HTTP Headers.
715
+ class VulnerableHeaders
716
+ include Google::Apis::Core::Hashable
717
+
718
+ # List of vulnerable headers.
719
+ # Corresponds to the JSON property `headers`
720
+ # @return [Array<Google::Apis::WebsecurityscannerV1alpha::Header>]
721
+ attr_accessor :headers
722
+
723
+ # List of missing headers.
724
+ # Corresponds to the JSON property `missingHeaders`
725
+ # @return [Array<Google::Apis::WebsecurityscannerV1alpha::Header>]
726
+ attr_accessor :missing_headers
727
+
728
+ def initialize(**args)
729
+ update!(**args)
730
+ end
731
+
732
+ # Update properties of this object
733
+ def update!(**args)
734
+ @headers = args[:headers] if args.key?(:headers)
735
+ @missing_headers = args[:missing_headers] if args.key?(:missing_headers)
736
+ end
737
+ end
738
+
739
+ # Information about vulnerable request parameters.
740
+ class VulnerableParameters
741
+ include Google::Apis::Core::Hashable
742
+
743
+ # The vulnerable parameter names.
744
+ # Corresponds to the JSON property `parameterNames`
745
+ # @return [Array<String>]
746
+ attr_accessor :parameter_names
747
+
748
+ def initialize(**args)
749
+ update!(**args)
750
+ end
751
+
752
+ # Update properties of this object
753
+ def update!(**args)
754
+ @parameter_names = args[:parameter_names] if args.key?(:parameter_names)
755
+ end
756
+ end
757
+
758
+ # Information reported for an XSS.
759
+ class Xss
760
+ include Google::Apis::Core::Hashable
761
+
762
+ # An error message generated by a javascript breakage.
763
+ # Corresponds to the JSON property `errorMessage`
764
+ # @return [String]
765
+ attr_accessor :error_message
766
+
767
+ # Stack traces leading to the point where the XSS occurred.
768
+ # Corresponds to the JSON property `stackTraces`
769
+ # @return [Array<String>]
770
+ attr_accessor :stack_traces
771
+
772
+ def initialize(**args)
773
+ update!(**args)
774
+ end
775
+
776
+ # Update properties of this object
777
+ def update!(**args)
778
+ @error_message = args[:error_message] if args.key?(:error_message)
779
+ @stack_traces = args[:stack_traces] if args.key?(:stack_traces)
780
+ end
781
+ end
782
+ end
783
+ end
784
+ end