grafeas-v1 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7298ad05fa42dba9994b498bce80a3939994613c7a827c1f8579d90706a822af
4
- data.tar.gz: 748a285b37351c52e5e241ea50015d9547572c071935c6bf2bbac57dd9866c19
3
+ metadata.gz: 45fc05170db6cbed47e14932cd90ee121b11f4965c32585bd80d7e0aea3e7650
4
+ data.tar.gz: 1128f3362e4ece912f5425526d35bc49f0f4a51453575447f3666349e747a35d
5
5
  SHA512:
6
- metadata.gz: '019f77652b634e657a86f6064923a3d0c5ae6b13a7de33d3dbf310f9bfd5ba328cf896ed6056303ed24fb844701da13aca92baeb6f976530d57c84525a0ba233'
7
- data.tar.gz: dff13064655fc342f13844aeb0ea9bb98489d5026aad0140a3a98e8bb3f1a8504da40d09ff89692b3a1949743764953e18f5ef13f2fa7c5442b4f46cf2098f8d
6
+ metadata.gz: 062a178010e7462cf5a8feab1cf5848c454af11b28ec66eac280e1d26eb4b4e1ced59c9c48106f8e15aa07e523a876f0b1fbdfe0d16238f5b90ff123c9c53454
7
+ data.tar.gz: b6cff61e8c4c3dbf9db8092b2ef5dda1fc40497a83d3cada3bbb11d35e3174520a1cff21b288b3e7b95327e09bbb6c6de87e8a1cf6f8f20ebfb81acf693c8638
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/severity_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
@@ -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,11 +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
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/protobuf/timestamp_pb'
6
8
  require 'google/rpc/status_pb'
7
9
  require 'grafeas/v1/common_pb'
8
- require 'google/protobuf'
9
10
 
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  add_file("grafeas/v1/discovery.proto", :syntax => :proto3) do
@@ -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
@@ -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.4.0"
22
+ VERSION = "0.5.0"
23
23
  end
24
24
  end
@@ -1,13 +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
11
  require 'grafeas/v1/severity_pb'
10
- require 'google/protobuf'
11
12
 
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("grafeas/v1/vulnerability.proto", :syntax => :proto3) do
@@ -67,6 +68,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
67
68
  optional :fix_available, :bool, 7
68
69
  optional :package_type, :string, 8
69
70
  optional :effective_severity, :enum, 9, "grafeas.v1.Severity"
71
+ repeated :file_location, :message, 10, "grafeas.v1.FileLocation"
70
72
  end
71
73
  end
72
74
  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:
