google-cloud-web_security_scanner-v1beta 0.4.0 → 0.6.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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +3 -3
  4. data/lib/google/cloud/web_security_scanner/v1beta/rest.rb +37 -0
  5. data/lib/google/cloud/web_security_scanner/v1beta/version.rb +1 -1
  6. data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/client.rb +18 -26
  7. data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/rest/client.rb +1295 -0
  8. data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/rest/service_stub.rb +819 -0
  9. data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/rest.rb +54 -0
  10. data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner.rb +7 -1
  11. data/lib/google/cloud/web_security_scanner/v1beta.rb +7 -2
  12. data/lib/google/cloud/websecurityscanner/v1beta/crawled_url_pb.rb +24 -6
  13. data/lib/google/cloud/websecurityscanner/v1beta/finding_addon_pb.rb +24 -29
  14. data/lib/google/cloud/websecurityscanner/v1beta/finding_pb.rb +25 -19
  15. data/lib/google/cloud/websecurityscanner/v1beta/finding_type_stats_pb.rb +24 -5
  16. data/lib/google/cloud/websecurityscanner/v1beta/scan_config_error_pb.rb +24 -49
  17. data/lib/google/cloud/websecurityscanner/v1beta/scan_config_pb.rb +26 -55
  18. data/lib/google/cloud/websecurityscanner/v1beta/scan_run_error_trace_pb.rb +25 -15
  19. data/lib/google/cloud/websecurityscanner/v1beta/scan_run_pb.rb +27 -26
  20. data/lib/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace_pb.rb +24 -11
  21. data/lib/google/cloud/websecurityscanner/v1beta/web_security_scanner_pb.rb +30 -70
  22. data/proto_docs/google/api/client.rb +381 -0
  23. data/proto_docs/google/api/launch_stage.rb +71 -0
  24. data/proto_docs/google/protobuf/duration.rb +98 -0
  25. data/proto_docs/google/protobuf/empty.rb +0 -2
  26. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  27. metadata +15 -8
@@ -0,0 +1,98 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Protobuf
22
+ # A Duration represents a signed, fixed-length span of time represented
23
+ # as a count of seconds and fractions of seconds at nanosecond
24
+ # resolution. It is independent of any calendar and concepts like "day"
25
+ # or "month". It is related to Timestamp in that the difference between
26
+ # two Timestamp values is a Duration and it can be added or subtracted
27
+ # from a Timestamp. Range is approximately +-10,000 years.
28
+ #
29
+ # # Examples
30
+ #
31
+ # Example 1: Compute Duration from two Timestamps in pseudo code.
32
+ #
33
+ # Timestamp start = ...;
34
+ # Timestamp end = ...;
35
+ # Duration duration = ...;
36
+ #
37
+ # duration.seconds = end.seconds - start.seconds;
38
+ # duration.nanos = end.nanos - start.nanos;
39
+ #
40
+ # if (duration.seconds < 0 && duration.nanos > 0) {
41
+ # duration.seconds += 1;
42
+ # duration.nanos -= 1000000000;
43
+ # } else if (duration.seconds > 0 && duration.nanos < 0) {
44
+ # duration.seconds -= 1;
45
+ # duration.nanos += 1000000000;
46
+ # }
47
+ #
48
+ # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
49
+ #
50
+ # Timestamp start = ...;
51
+ # Duration duration = ...;
52
+ # Timestamp end = ...;
53
+ #
54
+ # end.seconds = start.seconds + duration.seconds;
55
+ # end.nanos = start.nanos + duration.nanos;
56
+ #
57
+ # if (end.nanos < 0) {
58
+ # end.seconds -= 1;
59
+ # end.nanos += 1000000000;
60
+ # } else if (end.nanos >= 1000000000) {
61
+ # end.seconds += 1;
62
+ # end.nanos -= 1000000000;
63
+ # }
64
+ #
65
+ # Example 3: Compute Duration from datetime.timedelta in Python.
66
+ #
67
+ # td = datetime.timedelta(days=3, minutes=10)
68
+ # duration = Duration()
69
+ # duration.FromTimedelta(td)
70
+ #
71
+ # # JSON Mapping
72
+ #
73
+ # In JSON format, the Duration type is encoded as a string rather than an
74
+ # object, where the string ends in the suffix "s" (indicating seconds) and
75
+ # is preceded by the number of seconds, with nanoseconds expressed as
76
+ # fractional seconds. For example, 3 seconds with 0 nanoseconds should be
77
+ # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
78
+ # be expressed in JSON format as "3.000000001s", and 3 seconds and 1
79
+ # microsecond should be expressed in JSON format as "3.000001s".
80
+ # @!attribute [rw] seconds
81
+ # @return [::Integer]
82
+ # Signed seconds of the span of time. Must be from -315,576,000,000
83
+ # to +315,576,000,000 inclusive. Note: these bounds are computed from:
84
+ # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
85
+ # @!attribute [rw] nanos
86
+ # @return [::Integer]
87
+ # Signed fractions of a second at nanosecond resolution of the span
88
+ # of time. Durations less than one second are represented with a 0
89
+ # `seconds` field and a positive or negative `nanos` field. For durations
90
+ # of one second or more, a non-zero value for the `nanos` field must be
91
+ # of the same sign as the `seconds` field. Must be from -999,999,999
92
+ # to +999,999,999 inclusive.
93
+ class Duration
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
+ end
97
+ end
98
+ end
@@ -26,8 +26,6 @@ module Google
26
26
  # service Foo {
