grafeas-v1 0.3.0 → 0.5.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 (36) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/README.md +6 -1
  4. data/lib/grafeas/v1/attestation_pb.rb +2 -1
  5. data/lib/grafeas/v1/build_pb.rb +2 -1
  6. data/lib/grafeas/v1/common_pb.rb +14 -0
  7. data/lib/grafeas/v1/compliance_pb.rb +3 -1
  8. data/lib/grafeas/v1/cvss_pb.rb +62 -0
  9. data/lib/grafeas/v1/deployment_pb.rb +2 -1
  10. data/lib/grafeas/v1/discovery_pb.rb +4 -1
  11. data/lib/grafeas/v1/dsse_attestation_pb.rb +2 -1
  12. data/lib/grafeas/v1/grafeas_pb.rb +2 -1
  13. data/lib/grafeas/v1/intoto_provenance_pb.rb +2 -1
  14. data/lib/grafeas/v1/intoto_statement_pb.rb +4 -1
  15. data/lib/grafeas/v1/package_pb.rb +17 -0
  16. data/lib/grafeas/v1/provenance_pb.rb +2 -1
  17. data/lib/grafeas/v1/severity_pb.rb +23 -0
  18. data/lib/grafeas/v1/slsa_provenance_pb.rb +2 -1
  19. data/lib/grafeas/v1/slsa_provenance_zero_two_pb.rb +61 -0
  20. data/lib/grafeas/v1/upgrade_pb.rb +2 -1
  21. data/lib/grafeas/v1/version.rb +1 -1
  22. data/lib/grafeas/v1/vulnerability_pb.rb +5 -16
  23. data/lib/grafeas/v1.rb +2 -0
  24. data/proto_docs/google/api/resource.rb +10 -71
  25. data/proto_docs/google/protobuf/any.rb +3 -3
  26. data/proto_docs/google/protobuf/struct.rb +96 -0
  27. data/proto_docs/grafeas/v1/common.rb +38 -0
  28. data/proto_docs/grafeas/v1/compliance.rb +4 -0
  29. data/proto_docs/grafeas/v1/cvss.rb +103 -0
  30. data/proto_docs/grafeas/v1/discovery.rb +3 -0
  31. data/proto_docs/grafeas/v1/intoto_statement.rb +2 -0
  32. data/proto_docs/grafeas/v1/package.rb +61 -10
  33. data/proto_docs/grafeas/v1/severity.rb +43 -0
  34. data/proto_docs/grafeas/v1/slsa_provenance_zero_two.rb +131 -0
  35. data/proto_docs/grafeas/v1/vulnerability.rb +4 -35
  36. metadata +8 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f064820d9841b6ed77978c13ee9a550c1a859c904f69fa7246e0b8bc5b5978d8
4
- data.tar.gz: 799a01a0a93446547a89cc9becdd7b8a5d78daacea716eed5fe09abf6618f11a
3
+ metadata.gz: 45fc05170db6cbed47e14932cd90ee121b11f4965c32585bd80d7e0aea3e7650
4
+ data.tar.gz: 1128f3362e4ece912f5425526d35bc49f0f4a51453575447f3666349e747a35d
5
5
  SHA512:
6
- metadata.gz: 29f9456863cb097541edb9d36c15ccbac1f34c548beb29399bfe8bbf27814c98808c4945a0436b2ced8d3a6b15bf7f418476d6ea5fefccbf6a35a710f81b2906
7
- data.tar.gz: d6a5504631412ff384cb7cd0629491fc163673b8b19e50288c713cb8475f955feb12e698abbf025d9b0ab20a924984330aa7db9bf039d658265d3012dcd0d3c2
6
+ metadata.gz: 062a178010e7462cf5a8feab1cf5848c454af11b28ec66eac280e1d26eb4b4e1ced59c9c48106f8e15aa07e523a876f0b1fbdfe0d16238f5b90ff123c9c53454
7
+ data.tar.gz: b6cff61e8c4c3dbf9db8092b2ef5dda1fc40497a83d3cada3bbb11d35e3174520a1cff21b288b3e7b95327e09bbb6c6de87e8a1cf6f8f20ebfb81acf693c8638
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Grafeas V1 API
2
+ --title="Grafeas V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/README.md CHANGED
@@ -28,7 +28,7 @@ request = ::Grafeas::V1::GetOccurrenceRequest.new # (request fields as keyword a
28
28
  response = client.get_occurrence request