@@ -0,0 +1,96 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Protobuf
22
+ # `Struct` represents a structured data value, consisting of fields
23
+ # which map to dynamically typed values. In some languages, `Struct`
24
+ # might be supported by a native representation. For example, in
25
+ # scripting languages like JS a struct is represented as an
26
+ # object. The details of that representation are described together
27
+ # with the proto support for the language.
28
+ #
29
+ # The JSON representation for `Struct` is JSON object.
30
+ # @!attribute [rw] fields
31
+ # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
32
+ # Unordered map of dynamically typed values.
33
+ class Struct
34
+ include ::Google::Protobuf::MessageExts
35
+ extend ::Google::Protobuf::MessageExts::ClassMethods
36
+
37
+ # @!attribute [rw] key
38
+ # @return [::String]
39
+ # @!attribute [rw] value
40
+ # @return [::Google::Protobuf::Value]
41
+ class FieldsEntry
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+ end
46
+
47
+ # `Value` represents a dynamically typed value which can be either
48
+ # null, a number, a string, a boolean, a recursive struct value, or a
49
+ # list of values. A producer of value is expected to set one of these
50
+ # variants. Absence of any variant indicates an error.
51
+ #
52
+ # The JSON representation for `Value` is JSON value.
53
+ # @!attribute [rw] null_value
54
+ # @return [::Google::Protobuf::NullValue]
55
+ # Represents a null value.
56
+ # @!attribute [rw] number_value
57
+ # @return [::Float]
58
+ # Represents a double value.
59
+ # @!attribute [rw] string_value
60
+ # @return [::String]
61
+ # Represents a string value.
62
+ # @!attribute [rw] bool_value
63
+ # @return [::Boolean]
64
+ # Represents a boolean value.
65
+ # @!attribute [rw] struct_value
66
+ # @return [::Google::Protobuf::Struct]
67
+ # Represents a structured value.
68
+ # @!attribute [rw] list_value
69
+ # @return [::Google::Protobuf::ListValue]
70
+ # Represents a repeated `Value`.
71
+ class Value
72
+ include ::Google::Protobuf::MessageExts
73
+ extend ::Google::Protobuf::MessageExts::ClassMethods
74
+ end
75
+
76
+ # `ListValue` is a wrapper around a repeated field of values.
77
+ #
78
+ # The JSON representation for `ListValue` is JSON array.
79
+ # @!attribute [rw] values
80
+ # @return [::Array<::Google::Protobuf::Value>]
81
+ # Repeated field of dynamically typed values.
82
+ class ListValue
83
+ include ::Google::Protobuf::MessageExts
84
+ extend ::Google::Protobuf::MessageExts::ClassMethods
85
+ end
86
+
87
+ # `NullValue` is a singleton enumeration to represent the null value for the
88
+ # `Value` type union.
89
+ #
90
+ # The JSON representation for `NullValue` is JSON `null`.
91
+ module NullValue
92
+ # Null value.
93
+ NULL_VALUE = 0
94
+ end
95
+ end
96
+ end
@@ -108,6 +108,44 @@ module Grafeas
108
108
  extend ::Google::Protobuf::MessageExts::ClassMethods
109
109
  end
110
110
 
111
+ # Indicates the location at which a package was found.
112
+ # @!attribute [rw] file_path
113
+ # @return [::String]
114
+ # For jars that are contained inside .war files, this filepath
115
+ # can indicate the path to war file combined with the path to jar file.
116
+ class FileLocation
117
+ include ::Google::Protobuf::MessageExts
118
+ extend ::Google::Protobuf::MessageExts::ClassMethods
119
+ end
120
+
121
+ # License information.
122
+ # @!attribute [rw] expression
123
+ # @return [::String]
124
+ # Often a single license can be used to represent the licensing terms.
125
+ # Sometimes it is necessary to include a choice of one or more licenses
126
+ # or some combination of license identifiers.
127
+ # Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT",
128
+ # "GPL-2.0-or-later WITH Bison-exception-2.2".
129
+ # @!attribute [rw] comments
130
+ # @return [::String]
131
+ # Comments
132
+ class License
133
+ include ::Google::Protobuf::MessageExts
134
+ extend ::Google::Protobuf::MessageExts::ClassMethods
135
+ end
136
+
137
+ # Digest information.
138
+ # @!attribute [rw] algo
139
+ # @return [::String]
140
+ # `SHA1`, `SHA512` etc.
141
+ # @!attribute [rw] digest_bytes
142
+ # @return [::String]
143
+ # Value of the digest.
144
+ class Digest
145
+ include ::Google::Protobuf::MessageExts
146
+ extend ::Google::Protobuf::MessageExts::ClassMethods
147
+ end
148
+
111
149
  # Kind represents the kinds of notes supported.
112
150
  module NoteKind
113
151
  # Default value. This value is unused.
@@ -60,6 +60,10 @@ module Grafeas
60
60
  # @return [::String]
61
61
  # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is
62
62
  # applicable to.
63
+ # @!attribute [rw] benchmark_document
64
+ # @return [::String]
65
+ # The name of the document that defines this benchmark, e.g. "CIS
66
+ # Container-Optimized OS".
63
67
  # @!attribute [rw] version
64
68
  # @return [::String]
65
69
  # The version of the benchmark. This is set to the version of the OS-specific
@@ -110,10 +110,8 @@ module Grafeas
110
110
 
111
111
  # Common Vulnerability Scoring System.
112
112
  # For details, see https://www.first.org/cvss/specification-document