27
27
  # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
28
  # }
29
- #
30
- # The JSON representation for `Empty` is empty JSON object `{}`.
31
29
  class Empty
32
30
  include ::Google::Protobuf::MessageExts
33
31
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
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.0
4
+ version: 0.6.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: 2022-07-08 00:00:00.000000000 Z
11
+ date: 2023-05-31 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.10'
19
+ version: 0.19.0
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.10'
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.26.1
53
+ version: 1.26.3
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.26.1
60
+ version: 1.26.3
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -171,11 +171,15 @@ files:
171
171
  - README.md
172
172
  - lib/google-cloud-web_security_scanner-v1beta.rb
173
173
  - lib/google/cloud/web_security_scanner/v1beta.rb
174
+ - lib/google/cloud/web_security_scanner/v1beta/rest.rb
174
175
  - lib/google/cloud/web_security_scanner/v1beta/version.rb
175
176
  - lib/google/cloud/web_security_scanner/v1beta/web_security_scanner.rb
176
177
  - lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/client.rb
177
178
  - lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/credentials.rb
178
179
  - lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/paths.rb
180
+ - lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/rest.rb
181
+ - lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/rest/client.rb
182
+ - lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/rest/service_stub.rb
179
183
  - lib/google/cloud/websecurityscanner/v1beta/crawled_url_pb.rb
180
184
  - lib/google/cloud/websecurityscanner/v1beta/finding_addon_pb.rb
181
185
  - lib/google/cloud/websecurityscanner/v1beta/finding_pb.rb
@@ -188,7 +192,9 @@ files:
188
192
  - lib/google/cloud/websecurityscanner/v1beta/web_security_scanner_pb.rb
189
193
  - lib/google/cloud/websecurityscanner/v1beta/web_security_scanner_services_pb.rb
190
194
  - proto_docs/README.md
195
+ - proto_docs/google/api/client.rb
191
196
  - proto_docs/google/api/field_behavior.rb
197
+ - proto_docs/google/api/launch_stage.rb
192
198
  - proto_docs/google/api/resource.rb
193
199
  - proto_docs/google/cloud/websecurityscanner/v1beta/crawled_url.rb
194
200
  - proto_docs/google/cloud/websecurityscanner/v1beta/finding.rb
@@ -200,6 +206,7 @@ files:
200
206
  - proto_docs/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.rb
201
207
  - proto_docs/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.rb
202
208
  - proto_docs/google/cloud/websecurityscanner/v1beta/web_security_scanner.rb
209
+ - proto_docs/google/protobuf/duration.rb
203
210
  - proto_docs/google/protobuf/empty.rb
204
211
  - proto_docs/google/protobuf/field_mask.rb
205
212
  - proto_docs/google/protobuf/timestamp.rb
@@ -222,8 +229,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
229
  - !ruby/object:Gem::Version
223
230
  version: '0'
224
231
  requirements: []
225
- rubygems_version: 3.3.14
232
+ rubygems_version: 3.4.2
226
233
  signing_key:
227
234
  specification_version: 4
228
- summary: API Client library for the Web Security Scanner V1beta API
235
+ summary: Scans your Compute and App Engine apps for common web vulnerabilities.
229
236
  test_files: []