grafeas-v1 0.3.1 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1daaaa44e5b9e83a19f1f45058ab6d2e672add60b9d27e7527e0f107b7394a1
4
- data.tar.gz: eb72b3a41d3b10d83144f76204fec229e76f44f0c8e9755032c3bbd8a4e1f20d
3
+ metadata.gz: c8cdac9b37feda0a568ec3ed68c89d6ac83c788459ce5bd937f0c3daaf892104
4
+ data.tar.gz: 886044076a982e174be477dee1eec1fa08ab7d5d521c049bdd3103a64f306a1d
5
5
  SHA512:
6
- metadata.gz: 801f61920ee568a3f11ccbd7d6a1b74aa50fe40b4b1d08daf2ff42b91b1044646b269ae4809c34642886a2fb3c61f7d07bfe9572bfa299ca5d7eab734361de89
7
- data.tar.gz: f42da8bad4cbda5d8872400a7012811ed39dfd3e24c44333fb016218e33b06e22805ea6bf4ac3ba368df66309251d4e07eb30cb500f7b2380b9895097be0e63d
6
+ metadata.gz: 5a6c93545959e0c869b3f052003210123e623904efec36b60cf5240c0d290c829ef748fdfc766bb100ef591c844cee5f459f64296d135ac35440e64865648ca3
7
+ data.tar.gz: d41523a87a99748f4837abce9cff8bcd717c0bf39552483fd3d184ffa9780ee5053380862d7cfe2deff5e3cbb3faf8802dc7ad717d48a2dbbd41d190414fd8a2
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,16 +57,21 @@ 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
- This library is supported on Ruby 2.5+.
67
+ This library is supported on Ruby 2.6+.
63
68
 
64
69
  Google provides official support for Ruby versions that are actively supported
65
70
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
66
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
67
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
68
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
69
- about the Ruby support schedule.
71
+ in security maintenance, and not end of life. Older versions of Ruby _may_
72
+ still work, but are unsupported and not recommended. See
73
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
74
+ support schedule.
70
75
 
71
76
  ## Which client should I use?
72
77
 
@@ -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.1"
22
+ VERSION = "0.6.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
  #
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example: