google-apis-containeranalysis_v1 0.30.0 → 0.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/containeranalysis_v1/classes.rb +516 -0
- data/lib/google/apis/containeranalysis_v1/gem_version.rb +2 -2
- data/lib/google/apis/containeranalysis_v1/representations.rb +224 -0
- data/lib/google/apis/containeranalysis_v1/service.rb +34 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58246475a8729e12cac96f1740cc5c09af1b92f9796fe34ec41dae46d82d48a2
|
4
|
+
data.tar.gz: 0b7f520ef609ac0f9d322a91240340efc1e73221c0b409bd44c5d76959e9afb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7713410cbf9399f3fe2b8209772a60ea4ae9620983c7a239f07340461473b288f17fcb6c3f66146b029612c454e3baf6e65d433786f4e1080571fe2af018b6f
|
7
|
+
data.tar.gz: a9e3400879f369ad3b9043d541c597b96b0d45a28e243dcccc9020606a36abeff51b70757478e15871c8049c23a963bf0dc7db0e3ab2ec0cd3a75da9a580bbf7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-containeranalysis_v1
|
2
2
|
|
3
|
+
### v0.32.0 (2023-04-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230414
|
6
|
+
|
7
|
+
### v0.31.0 (2023-03-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230317
|
10
|
+
|
3
11
|
### v0.30.0 (2023-03-19)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230310
|
@@ -104,6 +104,74 @@ module Google
|
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
+
# Assessment provides all information that is related to a single vulnerability
|
108
|
+
# for this product.
|
109
|
+
class Assessment
|
110
|
+
include Google::Apis::Core::Hashable
|
111
|
+
|
112
|
+
# Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking
|
113
|
+
# number for the vulnerability.
|
114
|
+
# Corresponds to the JSON property `cve`
|
115
|
+
# @return [String]
|
116
|
+
attr_accessor :cve
|
117
|
+
|
118
|
+
# Contains information about the impact of this vulnerability, this will change
|
119
|
+
# with time.
|
120
|
+
# Corresponds to the JSON property `impacts`
|
121
|
+
# @return [Array<String>]
|
122
|
+
attr_accessor :impacts
|
123
|
+
|
124
|
+
# Justification provides the justification when the state of the assessment if
|
125
|
+
# NOT_AFFECTED.
|
126
|
+
# Corresponds to the JSON property `justification`
|
127
|
+
# @return [Google::Apis::ContaineranalysisV1::Justification]
|
128
|
+
attr_accessor :justification
|
129
|
+
|
130
|
+
# A detailed description of this Vex.
|
131
|
+
# Corresponds to the JSON property `longDescription`
|
132
|
+
# @return [String]
|
133
|
+
attr_accessor :long_description
|
134
|
+
|
135
|
+
# Holds a list of references associated with this vulnerability item and
|
136
|
+
# assessment. These uris have additional information about the vulnerability and
|
137
|
+
# the assessment itself. E.g. Link to a document which details how this
|
138
|
+
# assessment concluded the state of this vulnerability.
|
139
|
+
# Corresponds to the JSON property `relatedUris`
|
140
|
+
# @return [Array<Google::Apis::ContaineranalysisV1::RelatedUrl>]
|
141
|
+
attr_accessor :related_uris
|
142
|
+
|
143
|
+
# Specifies details on how to handle (and presumably, fix) a vulnerability.
|
144
|
+
# Corresponds to the JSON property `remediations`
|
145
|
+
# @return [Array<Google::Apis::ContaineranalysisV1::Remediation>]
|
146
|
+
attr_accessor :remediations
|
147
|
+
|
148
|
+
# A one sentence description of this Vex.
|
149
|
+
# Corresponds to the JSON property `shortDescription`
|
150
|
+
# @return [String]
|
151
|
+
attr_accessor :short_description
|
152
|
+
|
153
|
+
# Provides the state of this Vulnerability assessment.
|
154
|
+
# Corresponds to the JSON property `state`
|
155
|
+
# @return [String]
|
156
|
+
attr_accessor :state
|
157
|
+
|
158
|
+
def initialize(**args)
|
159
|
+
update!(**args)
|
160
|
+
end
|
161
|
+
|
162
|
+
# Update properties of this object
|
163
|
+
def update!(**args)
|
164
|
+
@cve = args[:cve] if args.key?(:cve)
|
165
|
+
@impacts = args[:impacts] if args.key?(:impacts)
|
166
|
+
@justification = args[:justification] if args.key?(:justification)
|
167
|
+
@long_description = args[:long_description] if args.key?(:long_description)
|
168
|
+
@related_uris = args[:related_uris] if args.key?(:related_uris)
|
169
|
+
@remediations = args[:remediations] if args.key?(:remediations)
|
170
|
+
@short_description = args[:short_description] if args.key?(:short_description)
|
171
|
+
@state = args[:state] if args.key?(:state)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
107
175
|
# Note kind that represents a logical attestation "role" or "authority". For
|
108
176
|
# example, an organization might have one `Authority` for "QA" and one for "
|
109
177
|
# build". This note is intended to act strictly as a grouping mechanism for the
|
@@ -1225,6 +1293,15 @@ module Google
|
|
1225
1293
|
# @return [Array<Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact>]
|
1226
1294
|
attr_accessor :maven_artifacts
|
1227
1295
|
|
1296
|
+
# A list of npm packages to be uploaded to Artifact Registry upon successful
|
1297
|
+
# completion of all build steps. Npm packages in the specified paths will be
|
1298
|
+
# uploaded to the specified Artifact Registry repository using the builder
|
1299
|
+
# service account's credentials. If any packages fail to be pushed, the build is
|
1300
|
+
# marked FAILURE.
|
1301
|
+
# Corresponds to the JSON property `npmPackages`
|
1302
|
+
# @return [Array<Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage>]
|
1303
|
+
attr_accessor :npm_packages
|
1304
|
+
|
1228
1305
|
# Files in the workspace to upload to Cloud Storage upon successful completion
|
1229
1306
|
# of all build steps.
|
1230
1307
|
# Corresponds to the JSON property `objects`
|
@@ -1247,6 +1324,7 @@ module Google
|
|
1247
1324
|
def update!(**args)
|
1248
1325
|
@images = args[:images] if args.key?(:images)
|
1249
1326
|
@maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
|
1327
|
+
@npm_packages = args[:npm_packages] if args.key?(:npm_packages)
|
1250
1328
|
@objects = args[:objects] if args.key?(:objects)
|
1251
1329
|
@python_packages = args[:python_packages] if args.key?(:python_packages)
|
1252
1330
|
end
|
@@ -1336,6 +1414,34 @@ module Google
|
|
1336
1414
|
end
|
1337
1415
|
end
|
1338
1416
|
|
1417
|
+
# Npm package to upload to Artifact Registry upon successful completion of all
|
1418
|
+
# build steps.
|
1419
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage
|
1420
|
+
include Google::Apis::Core::Hashable
|
1421
|
+
|
1422
|
+
# Path to the package.json. e.g. workspace/path/to/package
|
1423
|
+
# Corresponds to the JSON property `packagePath`
|
1424
|
+
# @return [String]
|
1425
|
+
attr_accessor :package_path
|
1426
|
+
|
1427
|
+
# Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$
|
1428
|
+
# PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be
|
1429
|
+
# zipped and uploaded to Artifact Registry with this location as a prefix.
|
1430
|
+
# Corresponds to the JSON property `repository`
|
1431
|
+
# @return [String]
|
1432
|
+
attr_accessor :repository
|
1433
|
+
|
1434
|
+
def initialize(**args)
|
1435
|
+
update!(**args)
|
1436
|
+
end
|
1437
|
+
|
1438
|
+
# Update properties of this object
|
1439
|
+
def update!(**args)
|
1440
|
+
@package_path = args[:package_path] if args.key?(:package_path)
|
1441
|
+
@repository = args[:repository] if args.key?(:repository)
|
1442
|
+
end
|
1443
|
+
end
|
1444
|
+
|
1339
1445
|
# Python package to upload to Artifact Registry upon successful completion of
|
1340
1446
|
# all build steps. A package can encapsulate multiple objects to be uploaded to
|
1341
1447
|
# a single repository.
|
@@ -2028,6 +2134,46 @@ module Google
|
|
2028
2134
|
end
|
2029
2135
|
end
|
2030
2136
|
|
2137
|
+
# Location of the source in any accessible Git repository.
|
2138
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource
|
2139
|
+
include Google::Apis::Core::Hashable
|
2140
|
+
|
2141
|
+
# Directory, relative to the source root, in which to run the build. This must
|
2142
|
+
# be a relative path. If a step's `dir` is specified and is an absolute path,
|
2143
|
+
# this value is ignored for that step's execution.
|
2144
|
+
# Corresponds to the JSON property `dir`
|
2145
|
+
# @return [String]
|
2146
|
+
attr_accessor :dir
|
2147
|
+
|
2148
|
+
# The revision to fetch from the Git repository such as a branch, a tag, a
|
2149
|
+
# commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision
|
2150
|
+
# from the Git repository; therefore make sure that the string you provide for `
|
2151
|
+
# revision` is parsable by the command. For information on string values
|
2152
|
+
# accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#
|
2153
|
+
# _specifying_revisions. For information on `git fetch`, see https://git-scm.com/
|
2154
|
+
# docs/git-fetch.
|
2155
|
+
# Corresponds to the JSON property `revision`
|
2156
|
+
# @return [String]
|
2157
|
+
attr_accessor :revision
|
2158
|
+
|
2159
|
+
# Location of the Git repo to build. This will be used as a `git remote`, see
|
2160
|
+
# https://git-scm.com/docs/git-remote.
|
2161
|
+
# Corresponds to the JSON property `url`
|
2162
|
+
# @return [String]
|
2163
|
+
attr_accessor :url
|
2164
|
+
|
2165
|
+
def initialize(**args)
|
2166
|
+
update!(**args)
|
2167
|
+
end
|
2168
|
+
|
2169
|
+
# Update properties of this object
|
2170
|
+
def update!(**args)
|
2171
|
+
@dir = args[:dir] if args.key?(:dir)
|
2172
|
+
@revision = args[:revision] if args.key?(:revision)
|
2173
|
+
@url = args[:url] if args.key?(:url)
|
2174
|
+
end
|
2175
|
+
end
|
2176
|
+
|
2031
2177
|
# Container message for hash values.
|
2032
2178
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1Hash
|
2033
2179
|
include Google::Apis::Core::Hashable
|
@@ -2192,6 +2338,11 @@ module Google
|
|
2192
2338
|
# @return [Array<Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact>]
|
2193
2339
|
attr_accessor :maven_artifacts
|
2194
2340
|
|
2341
|
+
# Npm packages uploaded to Artifact Registry at the end of the build.
|
2342
|
+
# Corresponds to the JSON property `npmPackages`
|
2343
|
+
# @return [Array<Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage>]
|
2344
|
+
attr_accessor :npm_packages
|
2345
|
+
|
2195
2346
|
# Number of non-container artifacts uploaded to Cloud Storage. Only populated
|
2196
2347
|
# when artifacts are uploaded to Cloud Storage.
|
2197
2348
|
# Corresponds to the JSON property `numArtifacts`
|
@@ -2215,6 +2366,7 @@ module Google
|
|
2215
2366
|
@build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs)
|
2216
2367
|
@images = args[:images] if args.key?(:images)
|
2217
2368
|
@maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
|
2369
|
+
@npm_packages = args[:npm_packages] if args.key?(:npm_packages)
|
2218
2370
|
@num_artifacts = args[:num_artifacts] if args.key?(:num_artifacts)
|
2219
2371
|
@python_packages = args[:python_packages] if args.key?(:python_packages)
|
2220
2372
|
end
|
@@ -2308,6 +2460,11 @@ module Google
|
|
2308
2460
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1Source
|
2309
2461
|
include Google::Apis::Core::Hashable
|
2310
2462
|
|
2463
|
+
# Location of the source in any accessible Git repository.
|
2464
|
+
# Corresponds to the JSON property `gitSource`
|
2465
|
+
# @return [Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource]
|
2466
|
+
attr_accessor :git_source
|
2467
|
+
|
2311
2468
|
# Location of the source in a Google Cloud Source Repository.
|
2312
2469
|
# Corresponds to the JSON property `repoSource`
|
2313
2470
|
# @return [Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource]
|
@@ -2331,6 +2488,7 @@ module Google
|
|
2331
2488
|
|
2332
2489
|
# Update properties of this object
|
2333
2490
|
def update!(**args)
|
2491
|
+
@git_source = args[:git_source] if args.key?(:git_source)
|
2334
2492
|
@repo_source = args[:repo_source] if args.key?(:repo_source)
|
2335
2493
|
@storage_source = args[:storage_source] if args.key?(:storage_source)
|
2336
2494
|
@storage_source_manifest = args[:storage_source_manifest] if args.key?(:storage_source_manifest)
|
@@ -2512,6 +2670,38 @@ module Google
|
|
2512
2670
|
end
|
2513
2671
|
end
|
2514
2672
|
|
2673
|
+
# An npm package uploaded to Artifact Registry using the NpmPackage directive.
|
2674
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage
|
2675
|
+
include Google::Apis::Core::Hashable
|
2676
|
+
|
2677
|
+
# Container message for hashes of byte content of files, used in
|
2678
|
+
# SourceProvenance messages to verify integrity of source input to the build.
|
2679
|
+
# Corresponds to the JSON property `fileHashes`
|
2680
|
+
# @return [Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes]
|
2681
|
+
attr_accessor :file_hashes
|
2682
|
+
|
2683
|
+
# Start and end times for a build execution phase.
|
2684
|
+
# Corresponds to the JSON property `pushTiming`
|
2685
|
+
# @return [Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan]
|
2686
|
+
attr_accessor :push_timing
|
2687
|
+
|
2688
|
+
# URI of the uploaded npm package.
|
2689
|
+
# Corresponds to the JSON property `uri`
|
2690
|
+
# @return [String]
|
2691
|
+
attr_accessor :uri
|
2692
|
+
|
2693
|
+
def initialize(**args)
|
2694
|
+
update!(**args)
|
2695
|
+
end
|
2696
|
+
|
2697
|
+
# Update properties of this object
|
2698
|
+
def update!(**args)
|
2699
|
+
@file_hashes = args[:file_hashes] if args.key?(:file_hashes)
|
2700
|
+
@push_timing = args[:push_timing] if args.key?(:push_timing)
|
2701
|
+
@uri = args[:uri] if args.key?(:uri)
|
2702
|
+
end
|
2703
|
+
end
|
2704
|
+
|
2515
2705
|
# Artifact uploaded using the PythonPackage directive.
|
2516
2706
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage
|
2517
2707
|
include Google::Apis::Core::Hashable
|
@@ -3224,6 +3414,21 @@ module Google
|
|
3224
3414
|
end
|
3225
3415
|
end
|
3226
3416
|
|
3417
|
+
# GeneratePackagesSummaryRequest is the request body for the
|
3418
|
+
# GeneratePackagesSummary API method. It just takes a single name argument,
|
3419
|
+
# referring to the resource.
|
3420
|
+
class GeneratePackagesSummaryRequest
|
3421
|
+
include Google::Apis::Core::Hashable
|
3422
|
+
|
3423
|
+
def initialize(**args)
|
3424
|
+
update!(**args)
|
3425
|
+
end
|
3426
|
+
|
3427
|
+
# Update properties of this object
|
3428
|
+
def update!(**args)
|
3429
|
+
end
|
3430
|
+
end
|
3431
|
+
|
3227
3432
|
# A SourceContext referring to a Gerrit project.
|
3228
3433
|
class GerritSourceContext
|
3229
3434
|
include Google::Apis::Core::Hashable
|
@@ -3808,6 +4013,32 @@ module Google
|
|
3808
4013
|
end
|
3809
4014
|
end
|
3810
4015
|
|
4016
|
+
# Justification provides the justification when the state of the assessment if
|
4017
|
+
# NOT_AFFECTED.
|
4018
|
+
class Justification
|
4019
|
+
include Google::Apis::Core::Hashable
|
4020
|
+
|
4021
|
+
# Additional details on why this justification was chosen.
|
4022
|
+
# Corresponds to the JSON property `details`
|
4023
|
+
# @return [String]
|
4024
|
+
attr_accessor :details
|
4025
|
+
|
4026
|
+
# The justification type for this vulnerability.
|
4027
|
+
# Corresponds to the JSON property `justificationType`
|
4028
|
+
# @return [String]
|
4029
|
+
attr_accessor :justification_type
|
4030
|
+
|
4031
|
+
def initialize(**args)
|
4032
|
+
update!(**args)
|
4033
|
+
end
|
4034
|
+
|
4035
|
+
# Update properties of this object
|
4036
|
+
def update!(**args)
|
4037
|
+
@details = args[:details] if args.key?(:details)
|
4038
|
+
@justification_type = args[:justification_type] if args.key?(:justification_type)
|
4039
|
+
end
|
4040
|
+
end
|
4041
|
+
|
3811
4042
|
#
|
3812
4043
|
class Jwt
|
3813
4044
|
include Google::Apis::Core::Hashable
|
@@ -3909,6 +4140,33 @@ module Google
|
|
3909
4140
|
end
|
3910
4141
|
end
|
3911
4142
|
|
4143
|
+
# Per license count
|
4144
|
+
class LicensesSummary
|
4145
|
+
include Google::Apis::Core::Hashable
|
4146
|
+
|
4147
|
+
# The number of fixable vulnerabilities associated with this resource.
|
4148
|
+
# Corresponds to the JSON property `count`
|
4149
|
+
# @return [Fixnum]
|
4150
|
+
attr_accessor :count
|
4151
|
+
|
4152
|
+
# The license of the package. Note that the format of this value is not
|
4153
|
+
# guaranteed. It may be nil, an empty string, a boolean value (A | B), a
|
4154
|
+
# differently formed boolean value (A OR B), etc...
|
4155
|
+
# Corresponds to the JSON property `license`
|
4156
|
+
# @return [String]
|
4157
|
+
attr_accessor :license
|
4158
|
+
|
4159
|
+
def initialize(**args)
|
4160
|
+
update!(**args)
|
4161
|
+
end
|
4162
|
+
|
4163
|
+
# Update properties of this object
|
4164
|
+
def update!(**args)
|
4165
|
+
@count = args[:count] if args.key?(:count)
|
4166
|
+
@license = args[:license] if args.key?(:license)
|
4167
|
+
end
|
4168
|
+
end
|
4169
|
+
|
3912
4170
|
# Response for listing occurrences for a note.
|
3913
4171
|
class ListNoteOccurrencesResponse
|
3914
4172
|
include Google::Apis::Core::Hashable
|
@@ -4243,6 +4501,12 @@ module Google
|
|
4243
4501
|
# @return [Google::Apis::ContaineranalysisV1::VulnerabilityNote]
|
4244
4502
|
attr_accessor :vulnerability
|
4245
4503
|
|
4504
|
+
# A single VulnerabilityAssessmentNote represents one particular product's
|
4505
|
+
# vulnerability assessment for one CVE.
|
4506
|
+
# Corresponds to the JSON property `vulnerabilityAssessment`
|
4507
|
+
# @return [Google::Apis::ContaineranalysisV1::VulnerabilityAssessmentNote]
|
4508
|
+
attr_accessor :vulnerability_assessment
|
4509
|
+
|
4246
4510
|
def initialize(**args)
|
4247
4511
|
update!(**args)
|
4248
4512
|
end
|
@@ -4268,6 +4532,7 @@ module Google
|
|
4268
4532
|
@update_time = args[:update_time] if args.key?(:update_time)
|
4269
4533
|
@upgrade = args[:upgrade] if args.key?(:upgrade)
|
4270
4534
|
@vulnerability = args[:vulnerability] if args.key?(:vulnerability)
|
4535
|
+
@vulnerability_assessment = args[:vulnerability_assessment] if args.key?(:vulnerability_assessment)
|
4271
4536
|
end
|
4272
4537
|
end
|
4273
4538
|
|
@@ -4636,6 +4901,31 @@ module Google
|
|
4636
4901
|
end
|
4637
4902
|
end
|
4638
4903
|
|
4904
|
+
# A summary of the packages found within the given resource.
|
4905
|
+
class PackagesSummaryResponse
|
4906
|
+
include Google::Apis::Core::Hashable
|
4907
|
+
|
4908
|
+
# A listing by license name of each of the licenses and their counts.
|
4909
|
+
# Corresponds to the JSON property `licensesSummary`
|
4910
|
+
# @return [Array<Google::Apis::ContaineranalysisV1::LicensesSummary>]
|
4911
|
+
attr_accessor :licenses_summary
|
4912
|
+
|
4913
|
+
# The unique URL of the image or the container for which this summary applies.
|
4914
|
+
# Corresponds to the JSON property `resourceUrl`
|
4915
|
+
# @return [String]
|
4916
|
+
attr_accessor :resource_url
|
4917
|
+
|
4918
|
+
def initialize(**args)
|
4919
|
+
update!(**args)
|
4920
|
+
end
|
4921
|
+
|
4922
|
+
# Update properties of this object
|
4923
|
+
def update!(**args)
|
4924
|
+
@licenses_summary = args[:licenses_summary] if args.key?(:licenses_summary)
|
4925
|
+
@resource_url = args[:resource_url] if args.key?(:resource_url)
|
4926
|
+
end
|
4927
|
+
end
|
4928
|
+
|
4639
4929
|
# An Identity and Access Management (IAM) policy, which specifies access
|
4640
4930
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
4641
4931
|
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
@@ -4725,6 +5015,40 @@ module Google
|
|
4725
5015
|
end
|
4726
5016
|
end
|
4727
5017
|
|
5018
|
+
# Product contains information about a product and how to uniquely identify it.
|
5019
|
+
class Product
|
5020
|
+
include Google::Apis::Core::Hashable
|
5021
|
+
|
5022
|
+
# Contains a URI which is vendor-specific. Example: The artifact repository URL
|
5023
|
+
# of an image.
|
5024
|
+
# Corresponds to the JSON property `genericUri`
|
5025
|
+
# @return [String]
|
5026
|
+
attr_accessor :generic_uri
|
5027
|
+
|
5028
|
+
# Token that identifies a product so that it can be referred to from other parts
|
5029
|
+
# in the document. There is no predefined format as long as it uniquely
|
5030
|
+
# identifies a group in the context of the current document.
|
5031
|
+
# Corresponds to the JSON property `id`
|
5032
|
+
# @return [String]
|
5033
|
+
attr_accessor :id
|
5034
|
+
|
5035
|
+
# Name of the product.
|
5036
|
+
# Corresponds to the JSON property `name`
|
5037
|
+
# @return [String]
|
5038
|
+
attr_accessor :name
|
5039
|
+
|
5040
|
+
def initialize(**args)
|
5041
|
+
update!(**args)
|
5042
|
+
end
|
5043
|
+
|
5044
|
+
# Update properties of this object
|
5045
|
+
def update!(**args)
|
5046
|
+
@generic_uri = args[:generic_uri] if args.key?(:generic_uri)
|
5047
|
+
@id = args[:id] if args.key?(:id)
|
5048
|
+
@name = args[:name] if args.key?(:name)
|
5049
|
+
end
|
5050
|
+
end
|
5051
|
+
|
4728
5052
|
# Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31)
|
4729
5053
|
# and a repo name within that project.
|
4730
5054
|
class ProjectRepoId
|
@@ -4751,6 +5075,41 @@ module Google
|
|
4751
5075
|
end
|
4752
5076
|
end
|
4753
5077
|
|
5078
|
+
# Publisher contains information about the publisher of this Note.
|
5079
|
+
class Publisher
|
5080
|
+
include Google::Apis::Core::Hashable
|
5081
|
+
|
5082
|
+
# Provides information about the authority of the issuing party to release the
|
5083
|
+
# document, in particular, the party's constituency and responsibilities or
|
5084
|
+
# other obligations.
|
5085
|
+
# Corresponds to the JSON property `issuingAuthority`
|
5086
|
+
# @return [String]
|
5087
|
+
attr_accessor :issuing_authority
|
5088
|
+
|
5089
|
+
# Name of the publisher. Examples: 'Google', 'Google Cloud Platform'.
|
5090
|
+
# Corresponds to the JSON property `name`
|
5091
|
+
# @return [String]
|
5092
|
+
attr_accessor :name
|
5093
|
+
|
5094
|
+
# The context or namespace. Contains a URL which is under control of the issuing
|
5095
|
+
# party and can be used as a globally unique identifier for that issuing party.
|
5096
|
+
# Example: https://csaf.io
|
5097
|
+
# Corresponds to the JSON property `publisherNamespace`
|
5098
|
+
# @return [String]
|
5099
|
+
attr_accessor :publisher_namespace
|
5100
|
+
|
5101
|
+
def initialize(**args)
|
5102
|
+
update!(**args)
|
5103
|
+
end
|
5104
|
+
|
5105
|
+
# Update properties of this object
|
5106
|
+
def update!(**args)
|
5107
|
+
@issuing_authority = args[:issuing_authority] if args.key?(:issuing_authority)
|
5108
|
+
@name = args[:name] if args.key?(:name)
|
5109
|
+
@publisher_namespace = args[:publisher_namespace] if args.key?(:publisher_namespace)
|
5110
|
+
end
|
5111
|
+
end
|
5112
|
+
|
4754
5113
|
# Steps taken to build the artifact. For a TaskRun, typically each container
|
4755
5114
|
# corresponds to one step in the recipe.
|
4756
5115
|
class Recipe
|
@@ -4837,6 +5196,37 @@ module Google
|
|
4837
5196
|
end
|
4838
5197
|
end
|
4839
5198
|
|
5199
|
+
# Specifies details on how to handle (and presumably, fix) a vulnerability.
|
5200
|
+
class Remediation
|
5201
|
+
include Google::Apis::Core::Hashable
|
5202
|
+
|
5203
|
+
# Contains a comprehensive human-readable discussion of the remediation.
|
5204
|
+
# Corresponds to the JSON property `details`
|
5205
|
+
# @return [String]
|
5206
|
+
attr_accessor :details
|
5207
|
+
|
5208
|
+
# The type of remediation that can be applied.
|
5209
|
+
# Corresponds to the JSON property `remediationType`
|
5210
|
+
# @return [String]
|
5211
|
+
attr_accessor :remediation_type
|
5212
|
+
|
5213
|
+
# Metadata for any related URL information.
|
5214
|
+
# Corresponds to the JSON property `remediationUri`
|
5215
|
+
# @return [Google::Apis::ContaineranalysisV1::RelatedUrl]
|
5216
|
+
attr_accessor :remediation_uri
|
5217
|
+
|
5218
|
+
def initialize(**args)
|
5219
|
+
update!(**args)
|
5220
|
+
end
|
5221
|
+
|
5222
|
+
# Update properties of this object
|
5223
|
+
def update!(**args)
|
5224
|
+
@details = args[:details] if args.key?(:details)
|
5225
|
+
@remediation_type = args[:remediation_type] if args.key?(:remediation_type)
|
5226
|
+
@remediation_uri = args[:remediation_uri] if args.key?(:remediation_uri)
|
5227
|
+
end
|
5228
|
+
end
|
5229
|
+
|
4840
5230
|
# A unique identifier for a Cloud Repo.
|
4841
5231
|
class RepoId
|
4842
5232
|
include Google::Apis::Core::Hashable
|
@@ -5620,6 +6010,67 @@ module Google
|
|
5620
6010
|
end
|
5621
6011
|
end
|
5622
6012
|
|
6013
|
+
# VexAssessment provides all publisher provided Vex information that is related
|
6014
|
+
# to this vulnerability.
|
6015
|
+
class VexAssessment
|
6016
|
+
include Google::Apis::Core::Hashable
|
6017
|
+
|
6018
|
+
# Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking
|
6019
|
+
# number for the vulnerability.
|
6020
|
+
# Corresponds to the JSON property `cve`
|
6021
|
+
# @return [String]
|
6022
|
+
attr_accessor :cve
|
6023
|
+
|
6024
|
+
# Contains information about the impact of this vulnerability, this will change
|
6025
|
+
# with time.
|
6026
|
+
# Corresponds to the JSON property `impacts`
|
6027
|
+
# @return [Array<String>]
|
6028
|
+
attr_accessor :impacts
|
6029
|
+
|
6030
|
+
# Justification provides the justification when the state of the assessment if
|
6031
|
+
# NOT_AFFECTED.
|
6032
|
+
# Corresponds to the JSON property `justification`
|
6033
|
+
# @return [Google::Apis::ContaineranalysisV1::Justification]
|
6034
|
+
attr_accessor :justification
|
6035
|
+
|
6036
|
+
# The VulnerabilityAssessment note from which this VexAssessment was generated.
|
6037
|
+
# This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`.
|
6038
|
+
# Corresponds to the JSON property `noteName`
|
6039
|
+
# @return [String]
|
6040
|
+
attr_accessor :note_name
|
6041
|
+
|
6042
|
+
# Holds a list of references associated with this vulnerability item and
|
6043
|
+
# assessment.
|
6044
|
+
# Corresponds to the JSON property `relatedUris`
|
6045
|
+
# @return [Array<Google::Apis::ContaineranalysisV1::RelatedUrl>]
|
6046
|
+
attr_accessor :related_uris
|
6047
|
+
|
6048
|
+
# Specifies details on how to handle (and presumably, fix) a vulnerability.
|
6049
|
+
# Corresponds to the JSON property `remediations`
|
6050
|
+
# @return [Array<Google::Apis::ContaineranalysisV1::Remediation>]
|
6051
|
+
attr_accessor :remediations
|
6052
|
+
|
6053
|
+
# Provides the state of this Vulnerability assessment.
|
6054
|
+
# Corresponds to the JSON property `state`
|
6055
|
+
# @return [String]
|
6056
|
+
attr_accessor :state
|
6057
|
+
|
6058
|
+
def initialize(**args)
|
6059
|
+
update!(**args)
|
6060
|
+
end
|
6061
|
+
|
6062
|
+
# Update properties of this object
|
6063
|
+
def update!(**args)
|
6064
|
+
@cve = args[:cve] if args.key?(:cve)
|
6065
|
+
@impacts = args[:impacts] if args.key?(:impacts)
|
6066
|
+
@justification = args[:justification] if args.key?(:justification)
|
6067
|
+
@note_name = args[:note_name] if args.key?(:note_name)
|
6068
|
+
@related_uris = args[:related_uris] if args.key?(:related_uris)
|
6069
|
+
@remediations = args[:remediations] if args.key?(:remediations)
|
6070
|
+
@state = args[:state] if args.key?(:state)
|
6071
|
+
end
|
6072
|
+
end
|
6073
|
+
|
5623
6074
|
# Volume describes a Docker container volume which is mounted into build steps
|
5624
6075
|
# in order to persist files across build step execution. Next ID: 3
|
5625
6076
|
class Volume
|
@@ -5650,6 +6101,64 @@ module Google
|
|
5650
6101
|
end
|
5651
6102
|
end
|
5652
6103
|
|
6104
|
+
# A single VulnerabilityAssessmentNote represents one particular product's
|
6105
|
+
# vulnerability assessment for one CVE.
|
6106
|
+
class VulnerabilityAssessmentNote
|
6107
|
+
include Google::Apis::Core::Hashable
|
6108
|
+
|
6109
|
+
# Assessment provides all information that is related to a single vulnerability
|
6110
|
+
# for this product.
|
6111
|
+
# Corresponds to the JSON property `assessment`
|
6112
|
+
# @return [Google::Apis::ContaineranalysisV1::Assessment]
|
6113
|
+
attr_accessor :assessment
|
6114
|
+
|
6115
|
+
# Identifies the language used by this document, corresponding to IETF BCP 47 /
|
6116
|
+
# RFC 5646.
|
6117
|
+
# Corresponds to the JSON property `languageCode`
|
6118
|
+
# @return [String]
|
6119
|
+
attr_accessor :language_code
|
6120
|
+
|
6121
|
+
# A detailed description of this Vex.
|
6122
|
+
# Corresponds to the JSON property `longDescription`
|
6123
|
+
# @return [String]
|
6124
|
+
attr_accessor :long_description
|
6125
|
+
|
6126
|
+
# Product contains information about a product and how to uniquely identify it.
|
6127
|
+
# Corresponds to the JSON property `product`
|
6128
|
+
# @return [Google::Apis::ContaineranalysisV1::Product]
|
6129
|
+
attr_accessor :product
|
6130
|
+
|
6131
|
+
# Publisher contains information about the publisher of this Note.
|
6132
|
+
# Corresponds to the JSON property `publisher`
|
6133
|
+
# @return [Google::Apis::ContaineranalysisV1::Publisher]
|
6134
|
+
attr_accessor :publisher
|
6135
|
+
|
6136
|
+
# A one sentence description of this Vex.
|
6137
|
+
# Corresponds to the JSON property `shortDescription`
|
6138
|
+
# @return [String]
|
6139
|
+
attr_accessor :short_description
|
6140
|
+
|
6141
|
+
# The title of the note. E.g. `Vex-Debian-11.4`
|
6142
|
+
# Corresponds to the JSON property `title`
|
6143
|
+
# @return [String]
|
6144
|
+
attr_accessor :title
|
6145
|
+
|
6146
|
+
def initialize(**args)
|
6147
|
+
update!(**args)
|
6148
|
+
end
|
6149
|
+
|
6150
|
+
# Update properties of this object
|
6151
|
+
def update!(**args)
|
6152
|
+
@assessment = args[:assessment] if args.key?(:assessment)
|
6153
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
6154
|
+
@long_description = args[:long_description] if args.key?(:long_description)
|
6155
|
+
@product = args[:product] if args.key?(:product)
|
6156
|
+
@publisher = args[:publisher] if args.key?(:publisher)
|
6157
|
+
@short_description = args[:short_description] if args.key?(:short_description)
|
6158
|
+
@title = args[:title] if args.key?(:title)
|
6159
|
+
end
|
6160
|
+
end
|
6161
|
+
|
5653
6162
|
# A security vulnerability that can be found in resources.
|
5654
6163
|
class VulnerabilityNote
|
5655
6164
|
include Google::Apis::Core::Hashable
|
@@ -5802,6 +6311,12 @@ module Google
|
|
5802
6311
|
# @return [String]
|
5803
6312
|
attr_accessor :type
|
5804
6313
|
|
6314
|
+
# VexAssessment provides all publisher provided Vex information that is related
|
6315
|
+
# to this vulnerability.
|
6316
|
+
# Corresponds to the JSON property `vexAssessment`
|
6317
|
+
# @return [Google::Apis::ContaineranalysisV1::VexAssessment]
|
6318
|
+
attr_accessor :vex_assessment
|
6319
|
+
|
5805
6320
|
def initialize(**args)
|
5806
6321
|
update!(**args)
|
5807
6322
|
end
|
@@ -5820,6 +6335,7 @@ module Google
|
|
5820
6335
|
@severity = args[:severity] if args.key?(:severity)
|
5821
6336
|
@short_description = args[:short_description] if args.key?(:short_description)
|
5822
6337
|
@type = args[:type] if args.key?(:type)
|
6338
|
+
@vex_assessment = args[:vex_assessment] if args.key?(:vex_assessment)
|
5823
6339
|
end
|
5824
6340
|
end
|
5825
6341
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ContaineranalysisV1
|
18
18
|
# Version of the google-apis-containeranalysis_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.32.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230414"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,6 +40,12 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class Assessment
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
43
49
|
class AttestationNote
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
51
|
|
@@ -202,6 +208,12 @@ module Google
|
|
202
208
|
include Google::Apis::Core::JsonObjectSupport
|
203
209
|
end
|
204
210
|
|
211
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
205
217
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage
|
206
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
219
|
|
@@ -262,6 +274,12 @@ module Google
|
|
262
274
|
include Google::Apis::Core::JsonObjectSupport
|
263
275
|
end
|
264
276
|
|
277
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
265
283
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1Hash
|
266
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
285
|
|
@@ -340,6 +358,12 @@ module Google
|
|
340
358
|
include Google::Apis::Core::JsonObjectSupport
|
341
359
|
end
|
342
360
|
|
361
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
343
367
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage
|
344
368
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
369
|
|
@@ -454,6 +478,12 @@ module Google
|
|
454
478
|
include Google::Apis::Core::JsonObjectSupport
|
455
479
|
end
|
456
480
|
|
481
|
+
class GeneratePackagesSummaryRequest
|
482
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
483
|
+
|
484
|
+
include Google::Apis::Core::JsonObjectSupport
|
485
|
+
end
|
486
|
+
|
457
487
|
class GerritSourceContext
|
458
488
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
489
|
|
@@ -568,6 +598,12 @@ module Google
|
|
568
598
|
include Google::Apis::Core::JsonObjectSupport
|
569
599
|
end
|
570
600
|
|
601
|
+
class Justification
|
602
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
603
|
+
|
604
|
+
include Google::Apis::Core::JsonObjectSupport
|
605
|
+
end
|
606
|
+
|
571
607
|
class Jwt
|
572
608
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
573
609
|
|
@@ -592,6 +628,12 @@ module Google
|
|
592
628
|
include Google::Apis::Core::JsonObjectSupport
|
593
629
|
end
|
594
630
|
|
631
|
+
class LicensesSummary
|
632
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
633
|
+
|
634
|
+
include Google::Apis::Core::JsonObjectSupport
|
635
|
+
end
|
636
|
+
|
595
637
|
class ListNoteOccurrencesResponse
|
596
638
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
597
639
|
|
@@ -664,18 +706,36 @@ module Google
|
|
664
706
|
include Google::Apis::Core::JsonObjectSupport
|
665
707
|
end
|
666
708
|
|
709
|
+
class PackagesSummaryResponse
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
667
715
|
class Policy
|
668
716
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
669
717
|
|
670
718
|
include Google::Apis::Core::JsonObjectSupport
|
671
719
|
end
|
672
720
|
|
721
|
+
class Product
|
722
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
723
|
+
|
724
|
+
include Google::Apis::Core::JsonObjectSupport
|
725
|
+
end
|
726
|
+
|
673
727
|
class ProjectRepoId
|
674
728
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
675
729
|
|
676
730
|
include Google::Apis::Core::JsonObjectSupport
|
677
731
|
end
|
678
732
|
|
733
|
+
class Publisher
|
734
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
735
|
+
|
736
|
+
include Google::Apis::Core::JsonObjectSupport
|
737
|
+
end
|
738
|
+
|
679
739
|
class Recipe
|
680
740
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
681
741
|
|
@@ -688,6 +748,12 @@ module Google
|
|
688
748
|
include Google::Apis::Core::JsonObjectSupport
|
689
749
|
end
|
690
750
|
|
751
|
+
class Remediation
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
753
|
+
|
754
|
+
include Google::Apis::Core::JsonObjectSupport
|
755
|
+
end
|
756
|
+
|
691
757
|
class RepoId
|
692
758
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
693
759
|
|
@@ -808,12 +874,24 @@ module Google
|
|
808
874
|
include Google::Apis::Core::JsonObjectSupport
|
809
875
|
end
|
810
876
|
|
877
|
+
class VexAssessment
|
878
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
879
|
+
|
880
|
+
include Google::Apis::Core::JsonObjectSupport
|
881
|
+
end
|
882
|
+
|
811
883
|
class Volume
|
812
884
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
813
885
|
|
814
886
|
include Google::Apis::Core::JsonObjectSupport
|
815
887
|
end
|
816
888
|
|
889
|
+
class VulnerabilityAssessmentNote
|
890
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
891
|
+
|
892
|
+
include Google::Apis::Core::JsonObjectSupport
|
893
|
+
end
|
894
|
+
|
817
895
|
class VulnerabilityNote
|
818
896
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
819
897
|
|
@@ -868,6 +946,23 @@ module Google
|
|
868
946
|
end
|
869
947
|
end
|
870
948
|
|
949
|
+
class Assessment
|
950
|
+
# @private
|
951
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
952
|
+
property :cve, as: 'cve'
|
953
|
+
collection :impacts, as: 'impacts'
|
954
|
+
property :justification, as: 'justification', class: Google::Apis::ContaineranalysisV1::Justification, decorator: Google::Apis::ContaineranalysisV1::Justification::Representation
|
955
|
+
|
956
|
+
property :long_description, as: 'longDescription'
|
957
|
+
collection :related_uris, as: 'relatedUris', class: Google::Apis::ContaineranalysisV1::RelatedUrl, decorator: Google::Apis::ContaineranalysisV1::RelatedUrl::Representation
|
958
|
+
|
959
|
+
collection :remediations, as: 'remediations', class: Google::Apis::ContaineranalysisV1::Remediation, decorator: Google::Apis::ContaineranalysisV1::Remediation::Representation
|
960
|
+
|
961
|
+
property :short_description, as: 'shortDescription'
|
962
|
+
property :state, as: 'state'
|
963
|
+
end
|
964
|
+
end
|
965
|
+
|
871
966
|
class AttestationNote
|
872
967
|
# @private
|
873
968
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1144,6 +1239,8 @@ module Google
|
|
1144
1239
|
collection :images, as: 'images'
|
1145
1240
|
collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact::Representation
|
1146
1241
|
|
1242
|
+
collection :npm_packages, as: 'npmPackages', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage::Representation
|
1243
|
+
|
1147
1244
|
property :objects, as: 'objects', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects::Representation
|
1148
1245
|
|
1149
1246
|
collection :python_packages, as: 'pythonPackages', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage::Representation
|
@@ -1172,6 +1269,14 @@ module Google
|
|
1172
1269
|
end
|
1173
1270
|
end
|
1174
1271
|
|
1272
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage
|
1273
|
+
# @private
|
1274
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1275
|
+
property :package_path, as: 'packagePath'
|
1276
|
+
property :repository, as: 'repository'
|
1277
|
+
end
|
1278
|
+
end
|
1279
|
+
|
1175
1280
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage
|
1176
1281
|
# @private
|
1177
1282
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1327,6 +1432,15 @@ module Google
|
|
1327
1432
|
end
|
1328
1433
|
end
|
1329
1434
|
|
1435
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource
|
1436
|
+
# @private
|
1437
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1438
|
+
property :dir, as: 'dir'
|
1439
|
+
property :revision, as: 'revision'
|
1440
|
+
property :url, as: 'url'
|
1441
|
+
end
|
1442
|
+
end
|
1443
|
+
|
1330
1444
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1Hash
|
1331
1445
|
# @private
|
1332
1446
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1369,6 +1483,8 @@ module Google
|
|
1369
1483
|
|
1370
1484
|
collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact::Representation
|
1371
1485
|
|
1486
|
+
collection :npm_packages, as: 'npmPackages', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage::Representation
|
1487
|
+
|
1372
1488
|
property :num_artifacts, :numeric_string => true, as: 'numArtifacts'
|
1373
1489
|
collection :python_packages, as: 'pythonPackages', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage::Representation
|
1374
1490
|
|
@@ -1404,6 +1520,8 @@ module Google
|
|
1404
1520
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1Source
|
1405
1521
|
# @private
|
1406
1522
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1523
|
+
property :git_source, as: 'gitSource', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource::Representation
|
1524
|
+
|
1407
1525
|
property :repo_source, as: 'repoSource', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource::Representation
|
1408
1526
|
|
1409
1527
|
property :storage_source, as: 'storageSource', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource::Representation
|
@@ -1464,6 +1582,17 @@ module Google
|
|
1464
1582
|
end
|
1465
1583
|
end
|
1466
1584
|
|
1585
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage
|
1586
|
+
# @private
|
1587
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1588
|
+
property :file_hashes, as: 'fileHashes', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes::Representation
|
1589
|
+
|
1590
|
+
property :push_timing, as: 'pushTiming', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::Representation
|
1591
|
+
|
1592
|
+
property :uri, as: 'uri'
|
1593
|
+
end
|
1594
|
+
end
|
1595
|
+
|
1467
1596
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage
|
1468
1597
|
# @private
|
1469
1598
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1657,6 +1786,12 @@ module Google
|
|
1657
1786
|
end
|
1658
1787
|
end
|
1659
1788
|
|
1789
|
+
class GeneratePackagesSummaryRequest
|
1790
|
+
# @private
|
1791
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1792
|
+
end
|
1793
|
+
end
|
1794
|
+
|
1660
1795
|
class GerritSourceContext
|
1661
1796
|
# @private
|
1662
1797
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1834,6 +1969,14 @@ module Google
|
|
1834
1969
|
end
|
1835
1970
|
end
|
1836
1971
|
|
1972
|
+
class Justification
|
1973
|
+
# @private
|
1974
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1975
|
+
property :details, as: 'details'
|
1976
|
+
property :justification_type, as: 'justificationType'
|
1977
|
+
end
|
1978
|
+
end
|
1979
|
+
|
1837
1980
|
class Jwt
|
1838
1981
|
# @private
|
1839
1982
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1865,6 +2008,14 @@ module Google
|
|
1865
2008
|
end
|
1866
2009
|
end
|
1867
2010
|
|
2011
|
+
class LicensesSummary
|
2012
|
+
# @private
|
2013
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2014
|
+
property :count, :numeric_string => true, as: 'count'
|
2015
|
+
property :license, as: 'license'
|
2016
|
+
end
|
2017
|
+
end
|
2018
|
+
|
1868
2019
|
class ListNoteOccurrencesResponse
|
1869
2020
|
# @private
|
1870
2021
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1964,6 +2115,8 @@ module Google
|
|
1964
2115
|
|
1965
2116
|
property :vulnerability, as: 'vulnerability', class: Google::Apis::ContaineranalysisV1::VulnerabilityNote, decorator: Google::Apis::ContaineranalysisV1::VulnerabilityNote::Representation
|
1966
2117
|
|
2118
|
+
property :vulnerability_assessment, as: 'vulnerabilityAssessment', class: Google::Apis::ContaineranalysisV1::VulnerabilityAssessmentNote, decorator: Google::Apis::ContaineranalysisV1::VulnerabilityAssessmentNote::Representation
|
2119
|
+
|
1967
2120
|
end
|
1968
2121
|
end
|
1969
2122
|
|
@@ -2058,6 +2211,15 @@ module Google
|
|
2058
2211
|
end
|
2059
2212
|
end
|
2060
2213
|
|
2214
|
+
class PackagesSummaryResponse
|
2215
|
+
# @private
|
2216
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2217
|
+
collection :licenses_summary, as: 'licensesSummary', class: Google::Apis::ContaineranalysisV1::LicensesSummary, decorator: Google::Apis::ContaineranalysisV1::LicensesSummary::Representation
|
2218
|
+
|
2219
|
+
property :resource_url, as: 'resourceUrl'
|
2220
|
+
end
|
2221
|
+
end
|
2222
|
+
|
2061
2223
|
class Policy
|
2062
2224
|
# @private
|
2063
2225
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2068,6 +2230,15 @@ module Google
|
|
2068
2230
|
end
|
2069
2231
|
end
|
2070
2232
|
|
2233
|
+
class Product
|
2234
|
+
# @private
|
2235
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2236
|
+
property :generic_uri, as: 'genericUri'
|
2237
|
+
property :id, as: 'id'
|
2238
|
+
property :name, as: 'name'
|
2239
|
+
end
|
2240
|
+
end
|
2241
|
+
|
2071
2242
|
class ProjectRepoId
|
2072
2243
|
# @private
|
2073
2244
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2076,6 +2247,15 @@ module Google
|
|
2076
2247
|
end
|
2077
2248
|
end
|
2078
2249
|
|
2250
|
+
class Publisher
|
2251
|
+
# @private
|
2252
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2253
|
+
property :issuing_authority, as: 'issuingAuthority'
|
2254
|
+
property :name, as: 'name'
|
2255
|
+
property :publisher_namespace, as: 'publisherNamespace'
|
2256
|
+
end
|
2257
|
+
end
|
2258
|
+
|
2079
2259
|
class Recipe
|
2080
2260
|
# @private
|
2081
2261
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2095,6 +2275,16 @@ module Google
|
|
2095
2275
|
end
|
2096
2276
|
end
|
2097
2277
|
|
2278
|
+
class Remediation
|
2279
|
+
# @private
|
2280
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2281
|
+
property :details, as: 'details'
|
2282
|
+
property :remediation_type, as: 'remediationType'
|
2283
|
+
property :remediation_uri, as: 'remediationUri', class: Google::Apis::ContaineranalysisV1::RelatedUrl, decorator: Google::Apis::ContaineranalysisV1::RelatedUrl::Representation
|
2284
|
+
|
2285
|
+
end
|
2286
|
+
end
|
2287
|
+
|
2098
2288
|
class RepoId
|
2099
2289
|
# @private
|
2100
2290
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2302,6 +2492,22 @@ module Google
|
|
2302
2492
|
end
|
2303
2493
|
end
|
2304
2494
|
|
2495
|
+
class VexAssessment
|
2496
|
+
# @private
|
2497
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2498
|
+
property :cve, as: 'cve'
|
2499
|
+
collection :impacts, as: 'impacts'
|
2500
|
+
property :justification, as: 'justification', class: Google::Apis::ContaineranalysisV1::Justification, decorator: Google::Apis::ContaineranalysisV1::Justification::Representation
|
2501
|
+
|
2502
|
+
property :note_name, as: 'noteName'
|
2503
|
+
collection :related_uris, as: 'relatedUris', class: Google::Apis::ContaineranalysisV1::RelatedUrl, decorator: Google::Apis::ContaineranalysisV1::RelatedUrl::Representation
|
2504
|
+
|
2505
|
+
collection :remediations, as: 'remediations', class: Google::Apis::ContaineranalysisV1::Remediation, decorator: Google::Apis::ContaineranalysisV1::Remediation::Representation
|
2506
|
+
|
2507
|
+
property :state, as: 'state'
|
2508
|
+
end
|
2509
|
+
end
|
2510
|
+
|
2305
2511
|
class Volume
|
2306
2512
|
# @private
|
2307
2513
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2310,6 +2516,22 @@ module Google
|
|
2310
2516
|
end
|
2311
2517
|
end
|
2312
2518
|
|
2519
|
+
class VulnerabilityAssessmentNote
|
2520
|
+
# @private
|
2521
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2522
|
+
property :assessment, as: 'assessment', class: Google::Apis::ContaineranalysisV1::Assessment, decorator: Google::Apis::ContaineranalysisV1::Assessment::Representation
|
2523
|
+
|
2524
|
+
property :language_code, as: 'languageCode'
|
2525
|
+
property :long_description, as: 'longDescription'
|
2526
|
+
property :product, as: 'product', class: Google::Apis::ContaineranalysisV1::Product, decorator: Google::Apis::ContaineranalysisV1::Product::Representation
|
2527
|
+
|
2528
|
+
property :publisher, as: 'publisher', class: Google::Apis::ContaineranalysisV1::Publisher, decorator: Google::Apis::ContaineranalysisV1::Publisher::Representation
|
2529
|
+
|
2530
|
+
property :short_description, as: 'shortDescription'
|
2531
|
+
property :title, as: 'title'
|
2532
|
+
end
|
2533
|
+
end
|
2534
|
+
|
2313
2535
|
class VulnerabilityNote
|
2314
2536
|
# @private
|
2315
2537
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2347,6 +2569,8 @@ module Google
|
|
2347
2569
|
property :severity, as: 'severity'
|
2348
2570
|
property :short_description, as: 'shortDescription'
|
2349
2571
|
property :type, as: 'type'
|
2572
|
+
property :vex_assessment, as: 'vexAssessment', class: Google::Apis::ContaineranalysisV1::VexAssessment, decorator: Google::Apis::ContaineranalysisV1::VexAssessment::Representation
|
2573
|
+
|
2350
2574
|
end
|
2351
2575
|
end
|
2352
2576
|
|
@@ -813,6 +813,40 @@ module Google
|
|
813
813
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
814
814
|
execute_or_queue_command(command, &block)
|
815
815
|
end
|
816
|
+
|
817
|
+
# Gets a summary of the packages within a given resource.
|
818
|
+
# @param [String] name
|
819
|
+
# Required. The name of the resource to get a packages summary for in the form
|
820
|
+
# of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.
|
821
|
+
# @param [Google::Apis::ContaineranalysisV1::GeneratePackagesSummaryRequest] generate_packages_summary_request_object
|
822
|
+
# @param [String] fields
|
823
|
+
# Selector specifying which fields to include in a partial response.
|
824
|
+
# @param [String] quota_user
|
825
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
826
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
827
|
+
# @param [Google::Apis::RequestOptions] options
|
828
|
+
# Request-specific options
|
829
|
+
#
|
830
|
+
# @yield [result, err] Result & error if block supplied
|
831
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1::PackagesSummaryResponse] parsed result object
|
832
|
+
# @yieldparam err [StandardError] error object if request failed
|
833
|
+
#
|
834
|
+
# @return [Google::Apis::ContaineranalysisV1::PackagesSummaryResponse]
|
835
|
+
#
|
836
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
837
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
838
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
839
|
+
def generate_resource_packages_summary(name, generate_packages_summary_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
840
|
+
command = make_simple_command(:post, 'v1/{+name}:generatePackagesSummary', options)
|
841
|
+
command.request_representation = Google::Apis::ContaineranalysisV1::GeneratePackagesSummaryRequest::Representation
|
842
|
+
command.request_object = generate_packages_summary_request_object
|
843
|
+
command.response_representation = Google::Apis::ContaineranalysisV1::PackagesSummaryResponse::Representation
|
844
|
+
command.response_class = Google::Apis::ContaineranalysisV1::PackagesSummaryResponse
|
845
|
+
command.params['name'] = name unless name.nil?
|
846
|
+
command.query['fields'] = fields unless fields.nil?
|
847
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
848
|
+
execute_or_queue_command(command, &block)
|
849
|
+
end
|
816
850
|
|
817
851
|
protected
|
818
852
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-containeranalysis_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.32.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.32.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|