113
- # This is a message we will try to use for storing multiple versions of
114
- # CVSS. The intention is that as new versions of CVSS scores get added, we
115
- # will be able to modify this message rather than adding new protos for each
116
- # new version of the score.
113
+ # This is a message we will try to use for storing various versions of CVSS
114
+ # rather than making a separate proto for storing a specific version.
117
115
  # @!attribute [rw] base_score
118
116
  # @return [::Float]
119
117
  # The base score is a function of the base metric scores.
@@ -35,6 +35,8 @@ module Grafeas
35
35
  # @return [::Grafeas::V1::InTotoProvenance]
36
36
  # @!attribute [rw] slsa_provenance
37
37
  # @return [::Grafeas::V1::SlsaProvenance]
38
+ # @!attribute [rw] slsa_provenance_zero_two
39
+ # @return [::Grafeas::V1::SlsaProvenanceZeroTwo]
38
40
  class InTotoStatement
39
41
  include ::Google::Protobuf::MessageExts
40
42
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -23,7 +23,7 @@ module Grafeas
23
23
  # E.g., Debian's jessie-backports dpkg mirror.
24
24
  # @!attribute [rw] cpe_uri
25
25
  # @return [::String]
26
- # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
26
+ # The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
27
27
  # denoting the package manager version distributing a package.
28
28
  # @!attribute [rw] architecture
29
29
  # @return [::Grafeas::V1::Architecture]
@@ -50,10 +50,11 @@ module Grafeas
50
50
  # filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
51
51
  # @!attribute [rw] cpe_uri
52
52
  # @return [::String]
53
- # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
54
- # denoting the package manager version distributing a package.
53
+ # Deprecated.
54
+ # The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
55
55
  # @!attribute [rw] version
56
56
  # @return [::Grafeas::V1::Version]
57
+ # Deprecated.
57
58
  # The version installed at this location.
58
59
  # @!attribute [rw] path
59
60
  # @return [::String]
@@ -63,28 +64,78 @@ module Grafeas
63
64
  extend ::Google::Protobuf::MessageExts::ClassMethods
64
65
  end
65
66
 
66
- # This represents a particular package that is distributed over various
67
- # channels. E.g., glibc (aka libc6) is distributed by many, at various
68
- # versions.
67
+ # PackageNote represents a particular package version.
69
68
  # @!attribute [rw] name
70
69
  # @return [::String]
71
- # Required. Immutable. The name of the package.
70
+ # The name of the package.
72
71
  # @!attribute [rw] distribution
73
72
  # @return [::Array<::Grafeas::V1::Distribution>]
73
+ # Deprecated.
74
74
  # The various channels by which a package is distributed.
75
+ # @!attribute [rw] package_type
76
+ # @return [::String]
77
+ # The type of package; whether native or non native (e.g., ruby gems,
78
+ # node.js packages, etc.).
79
+ # @!attribute [rw] cpe_uri
80
+ # @return [::String]
81
+ # The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
82
+ # denoting the package manager version distributing a package.
83
+ # The cpe_uri will be blank for language packages.
84
+ # @!attribute [rw] architecture
85
+ # @return [::Grafeas::V1::Architecture]
86
+ # The CPU architecture for which packages in this distribution channel were
87
+ # built. Architecture will be blank for language packages.
88
+ # @!attribute [rw] version
89
+ # @return [::Grafeas::V1::Version]
90
+ # The version of the package.
91
+ # @!attribute [rw] maintainer
92
+ # @return [::String]
93
+ # A freeform text denoting the maintainer of this package.
94
+ # @!attribute [rw] url
95
+ # @return [::String]
96
+ # The homepage for this package.
97
+ # @!attribute [rw] description
98
+ # @return [::String]
99
+ # The description of this package.
100
+ # @!attribute [rw] license
101
+ # @return [::Grafeas::V1::License]
102
+ # Licenses that have been declared by the authors of the package.
103
+ # @!attribute [rw] digest
104
+ # @return [::Array<::Grafeas::V1::Digest>]
105
+ # Hash value, typically a file digest, that allows unique
106
+ # identification a specific package.
75
107
  class PackageNote
76
108
  include ::Google::Protobuf::MessageExts
77
109
  extend ::Google::Protobuf::MessageExts::ClassMethods
78
110
  end
79
111
 
