grafeas-v1 0.2.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/README.md +1 -1
  4. data/lib/grafeas/v1/attestation_pb.rb +6 -1
  5. data/lib/grafeas/v1/build_pb.rb +5 -1
  6. data/lib/grafeas/v1/common_pb.rb +13 -0
  7. data/lib/grafeas/v1/compliance_pb.rb +48 -0
  8. data/lib/grafeas/v1/deployment_pb.rb +1 -1
  9. data/lib/grafeas/v1/discovery_pb.rb +2 -2
  10. data/lib/grafeas/v1/dsse_attestation_pb.rb +31 -0
  11. data/lib/grafeas/v1/grafeas/client.rb +375 -121
  12. data/lib/grafeas/v1/grafeas_pb.rb +9 -2
  13. data/lib/grafeas/v1/grafeas_services_pb.rb +1 -1
  14. data/lib/grafeas/v1/intoto_provenance_pb.rb +49 -0
  15. data/lib/grafeas/v1/intoto_statement_pb.rb +31 -0
  16. data/lib/grafeas/v1/package_pb.rb +1 -0
  17. data/lib/grafeas/v1/provenance_pb.rb +1 -1
  18. data/lib/grafeas/v1/slsa_provenance_pb.rb +54 -0
  19. data/lib/grafeas/v1/upgrade_pb.rb +2 -2
  20. data/lib/grafeas/v1/version.rb +1 -1
  21. data/lib/grafeas/v1/vulnerability_pb.rb +13 -2
  22. data/proto_docs/google/api/field_behavior.rb +7 -1
  23. data/proto_docs/google/api/resource.rb +10 -71
  24. data/proto_docs/grafeas/v1/attestation.rb +21 -0
  25. data/proto_docs/grafeas/v1/build.rb +11 -1
  26. data/proto_docs/grafeas/v1/common.rb +31 -2
  27. data/proto_docs/grafeas/v1/compliance.rb +98 -0
  28. data/proto_docs/grafeas/v1/dsse_attestation.rb +59 -0
  29. data/proto_docs/grafeas/v1/grafeas.rb +15 -0
  30. data/proto_docs/grafeas/v1/intoto_provenance.rb +134 -0
  31. data/proto_docs/grafeas/v1/intoto_statement.rb +65 -0
  32. data/proto_docs/grafeas/v1/package.rb +8 -0
  33. data/proto_docs/grafeas/v1/slsa_provenance.rb +152 -0
  34. data/proto_docs/grafeas/v1/vulnerability.rb +38 -0
  35. metadata +23 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d53a2386861de04705e414f30a498cdc1185eb6edde22070001f065117dfd0bf
4
- data.tar.gz: 92d72b540b54c9ba9deb32310659b144d0d01559c68d341c2c8961ebe3093d7f
3
+ metadata.gz: a1daaaa44e5b9e83a19f1f45058ab6d2e672add60b9d27e7527e0f107b7394a1
4
+ data.tar.gz: eb72b3a41d3b10d83144f76204fec229e76f44f0c8e9755032c3bbd8a4e1f20d
5
5
  SHA512:
6
- metadata.gz: 639cff4d3bd528a29e1ab890e0286be67e761e6fb6dd26b02b60a6b0b7ef0e94d9f51128ec556f20c2e45251acdb6e6029d8a8b0713534135da86e6cabbf2a32
7
- data.tar.gz: bb2e20efecba777578b83132a327f0f0d5b01aab2cb34ce658824a49269e5326f95a21742b7175c0813fca652c920a6ece3a332e57e83127611f1bc8e5498ab0
6
+ metadata.gz: 801f61920ee568a3f11ccbd7d6a1b74aa50fe40b4b1d08daf2ff42b91b1044646b269ae4809c34642886a2fb3c61f7d07bfe9572bfa299ca5d7eab734361de89
7
+ data.tar.gz: f42da8bad4cbda5d8872400a7012811ed39dfd3e24c44333fb016218e33b06e22805ea6bf4ac3ba368df66309251d4e07eb30cb500f7b2380b9895097be0e63d
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
@@ -24,7 +24,7 @@ $ gem install grafeas-v1
24
24
  require "grafeas/v1"
