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