google-cloud-web_security_scanner-v1beta 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +11 -6
- 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 +284 -39
- data/lib/google/cloud/web_security_scanner/v1beta.rb +2 -0
- data/lib/google/cloud/websecurityscanner/v1beta/finding_pb.rb +1 -0
- data/lib/google/cloud/websecurityscanner/v1beta/scan_config_pb.rb +1 -0
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_error_trace_pb.rb +1 -0
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_pb.rb +1 -0
- data/lib/google/cloud/websecurityscanner/v1beta/web_security_scanner_pb.rb +1 -0
- data/lib/google/cloud/websecurityscanner/v1beta/web_security_scanner_services_pb.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a442feb1a48278f83416c4dfc956b1ef27631a9cf608e71d6f42425712719b2
|
4
|
+
data.tar.gz: 62268dcc778cafa38b01ed0532ddc0aa67c935a96621038d64ea7072e0a90629
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bd81acc4fc6eae70f0281de5df9aa61f4e5400c51cc22a443f98145a4378501a85b793b433e072d4c039141bcd50d0ce021c0c59b43c541a1e353d1a79c9e67
|
7
|
+
data.tar.gz: a10d5b2d2a5659d2e4e302ddfbd1e0304d565b155522c63e59e3a65e8f874a5a5bf7aa16bd60dee4cca835a0c93d6f9e7bce1f1a2c4920a33deb88d7a51be162
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::WebSecurityScanner::V1beta::CreateScanConfigRequest.n
|
|
37
37
|
response = client.create_scan_config request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview/)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -231,6 +231,21 @@ module Google
|
|
231
231
|
#
|
232
232
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
233
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
|
+
#
|
234
249
|
def create_scan_config request, options = nil
|
235
250
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
236
251
|
|
@@ -248,9 +263,11 @@ module Google
|
|
248
263
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
249
264
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
250
265
|
|
251
|
-
header_params = {
|
252
|
-
|
253
|
-
|
266
|
+
header_params = {}
|
267
|
+
if request.parent
|
268
|
+
header_params["parent"] = request.parent
|
269
|
+
end
|
270
|
+
|
254
271
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
255
272
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
256
273
|
|
@@ -300,6 +317,21 @@ module Google
|
|
300
317
|
#
|
301
318
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
302
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
|
+
#
|
303
335
|
def delete_scan_config request, options = nil
|
304
336
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
305
337
|
|
@@ -317,9 +349,11 @@ module Google
|
|
317
349
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
318
350
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
319
351
|
|
320
|
-
header_params = {
|
321
|
-
|
322
|
-
|
352
|
+
header_params = {}
|
353
|
+
if request.name
|
354
|
+
header_params["name"] = request.name
|
355
|
+
end
|
356
|
+
|
323
357
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
324
358
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
325
359
|
|
@@ -369,6 +403,21 @@ module Google
|
|
369
403
|
#
|
370
404
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
371
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
|
+
#
|
372
421
|
def get_scan_config request, options = nil
|
373
422
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
374
423
|
|
@@ -386,9 +435,11 @@ module Google
|
|
386
435
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
387
436
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
388
437
|
|
389
|
-
header_params = {
|
390
|
-
|
391
|
-
|
438
|
+
header_params = {}
|
439
|
+
if request.name
|
440
|
+
header_params["name"] = request.name
|
441
|
+
end
|
442
|
+
|
392
443
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
393
444
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
394
445
|
|
@@ -446,6 +497,27 @@ module Google
|
|
446
497
|
#
|
447
498
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
448
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
|
+
#
|
449
521
|
def list_scan_configs request, options = nil
|
450
522
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
451
523
|
|
@@ -463,9 +535,11 @@ module Google
|
|
463
535
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
464
536
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
465
537
|
|
466
|
-
header_params = {
|
467
|
-
|
468
|
-
|
538
|
+
header_params = {}
|
539
|
+
if request.parent
|
540
|
+
header_params["parent"] = request.parent
|
541
|
+
end
|
542
|
+
|
469
543
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
470
544
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
471
545
|
|
@@ -521,6 +595,21 @@ module Google
|
|
521
595
|
#
|
522
596
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
523
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
|
+
#
|
524
613
|
def update_scan_config request, options = nil
|
525
614
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
526
615
|
|
@@ -538,9 +627,11 @@ module Google
|
|
538
627
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
539
628
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
540
629
|
|
541
|
-
header_params = {
|
542
|
-
|
543
|
-
|
630
|
+
header_params = {}
|
631
|
+
if request.scan_config&.name
|
632
|
+
header_params["scan_config.name"] = request.scan_config.name
|
633
|
+
end
|
634
|
+
|
544
635
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
545
636
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
546
637
|
|
@@ -590,6 +681,21 @@ module Google
|
|
590
681
|
#
|
591
682
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
592
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
|
+
#
|
593
699
|
def start_scan_run request, options = nil
|
594
700
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
595
701
|
|
@@ -607,9 +713,11 @@ module Google
|
|
607
713
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
608
714
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
609
715
|
|
610
|
-
header_params = {
|
611
|
-
|
612
|
-
|
716
|
+
header_params = {}
|
717
|
+
if request.name
|
718
|
+
header_params["name"] = request.name
|
719
|
+
end
|
720
|
+
|
613
721
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
614
722
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
615
723
|
|
@@ -660,6 +768,21 @@ module Google
|
|
660
768
|
#
|
661
769
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
662
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
|
+
#
|
663
786
|
def get_scan_run request, options = nil
|
664
787
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
665
788
|
|
@@ -677,9 +800,11 @@ module Google
|
|
677
800
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
678
801
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
679
802
|
|
680
|
-
header_params = {
|
681
|
-
|
682
|
-
|
803
|
+
header_params = {}
|
804
|
+
if request.name
|
805
|
+
header_params["name"] = request.name
|
806
|
+
end
|
807
|
+
|
683
808
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
684
809
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
685
810
|
|
@@ -738,6 +863,27 @@ module Google
|
|
738
863
|
#
|
739
864
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
740
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
|
+
#
|
741
887
|
def list_scan_runs request, options = nil
|
742
888
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
743
889
|
|
@@ -755,9 +901,11 @@ module Google
|
|
755
901
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
756
902
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
757
903
|
|
758
|
-
header_params = {
|
759
|
-
|
760
|
-
|
904
|
+
header_params = {}
|
905
|
+
if request.parent
|
906
|
+
header_params["parent"] = request.parent
|
907
|
+
end
|
908
|
+
|
761
909
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
762
910
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
763
911
|
|
@@ -809,6 +957,21 @@ module Google
|
|
809
957
|
#
|
810
958
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
811
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
|
+
#
|
812
975
|
def stop_scan_run request, options = nil
|
813
976
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
814
977
|
|
@@ -826,9 +989,11 @@ module Google
|
|
826
989
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
827
990
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
828
991
|
|
829
|
-
header_params = {
|
830
|
-
|
831
|
-
|
992
|
+
header_params = {}
|
993
|
+
if request.name
|
994
|
+
header_params["name"] = request.name
|
995
|
+
end
|
996
|
+
|
832
997
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
833
998
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
834
999
|
|
@@ -887,6 +1052,27 @@ module Google
|
|
887
1052
|
#
|
888
1053
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
889
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
|
+
#
|
890
1076
|
def list_crawled_urls request, options = nil
|
891
1077
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
892
1078
|
|
@@ -904,9 +1090,11 @@ module Google
|
|
904
1090
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
905
1091
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
906
1092
|
|
907
|
-
header_params = {
|
908
|
-
|
909
|
-
|
1093
|
+
header_params = {}
|
1094
|
+
if request.parent
|
1095
|
+
header_params["parent"] = request.parent
|
1096
|
+
end
|
1097
|
+
|
910
1098
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
911
1099
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
912
1100
|
|
@@ -958,6 +1146,21 @@ module Google
|
|
958
1146
|
#
|
959
1147
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
960
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
|
+
#
|
961
1164
|
def get_finding request, options = nil
|
962
1165
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
963
1166
|
|
@@ -975,9 +1178,11 @@ module Google
|
|
975
1178
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
976
1179
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
977
1180
|
|
978
|
-
header_params = {
|
979
|
-
|
980
|
-
|
1181
|
+
header_params = {}
|
1182
|
+
if request.name
|
1183
|
+
header_params["name"] = request.name
|
1184
|
+
end
|
1185
|
+
|
981
1186
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
982
1187
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
983
1188
|
|
@@ -1041,6 +1246,27 @@ module Google
|
|
1041
1246
|
#
|
1042
1247
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1043
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
|
+
#
|
1044
1270
|
def list_findings request, options = nil
|
1045
1271
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1046
1272
|
|
@@ -1058,9 +1284,11 @@ module Google
|
|
1058
1284
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
1059
1285
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1060
1286
|
|
1061
|
-
header_params = {
|
1062
|
-
|
1063
|
-
|
1287
|
+
header_params = {}
|
1288
|
+
if request.parent
|
1289
|
+
header_params["parent"] = request.parent
|
1290
|
+
end
|
1291
|
+
|
1064
1292
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1065
1293
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1066
1294
|
|
@@ -1112,6 +1340,21 @@ module Google
|
|
1112
1340
|
#
|
1113
1341
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1114
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
|
+
#
|
1115
1358
|
def list_finding_type_stats request, options = nil
|
1116
1359
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1117
1360
|
|
@@ -1129,9 +1372,11 @@ module Google
|
|
1129
1372
|
gapic_version: ::Google::Cloud::WebSecurityScanner::V1beta::VERSION
|
1130
1373
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1131
1374
|
|
1132
|
-
header_params = {
|
1133
|
-
|
1134
|
-
|
1375
|
+
header_params = {}
|
1376
|
+
if request.parent
|
1377
|
+
header_params["parent"] = request.parent
|
1378
|
+
end
|
1379
|
+
|
1135
1380
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1136
1381
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1137
1382
|
|
@@ -25,6 +25,8 @@ module Google
|
|
25
25
|
##
|
26
26
|
# To load this package, including all its services, and instantiate a client:
|
27
27
|
#
|
28
|
+
# @example
|
29
|
+
#
|
28
30
|
# require "google/cloud/web_security_scanner/v1beta"
|
29
31
|
# client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
|
30
32
|
#
|
@@ -5,6 +5,7 @@ require 'google/protobuf'
|
|
5
5
|
|
6
6
|
require 'google/api/resource_pb'
|
7
7
|
require 'google/cloud/websecurityscanner/v1beta/finding_addon_pb'
|
8
|
+
|
8
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
10
|
add_file("google/cloud/websecurityscanner/v1beta/finding.proto", :syntax => :proto3) do
|
10
11
|
add_message "google.cloud.websecurityscanner.v1beta.Finding" do
|
@@ -7,6 +7,7 @@ require 'google/api/field_behavior_pb'
|
|
7
7
|
require 'google/api/resource_pb'
|
8
8
|
require 'google/cloud/websecurityscanner/v1beta/scan_run_pb'
|
9
9
|
require 'google/protobuf/timestamp_pb'
|
10
|
+
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_file("google/cloud/websecurityscanner/v1beta/scan_config.proto", :syntax => :proto3) do
|
12
13
|
add_message "google.cloud.websecurityscanner.v1beta.ScanConfig" do
|
@@ -4,6 +4,7 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'google/cloud/websecurityscanner/v1beta/scan_config_error_pb'
|
7
|
+
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto", :syntax => :proto3) do
|
9
10
|
add_message "google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace" do
|
@@ -7,6 +7,7 @@ require 'google/api/resource_pb'
|
|
7
7
|
require 'google/cloud/websecurityscanner/v1beta/scan_run_error_trace_pb'
|
8
8
|
require 'google/cloud/websecurityscanner/v1beta/scan_run_warning_trace_pb'
|
9
9
|
require 'google/protobuf/timestamp_pb'
|
10
|
+
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_file("google/cloud/websecurityscanner/v1beta/scan_run.proto", :syntax => :proto3) do
|
12
13
|
add_message "google.cloud.websecurityscanner.v1beta.ScanRun" do
|
@@ -14,6 +14,7 @@ require 'google/cloud/websecurityscanner/v1beta/scan_config_pb'
|
|
14
14
|
require 'google/cloud/websecurityscanner/v1beta/scan_run_pb'
|
15
15
|
require 'google/protobuf/empty_pb'
|
16
16
|
require 'google/protobuf/field_mask_pb'
|
17
|
+
|
17
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
19
|
add_file("google/cloud/websecurityscanner/v1beta/web_security_scanner.proto", :syntax => :proto3) do
|
19
20
|
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
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -215,14 +215,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
215
215
|
requirements:
|
216
216
|
- - ">="
|
217
217
|
- !ruby/object:Gem::Version
|
218
|
-
version: '2.
|
218
|
+
version: '2.6'
|
219
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
220
220
|
requirements:
|
221
221
|
- - ">="
|
222
222
|
- !ruby/object:Gem::Version
|
223
223
|
version: '0'
|
224
224
|
requirements: []
|
225
|
-
rubygems_version: 3.
|
225
|
+
rubygems_version: 3.3.14
|
226
226
|
signing_key:
|
227
227
|
specification_version: 4
|
228
228
|
summary: API Client library for the Web Security Scanner V1beta API
|