grafeas-v1 0.6.0 → 0.7.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/lib/grafeas/v1/cvss_pb.rb +6 -0
- data/lib/grafeas/v1/discovery_pb.rb +7 -0
- data/lib/grafeas/v1/version.rb +1 -1
- data/lib/grafeas/v1/vulnerability_pb.rb +2 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/grafeas/v1/cvss.rb +9 -0
- data/proto_docs/grafeas/v1/discovery.rb +19 -1
- data/proto_docs/grafeas/v1/vulnerability.rb +6 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 884fa0c5479da039df9323bdc5b1714e4f0e26da88c848b1542978527d8f5b5a
|
4
|
+
data.tar.gz: a5861d6ccdd43050aba04e6053916879d31c47083403f3362879908319252227
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd1f71ef3d8335ea5461522daaad312f148be61d8e86cd514aa0275161d427939554c00bca367e6631fe40de78b3bd5842811a3d909b4dca476cba24121841ae
|
7
|
+
data.tar.gz: 4b64e68af4cfcc64d88242ec7ac9e14b35518d7bf1b1eae72ef84eeb84e311bfc10ff559adc3359cef50821a562ae9d1d61935de2f04ff7ac0680b0b8f01db1d
|
data/lib/grafeas/v1/cvss_pb.rb
CHANGED
@@ -106,6 +106,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
106
106
|
value :IMPACT_LOW, 2
|
107
107
|
value :IMPACT_NONE, 3
|
108
108
|
end
|
109
|
+
add_enum "grafeas.v1.CVSSVersion" do
|
110
|
+
value :CVSS_VERSION_UNSPECIFIED, 0
|
111
|
+
value :CVSS_VERSION_2, 1
|
112
|
+
value :CVSS_VERSION_3, 2
|
113
|
+
end
|
109
114
|
end
|
110
115
|
end
|
111
116
|
|
@@ -126,5 +131,6 @@ module Grafeas
|
|
126
131
|
CVSS::UserInteraction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSS.UserInteraction").enummodule
|
127
132
|
CVSS::Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSS.Scope").enummodule
|
128
133
|
CVSS::Impact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSS.Impact").enummodule
|
134
|
+
CVSSVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSSVersion").enummodule
|
129
135
|
end
|
130
136
|
end
|
@@ -16,11 +16,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
16
|
add_message "grafeas.v1.DiscoveryOccurrence" do
|
17
17
|
optional :continuous_analysis, :enum, 1, "grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis"
|
18
18
|
optional :analysis_status, :enum, 2, "grafeas.v1.DiscoveryOccurrence.AnalysisStatus"
|
19
|
+
optional :analysis_completed, :message, 7, "grafeas.v1.DiscoveryOccurrence.AnalysisCompleted"
|
20
|
+
repeated :analysis_error, :message, 8, "google.rpc.Status"
|
19
21
|
optional :analysis_status_error, :message, 3, "google.rpc.Status"
|
20
22
|
optional :cpe, :string, 4
|
21
23
|
optional :last_scan_time, :message, 5, "google.protobuf.Timestamp"
|
22
24
|
optional :archive_time, :message, 6, "google.protobuf.Timestamp"
|
23
25
|
end
|
26
|
+
add_message "grafeas.v1.DiscoveryOccurrence.AnalysisCompleted" do
|
27
|
+
repeated :analysis_type, :string, 1
|
28
|
+
end
|
24
29
|
add_enum "grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis" do
|
25
30
|
value :CONTINUOUS_ANALYSIS_UNSPECIFIED, 0
|
26
31
|
value :ACTIVE, 1
|
@@ -31,6 +36,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
31
36
|
value :PENDING, 1
|
32
37
|
value :SCANNING, 2
|
33
38
|
value :FINISHED_SUCCESS, 3
|
39
|
+
value :COMPLETE, 3
|
34
40
|
value :FINISHED_FAILED, 4
|
35
41
|
value :FINISHED_UNSUPPORTED, 5
|
36
42
|
end
|
@@ -41,6 +47,7 @@ module Grafeas
|
|
41
47
|
module V1
|
42
48
|
DiscoveryNote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DiscoveryNote").msgclass
|
43
49
|
DiscoveryOccurrence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DiscoveryOccurrence").msgclass
|
50
|
+
DiscoveryOccurrence::AnalysisCompleted = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DiscoveryOccurrence.AnalysisCompleted").msgclass
|
44
51
|
DiscoveryOccurrence::ContinuousAnalysis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis").enummodule
|
45
52
|
DiscoveryOccurrence::AnalysisStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DiscoveryOccurrence.AnalysisStatus").enummodule
|
46
53
|
end
|
data/lib/grafeas/v1/version.rb
CHANGED
@@ -19,6 +19,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
19
19
|
optional :cvss_v3, :message, 4, "grafeas.v1.CVSSv3"
|
20
20
|
repeated :windows_details, :message, 5, "grafeas.v1.VulnerabilityNote.WindowsDetail"
|
21
21
|
optional :source_update_time, :message, 6, "google.protobuf.Timestamp"
|
22
|
+
optional :cvss_version, :enum, 7, "grafeas.v1.CVSSVersion"
|
22
23
|
end
|
23
24
|
add_message "grafeas.v1.VulnerabilityNote.Detail" do
|
24
25
|
optional :severity_name, :string, 1
|
@@ -57,6 +58,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
57
58
|
repeated :related_urls, :message, 7, "grafeas.v1.RelatedUrl"
|
58
59
|
optional :effective_severity, :enum, 8, "grafeas.v1.Severity"
|
59
60
|
optional :fix_available, :bool, 9
|
61
|
+
optional :cvss_version, :enum, 11, "grafeas.v1.CVSSVersion"
|
60
62
|
end
|
61
63
|
add_message "grafeas.v1.VulnerabilityOccurrence.PackageIssue" do
|
62
64
|
optional :affected_cpe_uri, :string, 1
|
@@ -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
|
@@ -38,6 +38,12 @@ module Grafeas
|
|
38
38
|
# @!attribute [rw] analysis_status
|
39
39
|
# @return [::Grafeas::V1::DiscoveryOccurrence::AnalysisStatus]
|
40
40
|
# The status of discovery for the resource.
|
41
|
+
# @!attribute [rw] analysis_completed
|
42
|
+
# @return [::Grafeas::V1::DiscoveryOccurrence::AnalysisCompleted]
|
43
|
+
# @!attribute [rw] analysis_error
|
44
|
+
# @return [::Array<::Google::Rpc::Status>]
|
45
|
+
# Indicates any errors encountered during analysis of a resource. There
|
46
|
+
# could be 0 or more of these errors.
|
41
47
|
# @!attribute [rw] analysis_status_error
|
42
48
|
# @return [::Google::Rpc::Status]
|
43
49
|
# When an error is encountered this will contain a LocalizedMessage under
|
@@ -56,6 +62,15 @@ module Grafeas
|
|
56
62
|
include ::Google::Protobuf::MessageExts
|
57
63
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
58
64
|
|
65
|
+
# Indicates which analysis completed successfully. Multiple types of
|
66
|
+
# analysis can be performed on a single resource.
|
67
|
+
# @!attribute [rw] analysis_type
|
68
|
+
# @return [::Array<::String>]
|
69
|
+
class AnalysisCompleted
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
end
|
73
|
+
|
59
74
|
# Whether the resource is continuously analyzed.
|
60
75
|
module ContinuousAnalysis
|
61
76
|
# Unknown.
|
@@ -83,11 +98,14 @@ module Grafeas
|
|
83
98
|
# Analysis has finished successfully.
|
84
99
|
FINISHED_SUCCESS = 3
|
85
100
|
|
101
|
+
# Analysis has completed.
|
102
|
+
COMPLETE = 3
|
103
|
+
|
86
104
|
# Analysis has finished unsuccessfully, the analysis itself is in a bad
|
87
105
|
# state.
|
88
106
|
FINISHED_FAILED = 4
|
89
107
|
|
90
|
-
# The resource is known not to be supported
|
108
|
+
# The resource is known not to be supported.
|
91
109
|
FINISHED_UNSUPPORTED = 5
|
92
110
|
end
|
93
111
|
end
|
@@ -44,6 +44,9 @@ module Grafeas
|
|
44
44
|
# The time this information was last changed at the source. This is an
|
45
45
|
# upstream timestamp from the underlying information source - e.g. Ubuntu
|
46
46
|
# security tracker.
|
47
|
+
# @!attribute [rw] cvss_version
|
48
|
+
# @return [::Grafeas::V1::CVSSVersion]
|
49
|
+
# CVSS version used to populate cvss_score and severity.
|
47
50
|
class VulnerabilityNote
|
48
51
|
include ::Google::Protobuf::MessageExts
|
49
52
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -199,6 +202,9 @@ module Grafeas
|
|
199
202
|
# @return [::Boolean]
|
200
203
|
# Output only. Whether at least one of the affected packages has a fix
|
201
204
|
# available.
|
205
|
+
# @!attribute [rw] cvss_version
|
206
|
+
# @return [::Grafeas::V1::CVSSVersion]
|
207
|
+
# Output only. CVSS version used to populate cvss_score and severity.
|
202
208
|
class VulnerabilityOccurrence
|
203
209
|
include ::Google::Protobuf::MessageExts
|
204
210
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grafeas-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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-
|
11
|
+
date: 2022-10-03 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.12'
|
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.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|