grafeas-client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +11 -0
  3. data/AUTHENTICATION.md +199 -0
  4. data/LICENSE +201 -0
  5. data/README.md +69 -0
  6. data/lib/grafeas-client.rb +16 -0
  7. data/lib/grafeas.rb +150 -0
  8. data/lib/grafeas/v1.rb +147 -0
  9. data/lib/grafeas/v1/attestation_pb.rb +27 -0
  10. data/lib/grafeas/v1/build_pb.rb +23 -0
  11. data/lib/grafeas/v1/common_pb.rb +34 -0
  12. data/lib/grafeas/v1/credentials.rb +37 -0
  13. data/lib/grafeas/v1/cvss_pb.rb +67 -0
  14. data/lib/grafeas/v1/deployment_pb.rb +35 -0
  15. data/lib/grafeas/v1/discovery_pb.rb +40 -0
  16. data/lib/grafeas/v1/doc/google/protobuf/any.rb +131 -0
  17. data/lib/grafeas/v1/doc/google/protobuf/empty.rb +29 -0
  18. data/lib/grafeas/v1/doc/google/protobuf/field_mask.rb +222 -0
  19. data/lib/grafeas/v1/doc/google/protobuf/timestamp.rb +111 -0
  20. data/lib/grafeas/v1/doc/google/rpc/status.rb +87 -0
  21. data/lib/grafeas/v1/doc/grafeas/v1/attestation.rb +64 -0
  22. data/lib/grafeas/v1/doc/grafeas/v1/build.rb +44 -0
  23. data/lib/grafeas/v1/doc/grafeas/v1/common.rb +105 -0
  24. data/lib/grafeas/v1/doc/grafeas/v1/cvss.rb +104 -0
  25. data/lib/grafeas/v1/doc/grafeas/v1/deployment.rb +64 -0
  26. data/lib/grafeas/v1/doc/grafeas/v1/discovery.rb +76 -0
  27. data/lib/grafeas/v1/doc/grafeas/v1/grafeas.rb +322 -0
  28. data/lib/grafeas/v1/doc/grafeas/v1/image.rb +79 -0
  29. data/lib/grafeas/v1/doc/grafeas/v1/package.rb +125 -0
  30. data/lib/grafeas/v1/doc/grafeas/v1/provenance.rb +248 -0
  31. data/lib/grafeas/v1/doc/grafeas/v1/vulnerability.rb +197 -0
  32. data/lib/grafeas/v1/grafeas_client.rb +955 -0
  33. data/lib/grafeas/v1/grafeas_client_config.json +96 -0
  34. data/lib/grafeas/v1/grafeas_pb.rb +163 -0
  35. data/lib/grafeas/v1/grafeas_services_pb.rb +86 -0
  36. data/lib/grafeas/v1/image_pb.rb +36 -0
  37. data/lib/grafeas/v1/package_pb.rb +59 -0
  38. data/lib/grafeas/v1/provenance_pb.rb +116 -0
  39. data/lib/grafeas/v1/vulnerability_pb.rb +80 -0
  40. data/lib/grafeas/version.rb +18 -0
  41. metadata +179 -0
