grafeas-client 0.1.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 (41) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +11 -0
  3. data/AUTHENTICATION.md +199 -0
  4. data/LICENSE +201 -0
  5. data/README.md +69 -0
  6. data/lib/grafeas-client.rb +16 -0
  7. data/lib/grafeas.rb +150 -0
  8. data/lib/grafeas/v1.rb +147 -0
  9. data/lib/grafeas/v1/attestation_pb.rb +27 -0
  10. data/lib/grafeas/v1/build_pb.rb +23 -0
  11. data/lib/grafeas/v1/common_pb.rb +34 -0
  12. data/lib/grafeas/v1/credentials.rb +37 -0
  13. data/lib/grafeas/v1/cvss_pb.rb +67 -0
  14. data/lib/grafeas/v1/deployment_pb.rb +35 -0
  15. data/lib/grafeas/v1/discovery_pb.rb +40 -0
  16. data/lib/grafeas/v1/doc/google/protobuf/any.rb +131 -0
  17. data/lib/grafeas/v1/doc/google/protobuf/empty.rb +29 -0
  18. data/lib/grafeas/v1/doc/google/protobuf/field_mask.rb +222 -0
  19. data/lib/grafeas/v1/doc/google/protobuf/timestamp.rb +111 -0
  20. data/lib/grafeas/v1/doc/google/rpc/status.rb +87 -0
  21. data/lib/grafeas/v1/doc/grafeas/v1/attestation.rb +64 -0
  22. data/lib/grafeas/v1/doc/grafeas/v1/build.rb +44 -0
  23. data/lib/grafeas/v1/doc/grafeas/v1/common.rb +105 -0
  24. data/lib/grafeas/v1/doc/grafeas/v1/cvss.rb +104 -0
  25. data/lib/grafeas/v1/doc/grafeas/v1/deployment.rb +64 -0
  26. data/lib/grafeas/v1/doc/grafeas/v1/discovery.rb +76 -0
  27. data/lib/grafeas/v1/doc/grafeas/v1/grafeas.rb +322 -0
  28. data/lib/grafeas/v1/doc/grafeas/v1/image.rb +79 -0
  29. data/lib/grafeas/v1/doc/grafeas/v1/package.rb +125 -0
  30. data/lib/grafeas/v1/doc/grafeas/v1/provenance.rb +248 -0
  31. data/lib/grafeas/v1/doc/grafeas/v1/vulnerability.rb +197 -0
  32. data/lib/grafeas/v1/grafeas_client.rb +955 -0
  33. data/lib/grafeas/v1/grafeas_client_config.json +96 -0
  34. data/lib/grafeas/v1/grafeas_pb.rb +163 -0
  35. data/lib/grafeas/v1/grafeas_services_pb.rb +86 -0
  36. data/lib/grafeas/v1/image_pb.rb +36 -0
  37. data/lib/grafeas/v1/package_pb.rb +59 -0
  38. data/lib/grafeas/v1/provenance_pb.rb +116 -0
  39. data/lib/grafeas/v1/vulnerability_pb.rb +80 -0
  40. data/lib/grafeas/version.rb +18 -0
  41. metadata +179 -0