80
112
  # Details on how a particular software package was installed on a system.
81
- # @!attribute [rw] name
113
+ # @!attribute [r] name
82
114
  # @return [::String]
83
- # Output only. The name of the installed package.
115
+ # The name of the installed package.
84
116
  # @!attribute [rw] location
85
117
  # @return [::Array<::Grafeas::V1::Location>]
86
- # Required. All of the places within the filesystem versions of this package
118
+ # All of the places within the filesystem versions of this package
87
119
  # have been found.
120
+ # @!attribute [r] package_type
121
+ # @return [::String]
122
+ # The type of package; whether native or non native (e.g., ruby gems,
123
+ # node.js packages, etc.).
124
+ # @!attribute [r] cpe_uri
125
+ # @return [::String]
126
+ # The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
127
+ # denoting the package manager version distributing a package.
128
+ # The cpe_uri will be blank for language packages.
129
+ # @!attribute [r] architecture
130
+ # @return [::Grafeas::V1::Architecture]
131
+ # The CPU architecture for which packages in this distribution channel were
132
+ # built. Architecture will be blank for language packages.
133
+ # @!attribute [rw] license
134
+ # @return [::Grafeas::V1::License]
135
+ # Licenses that have been declared by the authors of the package.
136
+ # @!attribute [r] version
137
+ # @return [::Grafeas::V1::Version]
138
+ # The version of the package.
88
139
  class PackageOccurrence
89
140
  include ::Google::Protobuf::MessageExts
90
141
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,131 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Grafeas
21
+ module V1
22
+ # @!attribute [rw] builder
23
+ # @return [::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaBuilder]
24
+ # @!attribute [rw] build_type
25
+ # @return [::String]
26
+ # @!attribute [rw] invocation
27
+ # @return [::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaInvocation]
28
+ # @!attribute [rw] build_config
29
+ # @return [::Google::Protobuf::Struct]
30
+ # @!attribute [rw] metadata
31
+ # @return [::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaMetadata]
32
+ # @!attribute [rw] materials
33
+ # @return [::Array<::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaMaterial>]
34
+ class SlsaProvenanceZeroTwo
35
+ include ::Google::Protobuf::MessageExts
36
+ extend ::Google::Protobuf::MessageExts::ClassMethods
37
+
38
+ # Identifies the entity that executed the recipe, which is trusted to have
39
+ # correctly performed the operation and populated this provenance.
40
+ # @!attribute [rw] id
41
+ # @return [::String]
42
+ class SlsaBuilder
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+ end
46
+
47
+ # The collection of artifacts that influenced the build including sources,
48
+ # dependencies, build tools, base images, and so on.
49
+ # @!attribute [rw] uri
50
+ # @return [::String]
51
+ # @!attribute [rw] digest
52
+ # @return [::Google::Protobuf::Map{::String => ::String}]
53
+ class SlsaMaterial
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
+
57
+ # @!attribute [rw] key
58
+ # @return [::String]
59
+ # @!attribute [rw] value
60
+ # @return [::String]
61
+ class DigestEntry
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
+ end
65
+ end
66
+
67
+ # Identifies the event that kicked off the build.
68
+ # @!attribute [rw] config_source
69
+ # @return [::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaConfigSource]
70
+ # @!attribute [rw] parameters
71
+ # @return [::Google::Protobuf::Struct]
72
+ # @!attribute [rw] environment
73
+ # @return [::Google::Protobuf::Struct]
74
+ class SlsaInvocation
75
+ include ::Google::Protobuf::MessageExts
76
+ extend ::Google::Protobuf::MessageExts::ClassMethods
77
+ end
78
+
79
+ # Describes where the config file that kicked off the build came from.
80
+ # This is effectively a pointer to the source where buildConfig came from.
81
+ # @!attribute [rw] uri
82
+ # @return [::String]
83
+ # @!attribute [rw] digest
84
+ # @return [::Google::Protobuf::Map{::String => ::String}]
85
+ # @!attribute [rw] entry_point
86
+ # @return [::String]
87
+ class SlsaConfigSource
88
+ include ::Google::Protobuf::MessageExts
89
+ extend ::Google::Protobuf::MessageExts::ClassMethods
90
+
91
+ # @!attribute [rw] key
92
+ # @return [::String]
93
+ # @!attribute [rw] value
94
+ # @return [::String]
95
+ class DigestEntry
96
+ include ::Google::Protobuf::MessageExts
97
+ extend ::Google::Protobuf::MessageExts::ClassMethods
98
+ end
99
+ end
100
+
101
+ # Other properties of the build.
102
+ # @!attribute [rw] build_invocation_id
103
+ # @return [::String]
104
+ # @!attribute [rw] build_started_on
105
+ # @return [::Google::Protobuf::Timestamp]
106
+ # @!attribute [rw] build_finished_on
107
+ # @return [::Google::Protobuf::Timestamp]
108
+ # @!attribute [rw] completeness
109
+ # @return [::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaCompleteness]
110
+ # @!attribute [rw] reproducible
111
+ # @return [::Boolean]
112
+ class SlsaMetadata
113
+ include ::Google::Protobuf::MessageExts
114
+ extend ::Google::Protobuf::MessageExts::ClassMethods
115
+ end
116
+
117
+ # Indicates that the builder claims certain fields in this message to be
118
+ # complete.
119
+ # @!attribute [rw] parameters
120
+ # @return [::Boolean]
121
+ # @!attribute [rw] environment
122
+ # @return [::Boolean]
123
+ # @!attribute [rw] materials
124
+ # @return [::Boolean]
125
+ class SlsaCompleteness
126
+ include ::Google::Protobuf::MessageExts
127
+ extend ::Google::Protobuf::MessageExts::ClassMethods
128
+ end
129
+ end
130
+ end
131
+ end
@@ -240,6 +240,9 @@ module Grafeas
240
240
  # The distro or language system assigned severity for this vulnerability