25
25
 
26
26
  client = ::Grafeas::V1::Grafeas::Client.new
27
- request = my_create_request
27
+ request = ::Grafeas::V1::GetOccurrenceRequest.new # (request fields as keyword arguments...)
28
28
  response = client.get_occurrence request
29
29
  ```
30
30
 
@@ -1,9 +1,9 @@
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'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'grafeas/v1/common_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("grafeas/v1/attestation.proto", :syntax => :proto3) do
9
9
  add_message "grafeas.v1.AttestationNote" do
@@ -12,9 +12,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_message "grafeas.v1.AttestationNote.Hint" do
13
13
  optional :human_readable_name, :string, 1
14
14
  end
15
+ add_message "grafeas.v1.Jwt" do
16
+ optional :compact_jwt, :string, 1
17
+ end
15
18
  add_message "grafeas.v1.AttestationOccurrence" do
16
19
  optional :serialized_payload, :bytes, 1
17
20
  repeated :signatures, :message, 2, "grafeas.v1.Signature"
21
+ repeated :jwts, :message, 3, "grafeas.v1.Jwt"
18
22
  end
19
23
  end
20
24
  end
@@ -23,6 +27,7 @@ module Grafeas
23
27
  module V1
24
28
  AttestationNote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.AttestationNote").msgclass
25
29
  AttestationNote::Hint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.AttestationNote.Hint").msgclass
30
+ Jwt = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Jwt").msgclass
26
31
  AttestationOccurrence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.AttestationOccurrence").msgclass
27
32
  end
28
33
  end
@@ -1,9 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: grafeas/v1/build.proto
3
3
 
4
+ require 'grafeas/v1/intoto_provenance_pb'
5
+ require 'grafeas/v1/intoto_statement_pb'
6
+ require 'grafeas/v1/provenance_pb'
4
7
  require 'google/protobuf'
5
8
 
6
- require 'grafeas/v1/provenance_pb'
7
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
10
  add_file("grafeas/v1/build.proto", :syntax => :proto3) do
9
11
  add_message "grafeas.v1.BuildNote" do
@@ -12,6 +14,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
14
  add_message "grafeas.v1.BuildOccurrence" do
13
15
  optional :provenance, :message, 1, "grafeas.v1.BuildProvenance"
14
16
  optional :provenance_bytes, :string, 2
17
+ optional :intoto_provenance, :message, 3, "grafeas.v1.InTotoProvenance"
18
+ optional :intoto_statement, :message, 4, "grafeas.v1.InTotoStatement"
15
19
  end
16
20
  end
17
21
  end
@@ -13,6 +13,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  optional :signature, :bytes, 1
14
14
  optional :public_key_id, :string, 2
15
15
  end
16
+ add_message "grafeas.v1.Envelope" do
17
+ optional :payload, :bytes, 1
18
+ optional :payload_type, :string, 2
19
+ repeated :signatures, :message, 3, "grafeas.v1.EnvelopeSignature"
20
+ end
21
+ add_message "grafeas.v1.EnvelopeSignature" do
22
+ optional :sig, :bytes, 1
23
+ optional :keyid, :string, 2
24
+ end
16
25
  add_enum "grafeas.v1.NoteKind" do
17
26
  value :NOTE_KIND_UNSPECIFIED, 0
18
27
  value :VULNERABILITY, 1
@@ -23,6 +32,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
32
  value :DISCOVERY, 6
24
33
  value :ATTESTATION, 7
25
34
  value :UPGRADE, 8
35
+ value :COMPLIANCE, 9
36
+ value :DSSE_ATTESTATION, 10
26
37
  end
27
38
  end
28
39
  end
@@ -31,6 +42,8 @@ module Grafeas
31
42
  module V1
32
43
  RelatedUrl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.RelatedUrl").msgclass
33
44
  Signature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Signature").msgclass
45
+ Envelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Envelope").msgclass
46
+ EnvelopeSignature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.EnvelopeSignature").msgclass
34
47
  NoteKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.NoteKind").enummodule
35
48
  end
36
49
  end
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: grafeas/v1/compliance.proto
3
+
4
+ require 'grafeas/v1/vulnerability_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("grafeas/v1/compliance.proto", :syntax => :proto3) do
9
+ add_message "grafeas.v1.ComplianceNote" do
10
+ optional :title, :string, 1
11
+ optional :description, :string, 2
12
+ repeated :version, :message, 3, "grafeas.v1.ComplianceVersion"
13
+ optional :rationale, :string, 4
14
+ optional :remediation, :string, 5
15
+ optional :scan_instructions, :bytes, 7
16
+ oneof :compliance_type do
17
+ optional :cis_benchmark, :message, 6, "grafeas.v1.ComplianceNote.CisBenchmark"
18
+ end
19
+ end
20
+ add_message "grafeas.v1.ComplianceNote.CisBenchmark" do
21
+ optional :profile_level, :int32, 1
22
+ optional :severity, :enum, 2, "grafeas.v1.Severity"
23
+ end
24
+ add_message "grafeas.v1.ComplianceVersion" do
25
+ optional :cpe_uri, :string, 1
26
+ optional :version, :string, 2
27
+ end
28
+ add_message "grafeas.v1.ComplianceOccurrence" do
29
+ repeated :non_compliant_files, :message, 2, "grafeas.v1.NonCompliantFile"
30
+ optional :non_compliance_reason, :string, 3
31
+ end
32
+ add_message "grafeas.v1.NonCompliantFile" do
33
+ optional :path, :string, 1
34
+ optional :display_command, :string, 2
35
+ optional :reason, :string, 3
36
+ end
37
+ end
38
+ end
39
+
40
+ module Grafeas
41
+ module V1
42
+ ComplianceNote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ComplianceNote").msgclass
43
+ ComplianceNote::CisBenchmark = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ComplianceNote.CisBenchmark").msgclass
44
+ ComplianceVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ComplianceVersion").msgclass
45
+ ComplianceOccurrence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ComplianceOccurrence").msgclass
46
+ NonCompliantFile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.NonCompliantFile").msgclass
47
+ end
48
+ end
@@ -1,9 +1,9 @@
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'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/protobuf/timestamp_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("grafeas/v1/deployment.proto", :syntax => :proto3) do
9
9
  add_message "grafeas.v1.DeploymentNote" do
@@ -1,11 +1,11 @@
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
4
  require 'google/protobuf/timestamp_pb'
7
5
  require 'google/rpc/status_pb'
8
6
  require 'grafeas/v1/common_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("grafeas/v1/discovery.proto", :syntax => :proto3) do
11
11
  add_message "grafeas.v1.DiscoveryNote" do
@@ -0,0 +1,31 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: grafeas/v1/dsse_attestation.proto
3
+
4
+ require 'grafeas/v1/common_pb'
5
+ require 'grafeas/v1/intoto_statement_pb'
6
+ require 'google/protobuf'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("grafeas/v1/dsse_attestation.proto", :syntax => :proto3) do
10
+ add_message "grafeas.v1.DSSEAttestationNote" do
11
+ optional :hint, :message, 1, "grafeas.v1.DSSEAttestationNote.DSSEHint"
12
+ end
13
+ add_message "grafeas.v1.DSSEAttestationNote.DSSEHint" do
14
+ optional :human_readable_name, :string, 1
15
+ end
16
+ add_message "grafeas.v1.DSSEAttestationOccurrence" do
17
+ optional :envelope, :message, 1, "grafeas.v1.Envelope"
18
+ oneof :decoded_payload do
19
+ optional :statement, :message, 2, "grafeas.v1.InTotoStatement"
20
+ end
21
+ end
22
+ end
23
+ end
24
+
25
+ module Grafeas
26
+ module V1
27
+ DSSEAttestationNote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DSSEAttestationNote").msgclass
28
+ DSSEAttestationNote::DSSEHint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DSSEAttestationNote.DSSEHint").msgclass
29
+ DSSEAttestationOccurrence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DSSEAttestationOccurrence").msgclass
30
+ end
31
+ end