@@ -0,0 +1,80 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: grafeas/v1/vulnerability.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'grafeas/v1/common_pb'
8
+ require 'grafeas/v1/cvss_pb'
9
+ require 'grafeas/v1/package_pb'
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_message "grafeas.v1.VulnerabilityNote" do
12
+ optional :cvss_score, :float, 1
13
+ optional :severity, :enum, 2, "grafeas.v1.Severity"
14
+ repeated :details, :message, 3, "grafeas.v1.VulnerabilityNote.Detail"
15
+ optional :cvss_v3, :message, 4, "grafeas.v1.CVSSv3"
16
+ repeated :windows_details, :message, 5, "grafeas.v1.VulnerabilityNote.WindowsDetail"
17
+ end
18
+ add_message "grafeas.v1.VulnerabilityNote.Detail" do
19
+ optional :severity_name, :string, 1
20
+ optional :description, :string, 2
21
+ optional :package_type, :string, 3
22
+ optional :affected_cpe_uri, :string, 4
23
+ optional :affected_package, :string, 5
24
+ optional :min_affected_version, :message, 6, "grafeas.v1.Version"
25
+ optional :fixed_cpe_uri, :string, 7
26
+ optional :fixed_package, :string, 8
27
+ optional :fixed_version, :message, 9, "grafeas.v1.Version"
28
+ optional :is_obsolete, :bool, 10
29
+ end
30
+ add_message "grafeas.v1.VulnerabilityNote.WindowsDetail" do
31
+ optional :cpe_uri, :string, 1
32
+ optional :name, :string, 2
33
+ optional :description, :string, 3
34
+ repeated :fixing_kbs, :message, 4, "grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase"
35
+ end
36
+ add_message "grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase" do
37
+ optional :name, :string, 1
38
+ optional :url, :string, 2
39
+ end
40
+ add_message "grafeas.v1.VulnerabilityOccurrence" do
41
+ optional :type, :string, 1
42
+ optional :severity, :enum, 2, "grafeas.v1.Severity"
43
+ optional :cvss_score, :float, 3
44
+ repeated :package_issue, :message, 4, "grafeas.v1.VulnerabilityOccurrence.PackageIssue"
45
+ optional :short_description, :string, 5
46
+ optional :long_description, :string, 6
47
+ repeated :related_urls, :message, 7, "grafeas.v1.RelatedUrl"
48
+ optional :effective_severity, :enum, 8, "grafeas.v1.Severity"
49
+ optional :fix_available, :bool, 9
50
+ end
51
+ add_message "grafeas.v1.VulnerabilityOccurrence.PackageIssue" do
52
+ optional :affected_cpe_uri, :string, 1
53
+ optional :affected_package, :string, 2
54
+ optional :min_affected_version, :message, 3, "grafeas.v1.Version"
55
+ optional :fixed_cpe_uri, :string, 4
56
+ optional :fixed_package, :string, 5
57
+ optional :fixed_version, :message, 6, "grafeas.v1.Version"
58
+ optional :fix_available, :bool, 7
59
+ end
60
+ add_enum "grafeas.v1.Severity" do
61
+ value :SEVERITY_UNSPECIFIED, 0
62
+ value :MINIMAL, 1
63
+ value :LOW, 2
64
+ value :MEDIUM, 3
65
+ value :HIGH, 4
66
+ value :CRITICAL, 5
67
+ end
68
+ end
69
+
70
+ module Grafeas
71
+ module V1
72
+ VulnerabilityNote = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote").msgclass
73
+ VulnerabilityNote::Detail = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote.Detail").msgclass
74
+ VulnerabilityNote::WindowsDetail = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote.WindowsDetail").msgclass
75
+ VulnerabilityNote::WindowsDetail::KnowledgeBase = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase").msgclass
76
+ VulnerabilityOccurrence = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence").msgclass
77
+ VulnerabilityOccurrence::PackageIssue = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence.PackageIssue").msgclass
78
+ Severity = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Severity").enummodule
79
+ end
80
+ end
@@ -0,0 +1,18 @@
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ module Grafeas
17
+ VERSION = "0.1.0".freeze
18
+ end
metadata ADDED
@@ -0,0 +1,179 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: grafeas-client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Google LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-06-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-gax
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: grpc-google-iam-v1
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.6.9
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.6.9
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: redcarpet
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.64.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.64.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.9'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.9'
97
+ - !ruby/object:Gem::Dependency
98
+ name: yard
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.9'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.9'
111
+ description: grafeas-client is the official library for the Grafeas API.
112
+ email: googleapis-packages@google.com
113
+ executables: []
114
+ extensions: []
115
+ extra_rdoc_files: []
116
+ files:
117
+ - ".yardopts"
118
+ - AUTHENTICATION.md
119
+ - LICENSE
120
+ - README.md
121
+ - lib/grafeas-client.rb
122
+ - lib/grafeas.rb
123
+ - lib/grafeas/v1.rb
124
+ - lib/grafeas/v1/attestation_pb.rb
125
+ - lib/grafeas/v1/build_pb.rb
126
+ - lib/grafeas/v1/common_pb.rb
127
+ - lib/grafeas/v1/credentials.rb
128
+ - lib/grafeas/v1/cvss_pb.rb
129
+ - lib/grafeas/v1/deployment_pb.rb
130
+ - lib/grafeas/v1/discovery_pb.rb
131
+ - lib/grafeas/v1/doc/google/protobuf/any.rb
132
+ - lib/grafeas/v1/doc/google/protobuf/empty.rb
133
+ - lib/grafeas/v1/doc/google/protobuf/field_mask.rb
134
+ - lib/grafeas/v1/doc/google/protobuf/timestamp.rb
135
+ - lib/grafeas/v1/doc/google/rpc/status.rb
136
+ - lib/grafeas/v1/doc/grafeas/v1/attestation.rb
137
+ - lib/grafeas/v1/doc/grafeas/v1/build.rb
138
+ - lib/grafeas/v1/doc/grafeas/v1/common.rb
139
+ - lib/grafeas/v1/doc/grafeas/v1/cvss.rb
140
+ - lib/grafeas/v1/doc/grafeas/v1/deployment.rb
141
+ - lib/grafeas/v1/doc/grafeas/v1/discovery.rb
142
+ - lib/grafeas/v1/doc/grafeas/v1/grafeas.rb
143
+ - lib/grafeas/v1/doc/grafeas/v1/image.rb
144
+ - lib/grafeas/v1/doc/grafeas/v1/package.rb
145
+ - lib/grafeas/v1/doc/grafeas/v1/provenance.rb
146
+ - lib/grafeas/v1/doc/grafeas/v1/vulnerability.rb
147
+ - lib/grafeas/v1/grafeas_client.rb
148
+ - lib/grafeas/v1/grafeas_client_config.json
149
+ - lib/grafeas/v1/grafeas_pb.rb
150
+ - lib/grafeas/v1/grafeas_services_pb.rb
151
+ - lib/grafeas/v1/image_pb.rb
152
+ - lib/grafeas/v1/package_pb.rb
153
+ - lib/grafeas/v1/provenance_pb.rb
154
+ - lib/grafeas/v1/vulnerability_pb.rb
155
+ - lib/grafeas/version.rb
156
+ homepage: https://github.com/googleapis/googleapis
157
+ licenses:
158
+ - Apache-2.0
159
+ metadata: {}
160
+ post_install_message:
161
+ rdoc_options: []
162
+ require_paths:
163
+ - lib
164
+ required_ruby_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: 2.0.0
169
+ required_rubygems_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ requirements: []
175
+ rubygems_version: 3.0.3
176
+ signing_key:
177
+ specification_version: 4
178
+ summary: API Client library for the Grafeas API
179
+ test_files: []