29
29
  ```
30
30
 
31
- View the [Client Library Documentation](https://googleapis.dev/ruby/grafeas-v1/latest)
31
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/grafeas-v1/latest)
32
32
  for class and method documentation.
33
33
 
34
34
  ## Enabling Logging
@@ -57,6 +57,11 @@ module GRPC
57
57
  end
58
58
  ```
59
59
 
60
+
61
+ ## Google Cloud Samples
62
+
63
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
64
+
60
65
  ## Supported Ruby Versions
61
66
 
62
67
  This library is supported on Ruby 2.5+.
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/attestation.proto
3
3
 
4
- require 'grafeas/v1/common_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'grafeas/v1/common_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("grafeas/v1/attestation.proto", :syntax => :proto3) do
9
10
  add_message "grafeas.v1.AttestationNote" do
@@ -1,10 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/build.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'grafeas/v1/intoto_provenance_pb'
5
7
  require 'grafeas/v1/intoto_statement_pb'
6
8
  require 'grafeas/v1/provenance_pb'
7
- require 'google/protobuf'
8
9
 
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  add_file("grafeas/v1/build.proto", :syntax => :proto3) do
@@ -22,6 +22,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
22
  optional :sig, :bytes, 1
23
23
  optional :keyid, :string, 2
24
24
  end
25
+ add_message "grafeas.v1.FileLocation" do
26
+ optional :file_path, :string, 1
27
+ end
28
+ add_message "grafeas.v1.License" do
29
+ optional :expression, :string, 1
30
+ optional :comments, :string, 2
31
+ end
32
+ add_message "grafeas.v1.Digest" do
33
+ optional :algo, :string, 1
34
+ optional :digest_bytes, :bytes, 2
35
+ end
25
36
  add_enum "grafeas.v1.NoteKind" do
26
37
  value :NOTE_KIND_UNSPECIFIED, 0
27
38
  value :VULNERABILITY, 1
@@ -44,6 +55,9 @@ module Grafeas
44
55
  Signature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Signature").msgclass
45
56
  Envelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Envelope").msgclass
46
57
  EnvelopeSignature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.EnvelopeSignature").msgclass
58
+ FileLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.FileLocation").msgclass
59
+ License = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.License").msgclass
60
+ Digest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Digest").msgclass
47
61
  NoteKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.NoteKind").enummodule
48
62
  end
49
63
  end
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/compliance.proto
3
3
 
4
- require 'grafeas/v1/vulnerability_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'grafeas/v1/severity_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("grafeas/v1/compliance.proto", :syntax => :proto3) do
9
10
  add_message "grafeas.v1.ComplianceNote" do
@@ -23,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
24
  end
24
25
  add_message "grafeas.v1.ComplianceVersion" do
25
26
  optional :cpe_uri, :string, 1
27
+ optional :benchmark_document, :string, 3
26
28
  optional :version, :string, 2
27
29
  end
28
30
  add_message "grafeas.v1.ComplianceOccurrence" do
@@ -52,6 +52,60 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
52
52
  value :IMPACT_LOW, 2
53
53
  value :IMPACT_NONE, 3
54
54
  end
