grafeas-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +11 -0
- data/LICENSE.md +203 -0
- data/README.md +63 -0
- data/lib/grafeas-v1.rb +21 -0
- data/lib/grafeas/v1.rb +31 -0
- data/lib/grafeas/v1/attestation_pb.rb +28 -0
- data/lib/grafeas/v1/build_pb.rb +24 -0
- data/lib/grafeas/v1/common_pb.rb +36 -0
- data/lib/grafeas/v1/cvss_pb.rb +68 -0
- data/lib/grafeas/v1/deployment_pb.rb +36 -0
- data/lib/grafeas/v1/discovery_pb.rb +44 -0
- data/lib/grafeas/v1/grafeas.rb +57 -0
- data/lib/grafeas/v1/grafeas/client.rb +1459 -0
- data/lib/grafeas/v1/grafeas/paths.rb +77 -0
- data/lib/grafeas/v1/grafeas_pb.rb +169 -0
- data/lib/grafeas/v1/grafeas_services_pb.rb +85 -0
- data/lib/grafeas/v1/image_pb.rb +37 -0
- data/lib/grafeas/v1/package_pb.rb +60 -0
- data/lib/grafeas/v1/provenance_pb.rb +117 -0
- data/lib/grafeas/v1/upgrade_pb.rb +57 -0
- data/lib/grafeas/v1/version.rb +24 -0
- data/lib/grafeas/v1/vulnerability_pb.rb +85 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/grafeas/v1/attestation.rb +77 -0
- data/proto_docs/grafeas/v1/build.rb +54 -0
- data/proto_docs/grafeas/v1/common.rb +118 -0
- data/proto_docs/grafeas/v1/cvss.rb +111 -0
- data/proto_docs/grafeas/v1/deployment.rb +74 -0
- data/proto_docs/grafeas/v1/discovery.rb +92 -0
- data/proto_docs/grafeas/v1/grafeas.rb +404 -0
- data/proto_docs/grafeas/v1/image.rb +95 -0
- data/proto_docs/grafeas/v1/package.rb +144 -0
- data/proto_docs/grafeas/v1/provenance.rb +318 -0
- data/proto_docs/grafeas/v1/upgrade.rb +148 -0
- data/proto_docs/grafeas/v1/vulnerability.rb +245 -0
- metadata +225 -0
@@ -0,0 +1,92 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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
|
+
# A note that indicates a type of analysis a provider would perform. This note
|
23
|
+
# exists in a provider's project. A `Discovery` occurrence is created in a
|
24
|
+
# consumer's project at the start of analysis.
|
25
|
+
# @!attribute [rw] analysis_kind
|
26
|
+
# @return [::Grafeas::V1::NoteKind]
|
27
|
+
# Required. Immutable. The kind of analysis that is handled by this
|
28
|
+
# discovery.
|
29
|
+
class DiscoveryNote
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
|
34
|
+
# Provides information about the analysis status of a discovered resource.
|
35
|
+
# @!attribute [rw] continuous_analysis
|
36
|
+
# @return [::Grafeas::V1::DiscoveryOccurrence::ContinuousAnalysis]
|
37
|
+
# Whether the resource is continuously analyzed.
|
38
|
+
# @!attribute [rw] analysis_status
|
39
|
+
# @return [::Grafeas::V1::DiscoveryOccurrence::AnalysisStatus]
|
40
|
+
# The status of discovery for the resource.
|
41
|
+
# @!attribute [rw] analysis_status_error
|
42
|
+
# @return [::Google::Rpc::Status]
|
43
|
+
# When an error is encountered this will contain a LocalizedMessage under
|
44
|
+
# details to show to the user. The LocalizedMessage is output only and
|
45
|
+
# populated by the API.
|
46
|
+
# @!attribute [rw] cpe
|
47
|
+
# @return [::String]
|
48
|
+
# The CPE of the resource being scanned.
|
49
|
+
# @!attribute [rw] last_scan_time
|
50
|
+
# @return [::Google::Protobuf::Timestamp]
|
51
|
+
# The last time this resource was scanned.
|
52
|
+
class DiscoveryOccurrence
|
53
|
+
include ::Google::Protobuf::MessageExts
|
54
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
55
|
+
|
56
|
+
# Whether the resource is continuously analyzed.
|
57
|
+
module ContinuousAnalysis
|
58
|
+
# Unknown.
|
59
|
+
CONTINUOUS_ANALYSIS_UNSPECIFIED = 0
|
60
|
+
|
61
|
+
# The resource is continuously analyzed.
|
62
|
+
ACTIVE = 1
|
63
|
+
|
64
|
+
# The resource is ignored for continuous analysis.
|
65
|
+
INACTIVE = 2
|
66
|
+
end
|
67
|
+
|
68
|
+
# Analysis status for a resource. Currently for initial analysis only (not
|
69
|
+
# updated in continuous analysis).
|
70
|
+
module AnalysisStatus
|
71
|
+
# Unknown.
|
72
|
+
ANALYSIS_STATUS_UNSPECIFIED = 0
|
73
|
+
|
74
|
+
# Resource is known but no action has been taken yet.
|
75
|
+
PENDING = 1
|
76
|
+
|
77
|
+
# Resource is being analyzed.
|
78
|
+
SCANNING = 2
|
79
|
+
|
80
|
+
# Analysis has finished successfully.
|
81
|
+
FINISHED_SUCCESS = 3
|
82
|
+
|
83
|
+
# Analysis has finished unsuccessfully, the analysis itself is in a bad
|
84
|
+
# state.
|
85
|
+
FINISHED_FAILED = 4
|
86
|
+
|
87
|
+
# The resource is known not to be supported
|
88
|
+
FINISHED_UNSUPPORTED = 5
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,404 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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
|
+
# An instance of an analysis type that has been found on a resource.
|
23
|
+
# @!attribute [rw] name
|
24
|
+
# @return [::String]
|
25
|
+
# Output only. The name of the occurrence in the form of
|
26
|
+
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
|
27
|
+
# @!attribute [rw] resource_uri
|
28
|
+
# @return [::String]
|
29
|
+
# Required. Immutable. A URI that represents the resource for which the
|
30
|
+
# occurrence applies. For example,
|
31
|
+
# `https://gcr.io/project/image@sha256:123abc` for a Docker image.
|
32
|
+
# @!attribute [rw] note_name
|
33
|
+
# @return [::String]
|
34
|
+
# Required. Immutable. The analysis note associated with this occurrence, in
|
35
|
+
# the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be
|
36
|
+
# used as a filter in list requests.
|
37
|
+
# @!attribute [rw] kind
|
38
|
+
# @return [::Grafeas::V1::NoteKind]
|
39
|
+
# Output only. This explicitly denotes which of the occurrence details are
|
40
|
+
# specified. This field can be used as a filter in list requests.
|
41
|
+
# @!attribute [rw] remediation
|
42
|
+
# @return [::String]
|
43
|
+
# A description of actions that can be taken to remedy the note.
|
44
|
+
# @!attribute [rw] create_time
|
45
|
+
# @return [::Google::Protobuf::Timestamp]
|
46
|
+
# Output only. The time this occurrence was created.
|
47
|
+
# @!attribute [rw] update_time
|
48
|
+
# @return [::Google::Protobuf::Timestamp]
|
49
|
+
# Output only. The time this occurrence was last updated.
|
50
|
+
# @!attribute [rw] vulnerability
|
51
|
+
# @return [::Grafeas::V1::VulnerabilityOccurrence]
|
52
|
+
# Describes a security vulnerability.
|
53
|
+
# @!attribute [rw] build
|
54
|
+
# @return [::Grafeas::V1::BuildOccurrence]
|
55
|
+
# Describes a verifiable build.
|
56
|
+
# @!attribute [rw] image
|
57
|
+
# @return [::Grafeas::V1::ImageOccurrence]
|
58
|
+
# Describes how this resource derives from the basis in the associated
|
59
|
+
# note.
|
60
|
+
# @!attribute [rw] package
|
61
|
+
# @return [::Grafeas::V1::PackageOccurrence]
|
62
|
+
# Describes the installation of a package on the linked resource.
|
63
|
+
# @!attribute [rw] deployment
|
64
|
+
# @return [::Grafeas::V1::DeploymentOccurrence]
|
65
|
+
# Describes the deployment of an artifact on a runtime.
|
66
|
+
# @!attribute [rw] discovery
|
67
|
+
# @return [::Grafeas::V1::DiscoveryOccurrence]
|
68
|
+
# Describes when a resource was discovered.
|
69
|
+
# @!attribute [rw] attestation
|
70
|
+
# @return [::Grafeas::V1::AttestationOccurrence]
|
71
|
+
# Describes an attestation of an artifact.
|
72
|
+
# @!attribute [rw] upgrade
|
73
|
+
# @return [::Grafeas::V1::UpgradeOccurrence]
|
74
|
+
# Describes an available package upgrade on the linked resource.
|
75
|
+
class Occurrence
|
76
|
+
include ::Google::Protobuf::MessageExts
|
77
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
|
+
end
|
79
|
+
|
80
|
+
# A type of analysis that can be done for a resource.
|
81
|
+
# @!attribute [rw] name
|
82
|
+
# @return [::String]
|
83
|
+
# Output only. The name of the note in the form of
|
84
|
+
# `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
|
85
|
+
# @!attribute [rw] short_description
|
86
|
+
# @return [::String]
|
87
|
+
# A one sentence description of this note.
|
88
|
+
# @!attribute [rw] long_description
|
89
|
+
# @return [::String]
|
90
|
+
# A detailed description of this note.
|
91
|
+
# @!attribute [rw] kind
|
92
|
+
# @return [::Grafeas::V1::NoteKind]
|
93
|
+
# Output only. The type of analysis. This field can be used as a filter in
|
94
|
+
# list requests.
|
95
|
+
# @!attribute [rw] related_url
|
96
|
+
# @return [::Array<::Grafeas::V1::RelatedUrl>]
|
97
|
+
# URLs associated with this note.
|
98
|
+
# @!attribute [rw] expiration_time
|
99
|
+
# @return [::Google::Protobuf::Timestamp]
|
100
|
+
# Time of expiration for this note. Empty if note does not expire.
|
101
|
+
# @!attribute [rw] create_time
|
102
|
+
# @return [::Google::Protobuf::Timestamp]
|
103
|
+
# Output only. The time this note was created. This field can be used as a
|
104
|
+
# filter in list requests.
|
105
|
+
# @!attribute [rw] update_time
|
106
|
+
# @return [::Google::Protobuf::Timestamp]
|
107
|
+
# Output only. The time this note was last updated. This field can be used as
|
108
|
+
# a filter in list requests.
|
109
|
+
# @!attribute [rw] related_note_names
|
110
|
+
# @return [::Array<::String>]
|
111
|
+
# Other notes related to this note.
|
112
|
+
# @!attribute [rw] vulnerability
|
113
|
+
# @return [::Grafeas::V1::VulnerabilityNote]
|
114
|
+
# A note describing a package vulnerability.
|
115
|
+
# @!attribute [rw] build
|
116
|
+
# @return [::Grafeas::V1::BuildNote]
|
117
|
+
# A note describing build provenance for a verifiable build.
|
118
|
+
# @!attribute [rw] image
|
119
|
+
# @return [::Grafeas::V1::ImageNote]
|
120
|
+
# A note describing a base image.
|
121
|
+
# @!attribute [rw] package
|
122
|
+
# @return [::Grafeas::V1::PackageNote]
|
123
|
+
# A note describing a package hosted by various package managers.
|
124
|
+
# @!attribute [rw] deployment
|
125
|
+
# @return [::Grafeas::V1::DeploymentNote]
|
126
|
+
# A note describing something that can be deployed.
|
127
|
+
# @!attribute [rw] discovery
|
128
|
+
# @return [::Grafeas::V1::DiscoveryNote]
|
129
|
+
# A note describing the initial analysis of a resource.
|
130
|
+
# @!attribute [rw] attestation
|
131
|
+
# @return [::Grafeas::V1::AttestationNote]
|
132
|
+
# A note describing an attestation role.
|
133
|
+
# @!attribute [rw] upgrade
|
134
|
+
# @return [::Grafeas::V1::UpgradeNote]
|
135
|
+
# A note describing available package upgrades.
|
136
|
+
class Note
|
137
|
+
include ::Google::Protobuf::MessageExts
|
138
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
139
|
+
end
|
140
|
+
|
141
|
+
# Request to get an occurrence.
|
142
|
+
# @!attribute [rw] name
|
143
|
+
# @return [::String]
|
144
|
+
# The name of the occurrence in the form of
|
145
|
+
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
|
146
|
+
class GetOccurrenceRequest
|
147
|
+
include ::Google::Protobuf::MessageExts
|
148
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
149
|
+
end
|
150
|
+
|
151
|
+
# Request to list occurrences.
|
152
|
+
# @!attribute [rw] parent
|
153
|
+
# @return [::String]
|
154
|
+
# The name of the project to list occurrences for in the form of
|
155
|
+
# `projects/[PROJECT_ID]`.
|
156
|
+
# @!attribute [rw] filter
|
157
|
+
# @return [::String]
|
158
|
+
# The filter expression.
|
159
|
+
# @!attribute [rw] page_size
|
160
|
+
# @return [::Integer]
|
161
|
+
# Number of occurrences to return in the list. Must be positive. Max allowed
|
162
|
+
# page size is 1000. If not specified, page size defaults to 20.
|
163
|
+
# @!attribute [rw] page_token
|
164
|
+
# @return [::String]
|
165
|
+
# Token to provide to skip to a particular spot in the list.
|
166
|
+
class ListOccurrencesRequest
|
167
|
+
include ::Google::Protobuf::MessageExts
|
168
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
169
|
+
end
|
170
|
+
|
171
|
+
# Response for listing occurrences.
|
172
|
+
# @!attribute [rw] occurrences
|
173
|
+
# @return [::Array<::Grafeas::V1::Occurrence>]
|
174
|
+
# The occurrences requested.
|
175
|
+
# @!attribute [rw] next_page_token
|
176
|
+
# @return [::String]
|
177
|
+
# The next pagination token in the list response. It should be used as
|
178
|
+
# `page_token` for the following request. An empty value means no more
|
179
|
+
# results.
|
180
|
+
class ListOccurrencesResponse
|
181
|
+
include ::Google::Protobuf::MessageExts
|
182
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
183
|
+
end
|
184
|
+
|
185
|
+
# Request to delete an occurrence.
|
186
|
+
# @!attribute [rw] name
|
187
|
+
# @return [::String]
|
188
|
+
# The name of the occurrence in the form of
|
189
|
+
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
|
190
|
+
class DeleteOccurrenceRequest
|
191
|
+
include ::Google::Protobuf::MessageExts
|
192
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
193
|
+
end
|
194
|
+
|
195
|
+
# Request to create a new occurrence.
|
196
|
+
# @!attribute [rw] parent
|
197
|
+
# @return [::String]
|
198
|
+
# The name of the project in the form of `projects/[PROJECT_ID]`, under which
|
199
|
+
# the occurrence is to be created.
|
200
|
+
# @!attribute [rw] occurrence
|
201
|
+
# @return [::Grafeas::V1::Occurrence]
|
202
|
+
# The occurrence to create.
|
203
|
+
class CreateOccurrenceRequest
|
204
|
+
include ::Google::Protobuf::MessageExts
|
205
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
206
|
+
end
|
207
|
+
|
208
|
+
# Request to update an occurrence.
|
209
|
+
# @!attribute [rw] name
|
210
|
+
# @return [::String]
|
211
|
+
# The name of the occurrence in the form of
|
212
|
+
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
|
213
|
+
# @!attribute [rw] occurrence
|
214
|
+
# @return [::Grafeas::V1::Occurrence]
|
215
|
+
# The updated occurrence.
|
216
|
+
# @!attribute [rw] update_mask
|
217
|
+
# @return [::Google::Protobuf::FieldMask]
|
218
|
+
# The fields to update.
|
219
|
+
class UpdateOccurrenceRequest
|
220
|
+
include ::Google::Protobuf::MessageExts
|
221
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
222
|
+
end
|
223
|
+
|
224
|
+
# Request to get a note.
|
225
|
+
# @!attribute [rw] name
|
226
|
+
# @return [::String]
|
227
|
+
# The name of the note in the form of
|
228
|
+
# `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
|
229
|
+
class GetNoteRequest
|
230
|
+
include ::Google::Protobuf::MessageExts
|
231
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
232
|
+
end
|
233
|
+
|
234
|
+
# Request to get the note to which the specified occurrence is attached.
|
235
|
+
# @!attribute [rw] name
|
236
|
+
# @return [::String]
|
237
|
+
# The name of the occurrence in the form of
|
238
|
+
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
|
239
|
+
class GetOccurrenceNoteRequest
|
240
|
+
include ::Google::Protobuf::MessageExts
|
241
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
242
|
+
end
|
243
|
+
|
244
|
+
# Request to list notes.
|
245
|
+
# @!attribute [rw] parent
|
246
|
+
# @return [::String]
|
247
|
+
# The name of the project to list notes for in the form of
|
248
|
+
# `projects/[PROJECT_ID]`.
|
249
|
+
# @!attribute [rw] filter
|
250
|
+
# @return [::String]
|
251
|
+
# The filter expression.
|
252
|
+
# @!attribute [rw] page_size
|
253
|
+
# @return [::Integer]
|
254
|
+
# Number of notes to return in the list. Must be positive. Max allowed page
|
255
|
+
# size is 1000. If not specified, page size defaults to 20.
|
256
|
+
# @!attribute [rw] page_token
|
257
|
+
# @return [::String]
|
258
|
+
# Token to provide to skip to a particular spot in the list.
|
259
|
+
class ListNotesRequest
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
263
|
+
|
264
|
+
# Response for listing notes.
|
265
|
+
# @!attribute [rw] notes
|
266
|
+
# @return [::Array<::Grafeas::V1::Note>]
|
267
|
+
# The notes requested.
|
268
|
+
# @!attribute [rw] next_page_token
|
269
|
+
# @return [::String]
|
270
|
+
# The next pagination token in the list response. It should be used as
|
271
|
+
# `page_token` for the following request. An empty value means no more
|
272
|
+
# results.
|
273
|
+
class ListNotesResponse
|
274
|
+
include ::Google::Protobuf::MessageExts
|
275
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
276
|
+
end
|
277
|
+
|
278
|
+
# Request to delete a note.
|
279
|
+
# @!attribute [rw] name
|
280
|
+
# @return [::String]
|
281
|
+
# The name of the note in the form of
|
282
|
+
# `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
|
283
|
+
class DeleteNoteRequest
|
284
|
+
include ::Google::Protobuf::MessageExts
|
285
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
286
|
+
end
|
287
|
+
|
288
|
+
# Request to create a new note.
|
289
|
+
# @!attribute [rw] parent
|
290
|
+
# @return [::String]
|
291
|
+
# The name of the project in the form of `projects/[PROJECT_ID]`, under which
|
292
|
+
# the note is to be created.
|
293
|
+
# @!attribute [rw] note_id
|
294
|
+
# @return [::String]
|
295
|
+
# The ID to use for this note.
|
296
|
+
# @!attribute [rw] note
|
297
|
+
# @return [::Grafeas::V1::Note]
|
298
|
+
# The note to create.
|
299
|
+
class CreateNoteRequest
|
300
|
+
include ::Google::Protobuf::MessageExts
|
301
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
302
|
+
end
|
303
|
+
|
304
|
+
# Request to update a note.
|
305
|
+
# @!attribute [rw] name
|
306
|
+
# @return [::String]
|
307
|
+
# The name of the note in the form of
|
308
|
+
# `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
|
309
|
+
# @!attribute [rw] note
|
310
|
+
# @return [::Grafeas::V1::Note]
|
311
|
+
# The updated note.
|
312
|
+
# @!attribute [rw] update_mask
|
313
|
+
# @return [::Google::Protobuf::FieldMask]
|
314
|
+
# The fields to update.
|
315
|
+
class UpdateNoteRequest
|
316
|
+
include ::Google::Protobuf::MessageExts
|
317
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
318
|
+
end
|
319
|
+
|
320
|
+
# Request to list occurrences for a note.
|
321
|
+
# @!attribute [rw] name
|
322
|
+
# @return [::String]
|
323
|
+
# The name of the note to list occurrences for in the form of
|
324
|
+
# `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
|
325
|
+
# @!attribute [rw] filter
|
326
|
+
# @return [::String]
|
327
|
+
# The filter expression.
|
328
|
+
# @!attribute [rw] page_size
|
329
|
+
# @return [::Integer]
|
330
|
+
# Number of occurrences to return in the list.
|
331
|
+
# @!attribute [rw] page_token
|
332
|
+
# @return [::String]
|
333
|
+
# Token to provide to skip to a particular spot in the list.
|
334
|
+
class ListNoteOccurrencesRequest
|
335
|
+
include ::Google::Protobuf::MessageExts
|
336
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
337
|
+
end
|
338
|
+
|
339
|
+
# Response for listing occurrences for a note.
|
340
|
+
# @!attribute [rw] occurrences
|
341
|
+
# @return [::Array<::Grafeas::V1::Occurrence>]
|
342
|
+
# The occurrences attached to the specified note.
|
343
|
+
# @!attribute [rw] next_page_token
|
344
|
+
# @return [::String]
|
345
|
+
# Token to provide to skip to a particular spot in the list.
|
346
|
+
class ListNoteOccurrencesResponse
|
347
|
+
include ::Google::Protobuf::MessageExts
|
348
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
349
|
+
end
|
350
|
+
|
351
|
+
# Request to create notes in batch.
|
352
|
+
# @!attribute [rw] parent
|
353
|
+
# @return [::String]
|
354
|
+
# The name of the project in the form of `projects/[PROJECT_ID]`, under which
|
355
|
+
# the notes are to be created.
|
356
|
+
# @!attribute [rw] notes
|
357
|
+
# @return [::Google::Protobuf::Map{::String => ::Grafeas::V1::Note}]
|
358
|
+
# The notes to create. Max allowed length is 1000.
|
359
|
+
class BatchCreateNotesRequest
|
360
|
+
include ::Google::Protobuf::MessageExts
|
361
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
362
|
+
|
363
|
+
# @!attribute [rw] key
|
364
|
+
# @return [::String]
|
365
|
+
# @!attribute [rw] value
|
366
|
+
# @return [::Grafeas::V1::Note]
|
367
|
+
class NotesEntry
|
368
|
+
include ::Google::Protobuf::MessageExts
|
369
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
373
|
+
# Response for creating notes in batch.
|
374
|
+
# @!attribute [rw] notes
|
375
|
+
# @return [::Array<::Grafeas::V1::Note>]
|
376
|
+
# The notes that were created.
|
377
|
+
class BatchCreateNotesResponse
|
378
|
+
include ::Google::Protobuf::MessageExts
|
379
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
380
|
+
end
|
381
|
+
|
382
|
+
# Request to create occurrences in batch.
|
383
|
+
# @!attribute [rw] parent
|
384
|
+
# @return [::String]
|
385
|
+
# The name of the project in the form of `projects/[PROJECT_ID]`, under which
|
386
|
+
# the occurrences are to be created.
|
387
|
+
# @!attribute [rw] occurrences
|
388
|
+
# @return [::Array<::Grafeas::V1::Occurrence>]
|
389
|
+
# The occurrences to create. Max allowed length is 1000.
|
390
|
+
class BatchCreateOccurrencesRequest
|
391
|
+
include ::Google::Protobuf::MessageExts
|
392
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
393
|
+
end
|
394
|
+
|
395
|
+
# Response for creating occurrences in batch.
|
396
|
+
# @!attribute [rw] occurrences
|
397
|
+
# @return [::Array<::Grafeas::V1::Occurrence>]
|
398
|
+
# The occurrences that were created.
|
399
|
+
class BatchCreateOccurrencesResponse
|
400
|
+
include ::Google::Protobuf::MessageExts
|
401
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
402
|
+
end
|
403
|
+
end
|
404
|
+
end
|