241
241
  # when that is available and note provider assigned severity when it is not
242
242
  # available.
243
+ # @!attribute [rw] file_location
244
+ # @return [::Array<::Grafeas::V1::FileLocation>]
245
+ # The location at which this package was found.
243
246
  class PackageIssue
244
247
  include ::Google::Protobuf::MessageExts
245
248
  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.0
4
+ version: 0.5.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-01-13 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -190,6 +190,7 @@ files:
190
190
  - lib/grafeas/v1/provenance_pb.rb
191
191
  - lib/grafeas/v1/severity_pb.rb
192
192
  - lib/grafeas/v1/slsa_provenance_pb.rb
193
+ - lib/grafeas/v1/slsa_provenance_zero_two_pb.rb
193
194
  - lib/grafeas/v1/upgrade_pb.rb
194
195
  - lib/grafeas/v1/version.rb
195
196
  - lib/grafeas/v1/vulnerability_pb.rb
@@ -199,6 +200,7 @@ files:
199
200
  - proto_docs/google/protobuf/any.rb
200
201
  - proto_docs/google/protobuf/empty.rb
201
202
  - proto_docs/google/protobuf/field_mask.rb
203
+ - proto_docs/google/protobuf/struct.rb
202
204
  - proto_docs/google/protobuf/timestamp.rb
203
205
  - proto_docs/google/rpc/status.rb
204
206
  - proto_docs/grafeas/v1/attestation.rb
@@ -217,6 +219,7 @@ files:
217
219
  - proto_docs/grafeas/v1/provenance.rb
218
220
  - proto_docs/grafeas/v1/severity.rb
219
221
  - proto_docs/grafeas/v1/slsa_provenance.rb
222
+ - proto_docs/grafeas/v1/slsa_provenance_zero_two.rb
220
223
  - proto_docs/grafeas/v1/upgrade.rb
221
224
  - proto_docs/grafeas/v1/vulnerability.rb
222
225
  homepage: https://github.com/googleapis/google-cloud-ruby
@@ -238,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
241
  - !ruby/object:Gem::Version
239
242
  version: '0'
240
243
  requirements: []
241
- rubygems_version: 3.3.5
244
+ rubygems_version: 3.3.14
242
245
  signing_key:
243
246
  specification_version: 4
244
247
  summary: API Client library for the Grafeas V1 API