55
+ add_message "grafeas.v1.CVSS" do
56
+ optional :base_score, :float, 1
57
+ optional :exploitability_score, :float, 2
58
+ optional :impact_score, :float, 3
59
+ optional :attack_vector, :enum, 4, "grafeas.v1.CVSS.AttackVector"
60
+ optional :attack_complexity, :enum, 5, "grafeas.v1.CVSS.AttackComplexity"
61
+ optional :authentication, :enum, 6, "grafeas.v1.CVSS.Authentication"
62
+ optional :privileges_required, :enum, 7, "grafeas.v1.CVSS.PrivilegesRequired"
63
+ optional :user_interaction, :enum, 8, "grafeas.v1.CVSS.UserInteraction"
64
+ optional :scope, :enum, 9, "grafeas.v1.CVSS.Scope"
65
+ optional :confidentiality_impact, :enum, 10, "grafeas.v1.CVSS.Impact"
66
+ optional :integrity_impact, :enum, 11, "grafeas.v1.CVSS.Impact"
67
+ optional :availability_impact, :enum, 12, "grafeas.v1.CVSS.Impact"
68
+ end
69
+ add_enum "grafeas.v1.CVSS.AttackVector" do
70
+ value :ATTACK_VECTOR_UNSPECIFIED, 0
71
+ value :ATTACK_VECTOR_NETWORK, 1
72
+ value :ATTACK_VECTOR_ADJACENT, 2
73
+ value :ATTACK_VECTOR_LOCAL, 3
74
+ value :ATTACK_VECTOR_PHYSICAL, 4
75
+ end
76
+ add_enum "grafeas.v1.CVSS.AttackComplexity" do
77
+ value :ATTACK_COMPLEXITY_UNSPECIFIED, 0
78
+ value :ATTACK_COMPLEXITY_LOW, 1
79
+ value :ATTACK_COMPLEXITY_HIGH, 2
80
+ end
81
+ add_enum "grafeas.v1.CVSS.Authentication" do
82
+ value :AUTHENTICATION_UNSPECIFIED, 0
83
+ value :AUTHENTICATION_MULTIPLE, 1
84
+ value :AUTHENTICATION_SINGLE, 2
85
+ value :AUTHENTICATION_NONE, 3
86
+ end
87
+ add_enum "grafeas.v1.CVSS.PrivilegesRequired" do
88
+ value :PRIVILEGES_REQUIRED_UNSPECIFIED, 0
89
+ value :PRIVILEGES_REQUIRED_NONE, 1
90
+ value :PRIVILEGES_REQUIRED_LOW, 2
91
+ value :PRIVILEGES_REQUIRED_HIGH, 3
92
+ end
93
+ add_enum "grafeas.v1.CVSS.UserInteraction" do
94
+ value :USER_INTERACTION_UNSPECIFIED, 0
95
+ value :USER_INTERACTION_NONE, 1
96
+ value :USER_INTERACTION_REQUIRED, 2
97
+ end
98
+ add_enum "grafeas.v1.CVSS.Scope" do
99
+ value :SCOPE_UNSPECIFIED, 0
100
+ value :SCOPE_UNCHANGED, 1
101
+ value :SCOPE_CHANGED, 2
102
+ end
103
+ add_enum "grafeas.v1.CVSS.Impact" do
104
+ value :IMPACT_UNSPECIFIED, 0
105
+ value :IMPACT_HIGH, 1
106
+ value :IMPACT_LOW, 2
107
+ value :IMPACT_NONE, 3
108
+ end
55
109
  end
56
110
  end
57
111
 
@@ -64,5 +118,13 @@ module Grafeas
64
118
  CVSSv3::UserInteraction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSSv3.UserInteraction").enummodule
65
119
  CVSSv3::Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSSv3.Scope").enummodule
66
120
  CVSSv3::Impact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSSv3.Impact").enummodule
121
+ CVSS = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSS").msgclass
122
+ CVSS::AttackVector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSS.AttackVector").enummodule
123
+ CVSS::AttackComplexity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSS.AttackComplexity").enummodule
124
+ CVSS::Authentication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSS.Authentication").enummodule
125
+ CVSS::PrivilegesRequired = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSS.PrivilegesRequired").enummodule
126
+ CVSS::UserInteraction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSS.UserInteraction").enummodule
127
+ CVSS::Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSS.Scope").enummodule
128
+ CVSS::Impact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CVSS.Impact").enummodule
67
129
  end
68
130
  end
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/deployment.proto
3
3
 