@@ -0,0 +1,96 @@
1
+ {
2
+ "interfaces": {
3
+ "grafeas.v1.Grafeas": {
4
+ "retry_codes": {
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": []
10
+ },
11
+ "retry_params": {
12
+ "default": {
13
+ "initial_retry_delay_millis": 100,
14
+ "retry_delay_multiplier": 1.3,
15
+ "max_retry_delay_millis": 60000,
16
+ "initial_rpc_timeout_millis": 20000,
17
+ "rpc_timeout_multiplier": 1.0,
18
+ "max_rpc_timeout_millis": 20000,
19
+ "total_timeout_millis": 600000
20
+ }
21
+ },
22
+ "methods": {
23
+ "GetOccurrence": {
24
+ "timeout_millis": 30000,
25
+ "retry_codes_name": "idempotent",
26
+ "retry_params_name": "default"
27
+ },
28
+ "ListOccurrences": {
29
+ "timeout_millis": 30000,
30
+ "retry_codes_name": "idempotent",
31
+ "retry_params_name": "default"
32
+ },
33
+ "DeleteOccurrence": {
34
+ "timeout_millis": 30000,
35
+ "retry_codes_name": "idempotent",
36
+ "retry_params_name": "default"
37
+ },
38
+ "CreateOccurrence": {
39
+ "timeout_millis": 30000,
40
+ "retry_codes_name": "non_idempotent",
41
+ "retry_params_name": "default"
42
+ },
43
+ "BatchCreateOccurrences": {
44
+ "timeout_millis": 30000,
45
+ "retry_codes_name": "non_idempotent",
46
+ "retry_params_name": "default"
47
+ },
48
+ "UpdateOccurrence": {
49
+ "timeout_millis": 30000,
50
+ "retry_codes_name": "non_idempotent",
51
+ "retry_params_name": "default"
52
+ },
53
+ "GetOccurrenceNote": {
54
+ "timeout_millis": 30000,
55
+ "retry_codes_name": "idempotent",
56
+ "retry_params_name": "default"
57
+ },
58
+ "GetNote": {
59
+ "timeout_millis": 30000,
60
+ "retry_codes_name": "idempotent",
61
+ "retry_params_name": "default"
62
+ },
63
+ "ListNotes": {
64
+ "timeout_millis": 30000,
65
+ "retry_codes_name": "idempotent",
66
+ "retry_params_name": "default"
67
+ },
68
+ "DeleteNote": {
69
+ "timeout_millis": 30000,
70
+ "retry_codes_name": "idempotent",
71
+ "retry_params_name": "default"
72
+ },
73
+ "CreateNote": {
74
+ "timeout_millis": 30000,
75
+ "retry_codes_name": "non_idempotent",
76
+ "retry_params_name": "default"
77
+ },
78
+ "BatchCreateNotes": {
79
+ "timeout_millis": 30000,
80
+ "retry_codes_name": "non_idempotent",
81
+ "retry_params_name": "default"
82
+ },
83
+ "UpdateNote": {
84
+ "timeout_millis": 30000,
85
+ "retry_codes_name": "non_idempotent",
86
+ "retry_params_name": "default"
87
+ },
88
+ "ListNoteOccurrences": {
89
+ "timeout_millis": 30000,
90
+ "retry_codes_name": "idempotent",
91
+ "retry_params_name": "default"
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
@@ -0,0 +1,163 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: grafeas/v1/grafeas.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/protobuf/empty_pb'
9
+ require 'google/protobuf/field_mask_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ require 'grafeas/v1/attestation_pb'
12
+ require 'grafeas/v1/build_pb'
13
+ require 'grafeas/v1/common_pb'
14
+ require 'grafeas/v1/deployment_pb'
15
+ require 'grafeas/v1/discovery_pb'
16
+ require 'grafeas/v1/image_pb'
17
+ require 'grafeas/v1/package_pb'
18
+ require 'grafeas/v1/provenance_pb'
19
+ require 'grafeas/v1/vulnerability_pb'
20
+ Google::Protobuf::DescriptorPool.generated_pool.build do
21
+ add_message "grafeas.v1.Occurrence" do
22
+ optional :name, :string, 1
23
+ optional :resource_uri, :string, 2
24
+ optional :note_name, :string, 3
25
+ optional :kind, :enum, 4, "grafeas.v1.NoteKind"
26
+ optional :remediation, :string, 5
27
+ optional :create_time, :message, 6, "google.protobuf.Timestamp"
28
+ optional :update_time, :message, 7, "google.protobuf.Timestamp"
29
+ oneof :details do
30
+ optional :vulnerability, :message, 8, "grafeas.v1.VulnerabilityOccurrence"
31
+ optional :build, :message, 9, "grafeas.v1.BuildOccurrence"
32
+ optional :image, :message, 10, "grafeas.v1.ImageOccurrence"
33
+ optional :package, :message, 11, "grafeas.v1.PackageOccurrence"
34
+ optional :deployment, :message, 12, "grafeas.v1.DeploymentOccurrence"
35
+ optional :discovery, :message, 13, "grafeas.v1.DiscoveryOccurrence"
36
+ optional :attestation, :message, 14, "grafeas.v1.AttestationOccurrence"
37
+ end
38
+ end
39
+ add_message "grafeas.v1.Note" do
40
+ optional :name, :string, 1
41
+ optional :short_description, :string, 2
42
+ optional :long_description, :string, 3
43
+ optional :kind, :enum, 4, "grafeas.v1.NoteKind"
44
+ repeated :related_url, :message, 5, "grafeas.v1.RelatedUrl"
45
+ optional :expiration_time, :message, 6, "google.protobuf.Timestamp"
46
+ optional :create_time, :message, 7, "google.protobuf.Timestamp"
47
+ optional :update_time, :message, 8, "google.protobuf.Timestamp"
48
+ repeated :related_note_names, :string, 9
49
+ oneof :type do
50
+ optional :vulnerability, :message, 10, "grafeas.v1.VulnerabilityNote"
51
+ optional :build, :message, 11, "grafeas.v1.BuildNote"
52
+ optional :image, :message, 12, "grafeas.v1.ImageNote"
53
+ optional :package, :message, 13, "grafeas.v1.PackageNote"
54
+ optional :deployment, :message, 14, "grafeas.v1.DeploymentNote"
55
+ optional :discovery, :message, 15, "grafeas.v1.DiscoveryNote"
56
+ optional :attestation, :message, 16, "grafeas.v1.AttestationNote"
57
+ end
58
+ end
59
+ add_message "grafeas.v1.GetOccurrenceRequest" do
60
+ optional :name, :string, 1
61
+ end
62
+ add_message "grafeas.v1.ListOccurrencesRequest" do
63
+ optional :parent, :string, 1
64
+ optional :filter, :string, 2
65
+ optional :page_size, :int32, 3
66
+ optional :page_token, :string, 4
67
+ end
68
+ add_message "grafeas.v1.ListOccurrencesResponse" do
69
+ repeated :occurrences, :message, 1, "grafeas.v1.Occurrence"
70
+ optional :next_page_token, :string, 2
71
+ end
72
+ add_message "grafeas.v1.DeleteOccurrenceRequest" do
73
+ optional :name, :string, 1
74
+ end
75
+ add_message "grafeas.v1.CreateOccurrenceRequest" do
76
+ optional :parent, :string, 1
77
+ optional :occurrence, :message, 2, "grafeas.v1.Occurrence"
78
+ end
79
+ add_message "grafeas.v1.UpdateOccurrenceRequest" do
80
+ optional :name, :string, 1
81
+ optional :occurrence, :message, 2, "grafeas.v1.Occurrence"
82
+ optional :update_mask, :message, 3, "google.protobuf.FieldMask"
83
+ end
84
+ add_message "grafeas.v1.GetNoteRequest" do
85
+ optional :name, :string, 1
86
+ end
87
+ add_message "grafeas.v1.GetOccurrenceNoteRequest" do
88
+ optional :name, :string, 1
89
+ end
90
+ add_message "grafeas.v1.ListNotesRequest" do
91
+ optional :parent, :string, 1
92
+ optional :filter, :string, 2
93
+ optional :page_size, :int32, 3
94
+ optional :page_token, :string, 4
95
+ end
96
+ add_message "grafeas.v1.ListNotesResponse" do
97
+ repeated :notes, :message, 1, "grafeas.v1.Note"
98
+ optional :next_page_token, :string, 2
99
+ end
100
+ add_message "grafeas.v1.DeleteNoteRequest" do
101
+ optional :name, :string, 1
102
+ end
103
+ add_message "grafeas.v1.CreateNoteRequest" do
104
+ optional :parent, :string, 1
105
+ optional :note_id, :string, 2
106
+ optional :note, :message, 3, "grafeas.v1.Note"
107
+ end
108
+ add_message "grafeas.v1.UpdateNoteRequest" do
109
+ optional :name, :string, 1
110
+ optional :note, :message, 2, "grafeas.v1.Note"
111
+ optional :update_mask, :message, 3, "google.protobuf.FieldMask"
112
+ end
113
+ add_message "grafeas.v1.ListNoteOccurrencesRequest" do
114
+ optional :name, :string, 1
115
+ optional :filter, :string, 2
116
+ optional :page_size, :int32, 3
117
+ optional :page_token, :string, 4
118
+ end
119
+ add_message "grafeas.v1.ListNoteOccurrencesResponse" do
120
+ repeated :occurrences, :message, 1, "grafeas.v1.Occurrence"
121
+ optional :next_page_token, :string, 2
122
+ end
123
+ add_message "grafeas.v1.BatchCreateNotesRequest" do
124
+ optional :parent, :string, 1
125
+ map :notes, :string, :message, 2, "grafeas.v1.Note"
126
+ end
127
+ add_message "grafeas.v1.BatchCreateNotesResponse" do
128
+ repeated :notes, :message, 1, "grafeas.v1.Note"
129
+ end
130
+ add_message "grafeas.v1.BatchCreateOccurrencesRequest" do
131
+ optional :parent, :string, 1
132
+ repeated :occurrences, :message, 2, "grafeas.v1.Occurrence"
133
+ end
134
+ add_message "grafeas.v1.BatchCreateOccurrencesResponse" do
135
+ repeated :occurrences, :message, 1, "grafeas.v1.Occurrence"
136
+ end
137
+ end
138
+
139
+ module Grafeas
140
+ module V1
141
+ Occurrence = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Occurrence").msgclass
142
+ Note = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Note").msgclass
143
+ GetOccurrenceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.GetOccurrenceRequest").msgclass
144
+ ListOccurrencesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ListOccurrencesRequest").msgclass
145
+ ListOccurrencesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ListOccurrencesResponse").msgclass
146
+ DeleteOccurrenceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DeleteOccurrenceRequest").msgclass
147
+ CreateOccurrenceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CreateOccurrenceRequest").msgclass
148
+ UpdateOccurrenceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.UpdateOccurrenceRequest").msgclass
149
+ GetNoteRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.GetNoteRequest").msgclass
150
+ GetOccurrenceNoteRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.GetOccurrenceNoteRequest").msgclass
151
+ ListNotesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ListNotesRequest").msgclass
152
+ ListNotesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ListNotesResponse").msgclass
153
+ DeleteNoteRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DeleteNoteRequest").msgclass
154
+ CreateNoteRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CreateNoteRequest").msgclass
155
+ UpdateNoteRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.UpdateNoteRequest").msgclass
156
+ ListNoteOccurrencesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ListNoteOccurrencesRequest").msgclass
157
+ ListNoteOccurrencesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ListNoteOccurrencesResponse").msgclass
158
+ BatchCreateNotesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.BatchCreateNotesRequest").msgclass
159
+ BatchCreateNotesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.BatchCreateNotesResponse").msgclass
160
+ BatchCreateOccurrencesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.BatchCreateOccurrencesRequest").msgclass
161
+ BatchCreateOccurrencesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.BatchCreateOccurrencesResponse").msgclass
162
+ end
163
+ end
@@ -0,0 +1,86 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: grafeas/v1/grafeas.proto for package 'grafeas.v1'
3
+ # Original file comments:
4
+ # Copyright 2019 The Grafeas Authors. All rights reserved.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+
20
+ require 'grpc'
21
+ require 'grafeas/v1/grafeas_pb'
22
+
23
+ module Grafeas
24
+ module V1
25
+ module GrafeasService
26
+ # [Grafeas](https://grafeas.io) API.
27
+ #
28
+ # Retrieves analysis results of Cloud components such as Docker container
29
+ # images.
30
+ #
31
+ # Analysis results are stored as a series of occurrences. An `Occurrence`
32
+ # contains information about a specific analysis instance on a resource. An
33
+ # occurrence refers to a `Note`. A note contains details describing the
34
+ # analysis and is generally stored in a separate project, called a `Provider`.
35
+ # Multiple occurrences can refer to the same note.
36
+ #
37
+ # For example, an SSL vulnerability could affect multiple images. In this case,
38
+ # there would be one note for the vulnerability and an occurrence for each
39
+ # image with the vulnerability referring to that note.
40
+ class Service
41
+
42
+ include GRPC::GenericService
43
+
44
+ self.marshal_class_method = :encode
45
+ self.unmarshal_class_method = :decode
46
+ self.service_name = 'grafeas.v1.Grafeas'
47
+
48
+ # Gets the specified occurrence.
49
+ rpc :GetOccurrence, GetOccurrenceRequest, Occurrence
50
+ # Lists occurrences for the specified project.
51
+ rpc :ListOccurrences, ListOccurrencesRequest, ListOccurrencesResponse
52
+ # Deletes the specified occurrence. For example, use this method to delete an
53
+ # occurrence when the occurrence is no longer applicable for the given
54
+ # resource.
55
+ rpc :DeleteOccurrence, DeleteOccurrenceRequest, Google::Protobuf::Empty
56
+ # Creates a new occurrence.
57
+ rpc :CreateOccurrence, CreateOccurrenceRequest, Occurrence
58
+ # Creates new occurrences in batch.
59
+ rpc :BatchCreateOccurrences, BatchCreateOccurrencesRequest, BatchCreateOccurrencesResponse
60
+ # Updates the specified occurrence.
61
+ rpc :UpdateOccurrence, UpdateOccurrenceRequest, Occurrence
62
+ # Gets the note attached to the specified occurrence. Consumer projects can
63
+ # use this method to get a note that belongs to a provider project.
64
+ rpc :GetOccurrenceNote, GetOccurrenceNoteRequest, Note
65
+ # Gets the specified note.
66
+ rpc :GetNote, GetNoteRequest, Note
67
+ # Lists notes for the specified project.
68
+ rpc :ListNotes, ListNotesRequest, ListNotesResponse
69
+ # Deletes the specified note.
70
+ rpc :DeleteNote, DeleteNoteRequest, Google::Protobuf::Empty
71
+ # Creates a new note.
72
+ rpc :CreateNote, CreateNoteRequest, Note
73
+ # Creates new notes in batch.
74
+ rpc :BatchCreateNotes, BatchCreateNotesRequest, BatchCreateNotesResponse
75
+ # Updates the specified note.
76
+ rpc :UpdateNote, UpdateNoteRequest, Note
77
+ # Lists occurrences referencing the specified note. Provider projects can use
78
+ # this method to get all occurrences across consumer projects referencing the
79
+ # specified note.
80
+ rpc :ListNoteOccurrences, ListNoteOccurrencesRequest, ListNoteOccurrencesResponse
81
+ end
82
+
83
+ Stub = Service.rpc_stub_class
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,36 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: grafeas/v1/image.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "grafeas.v1.Layer" do
9
+ optional :directive, :string, 1
10
+ optional :arguments, :string, 2
11
+ end
12
+ add_message "grafeas.v1.Fingerprint" do
13
+ optional :v1_name, :string, 1
14
+ repeated :v2_blob, :string, 2
15
+ optional :v2_name, :string, 3
16
+ end
17
+ add_message "grafeas.v1.ImageNote" do
18
+ optional :resource_url, :string, 1
19
+ optional :fingerprint, :message, 2, "grafeas.v1.Fingerprint"
20
+ end
21
+ add_message "grafeas.v1.ImageOccurrence" do
22
+ optional :fingerprint, :message, 1, "grafeas.v1.Fingerprint"
23
+ optional :distance, :int32, 2
24
+ repeated :layer_info, :message, 3, "grafeas.v1.Layer"
25
+ optional :base_resource_url, :string, 4
26
+ end
27
+ end
28
+
29
+ module Grafeas
30
+ module V1
31
+ Layer = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Layer").msgclass
32
+ Fingerprint = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Fingerprint").msgclass
33
+ ImageNote = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ImageNote").msgclass
34
+ ImageOccurrence = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ImageOccurrence").msgclass
35
+ end
36
+ end
@@ -0,0 +1,59 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: grafeas/v1/package.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "grafeas.v1.Distribution" do
9
+ optional :cpe_uri, :string, 1
10
+ optional :architecture, :enum, 2, "grafeas.v1.Architecture"
11
+ optional :latest_version, :message, 3, "grafeas.v1.Version"
12
+ optional :maintainer, :string, 4
13
+ optional :url, :string, 5
14
+ optional :description, :string, 6
15
+ end
16
+ add_message "grafeas.v1.Location" do
17
+ optional :cpe_uri, :string, 1
18
+ optional :version, :message, 2, "grafeas.v1.Version"
19
+ optional :path, :string, 3
20
+ end
21
+ add_message "grafeas.v1.PackageNote" do
22
+ optional :name, :string, 1
23
+ repeated :distribution, :message, 10, "grafeas.v1.Distribution"
24
+ end
25
+ add_message "grafeas.v1.PackageOccurrence" do
26
+ optional :name, :string, 1
27
+ repeated :location, :message, 2, "grafeas.v1.Location"
28
+ end
29
+ add_message "grafeas.v1.Version" do
30
+ optional :epoch, :int32, 1
31
+ optional :name, :string, 2
32
+ optional :revision, :string, 3
33
+ optional :kind, :enum, 4, "grafeas.v1.Version.VersionKind"
34
+ optional :full_name, :string, 5
35
+ end
36
+ add_enum "grafeas.v1.Version.VersionKind" do
37
+ value :VERSION_KIND_UNSPECIFIED, 0
38
+ value :NORMAL, 1
39
+ value :MINIMUM, 2
40
+ value :MAXIMUM, 3
41
+ end
42
+ add_enum "grafeas.v1.Architecture" do
43
+ value :ARCHITECTURE_UNSPECIFIED, 0
44
+ value :X86, 1
45
+ value :X64, 2
46
+ end
47
+ end
48
+
49
+ module Grafeas
50
+ module V1
51
+ Distribution = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Distribution").msgclass
52
+ Location = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Location").msgclass
53
+ PackageNote = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.PackageNote").msgclass
54
+ PackageOccurrence = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.PackageOccurrence").msgclass
55
+ Version = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Version").msgclass
56
+ Version::VersionKind = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Version.VersionKind").enummodule
57
+ Architecture = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Architecture").enummodule
58
+ end
59
+ end
@@ -0,0 +1,116 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: grafeas/v1/provenance.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/timestamp_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "grafeas.v1.BuildProvenance" do
10
+ optional :id, :string, 1
11
+ optional :project_id, :string, 2
12
+ repeated :commands, :message, 3, "grafeas.v1.Command"
13
+ repeated :built_artifacts, :message, 4, "grafeas.v1.Artifact"
14
+ optional :create_time, :message, 5, "google.protobuf.Timestamp"
15
+ optional :start_time, :message, 6, "google.protobuf.Timestamp"
16
+ optional :end_time, :message, 7, "google.protobuf.Timestamp"
17
+ optional :creator, :string, 8
18
+ optional :logs_uri, :string, 9
19
+ optional :source_provenance, :message, 10, "grafeas.v1.Source"
20
+ optional :trigger_id, :string, 11
21
+ map :build_options, :string, :string, 12
22
+ optional :builder_version, :string, 13
23
+ end
24
+ add_message "grafeas.v1.Source" do
25
+ optional :artifact_storage_source_uri, :string, 1
26
+ map :file_hashes, :string, :message, 2, "grafeas.v1.FileHashes"
27
+ optional :context, :message, 3, "grafeas.v1.SourceContext"
28
+ repeated :additional_contexts, :message, 4, "grafeas.v1.SourceContext"
29
+ end
30
+ add_message "grafeas.v1.FileHashes" do
31
+ repeated :file_hash, :message, 1, "grafeas.v1.Hash"
32
+ end
33
+ add_message "grafeas.v1.Hash" do
34
+ optional :type, :string, 1
35
+ optional :value, :bytes, 2
36
+ end
37
+ add_message "grafeas.v1.Command" do
38
+ optional :name, :string, 1
39
+ repeated :env, :string, 2
40
+ repeated :args, :string, 3
41
+ optional :dir, :string, 4
42
+ optional :id, :string, 5
43
+ repeated :wait_for, :string, 6
44
+ end
45
+ add_message "grafeas.v1.Artifact" do
46
+ optional :checksum, :string, 1
47
+ optional :id, :string, 2
48
+ repeated :names, :string, 3
49
+ end
50
+ add_message "grafeas.v1.SourceContext" do
51
+ map :labels, :string, :string, 4
52
+ oneof :context do
53
+ optional :cloud_repo, :message, 1, "grafeas.v1.CloudRepoSourceContext"
54
+ optional :gerrit, :message, 2, "grafeas.v1.GerritSourceContext"
55
+ optional :git, :message, 3, "grafeas.v1.GitSourceContext"
56
+ end
57
+ end
58
+ add_message "grafeas.v1.AliasContext" do
59
+ optional :kind, :enum, 1, "grafeas.v1.AliasContext.Kind"
60
+ optional :name, :string, 2
61
+ end
62
+ add_enum "grafeas.v1.AliasContext.Kind" do
63
+ value :KIND_UNSPECIFIED, 0
64
+ value :FIXED, 1
65
+ value :MOVABLE, 2
66
+ value :OTHER, 4
67
+ end
68
+ add_message "grafeas.v1.CloudRepoSourceContext" do
69
+ optional :repo_id, :message, 1, "grafeas.v1.RepoId"
70
+ oneof :revision do
71
+ optional :revision_id, :string, 2
72
+ optional :alias_context, :message, 3, "grafeas.v1.AliasContext"
73
+ end
74
+ end
75
+ add_message "grafeas.v1.GerritSourceContext" do
76
+ optional :host_uri, :string, 1
77
+ optional :gerrit_project, :string, 2
78
+ oneof :revision do
79
+ optional :revision_id, :string, 3
80
+ optional :alias_context, :message, 4, "grafeas.v1.AliasContext"
81
+ end
82
+ end
83
+ add_message "grafeas.v1.GitSourceContext" do
84
+ optional :url, :string, 1
85
+ optional :revision_id, :string, 2
86
+ end
87
+ add_message "grafeas.v1.RepoId" do
88
+ oneof :id do
89
+ optional :project_repo_id, :message, 1, "grafeas.v1.ProjectRepoId"
90
+ optional :uid, :string, 2
91
+ end
92
+ end
93
+ add_message "grafeas.v1.ProjectRepoId" do
94
+ optional :project_id, :string, 1
95
+ optional :repo_name, :string, 2
96
+ end
97
+ end
98
+
99
+ module Grafeas
100
+ module V1
101
+ BuildProvenance = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.BuildProvenance").msgclass
102
+ Source = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Source").msgclass
103
+ FileHashes = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.FileHashes").msgclass
104
+ Hash = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Hash").msgclass
105
+ Command = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Command").msgclass
106
+ Artifact = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Artifact").msgclass
107
+ SourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.SourceContext").msgclass
108
+ AliasContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.AliasContext").msgclass
109
+ AliasContext::Kind = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.AliasContext.Kind").enummodule
110
+ CloudRepoSourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CloudRepoSourceContext").msgclass
111
+ GerritSourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.GerritSourceContext").msgclass
112
+ GitSourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.GitSourceContext").msgclass
113
+ RepoId = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.RepoId").msgclass
114
+ ProjectRepoId = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ProjectRepoId").msgclass
115
+ end
116
+ end