google-cloud-web_security_scanner-v1beta 0.3.0 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/web_security_scanner/v1beta/version.rb +1 -1
- data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/client.rb +362 -125
- data/lib/google/cloud/websecurityscanner/v1beta/finding_pb.rb +2 -2
- data/lib/google/cloud/websecurityscanner/v1beta/scan_config_pb.rb +2 -2
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_error_trace_pb.rb +1 -1
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_pb.rb +2 -2
- data/lib/google/cloud/websecurityscanner/v1beta/web_security_scanner_pb.rb +2 -2
- data/lib/google/cloud/websecurityscanner/v1beta/web_security_scanner_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44a83944d123972819bda1e082fb00e1039b6f399ae2d086b923a9aaf80ad7e6
|
4
|
+
data.tar.gz: 00ba1e95ea6faeeaa7d6ab9f00eccf9056da988a8bef6fcace468a92cc14039f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 007d41110bf897fd96b98b4a440492fed65a0e03da8f3633ca373c2100d1438638aefd22ff5e654ecedcf34ec4012e8e49136113a3f121be040acdbfe730e57a
|
7
|
+
data.tar.gz: 39dc67d8cbe842688a95941284b789ffbaa490c0f1004dafa661255e6c9d22987f3c59db96057745847158efea809e034a36f6df4435da0f5a886031ef0b606e
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-web_security_scanner-v1beta
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `WEB_SECURITY_SCANNER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `WEB_SECURITY_SCANNER_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/web_security_scanner/v1beta"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/web_security_scanner/v1beta"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/web_security_scanner/v1beta"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/web_security_scanner/v1beta"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::WebSecurityScanner::V1beta::CreateScanConfigRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_scan_config request
|
38
38
|
```
|
39
39
|
|
@@ -43,13 +43,12 @@ module Google
|
|
43
43
|
# See {::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client::Configuration}
|
44
44
|
# for a description of the configuration fields.
|
45
45
|
#
|
46
|
-
#
|
46
|
+
# @example
|
47
47
|
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
# end
|
48
|
+
# # Modify the configuration for all WebSecurityScanner clients
|
49
|
+
# ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.configure do |config|
|
50
|
+
# config.timeout = 10.0
|
51
|
+
# end
|
53
52
|
#
|
54
53
|
# @yield [config] Configure the Client client.
|
55
54
|
# @yieldparam config [Client::Configuration]
|
@@ -71,26 +70,17 @@ module Google
|
|
71
70
|
|
72
71
|
default_config.rpcs.delete_scan_config.timeout = 600.0
|
73
72
|
default_config.rpcs.delete_scan_config.retry_policy = {
|
74
|
-
initial_delay: 0.1,
|
75
|
-
max_delay: 60.0,
|
76
|
-
multiplier: 1.3,
|
77
|
-
retry_codes: [4, 14]
|
73
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
78
74
|
}
|
79
75
|
|
80
76
|
default_config.rpcs.get_scan_config.timeout = 600.0
|
81
77
|
default_config.rpcs.get_scan_config.retry_policy = {
|
82
|
-
initial_delay: 0.1,
|
83
|
-
max_delay: 60.0,
|
84
|
-
multiplier: 1.3,
|
85
|
-
retry_codes: [4, 14]
|
78
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
86
79
|
}
|
87
80
|
|
88
81
|
default_config.rpcs.list_scan_configs.timeout = 600.0
|
89
82
|
default_config.rpcs.list_scan_configs.retry_policy = {
|
90
|
-
initial_delay: 0.1,
|
91
|
-
max_delay: 60.0,
|
92
|
-
multiplier: 1.3,
|
93
|
-
retry_codes: [4, 14]
|
83
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
94
84
|
}
|
95
85
|
|
96
86
|
default_config.rpcs.update_scan_config.timeout = 600.0
|
@@ -99,52 +89,34 @@ module Google
|
|
99
89
|
|
100
90
|
default_config.rpcs.get_scan_run.timeout = 600.0
|
101
91
|
default_config.rpcs.get_scan_run.retry_policy = {
|
102
|
-
initial_delay: 0.1,
|
103
|
-
max_delay: 60.0,
|
104
|
-
multiplier: 1.3,
|
105
|
-
retry_codes: [4, 14]
|
92
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
106
93
|
}
|
107
94
|
|
108
95
|
default_config.rpcs.list_scan_runs.timeout = 600.0
|
109
96
|
default_config.rpcs.list_scan_runs.retry_policy = {
|
110
|
-
initial_delay: 0.1,
|
111
|
-
max_delay: 60.0,
|
112
|
-
multiplier: 1.3,
|
113
|
-
retry_codes: [4, 14]
|
97
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
114
98
|
}
|
115
99
|
|
116
100
|
default_config.rpcs.stop_scan_run.timeout = 600.0
|
117
101
|
|
118
102
|
default_config.rpcs.list_crawled_urls.timeout = 600.0
|
119
103
|
default_config.rpcs.list_crawled_urls.retry_policy = {
|
120
|
-
initial_delay: 0.1,
|
121
|
-
max_delay: 60.0,
|
122
|
-
multiplier: 1.3,
|
123
|
-
retry_codes: [4, 14]
|
104
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
124
105
|
}
|
125
106
|
|
126
107
|
default_config.rpcs.get_finding.timeout = 600.0
|
127
108
|
default_config.rpcs.get_finding.retry_policy = {
|
128
|
-
initial_delay: 0.1,
|
129
|
-
max_delay: 60.0,
|
130
|
-
multiplier: 1.3,
|
131
|
-
retry_codes: [4, 14]
|
109
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
132
110
|
}
|
133
111
|
|
134
112
|
default_config.rpcs.list_findings.timeout = 600.0
|
135
113
|
default_config.rpcs.list_findings.retry_policy = {
|
136
|
-
initial_delay: 0.1,
|
137
|
-
max_delay: 60.0,
|
138
|
-
multiplier: 1.3,
|
139
|
-
retry_codes: [4, 14]
|
114
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
140
115
|
}
|
141
116
|
|
142
117
|
default_config.rpcs.list_finding_type_stats.timeout = 600.0
|
143
118
|
default_config.rpcs.list_finding_type_stats.retry_policy = {
|
144
|
-
initial_delay: 0.1,
|
145
|
-
max_delay: 60.0,
|
146
|
-
multiplier: 1.3,
|
147
|
-
retry_codes: [4, 14]
|
119
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
148
120
|
}
|
149
121
|
|
150
122
|
default_config
|
@@ -176,19 +148,15 @@ module Google
|
|
176
148
|
##
|
177
149
|
# Create a new WebSecurityScanner client object.
|
178
150
|
#
|
179
|
-
#
|
180
|
-
#
|
181
|
-
# To create a new WebSecurityScanner client with the default
|
182
|
-
# configuration:
|
151
|
+
# @example
|
183
152
|
#
|
184
|
-
#
|
153
|
+
# # Create a client using the default configuration
|
154
|
+
# client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
185
155
|
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
190
|
-
# config.timeout = 10.0
|
191
|
-
# end
|
156
|
+
# # Create a client using a custom configuration
|
157
|
+
# client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new do |config|
|
158
|
+
# config.timeout = 10.0
|
159
|
+
# end
|
192
160
|
#
|
193
161
|
# @yield [config] Configure the WebSecurityScanner client.
|
194
162
|
# @yieldparam config [Client::Configuration]
|
@@ -208,14 +176,13 @@ module Google
|
|
208
176
|
|
209
177
|
# Create credentials
|
210
178
|
credentials = @config.credentials
|
211
|
-
# Use self-signed JWT if the
|
179
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
212
180
|
# but only if the default endpoint does not have a region prefix.
|
213
|
-
enable_self_signed_jwt = @config.
|
214
|
-
@config.endpoint == Client.configure.endpoint &&
|
181
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
215
182
|
!@config.endpoint.split(".").first.include?("-")
|
216
183
|
credentials ||= Credentials.default scope: @config.scope,
|
217
184
|
enable_self_signed_jwt: enable_self_signed_jwt
|
218
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
185
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
219
186
|
credentials = Credentials.new credentials, scope: @config.scope
|
220
187
|
end
|
221
188
|
@quota_project_id = @config.quota_project
|
@@ -264,6 +231,21 @@ module Google
|
|
264
231
|
#
|
265
232
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
266
233
|
#
|
234
|
+
# @example Basic example
|
235
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
236
|
+
#
|
237
|
+
# # Create a client object. The client can be reused for multiple calls.
|
238
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
239
|
+
#
|
240
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
241
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::CreateScanConfigRequest.new
|
242
|
+
#
|
243
|
+
# # Call the create_scan_config method.
|
244
|
+
# result = client.create_scan_config request
|
245
|
+
#
|
246
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1beta::ScanConfig.
|
247
|
+
# p result
|
248
|
+
#
|
267
249
|
def create_scan_config request, options = nil
|
268
250
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
269
251
|
|
@@ -281,16 +263,20 @@ module Google
|
|
281
263
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
282
264
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
283
265
|
|
284
|
-
header_params = {
|
285
|
-
|
286
|
-
|
266
|
+
header_params = {}
|
267
|
+
if request.parent
|
268
|
+
header_params["parent"] = request.parent
|
269
|
+
end
|
270
|
+
|
287
271
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
288
272
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
289
273
|
|
290
274
|
options.apply_defaults timeout: @config.rpcs.create_scan_config.timeout,
|
291
275
|
metadata: metadata,
|
292
276
|
retry_policy: @config.rpcs.create_scan_config.retry_policy
|
293
|
-
|
277
|
+
|
278
|
+
options.apply_defaults timeout: @config.timeout,
|
279
|
+
metadata: @config.metadata,
|
294
280
|
retry_policy: @config.retry_policy
|
295
281
|
|
296
282
|
@web_security_scanner_stub.call_rpc :create_scan_config, request, options: options do |response, operation|
|
@@ -331,6 +317,21 @@ module Google
|
|
331
317
|
#
|
332
318
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
333
319
|
#
|
320
|
+
# @example Basic example
|
321
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
322
|
+
#
|
323
|
+
# # Create a client object. The client can be reused for multiple calls.
|
324
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
325
|
+
#
|
326
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
327
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::DeleteScanConfigRequest.new
|
328
|
+
#
|
329
|
+
# # Call the delete_scan_config method.
|
330
|
+
# result = client.delete_scan_config request
|
331
|
+
#
|
332
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
333
|
+
# p result
|
334
|
+
#
|
334
335
|
def delete_scan_config request, options = nil
|
335
336
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
336
337
|
|
@@ -348,16 +349,20 @@ module Google
|
|
348
349
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
349
350
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
350
351
|
|
351
|
-
header_params = {
|
352
|
-
|
353
|
-
|
352
|
+
header_params = {}
|
353
|
+
if request.name
|
354
|
+
header_params["name"] = request.name
|
355
|
+
end
|
356
|
+
|
354
357
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
355
358
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
356
359
|
|
357
360
|
options.apply_defaults timeout: @config.rpcs.delete_scan_config.timeout,
|
358
361
|
metadata: metadata,
|
359
362
|
retry_policy: @config.rpcs.delete_scan_config.retry_policy
|
360
|
-
|
363
|
+
|
364
|
+
options.apply_defaults timeout: @config.timeout,
|
365
|
+
metadata: @config.metadata,
|
361
366
|
retry_policy: @config.retry_policy
|
362
367
|
|
363
368
|
@web_security_scanner_stub.call_rpc :delete_scan_config, request, options: options do |response, operation|
|
@@ -398,6 +403,21 @@ module Google
|
|
398
403
|
#
|
399
404
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
400
405
|
#
|
406
|
+
# @example Basic example
|
407
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
408
|
+
#
|
409
|
+
# # Create a client object. The client can be reused for multiple calls.
|
410
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
411
|
+
#
|
412
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
413
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::GetScanConfigRequest.new
|
414
|
+
#
|
415
|
+
# # Call the get_scan_config method.
|
416
|
+
# result = client.get_scan_config request
|
417
|
+
#
|
418
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1beta::ScanConfig.
|
419
|
+
# p result
|
420
|
+
#
|
401
421
|
def get_scan_config request, options = nil
|
402
422
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
403
423
|
|
@@ -415,16 +435,20 @@ module Google
|
|
415
435
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
416
436
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
417
437
|
|
418
|
-
header_params = {
|
419
|
-
|
420
|
-
|
438
|
+
header_params = {}
|
439
|
+
if request.name
|
440
|
+
header_params["name"] = request.name
|
441
|
+
end
|
442
|
+
|
421
443
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
422
444
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
423
445
|
|
424
446
|
options.apply_defaults timeout: @config.rpcs.get_scan_config.timeout,
|
425
447
|
metadata: metadata,
|
426
448
|
retry_policy: @config.rpcs.get_scan_config.retry_policy
|
427
|
-
|
449
|
+
|
450
|
+
options.apply_defaults timeout: @config.timeout,
|
451
|
+
metadata: @config.metadata,
|
428
452
|
retry_policy: @config.retry_policy
|
429
453
|
|
430
454
|
@web_security_scanner_stub.call_rpc :get_scan_config, request, options: options do |response, operation|
|
@@ -473,6 +497,27 @@ module Google
|
|
473
497
|
#
|
474
498
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
475
499
|
#
|
500
|
+
# @example Basic example
|
501
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
502
|
+
#
|
503
|
+
# # Create a client object. The client can be reused for multiple calls.
|
504
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
505
|
+
#
|
506
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
507
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::ListScanConfigsRequest.new
|
508
|
+
#
|
509
|
+
# # Call the list_scan_configs method.
|
510
|
+
# result = client.list_scan_configs request
|
511
|
+
#
|
512
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
513
|
+
# # iterate over all elements by calling #each, and the enumerable
|
514
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
515
|
+
# # methods are also available for managing paging directly.
|
516
|
+
# result.each do |response|
|
517
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig.
|
518
|
+
# p response
|
519
|
+
# end
|
520
|
+
#
|
476
521
|
def list_scan_configs request, options = nil
|
477
522
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
478
523
|
|
@@ -490,16 +535,20 @@ module Google
|
|
490
535
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
491
536
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
492
537
|
|
493
|
-
header_params = {
|
494
|
-
|
495
|
-
|
538
|
+
header_params = {}
|
539
|
+
if request.parent
|
540
|
+
header_params["parent"] = request.parent
|
541
|
+
end
|
542
|
+
|
496
543
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
497
544
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
498
545
|
|
499
546
|
options.apply_defaults timeout: @config.rpcs.list_scan_configs.timeout,
|
500
547
|
metadata: metadata,
|
501
548
|
retry_policy: @config.rpcs.list_scan_configs.retry_policy
|
502
|
-
|
549
|
+
|
550
|
+
options.apply_defaults timeout: @config.timeout,
|
551
|
+
metadata: @config.metadata,
|
503
552
|
retry_policy: @config.retry_policy
|
504
553
|
|
505
554
|
@web_security_scanner_stub.call_rpc :list_scan_configs, request, options: options do |response, operation|
|
@@ -546,6 +595,21 @@ module Google
|
|
546
595
|
#
|
547
596
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
548
597
|
#
|
598
|
+
# @example Basic example
|
599
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
600
|
+
#
|
601
|
+
# # Create a client object. The client can be reused for multiple calls.
|
602
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
603
|
+
#
|
604
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
605
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::UpdateScanConfigRequest.new
|
606
|
+
#
|
607
|
+
# # Call the update_scan_config method.
|
608
|
+
# result = client.update_scan_config request
|
609
|
+
#
|
610
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1beta::ScanConfig.
|
611
|
+
# p result
|
612
|
+
#
|
549
613
|
def update_scan_config request, options = nil
|
550
614
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
551
615
|
|
@@ -563,16 +627,20 @@ module Google
|
|
563
627
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
564
628
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
565
629
|
|
566
|
-
header_params = {
|
567
|
-
|
568
|
-
|
630
|
+
header_params = {}
|
631
|
+
if request.scan_config&.name
|
632
|
+
header_params["scan_config.name"] = request.scan_config.name
|
633
|
+
end
|
634
|
+
|
569
635
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
570
636
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
571
637
|
|
572
638
|
options.apply_defaults timeout: @config.rpcs.update_scan_config.timeout,
|
573
639
|
metadata: metadata,
|
574
640
|
retry_policy: @config.rpcs.update_scan_config.retry_policy
|
575
|
-
|
641
|
+
|
642
|
+
options.apply_defaults timeout: @config.timeout,
|
643
|
+
metadata: @config.metadata,
|
576
644
|
retry_policy: @config.retry_policy
|
577
645
|
|
578
646
|
@web_security_scanner_stub.call_rpc :update_scan_config, request, options: options do |response, operation|
|
@@ -613,6 +681,21 @@ module Google
|
|
613
681
|
#
|
614
682
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
615
683
|
#
|
684
|
+
# @example Basic example
|
685
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
686
|
+
#
|
687
|
+
# # Create a client object. The client can be reused for multiple calls.
|
688
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
689
|
+
#
|
690
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
691
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::StartScanRunRequest.new
|
692
|
+
#
|
693
|
+
# # Call the start_scan_run method.
|
694
|
+
# result = client.start_scan_run request
|
695
|
+
#
|
696
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1beta::ScanRun.
|
697
|
+
# p result
|
698
|
+
#
|
616
699
|
def start_scan_run request, options = nil
|
617
700
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
618
701
|
|
@@ -630,16 +713,20 @@ module Google
|
|
630
713
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
631
714
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
632
715
|
|
633
|
-
header_params = {
|
634
|
-
|
635
|
-
|
716
|
+
header_params = {}
|
717
|
+
if request.name
|
718
|
+
header_params["name"] = request.name
|
719
|
+
end
|
720
|
+
|
636
721
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
637
722
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
638
723
|
|
639
724
|
options.apply_defaults timeout: @config.rpcs.start_scan_run.timeout,
|
640
725
|
metadata: metadata,
|
641
726
|
retry_policy: @config.rpcs.start_scan_run.retry_policy
|
642
|
-
|
727
|
+
|
728
|
+
options.apply_defaults timeout: @config.timeout,
|
729
|
+
metadata: @config.metadata,
|
643
730
|
retry_policy: @config.retry_policy
|
644
731
|
|
645
732
|
@web_security_scanner_stub.call_rpc :start_scan_run, request, options: options do |response, operation|
|
@@ -681,6 +768,21 @@ module Google
|
|
681
768
|
#
|
682
769
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
683
770
|
#
|
771
|
+
# @example Basic example
|
772
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
773
|
+
#
|
774
|
+
# # Create a client object. The client can be reused for multiple calls.
|
775
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
776
|
+
#
|
777
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
778
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::GetScanRunRequest.new
|
779
|
+
#
|
780
|
+
# # Call the get_scan_run method.
|
781
|
+
# result = client.get_scan_run request
|
782
|
+
#
|
783
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1beta::ScanRun.
|
784
|
+
# p result
|
785
|
+
#
|
684
786
|
def get_scan_run request, options = nil
|
685
787
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
686
788
|
|
@@ -698,16 +800,20 @@ module Google
|
|
698
800
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
699
801
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
700
802
|
|
701
|
-
header_params = {
|
702
|
-
|
703
|
-
|
803
|
+
header_params = {}
|
804
|
+
if request.name
|
805
|
+
header_params["name"] = request.name
|
806
|
+
end
|
807
|
+
|
704
808
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
705
809
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
706
810
|
|
707
811
|
options.apply_defaults timeout: @config.rpcs.get_scan_run.timeout,
|
708
812
|
metadata: metadata,
|
709
813
|
retry_policy: @config.rpcs.get_scan_run.retry_policy
|
710
|
-
|
814
|
+
|
815
|
+
options.apply_defaults timeout: @config.timeout,
|
816
|
+
metadata: @config.metadata,
|
711
817
|
retry_policy: @config.retry_policy
|
712
818
|
|
713
819
|
@web_security_scanner_stub.call_rpc :get_scan_run, request, options: options do |response, operation|
|
@@ -757,6 +863,27 @@ module Google
|
|
757
863
|
#
|
758
864
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
759
865
|
#
|
866
|
+
# @example Basic example
|
867
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
868
|
+
#
|
869
|
+
# # Create a client object. The client can be reused for multiple calls.
|
870
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
871
|
+
#
|
872
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
873
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::ListScanRunsRequest.new
|
874
|
+
#
|
875
|
+
# # Call the list_scan_runs method.
|
876
|
+
# result = client.list_scan_runs request
|
877
|
+
#
|
878
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
879
|
+
# # iterate over all elements by calling #each, and the enumerable
|
880
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
881
|
+
# # methods are also available for managing paging directly.
|
882
|
+
# result.each do |response|
|
883
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1beta::ScanRun.
|
884
|
+
# p response
|
885
|
+
# end
|
886
|
+
#
|
760
887
|
def list_scan_runs request, options = nil
|
761
888
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
762
889
|
|
@@ -774,16 +901,20 @@ module Google
|
|
774
901
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
775
902
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
776
903
|
|
777
|
-
header_params = {
|
778
|
-
|
779
|
-
|
904
|
+
header_params = {}
|
905
|
+
if request.parent
|
906
|
+
header_params["parent"] = request.parent
|
907
|
+
end
|
908
|
+
|
780
909
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
781
910
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
782
911
|
|
783
912
|
options.apply_defaults timeout: @config.rpcs.list_scan_runs.timeout,
|
784
913
|
metadata: metadata,
|
785
914
|
retry_policy: @config.rpcs.list_scan_runs.retry_policy
|
786
|
-
|
915
|
+
|
916
|
+
options.apply_defaults timeout: @config.timeout,
|
917
|
+
metadata: @config.metadata,
|
787
918
|
retry_policy: @config.retry_policy
|
788
919
|
|
789
920
|
@web_security_scanner_stub.call_rpc :list_scan_runs, request, options: options do |response, operation|
|
@@ -826,6 +957,21 @@ module Google
|
|
826
957
|
#
|
827
958
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
828
959
|
#
|
960
|
+
# @example Basic example
|
961
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
962
|
+
#
|
963
|
+
# # Create a client object. The client can be reused for multiple calls.
|
964
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
965
|
+
#
|
966
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
967
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::StopScanRunRequest.new
|
968
|
+
#
|
969
|
+
# # Call the stop_scan_run method.
|
970
|
+
# result = client.stop_scan_run request
|
971
|
+
#
|
972
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1beta::ScanRun.
|
973
|
+
# p result
|
974
|
+
#
|
829
975
|
def stop_scan_run request, options = nil
|
830
976
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
831
977
|
|
@@ -843,16 +989,20 @@ module Google
|
|
843
989
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
844
990
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
845
991
|
|
846
|
-
header_params = {
|
847
|
-
|
848
|
-
|
992
|
+
header_params = {}
|
993
|
+
if request.name
|
994
|
+
header_params["name"] = request.name
|
995
|
+
end
|
996
|
+
|
849
997
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
850
998
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
851
999
|
|
852
1000
|
options.apply_defaults timeout: @config.rpcs.stop_scan_run.timeout,
|
853
1001
|
metadata: metadata,
|
854
1002
|
retry_policy: @config.rpcs.stop_scan_run.retry_policy
|
855
|
-
|
1003
|
+
|
1004
|
+
options.apply_defaults timeout: @config.timeout,
|
1005
|
+
metadata: @config.metadata,
|
856
1006
|
retry_policy: @config.retry_policy
|
857
1007
|
|
858
1008
|
@web_security_scanner_stub.call_rpc :stop_scan_run, request, options: options do |response, operation|
|
@@ -902,6 +1052,27 @@ module Google
|
|
902
1052
|
#
|
903
1053
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
904
1054
|
#
|
1055
|
+
# @example Basic example
|
1056
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
1057
|
+
#
|
1058
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1059
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
1060
|
+
#
|
1061
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1062
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::ListCrawledUrlsRequest.new
|
1063
|
+
#
|
1064
|
+
# # Call the list_crawled_urls method.
|
1065
|
+
# result = client.list_crawled_urls request
|
1066
|
+
#
|
1067
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1068
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1069
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1070
|
+
# # methods are also available for managing paging directly.
|
1071
|
+
# result.each do |response|
|
1072
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1beta::CrawledUrl.
|
1073
|
+
# p response
|
1074
|
+
# end
|
1075
|
+
#
|
905
1076
|
def list_crawled_urls request, options = nil
|
906
1077
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
907
1078
|
|
@@ -919,16 +1090,20 @@ module Google
|
|
919
1090
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
920
1091
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
921
1092
|
|
922
|
-
header_params = {
|
923
|
-
|
924
|
-
|
1093
|
+
header_params = {}
|
1094
|
+
if request.parent
|
1095
|
+
header_params["parent"] = request.parent
|
1096
|
+
end
|
1097
|
+
|
925
1098
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
926
1099
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
927
1100
|
|
928
1101
|
options.apply_defaults timeout: @config.rpcs.list_crawled_urls.timeout,
|
929
1102
|
metadata: metadata,
|
930
1103
|
retry_policy: @config.rpcs.list_crawled_urls.retry_policy
|
931
|
-
|
1104
|
+
|
1105
|
+
options.apply_defaults timeout: @config.timeout,
|
1106
|
+
metadata: @config.metadata,
|
932
1107
|
retry_policy: @config.retry_policy
|
933
1108
|
|
934
1109
|
@web_security_scanner_stub.call_rpc :list_crawled_urls, request, options: options do |response, operation|
|
@@ -971,6 +1146,21 @@ module Google
|
|
971
1146
|
#
|
972
1147
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
973
1148
|
#
|
1149
|
+
# @example Basic example
|
1150
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
1151
|
+
#
|
1152
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1153
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
1154
|
+
#
|
1155
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1156
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::GetFindingRequest.new
|
1157
|
+
#
|
1158
|
+
# # Call the get_finding method.
|
1159
|
+
# result = client.get_finding request
|
1160
|
+
#
|
1161
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1beta::Finding.
|
1162
|
+
# p result
|
1163
|
+
#
|
974
1164
|
def get_finding request, options = nil
|
975
1165
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
976
1166
|
|
@@ -988,16 +1178,20 @@ module Google
|
|
988
1178
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
989
1179
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
990
1180
|
|
991
|
-
header_params = {
|
992
|
-
|
993
|
-
|
1181
|
+
header_params = {}
|
1182
|
+
if request.name
|
1183
|
+
header_params["name"] = request.name
|
1184
|
+
end
|
1185
|
+
|
994
1186
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
995
1187
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
996
1188
|
|
997
1189
|
options.apply_defaults timeout: @config.rpcs.get_finding.timeout,
|
998
1190
|
metadata: metadata,
|
999
1191
|
retry_policy: @config.rpcs.get_finding.retry_policy
|
1000
|
-
|
1192
|
+
|
1193
|
+
options.apply_defaults timeout: @config.timeout,
|
1194
|
+
metadata: @config.metadata,
|
1001
1195
|
retry_policy: @config.retry_policy
|
1002
1196
|
|
1003
1197
|
@web_security_scanner_stub.call_rpc :get_finding, request, options: options do |response, operation|
|
@@ -1052,6 +1246,27 @@ module Google
|
|
1052
1246
|
#
|
1053
1247
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1054
1248
|
#
|
1249
|
+
# @example Basic example
|
1250
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
1251
|
+
#
|
1252
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1253
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
1254
|
+
#
|
1255
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1256
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::ListFindingsRequest.new
|
1257
|
+
#
|
1258
|
+
# # Call the list_findings method.
|
1259
|
+
# result = client.list_findings request
|
1260
|
+
#
|
1261
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1262
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1263
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1264
|
+
# # methods are also available for managing paging directly.
|
1265
|
+
# result.each do |response|
|
1266
|
+
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1beta::Finding.
|
1267
|
+
# p response
|
1268
|
+
# end
|
1269
|
+
#
|
1055
1270
|
def list_findings request, options = nil
|
1056
1271
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1057
1272
|
|
@@ -1069,16 +1284,20 @@ module Google
|
|
1069
1284
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
1070
1285
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1071
1286
|
|
1072
|
-
header_params = {
|
1073
|
-
|
1074
|
-
|
1287
|
+
header_params = {}
|
1288
|
+
if request.parent
|
1289
|
+
header_params["parent"] = request.parent
|
1290
|
+
end
|
1291
|
+
|
1075
1292
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1076
1293
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1077
1294
|
|
1078
1295
|
options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
|
1079
1296
|
metadata: metadata,
|
1080
1297
|
retry_policy: @config.rpcs.list_findings.retry_policy
|
1081
|
-
|
1298
|
+
|
1299
|
+
options.apply_defaults timeout: @config.timeout,
|
1300
|
+
metadata: @config.metadata,
|
1082
1301
|
retry_policy: @config.retry_policy
|
1083
1302
|
|
1084
1303
|
@web_security_scanner_stub.call_rpc :list_findings, request, options: options do |response, operation|
|
@@ -1121,6 +1340,21 @@ module Google
|
|
1121
1340
|
#
|
1122
1341
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1123
1342
|
#
|
1343
|
+
# @example Basic example
|
1344
|
+
# require "google/cloud/web_security_scanner/v1beta"
|
1345
|
+
#
|
1346
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1347
|
+
# client = Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
1348
|
+
#
|
1349
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1350
|
+
# request = Google::Cloud::WebSecurityScanner::V1beta::ListFindingTypeStatsRequest.new
|
1351
|
+
#
|
1352
|
+
# # Call the list_finding_type_stats method.
|
1353
|
+
# result = client.list_finding_type_stats request
|
1354
|
+
#
|
1355
|
+
# # The returned object is of type Google::Cloud::WebSecurityScanner::V1beta::ListFindingTypeStatsResponse.
|
1356
|
+
# p result
|
1357
|
+
#
|
1124
1358
|
def list_finding_type_stats request, options = nil
|
1125
1359
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1126
1360
|
|
@@ -1138,16 +1372,20 @@ module Google
|
|
1138
1372
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
1139
1373
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1140
1374
|
|
1141
|
-
header_params = {
|
1142
|
-
|
1143
|
-
|
1375
|
+
header_params = {}
|
1376
|
+
if request.parent
|
1377
|
+
header_params["parent"] = request.parent
|
1378
|
+
end
|
1379
|
+
|
1144
1380
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1145
1381
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1146
1382
|
|
1147
1383
|
options.apply_defaults timeout: @config.rpcs.list_finding_type_stats.timeout,
|
1148
1384
|
metadata: metadata,
|
1149
1385
|
retry_policy: @config.rpcs.list_finding_type_stats.retry_policy
|
1150
|
-
|
1386
|
+
|
1387
|
+
options.apply_defaults timeout: @config.timeout,
|
1388
|
+
metadata: @config.metadata,
|
1151
1389
|
retry_policy: @config.retry_policy
|
1152
1390
|
|
1153
1391
|
@web_security_scanner_stub.call_rpc :list_finding_type_stats, request, options: options do |response, operation|
|
@@ -1171,22 +1409,21 @@ module Google
|
|
1171
1409
|
# Configuration can be applied globally to all clients, or to a single client
|
1172
1410
|
# on construction.
|
1173
1411
|
#
|
1174
|
-
#
|
1175
|
-
#
|
1176
|
-
#
|
1177
|
-
# to 20 seconds,
|
1178
|
-
#
|
1179
|
-
#
|
1180
|
-
#
|
1181
|
-
#
|
1182
|
-
#
|
1183
|
-
#
|
1184
|
-
#
|
1185
|
-
#
|
1186
|
-
#
|
1187
|
-
#
|
1188
|
-
#
|
1189
|
-
# end
|
1412
|
+
# @example
|
1413
|
+
#
|
1414
|
+
# # Modify the global config, setting the timeout for
|
1415
|
+
# # create_scan_config to 20 seconds,
|
1416
|
+
# # and all remaining timeouts to 10 seconds.
|
1417
|
+
# ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.configure do |config|
|
1418
|
+
# config.timeout = 10.0
|
1419
|
+
# config.rpcs.create_scan_config.timeout = 20.0
|
1420
|
+
# end
|
1421
|
+
#
|
1422
|
+
# # Apply the above configuration only to a new client.
|
1423
|
+
# client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new do |config|
|
1424
|
+
# config.timeout = 10.0
|
1425
|
+
# config.rpcs.create_scan_config.timeout = 20.0
|
1426
|
+
# end
|
1190
1427
|
#
|
1191
1428
|
# @!attribute [rw] endpoint
|
1192
1429
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/websecurityscanner/v1beta/finding.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/cloud/websecurityscanner/v1beta/finding_addon_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/websecurityscanner/v1beta/finding.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.websecurityscanner.v1beta.Finding" do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/websecurityscanner/v1beta/scan_config.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/cloud/websecurityscanner/v1beta/scan_run_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/websecurityscanner/v1beta/scan_config.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.websecurityscanner.v1beta.ScanConfig" do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto
|
3
3
|
|
4
|
+
require 'google/cloud/websecurityscanner/v1beta/scan_config_error_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/cloud/websecurityscanner/v1beta/scan_config_error_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace" do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/websecurityscanner/v1beta/scan_run.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/cloud/websecurityscanner/v1beta/scan_run_error_trace_pb'
|
8
6
|
require 'google/cloud/websecurityscanner/v1beta/scan_run_warning_trace_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/websecurityscanner/v1beta/scan_run.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.websecurityscanner.v1beta.ScanRun" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -14,6 +12,8 @@ require 'google/cloud/websecurityscanner/v1beta/scan_config_pb'
|
|
14
12
|
require 'google/cloud/websecurityscanner/v1beta/scan_run_pb'
|
15
13
|
require 'google/protobuf/empty_pb'
|
16
14
|
require 'google/protobuf/field_mask_pb'
|
15
|
+
require 'google/protobuf'
|
16
|
+
|
17
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
18
|
add_file("google/cloud/websecurityscanner/v1beta/web_security_scanner.proto", :syntax => :proto3) do
|
19
19
|
add_message "google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest" do
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# attempts to exercise as many user inputs and event handlers as possible.
|
31
31
|
class Service
|
32
32
|
|
33
|
-
include GRPC::GenericService
|
33
|
+
include ::GRPC::GenericService
|
34
34
|
|
35
35
|
self.marshal_class_method = :encode
|
36
36
|
self.unmarshal_class_method = :decode
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-web_security_scanner-v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -216,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
222
|
- !ruby/object:Gem::Version
|
217
223
|
version: '0'
|
218
224
|
requirements: []
|
219
|
-
rubygems_version: 3.2.
|
225
|
+
rubygems_version: 3.2.17
|
220
226
|
signing_key:
|
221
227
|
specification_version: 4
|
222
228
|
summary: API Client library for the Web Security Scanner V1beta API
|