4
- require 'google/protobuf/timestamp_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'google/protobuf/timestamp_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("grafeas/v1/deployment.proto", :syntax => :proto3) do
9
10
  add_message "grafeas.v1.DeploymentNote" do
@@ -1,10 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/discovery.proto
3
3
 
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
4
7
  require 'google/protobuf/timestamp_pb'
5
8
  require 'google/rpc/status_pb'
6
9
  require 'grafeas/v1/common_pb'
7
- require 'google/protobuf'
8
10
 
9
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
12
  add_file("grafeas/v1/discovery.proto", :syntax => :proto3) do
@@ -17,6 +19,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
17
19
  optional :analysis_status_error, :message, 3, "google.rpc.Status"
18
20
  optional :cpe, :string, 4
19
21
  optional :last_scan_time, :message, 5, "google.protobuf.Timestamp"
22
+ optional :archive_time, :message, 6, "google.protobuf.Timestamp"
20
23
  end
21
24
  add_enum "grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis" do
22
25
  value :CONTINUOUS_ANALYSIS_UNSPECIFIED, 0
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/dsse_attestation.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'grafeas/v1/common_pb'
5
7
  require 'grafeas/v1/intoto_statement_pb'
6
- require 'google/protobuf'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("grafeas/v1/dsse_attestation.proto", :syntax => :proto3) do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/grafeas.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -19,7 +21,6 @@ require 'grafeas/v1/image_pb'
19
21
  require 'grafeas/v1/package_pb'
20
22
  require 'grafeas/v1/upgrade_pb'
21
23
  require 'grafeas/v1/vulnerability_pb'
22
- require 'google/protobuf'
23
24
 
24
25
  Google::Protobuf::DescriptorPool.generated_pool.build do
25
26
  add_file("grafeas/v1/grafeas.proto", :syntax => :proto3) do
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/intoto_provenance.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/protobuf/any_pb'
5
7
  require 'google/protobuf/timestamp_pb'
6
- require 'google/protobuf'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("grafeas/v1/intoto_provenance.proto", :syntax => :proto3) do
@@ -1,9 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/intoto_statement.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'grafeas/v1/intoto_provenance_pb'
5
7
  require 'grafeas/v1/slsa_provenance_pb'
6
- require 'google/protobuf'
8
+ require 'grafeas/v1/slsa_provenance_zero_two_pb'
7
9
 
8
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
11
  add_file("grafeas/v1/intoto_statement.proto", :syntax => :proto3) do
@@ -14,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
14
16
  oneof :predicate do
15
17
  optional :provenance, :message, 4, "grafeas.v1.InTotoProvenance"
16
18
  optional :slsa_provenance, :message, 5, "grafeas.v1.SlsaProvenance"
19
+ optional :slsa_provenance_zero_two, :message, 6, "grafeas.v1.SlsaProvenanceZeroTwo"
17
20
  end
18
21
  end
19
22
  add_message "grafeas.v1.Subject" do
@@ -3,6 +3,9 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/api/field_behavior_pb'
7
+ require 'grafeas/v1/common_pb'
8
+
6
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
10
  add_file("grafeas/v1/package.proto", :syntax => :proto3) do
8
11
  add_message "grafeas.v1.Distribution" do
@@ -21,10 +24,24 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
21
24
  add_message "grafeas.v1.PackageNote" do
22
25
  optional :name, :string, 1
23
26
  repeated :distribution, :message, 10, "grafeas.v1.Distribution"
27
+ optional :package_type, :string, 11
28
+ optional :cpe_uri, :string, 12
29
+ optional :architecture, :enum, 13, "grafeas.v1.Architecture"
30
+ optional :version, :message, 14, "grafeas.v1.Version"
31
+ optional :maintainer, :string, 15
32
+ optional :url, :string, 16
33
+ optional :description, :string, 17
34
+ optional :license, :message, 18, "grafeas.v1.License"
35
+ repeated :digest, :message, 19, "grafeas.v1.Digest"
24
36
  end
25
37
  add_message "grafeas.v1.PackageOccurrence" do
26
38
  optional :name, :string, 1
