google-apis-ondemandscanning_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module OndemandscanningV1beta1
18
+ # Version of the google-apis-ondemandscanning_v1beta1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.2"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20210222"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,747 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module OndemandscanningV1beta1
24
+
25
+ class AliasContext
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AnalyzePackagesMetadata
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AnalyzePackagesRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class AnalyzePackagesResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Artifact
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class AttestationOccurrence
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class BuildOccurrence
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class BuildProvenance
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Category
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class CloudRepoSourceContext
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Command
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class DeploymentOccurrence
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class DiscoveryOccurrence
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class Empty
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class FileHashes
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Fingerprint
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GerritSourceContext
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class GitSourceContext
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class HashProp
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Identity
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ImageOccurrence
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Jwt
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Layer
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class ListOperationsResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class ListVulnerabilitiesResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class Location
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class Occurrence
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class Operation
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class PackageData
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class PackageIssue
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class PackageOccurrence
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class ProjectRepoId
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class RelatedUrl
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class RepoId
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class Signature
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class Source
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class SourceContext
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class Status
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class UpgradeDistribution
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class UpgradeOccurrence
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class Version
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class VulnerabilityOccurrence
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class WindowsUpdate
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class AliasContext
284
+ # @private
285
+ class Representation < Google::Apis::Core::JsonRepresentation
286
+ property :kind, as: 'kind'
287
+ property :name, as: 'name'
288
+ end
289
+ end
290
+
291
+ class AnalyzePackagesMetadata
292
+ # @private
293
+ class Representation < Google::Apis::Core::JsonRepresentation
294
+ property :create_time, as: 'createTime'
295
+ property :resource_uri, as: 'resourceUri'
296
+ end
297
+ end
298
+
299
+ class AnalyzePackagesRequest
300
+ # @private
301
+ class Representation < Google::Apis::Core::JsonRepresentation
302
+ collection :packages, as: 'packages', class: Google::Apis::OndemandscanningV1beta1::PackageData, decorator: Google::Apis::OndemandscanningV1beta1::PackageData::Representation
303
+
304
+ property :resource_uri, as: 'resourceUri'
305
+ end
306
+ end
307
+
308
+ class AnalyzePackagesResponse
309
+ # @private
310
+ class Representation < Google::Apis::Core::JsonRepresentation
311
+ property :scan, as: 'scan'
312
+ end
313
+ end
314
+
315
+ class Artifact
316
+ # @private
317
+ class Representation < Google::Apis::Core::JsonRepresentation
318
+ property :checksum, as: 'checksum'
319
+ property :id, as: 'id'
320
+ collection :names, as: 'names'
321
+ end
322
+ end
323
+
324
+ class AttestationOccurrence
325
+ # @private
326
+ class Representation < Google::Apis::Core::JsonRepresentation
327
+ collection :jwts, as: 'jwts', class: Google::Apis::OndemandscanningV1beta1::Jwt, decorator: Google::Apis::OndemandscanningV1beta1::Jwt::Representation
328
+
329
+ property :serialized_payload, :base64 => true, as: 'serializedPayload'
330
+ collection :signatures, as: 'signatures', class: Google::Apis::OndemandscanningV1beta1::Signature, decorator: Google::Apis::OndemandscanningV1beta1::Signature::Representation
331
+
332
+ end
333
+ end
334
+
335
+ class BuildOccurrence
336
+ # @private
337
+ class Representation < Google::Apis::Core::JsonRepresentation
338
+ property :provenance, as: 'provenance', class: Google::Apis::OndemandscanningV1beta1::BuildProvenance, decorator: Google::Apis::OndemandscanningV1beta1::BuildProvenance::Representation
339
+
340
+ property :provenance_bytes, as: 'provenanceBytes'
341
+ end
342
+ end
343
+
344
+ class BuildProvenance
345
+ # @private
346
+ class Representation < Google::Apis::Core::JsonRepresentation
347
+ hash :build_options, as: 'buildOptions'
348
+ property :builder_version, as: 'builderVersion'
349
+ collection :built_artifacts, as: 'builtArtifacts', class: Google::Apis::OndemandscanningV1beta1::Artifact, decorator: Google::Apis::OndemandscanningV1beta1::Artifact::Representation
350
+
351
+ collection :commands, as: 'commands', class: Google::Apis::OndemandscanningV1beta1::Command, decorator: Google::Apis::OndemandscanningV1beta1::Command::Representation
352
+
353
+ property :create_time, as: 'createTime'
354
+ property :creator, as: 'creator'
355
+ property :end_time, as: 'endTime'
356
+ property :id, as: 'id'
357
+ property :logs_uri, as: 'logsUri'
358
+ property :project_id, as: 'projectId'
359
+ property :source_provenance, as: 'sourceProvenance', class: Google::Apis::OndemandscanningV1beta1::Source, decorator: Google::Apis::OndemandscanningV1beta1::Source::Representation
360
+
361
+ property :start_time, as: 'startTime'
362
+ property :trigger_id, as: 'triggerId'
363
+ end
364
+ end
365
+
366
+ class Category
367
+ # @private
368
+ class Representation < Google::Apis::Core::JsonRepresentation
369
+ property :category_id, as: 'categoryId'
370
+ property :name, as: 'name'
371
+ end
372
+ end
373
+
374
+ class CloudRepoSourceContext
375
+ # @private
376
+ class Representation < Google::Apis::Core::JsonRepresentation
377
+ property :alias_context, as: 'aliasContext', class: Google::Apis::OndemandscanningV1beta1::AliasContext, decorator: Google::Apis::OndemandscanningV1beta1::AliasContext::Representation
378
+
379
+ property :repo_id, as: 'repoId', class: Google::Apis::OndemandscanningV1beta1::RepoId, decorator: Google::Apis::OndemandscanningV1beta1::RepoId::Representation
380
+
381
+ property :revision_id, as: 'revisionId'
382
+ end
383
+ end
384
+
385
+ class Command
386
+ # @private
387
+ class Representation < Google::Apis::Core::JsonRepresentation
388
+ collection :args, as: 'args'
389
+ property :dir, as: 'dir'
390
+ collection :env, as: 'env'
391
+ property :id, as: 'id'
392
+ property :name, as: 'name'
393
+ collection :wait_for, as: 'waitFor'
394
+ end
395
+ end
396
+
397
+ class DeploymentOccurrence
398
+ # @private
399
+ class Representation < Google::Apis::Core::JsonRepresentation
400
+ property :address, as: 'address'
401
+ property :config, as: 'config'
402
+ property :deploy_time, as: 'deployTime'
403
+ property :platform, as: 'platform'
404
+ collection :resource_uri, as: 'resourceUri'
405
+ property :undeploy_time, as: 'undeployTime'
406
+ property :user_email, as: 'userEmail'
407
+ end
408
+ end
409
+
410
+ class DiscoveryOccurrence
411
+ # @private
412
+ class Representation < Google::Apis::Core::JsonRepresentation
413
+ property :analysis_status, as: 'analysisStatus'
414
+ property :analysis_status_error, as: 'analysisStatusError', class: Google::Apis::OndemandscanningV1beta1::Status, decorator: Google::Apis::OndemandscanningV1beta1::Status::Representation
415
+
416
+ property :continuous_analysis, as: 'continuousAnalysis'
417
+ property :cpe, as: 'cpe'
418
+ property :last_scan_time, as: 'lastScanTime'
419
+ end
420
+ end
421
+
422
+ class Empty
423
+ # @private
424
+ class Representation < Google::Apis::Core::JsonRepresentation
425
+ end
426
+ end
427
+
428
+ class FileHashes
429
+ # @private
430
+ class Representation < Google::Apis::Core::JsonRepresentation
431
+ collection :file_hash, as: 'fileHash', class: Google::Apis::OndemandscanningV1beta1::HashProp, decorator: Google::Apis::OndemandscanningV1beta1::HashProp::Representation
432
+
433
+ end
434
+ end
435
+
436
+ class Fingerprint
437
+ # @private
438
+ class Representation < Google::Apis::Core::JsonRepresentation
439
+ property :v1_name, as: 'v1Name'
440
+ collection :v2_blob, as: 'v2Blob'
441
+ property :v2_name, as: 'v2Name'
442
+ end
443
+ end
444
+
445
+ class GerritSourceContext
446
+ # @private
447
+ class Representation < Google::Apis::Core::JsonRepresentation
448
+ property :alias_context, as: 'aliasContext', class: Google::Apis::OndemandscanningV1beta1::AliasContext, decorator: Google::Apis::OndemandscanningV1beta1::AliasContext::Representation
449
+
450
+ property :gerrit_project, as: 'gerritProject'
451
+ property :host_uri, as: 'hostUri'
452
+ property :revision_id, as: 'revisionId'
453
+ end
454
+ end
455
+
456
+ class GitSourceContext
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :revision_id, as: 'revisionId'
460
+ property :url, as: 'url'
461
+ end
462
+ end
463
+
464
+ class HashProp
465
+ # @private
466
+ class Representation < Google::Apis::Core::JsonRepresentation
467
+ property :type, as: 'type'
468
+ property :value, :base64 => true, as: 'value'
469
+ end
470
+ end
471
+
472
+ class Identity
473
+ # @private
474
+ class Representation < Google::Apis::Core::JsonRepresentation
475
+ property :revision, as: 'revision'
476
+ property :update_id, as: 'updateId'
477
+ end
478
+ end
479
+
480
+ class ImageOccurrence
481
+ # @private
482
+ class Representation < Google::Apis::Core::JsonRepresentation
483
+ property :base_resource_url, as: 'baseResourceUrl'
484
+ property :distance, as: 'distance'
485
+ property :fingerprint, as: 'fingerprint', class: Google::Apis::OndemandscanningV1beta1::Fingerprint, decorator: Google::Apis::OndemandscanningV1beta1::Fingerprint::Representation
486
+
487
+ collection :layer_info, as: 'layerInfo', class: Google::Apis::OndemandscanningV1beta1::Layer, decorator: Google::Apis::OndemandscanningV1beta1::Layer::Representation
488
+
489
+ end
490
+ end
491
+
492
+ class Jwt
493
+ # @private
494
+ class Representation < Google::Apis::Core::JsonRepresentation
495
+ property :compact_jwt, as: 'compactJwt'
496
+ end
497
+ end
498
+
499
+ class Layer
500
+ # @private
501
+ class Representation < Google::Apis::Core::JsonRepresentation
502
+ property :arguments, as: 'arguments'
503
+ property :directive, as: 'directive'
504
+ end
505
+ end
506
+
507
+ class ListOperationsResponse
508
+ # @private
509
+ class Representation < Google::Apis::Core::JsonRepresentation
510
+ property :next_page_token, as: 'nextPageToken'
511
+ collection :operations, as: 'operations', class: Google::Apis::OndemandscanningV1beta1::Operation, decorator: Google::Apis::OndemandscanningV1beta1::Operation::Representation
512
+
513
+ end
514
+ end
515
+
516
+ class ListVulnerabilitiesResponse
517
+ # @private
518
+ class Representation < Google::Apis::Core::JsonRepresentation
519
+ property :next_page_token, as: 'nextPageToken'
520
+ collection :occurrences, as: 'occurrences', class: Google::Apis::OndemandscanningV1beta1::Occurrence, decorator: Google::Apis::OndemandscanningV1beta1::Occurrence::Representation
521
+
522
+ end
523
+ end
524
+
525
+ class Location
526
+ # @private
527
+ class Representation < Google::Apis::Core::JsonRepresentation
528
+ property :cpe_uri, as: 'cpeUri'
529
+ property :path, as: 'path'
530
+ property :version, as: 'version', class: Google::Apis::OndemandscanningV1beta1::Version, decorator: Google::Apis::OndemandscanningV1beta1::Version::Representation
531
+
532
+ end
533
+ end
534
+
535
+ class Occurrence
536
+ # @private
537
+ class Representation < Google::Apis::Core::JsonRepresentation
538
+ property :attestation, as: 'attestation', class: Google::Apis::OndemandscanningV1beta1::AttestationOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::AttestationOccurrence::Representation
539
+
540
+ property :build, as: 'build', class: Google::Apis::OndemandscanningV1beta1::BuildOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::BuildOccurrence::Representation
541
+
542
+ property :create_time, as: 'createTime'
543
+ property :deployment, as: 'deployment', class: Google::Apis::OndemandscanningV1beta1::DeploymentOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::DeploymentOccurrence::Representation
544
+
545
+ property :discovery, as: 'discovery', class: Google::Apis::OndemandscanningV1beta1::DiscoveryOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::DiscoveryOccurrence::Representation
546
+
547
+ property :image, as: 'image', class: Google::Apis::OndemandscanningV1beta1::ImageOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::ImageOccurrence::Representation
548
+
549
+ property :kind, as: 'kind'
550
+ property :name, as: 'name'
551
+ property :note_name, as: 'noteName'
552
+ property :package, as: 'package', class: Google::Apis::OndemandscanningV1beta1::PackageOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::PackageOccurrence::Representation
553
+
554
+ property :remediation, as: 'remediation'
555
+ property :resource_uri, as: 'resourceUri'
556
+ property :update_time, as: 'updateTime'
557
+ property :upgrade, as: 'upgrade', class: Google::Apis::OndemandscanningV1beta1::UpgradeOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::UpgradeOccurrence::Representation
558
+
559
+ property :vulnerability, as: 'vulnerability', class: Google::Apis::OndemandscanningV1beta1::VulnerabilityOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::VulnerabilityOccurrence::Representation
560
+
561
+ end
562
+ end
563
+
564
+ class Operation
565
+ # @private
566
+ class Representation < Google::Apis::Core::JsonRepresentation
567
+ property :done, as: 'done'
568
+ property :error, as: 'error', class: Google::Apis::OndemandscanningV1beta1::Status, decorator: Google::Apis::OndemandscanningV1beta1::Status::Representation
569
+
570
+ hash :metadata, as: 'metadata'
571
+ property :name, as: 'name'
572
+ hash :response, as: 'response'
573
+ end
574
+ end
575
+
576
+ class PackageData
577
+ # @private
578
+ class Representation < Google::Apis::Core::JsonRepresentation
579
+ property :cpe_uri, as: 'cpeUri'
580
+ property :os, as: 'os'
581
+ property :os_version, as: 'osVersion'
582
+ property :package, as: 'package'
583
+ property :version, as: 'version'
584
+ end
585
+ end
586
+
587
+ class PackageIssue
588
+ # @private
589
+ class Representation < Google::Apis::Core::JsonRepresentation
590
+ property :affected_cpe_uri, as: 'affectedCpeUri'
591
+ property :affected_package, as: 'affectedPackage'
592
+ property :affected_version, as: 'affectedVersion', class: Google::Apis::OndemandscanningV1beta1::Version, decorator: Google::Apis::OndemandscanningV1beta1::Version::Representation
593
+
594
+ property :fix_available, as: 'fixAvailable'
595
+ property :fixed_cpe_uri, as: 'fixedCpeUri'
596
+ property :fixed_package, as: 'fixedPackage'
597
+ property :fixed_version, as: 'fixedVersion', class: Google::Apis::OndemandscanningV1beta1::Version, decorator: Google::Apis::OndemandscanningV1beta1::Version::Representation
598
+
599
+ end
600
+ end
601
+
602
+ class PackageOccurrence
603
+ # @private
604
+ class Representation < Google::Apis::Core::JsonRepresentation
605
+ collection :location, as: 'location', class: Google::Apis::OndemandscanningV1beta1::Location, decorator: Google::Apis::OndemandscanningV1beta1::Location::Representation
606
+
607
+ property :name, as: 'name'
608
+ end
609
+ end
610
+
611
+ class ProjectRepoId
612
+ # @private
613
+ class Representation < Google::Apis::Core::JsonRepresentation
614
+ property :project_id, as: 'projectId'
615
+ property :repo_name, as: 'repoName'
616
+ end
617
+ end
618
+
619
+ class RelatedUrl
620
+ # @private
621
+ class Representation < Google::Apis::Core::JsonRepresentation
622
+ property :label, as: 'label'
623
+ property :url, as: 'url'
624
+ end
625
+ end
626
+
627
+ class RepoId
628
+ # @private
629
+ class Representation < Google::Apis::Core::JsonRepresentation
630
+ property :project_repo_id, as: 'projectRepoId', class: Google::Apis::OndemandscanningV1beta1::ProjectRepoId, decorator: Google::Apis::OndemandscanningV1beta1::ProjectRepoId::Representation
631
+
632
+ property :uid, as: 'uid'
633
+ end
634
+ end
635
+
636
+ class Signature
637
+ # @private
638
+ class Representation < Google::Apis::Core::JsonRepresentation
639
+ property :public_key_id, as: 'publicKeyId'
640
+ property :signature, :base64 => true, as: 'signature'
641
+ end
642
+ end
643
+
644
+ class Source
645
+ # @private
646
+ class Representation < Google::Apis::Core::JsonRepresentation
647
+ collection :additional_contexts, as: 'additionalContexts', class: Google::Apis::OndemandscanningV1beta1::SourceContext, decorator: Google::Apis::OndemandscanningV1beta1::SourceContext::Representation
648
+
649
+ property :artifact_storage_source_uri, as: 'artifactStorageSourceUri'
650
+ property :context, as: 'context', class: Google::Apis::OndemandscanningV1beta1::SourceContext, decorator: Google::Apis::OndemandscanningV1beta1::SourceContext::Representation
651
+
652
+ hash :file_hashes, as: 'fileHashes', class: Google::Apis::OndemandscanningV1beta1::FileHashes, decorator: Google::Apis::OndemandscanningV1beta1::FileHashes::Representation
653
+
654
+ end
655
+ end
656
+
657
+ class SourceContext
658
+ # @private
659
+ class Representation < Google::Apis::Core::JsonRepresentation
660
+ property :cloud_repo, as: 'cloudRepo', class: Google::Apis::OndemandscanningV1beta1::CloudRepoSourceContext, decorator: Google::Apis::OndemandscanningV1beta1::CloudRepoSourceContext::Representation
661
+
662
+ property :gerrit, as: 'gerrit', class: Google::Apis::OndemandscanningV1beta1::GerritSourceContext, decorator: Google::Apis::OndemandscanningV1beta1::GerritSourceContext::Representation
663
+
664
+ property :git, as: 'git', class: Google::Apis::OndemandscanningV1beta1::GitSourceContext, decorator: Google::Apis::OndemandscanningV1beta1::GitSourceContext::Representation
665
+
666
+ hash :labels, as: 'labels'
667
+ end
668
+ end
669
+
670
+ class Status
671
+ # @private
672
+ class Representation < Google::Apis::Core::JsonRepresentation
673
+ property :code, as: 'code'
674
+ collection :details, as: 'details'
675
+ property :message, as: 'message'
676
+ end
677
+ end
678
+
679
+ class UpgradeDistribution
680
+ # @private
681
+ class Representation < Google::Apis::Core::JsonRepresentation
682
+ property :classification, as: 'classification'
683
+ property :cpe_uri, as: 'cpeUri'
684
+ collection :cve, as: 'cve'
685
+ property :severity, as: 'severity'
686
+ end
687
+ end
688
+
689
+ class UpgradeOccurrence
690
+ # @private
691
+ class Representation < Google::Apis::Core::JsonRepresentation
692
+ property :distribution, as: 'distribution', class: Google::Apis::OndemandscanningV1beta1::UpgradeDistribution, decorator: Google::Apis::OndemandscanningV1beta1::UpgradeDistribution::Representation
693
+
694
+ property :package, as: 'package'
695
+ property :parsed_version, as: 'parsedVersion', class: Google::Apis::OndemandscanningV1beta1::Version, decorator: Google::Apis::OndemandscanningV1beta1::Version::Representation
696
+
697
+ property :windows_update, as: 'windowsUpdate', class: Google::Apis::OndemandscanningV1beta1::WindowsUpdate, decorator: Google::Apis::OndemandscanningV1beta1::WindowsUpdate::Representation
698
+
699
+ end
700
+ end
701
+
702
+ class Version
703
+ # @private
704
+ class Representation < Google::Apis::Core::JsonRepresentation
705
+ property :epoch, as: 'epoch'
706
+ property :full_name, as: 'fullName'
707
+ property :inclusive, as: 'inclusive'
708
+ property :kind, as: 'kind'
709
+ property :name, as: 'name'
710
+ property :revision, as: 'revision'
711
+ end
712
+ end
713
+
714
+ class VulnerabilityOccurrence
715
+ # @private
716
+ class Representation < Google::Apis::Core::JsonRepresentation
717
+ property :cvss_score, as: 'cvssScore'
718
+ property :effective_severity, as: 'effectiveSeverity'
719
+ property :fix_available, as: 'fixAvailable'
720
+ property :long_description, as: 'longDescription'
721
+ collection :package_issue, as: 'packageIssue', class: Google::Apis::OndemandscanningV1beta1::PackageIssue, decorator: Google::Apis::OndemandscanningV1beta1::PackageIssue::Representation
722
+
723
+ collection :related_urls, as: 'relatedUrls', class: Google::Apis::OndemandscanningV1beta1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1beta1::RelatedUrl::Representation
724
+
725
+ property :severity, as: 'severity'
726
+ property :short_description, as: 'shortDescription'
727
+ property :type, as: 'type'
728
+ end
729
+ end
730
+
731
+ class WindowsUpdate
732
+ # @private
733
+ class Representation < Google::Apis::Core::JsonRepresentation
734
+ collection :categories, as: 'categories', class: Google::Apis::OndemandscanningV1beta1::Category, decorator: Google::Apis::OndemandscanningV1beta1::Category::Representation
735
+
736
+ property :description, as: 'description'
737
+ property :identity, as: 'identity', class: Google::Apis::OndemandscanningV1beta1::Identity, decorator: Google::Apis::OndemandscanningV1beta1::Identity::Representation
738
+
739
+ collection :kb_article_ids, as: 'kbArticleIds'
740
+ property :last_published_timestamp, as: 'lastPublishedTimestamp'
741
+ property :support_url, as: 'supportUrl'
742
+ property :title, as: 'title'
743
+ end
744
+ end
745
+ end
746
+ end
747
+ end