27
39
  repeated :location, :message, 2, "grafeas.v1.Location"
40
+ optional :package_type, :string, 3
41
+ optional :cpe_uri, :string, 4
42
+ optional :architecture, :enum, 5, "grafeas.v1.Architecture"
43
+ optional :license, :message, 6, "grafeas.v1.License"
44
+ optional :version, :message, 7, "grafeas.v1.Version"
28
45
  end
29
46
  add_message "grafeas.v1.Version" do
30
47
  optional :epoch, :int32, 1
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/provenance.proto
3
3
 
4
- require 'google/protobuf/timestamp_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'google/protobuf/timestamp_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("grafeas/v1/provenance.proto", :syntax => :proto3) do
9
10
  add_message "grafeas.v1.BuildProvenance" do
@@ -0,0 +1,23 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: grafeas/v1/severity.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("grafeas/v1/severity.proto", :syntax => :proto3) do
8
+ add_enum "grafeas.v1.Severity" do
9
+ value :SEVERITY_UNSPECIFIED, 0
10
+ value :MINIMAL, 1
11
+ value :LOW, 2
12
+ value :MEDIUM, 3
13
+ value :HIGH, 4
14
+ value :CRITICAL, 5
15
+ end
16
+ end
17
+ end
18
+
19
+ module Grafeas
20
+ module V1
21
+ Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Severity").enummodule
22
+ end
23
+ end
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/slsa_provenance.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/protobuf/any_pb'
5
7
  require 'google/protobuf/timestamp_pb'
6
- require 'google/protobuf'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("grafeas/v1/slsa_provenance.proto", :syntax => :proto3) do
@@ -0,0 +1,61 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: grafeas/v1/slsa_provenance_zero_two.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/struct_pb'
7
+ require 'google/protobuf/timestamp_pb'
8
+
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("grafeas/v1/slsa_provenance_zero_two.proto", :syntax => :proto3) do
11
+ add_message "grafeas.v1.SlsaProvenanceZeroTwo" do
12
+ optional :builder, :message, 1, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder"
13
+ optional :build_type, :string, 2
14
+ optional :invocation, :message, 3, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation"
15
+ optional :build_config, :message, 4, "google.protobuf.Struct"
16
+ optional :metadata, :message, 5, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata"
17
+ repeated :materials, :message, 6, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial"
18
+ end
19
+ add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder" do
20
+ optional :id, :string, 1
21
+ end
22
+ add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial" do
23
+ optional :uri, :string, 1
24
+ map :digest, :string, :string, 2
25
+ end
26
+ add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation" do
27
+ optional :config_source, :message, 1, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource"
28
+ optional :parameters, :message, 2, "google.protobuf.Struct"
29
+ optional :environment, :message, 3, "google.protobuf.Struct"
30
+ end
31
+ add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource" do
32
+ optional :uri, :string, 1
33
+ map :digest, :string, :string, 2
34
+ optional :entry_point, :string, 3
35
+ end
36
+ add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata" do
37
+ optional :build_invocation_id, :string, 1
38
+ optional :build_started_on, :message, 2, "google.protobuf.Timestamp"
39
+ optional :build_finished_on, :message, 3, "google.protobuf.Timestamp"
40
+ optional :completeness, :message, 4, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness"
41
+ optional :reproducible, :bool, 5
42
+ end
43
+ add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness" do
44
+ optional :parameters, :bool, 1
45
+ optional :environment, :bool, 2
46
+ optional :materials, :bool, 3
47
+ end
48
+ end
49
+ end
50
+
51
+ module Grafeas
52
+ module V1
53
+ SlsaProvenanceZeroTwo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.SlsaProvenanceZeroTwo").msgclass
54
+ SlsaProvenanceZeroTwo::SlsaBuilder = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder").msgclass
55
+ SlsaProvenanceZeroTwo::SlsaMaterial = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial").msgclass
56
+ SlsaProvenanceZeroTwo::SlsaInvocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation").msgclass
57
+ SlsaProvenanceZeroTwo::SlsaConfigSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource").msgclass
58
+ SlsaProvenanceZeroTwo::SlsaMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata").msgclass
59
+ SlsaProvenanceZeroTwo::SlsaCompleteness = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness").msgclass
60
+ end
61
+ end
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/upgrade.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/protobuf/timestamp_pb'
5
7
  require 'grafeas/v1/package_pb'
6
- require 'google/protobuf'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("grafeas/v1/upgrade.proto", :syntax => :proto3) do
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Grafeas
21
21
  module V1
22
- VERSION = "0.3.0"
22
+ VERSION = "0.5.0"
23
23
  end
24
24
  end
@@ -1,12 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/vulnerability.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/protobuf/timestamp_pb'
6
8
  require 'grafeas/v1/common_pb'
7
9
  require 'grafeas/v1/cvss_pb'
8
10
  require 'grafeas/v1/package_pb'
9
- require 'google/protobuf'
11
+ require 'grafeas/v1/severity_pb'
10
12
 
11
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
14
  add_file("grafeas/v1/vulnerability.proto", :syntax => :proto3) do
@@ -48,7 +50,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
48
50
  optional :type, :string, 1
49
51
  optional :severity, :enum, 2, "grafeas.v1.Severity"
50
52
  optional :cvss_score, :float, 3
51
- optional :cvssv3, :message, 10, "grafeas.v1.VulnerabilityOccurrence.CVSSV3"
53
+ optional :cvssv3, :message, 10, "grafeas.v1.CVSS"
52
54
  repeated :package_issue, :message, 4, "grafeas.v1.VulnerabilityOccurrence.PackageIssue"
53
55
  optional :short_description, :string, 5
54
56
  optional :long_description, :string, 6
@@ -56,10 +58,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
56
58
  optional :effective_severity, :enum, 8, "grafeas.v1.Severity"
57
59
  optional :fix_available, :bool, 9
58
60
  end
59
- add_message "grafeas.v1.VulnerabilityOccurrence.CVSSV3" do
60
- optional :base_score, :float, 1
61
- optional :severity, :enum, 2, "grafeas.v1.Severity"
62
- end
63
61
  add_message "grafeas.v1.VulnerabilityOccurrence.PackageIssue" do
64
62
  optional :affected_cpe_uri, :string, 1
65
63
  optional :affected_package, :string, 2
@@ -70,14 +68,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
70
68
  optional :fix_available, :bool, 7
71
69
  optional :package_type, :string, 8
72
70
  optional :effective_severity, :enum, 9, "grafeas.v1.Severity"
73
- end
74
- add_enum "grafeas.v1.Severity" do
75
- value :SEVERITY_UNSPECIFIED, 0
76
- value :MINIMAL, 1
77
- value :LOW, 2
78
- value :MEDIUM, 3
79
- value :HIGH, 4
80
- value :CRITICAL, 5
71
+ repeated :file_location, :message, 10, "grafeas.v1.FileLocation"
81
72
  end
82
73
  end
83
74
  end
@@ -89,8 +80,6 @@ module Grafeas
89
80
  VulnerabilityNote::WindowsDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote.WindowsDetail").msgclass
90
81
  VulnerabilityNote::WindowsDetail::KnowledgeBase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase").msgclass
91
82
  VulnerabilityOccurrence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence").msgclass
92
- VulnerabilityOccurrence::CVSSV3 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence.CVSSV3").msgclass
93
83
  VulnerabilityOccurrence::PackageIssue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence.PackageIssue").msgclass
94
- Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Severity").enummodule
95
84
  end
96
85
  end
data/lib/grafeas/v1.rb CHANGED
@@ -23,6 +23,8 @@ module Grafeas
23
23
  ##
24
24
  # To load this package, including all its services, and instantiate a client:
25
25
  #
26
+ # @example
27
+ #
26
28
  # require "grafeas/v1"
27
29
  # client = ::Grafeas::V1::Grafeas::Client.new
28
30
  #
@@ -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
- # name_descriptor: {
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
- # name_descriptor:
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
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
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
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
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