google-apis-containeranalysis_v1beta1 0.37.0 → 0.39.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a97f9d95be1dbf71ad829e1bdcd0bec47c5d6180ef45384abcd8fdce35d0f01
4
- data.tar.gz: 4ed542eb24e46ff9e8261015805f74a5fe547253aa13e8a400b81f9bcb36191f
3
+ metadata.gz: 398e9a02627c2e08bf6e0925c8692b7d3afe2e7420e045ff4df4b81f1353aec9
4
+ data.tar.gz: b4da82a2725b68b2384254c1947964c812771297c39cdd215bebe76e30ab46b7
5
5
  SHA512:
6
- metadata.gz: 2c66311b07d48325e6066ccb5ec76fd7da354e1724faa512978c88837627204ef3175908d05b8fae96fa91084bf1b032e33ed408baa632bc5a98f116e22b93db
7
- data.tar.gz: d453ad38fa3faf53af880ce26caeda6c8f991f9d1c4c456eaed723dbdddd99d90693f0c668f83ece80fbd41d7124905023f181045f912556187e3eac1039ad0a
6
+ metadata.gz: 4101241e64007727e03cf23987dcfc72dbeaa1467bcf310efb945a40efc9c23f57faaee2337cae4c8f75e0c0cdf4e09affb05e9d2c373580e40231946411ff88
7
+ data.tar.gz: e6ad8323b15581d232d2db066766cce3b2a3ca4acfa5fc73e61e20ec1a2e07fd6d167f8dc37bcafde8ca46ff2825fd69c35dc1d430a3fc3b24be6be94de6f013
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-containeranalysis_v1beta1
2
2
 
3
+ ### v0.39.0 (2023-04-30)
4
+
5
+ * Regenerated from discovery document revision 20230421
6
+
7
+ ### v0.38.0 (2023-04-23)
8
+
9
+ * Regenerated from discovery document revision 20230414
10
+
3
11
  ### v0.37.0 (2023-04-02)
4
12
 
5
13
  * Regenerated from discovery document revision 20230324
@@ -1157,6 +1157,15 @@ module Google
1157
1157
  # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact>]
1158
1158
  attr_accessor :maven_artifacts
1159
1159
 
1160
+ # A list of npm packages to be uploaded to Artifact Registry upon successful
1161
+ # completion of all build steps. Npm packages in the specified paths will be
1162
+ # uploaded to the specified Artifact Registry repository using the builder
1163
+ # service account's credentials. If any packages fail to be pushed, the build is
1164
+ # marked FAILURE.
1165
+ # Corresponds to the JSON property `npmPackages`
1166
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage>]
1167
+ attr_accessor :npm_packages
1168
+
1160
1169
  # Files in the workspace to upload to Cloud Storage upon successful completion
1161
1170
  # of all build steps.
1162
1171
  # Corresponds to the JSON property `objects`
@@ -1179,6 +1188,7 @@ module Google
1179
1188
  def update!(**args)
1180
1189
  @images = args[:images] if args.key?(:images)
1181
1190
  @maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
1191
+ @npm_packages = args[:npm_packages] if args.key?(:npm_packages)
1182
1192
  @objects = args[:objects] if args.key?(:objects)
1183
1193
  @python_packages = args[:python_packages] if args.key?(:python_packages)
1184
1194
  end
@@ -1268,6 +1278,34 @@ module Google
1268
1278
  end
1269
1279
  end
1270
1280
 
1281
+ # Npm package to upload to Artifact Registry upon successful completion of all
1282
+ # build steps.
1283
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage
1284
+ include Google::Apis::Core::Hashable
1285
+
1286
+ # Path to the package.json. e.g. workspace/path/to/package
1287
+ # Corresponds to the JSON property `packagePath`
1288
+ # @return [String]
1289
+ attr_accessor :package_path
1290
+
1291
+ # Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$
1292
+ # PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be
1293
+ # zipped and uploaded to Artifact Registry with this location as a prefix.
1294
+ # Corresponds to the JSON property `repository`
1295
+ # @return [String]
1296
+ attr_accessor :repository
1297
+
1298
+ def initialize(**args)
1299
+ update!(**args)
1300
+ end
1301
+
1302
+ # Update properties of this object
1303
+ def update!(**args)
1304
+ @package_path = args[:package_path] if args.key?(:package_path)
1305
+ @repository = args[:repository] if args.key?(:repository)
1306
+ end
1307
+ end
1308
+
1271
1309
  # Python package to upload to Artifact Registry upon successful completion of
1272
1310
  # all build steps. A package can encapsulate multiple objects to be uploaded to
1273
1311
  # a single repository.
@@ -1960,6 +1998,46 @@ module Google
1960
1998
  end
1961
1999
  end
1962
2000
 
2001
+ # Location of the source in any accessible Git repository.
2002
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource
2003
+ include Google::Apis::Core::Hashable
2004
+
2005
+ # Directory, relative to the source root, in which to run the build. This must
2006
+ # be a relative path. If a step's `dir` is specified and is an absolute path,
2007
+ # this value is ignored for that step's execution.
2008
+ # Corresponds to the JSON property `dir`
2009
+ # @return [String]
2010
+ attr_accessor :dir
2011
+
2012
+ # The revision to fetch from the Git repository such as a branch, a tag, a
2013
+ # commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision
2014
+ # from the Git repository; therefore make sure that the string you provide for `
2015
+ # revision` is parsable by the command. For information on string values
2016
+ # accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#
2017
+ # _specifying_revisions. For information on `git fetch`, see https://git-scm.com/
2018
+ # docs/git-fetch.
2019
+ # Corresponds to the JSON property `revision`
2020
+ # @return [String]
2021
+ attr_accessor :revision
2022
+
2023
+ # Location of the Git repo to build. This will be used as a `git remote`, see
2024
+ # https://git-scm.com/docs/git-remote.
2025
+ # Corresponds to the JSON property `url`
2026
+ # @return [String]
2027
+ attr_accessor :url
2028
+
2029
+ def initialize(**args)
2030
+ update!(**args)
2031
+ end
2032
+
2033
+ # Update properties of this object
2034
+ def update!(**args)
2035
+ @dir = args[:dir] if args.key?(:dir)
2036
+ @revision = args[:revision] if args.key?(:revision)
2037
+ @url = args[:url] if args.key?(:url)
2038
+ end
2039
+ end
2040
+
1963
2041
  # Container message for hash values.
1964
2042
  class ContaineranalysisGoogleDevtoolsCloudbuildV1Hash
1965
2043
  include Google::Apis::Core::Hashable
@@ -2124,6 +2202,11 @@ module Google
2124
2202
  # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact>]
2125
2203
  attr_accessor :maven_artifacts
2126
2204
 
2205
+ # Npm packages uploaded to Artifact Registry at the end of the build.
2206
+ # Corresponds to the JSON property `npmPackages`
2207
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage>]
2208
+ attr_accessor :npm_packages
2209
+
2127
2210
  # Number of non-container artifacts uploaded to Cloud Storage. Only populated
2128
2211
  # when artifacts are uploaded to Cloud Storage.
2129
2212
  # Corresponds to the JSON property `numArtifacts`
@@ -2147,6 +2230,7 @@ module Google
2147
2230
  @build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs)
2148
2231
  @images = args[:images] if args.key?(:images)
2149
2232
  @maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
2233
+ @npm_packages = args[:npm_packages] if args.key?(:npm_packages)
2150
2234
  @num_artifacts = args[:num_artifacts] if args.key?(:num_artifacts)
2151
2235
  @python_packages = args[:python_packages] if args.key?(:python_packages)
2152
2236
  end
@@ -2240,6 +2324,11 @@ module Google
2240
2324
  class ContaineranalysisGoogleDevtoolsCloudbuildV1Source
2241
2325
  include Google::Apis::Core::Hashable
2242
2326
 
2327
+ # Location of the source in any accessible Git repository.
2328
+ # Corresponds to the JSON property `gitSource`
2329
+ # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource]
2330
+ attr_accessor :git_source
2331
+
2243
2332
  # Location of the source in a Google Cloud Source Repository.
2244
2333
  # Corresponds to the JSON property `repoSource`
2245
2334
  # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource]
@@ -2263,6 +2352,7 @@ module Google
2263
2352
 
2264
2353
  # Update properties of this object
2265
2354
  def update!(**args)
2355
+ @git_source = args[:git_source] if args.key?(:git_source)
2266
2356
  @repo_source = args[:repo_source] if args.key?(:repo_source)
2267
2357
  @storage_source = args[:storage_source] if args.key?(:storage_source)
2268
2358
  @storage_source_manifest = args[:storage_source_manifest] if args.key?(:storage_source_manifest)
@@ -2444,6 +2534,38 @@ module Google
2444
2534
  end
2445
2535
  end
2446
2536
 
2537
+ # An npm package uploaded to Artifact Registry using the NpmPackage directive.
2538
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage
2539
+ include Google::Apis::Core::Hashable
2540
+
2541
+ # Container message for hashes of byte content of files, used in
2542
+ # SourceProvenance messages to verify integrity of source input to the build.
2543
+ # Corresponds to the JSON property `fileHashes`
2544
+ # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes]
2545
+ attr_accessor :file_hashes
2546
+
2547
+ # Start and end times for a build execution phase.
2548
+ # Corresponds to the JSON property `pushTiming`
2549
+ # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan]
2550
+ attr_accessor :push_timing
2551
+
2552
+ # URI of the uploaded npm package.
2553
+ # Corresponds to the JSON property `uri`
2554
+ # @return [String]
2555
+ attr_accessor :uri
2556
+
2557
+ def initialize(**args)
2558
+ update!(**args)
2559
+ end
2560
+
2561
+ # Update properties of this object
2562
+ def update!(**args)
2563
+ @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
2564
+ @push_timing = args[:push_timing] if args.key?(:push_timing)
2565
+ @uri = args[:uri] if args.key?(:uri)
2566
+ end
2567
+ end
2568
+
2447
2569
  # Artifact uploaded using the PythonPackage directive.
2448
2570
  class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage
2449
2571
  include Google::Apis::Core::Hashable
@@ -3387,6 +3509,21 @@ module Google
3387
3509
  end
3388
3510
  end
3389
3511
 
3512
+ # GeneratePackagesSummaryRequest is the request body for the
3513
+ # GeneratePackagesSummary API method. It just takes a single name argument,
3514
+ # referring to the resource.
3515
+ class GeneratePackagesSummaryRequest
3516
+ include Google::Apis::Core::Hashable
3517
+
3518
+ def initialize(**args)
3519
+ update!(**args)
3520
+ end
3521
+
3522
+ # Update properties of this object
3523
+ def update!(**args)
3524
+ end
3525
+ end
3526
+
3390
3527
  # An attestation wrapper that uses the Grafeas `Signature` message. This
3391
3528
  # attestation must define the `serialized_payload` that the `signatures` verify
3392
3529
  # and any metadata necessary to interpret that plaintext. The signatures should
@@ -4129,6 +4266,33 @@ module Google
4129
4266
  end
4130
4267
  end
4131
4268
 
4269
+ # Per license count
4270
+ class LicensesSummary
4271
+ include Google::Apis::Core::Hashable
4272
+
4273
+ # The number of fixable vulnerabilities associated with this resource.
4274
+ # Corresponds to the JSON property `count`
4275
+ # @return [Fixnum]
4276
+ attr_accessor :count
4277
+
4278
+ # The license of the package. Note that the format of this value is not
4279
+ # guaranteed. It may be nil, an empty string, a boolean value (A | B), a
4280
+ # differently formed boolean value (A OR B), etc...
4281
+ # Corresponds to the JSON property `license`
4282
+ # @return [String]
4283
+ attr_accessor :license
4284
+
4285
+ def initialize(**args)
4286
+ update!(**args)
4287
+ end
4288
+
4289
+ # Update properties of this object
4290
+ def update!(**args)
4291
+ @count = args[:count] if args.key?(:count)
4292
+ @license = args[:license] if args.key?(:license)
4293
+ end
4294
+ end
4295
+
4132
4296
  # This corresponds to an in-toto link.
4133
4297
  class Link
4134
4298
  include Google::Apis::Core::Hashable
@@ -4962,6 +5126,31 @@ module Google
4962
5126
  end
4963
5127
  end
4964
5128
 
5129
+ # A summary of the packages found within the given resource.
5130
+ class PackagesSummaryResponse
5131
+ include Google::Apis::Core::Hashable
5132
+
5133
+ # A listing by license name of each of the licenses and their counts.
5134
+ # Corresponds to the JSON property `licensesSummary`
5135
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::LicensesSummary>]
5136
+ attr_accessor :licenses_summary
5137
+
5138
+ # The unique URL of the image or the container for which this summary applies.
5139
+ # Corresponds to the JSON property `resourceUrl`
5140
+ # @return [String]
5141
+ attr_accessor :resource_url
5142
+
5143
+ def initialize(**args)
5144
+ update!(**args)
5145
+ end
5146
+
5147
+ # Update properties of this object
5148
+ def update!(**args)
5149
+ @licenses_summary = args[:licenses_summary] if args.key?(:licenses_summary)
5150
+ @resource_url = args[:resource_url] if args.key?(:resource_url)
5151
+ end
5152
+ end
5153
+
4965
5154
  # An attestation wrapper with a PGP-compatible signature. This message only
4966
5155
  # supports `ATTACHED` signatures, where the payload that is signed is included
4967
5156
  # alongside the signature itself in the same file.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContaineranalysisV1beta1
18
18
  # Version of the google-apis-containeranalysis_v1beta1 gem
19
- GEM_VERSION = "0.37.0"
19
+ GEM_VERSION = "0.39.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 = "20230324"
25
+ REVISION = "20230421"
26
26
  end
27
27
  end
28
28
  end
@@ -190,6 +190,12 @@ module Google
190
190
  include Google::Apis::Core::JsonObjectSupport
191
191
  end
192
192
 
193
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
193
199
  class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage
194
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
201
 
@@ -250,6 +256,12 @@ module Google
250
256
  include Google::Apis::Core::JsonObjectSupport
251
257
  end
252
258
 
259
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
253
265
  class ContaineranalysisGoogleDevtoolsCloudbuildV1Hash
254
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
267
 
@@ -328,6 +340,12 @@ module Google
328
340
  include Google::Apis::Core::JsonObjectSupport
329
341
  end
330
342
 
343
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
331
349
  class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage
332
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
351
 
@@ -472,6 +490,12 @@ module Google
472
490
  include Google::Apis::Core::JsonObjectSupport
473
491
  end
474
492
 
493
+ class GeneratePackagesSummaryRequest
494
+ class Representation < Google::Apis::Core::JsonRepresentation; end
495
+
496
+ include Google::Apis::Core::JsonObjectSupport
497
+ end
498
+
475
499
  class GenericSignedAttestation
476
500
  class Representation < Google::Apis::Core::JsonRepresentation; end
477
501
 
@@ -610,6 +634,12 @@ module Google
610
634
  include Google::Apis::Core::JsonObjectSupport
611
635
  end
612
636
 
637
+ class LicensesSummary
638
+ class Representation < Google::Apis::Core::JsonRepresentation; end
639
+
640
+ include Google::Apis::Core::JsonObjectSupport
641
+ end
642
+
613
643
  class Link
614
644
  class Representation < Google::Apis::Core::JsonRepresentation; end
615
645
 
@@ -676,6 +706,12 @@ module Google
676
706
  include Google::Apis::Core::JsonObjectSupport
677
707
  end
678
708
 
709
+ class PackagesSummaryResponse
710
+ class Representation < Google::Apis::Core::JsonRepresentation; end
711
+
712
+ include Google::Apis::Core::JsonObjectSupport
713
+ end
714
+
679
715
  class PgpSignedAttestation
680
716
  class Representation < Google::Apis::Core::JsonRepresentation; end
681
717
 
@@ -1154,6 +1190,8 @@ module Google
1154
1190
  collection :images, as: 'images'
1155
1191
  collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact::Representation
1156
1192
 
1193
+ collection :npm_packages, as: 'npmPackages', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage::Representation
1194
+
1157
1195
  property :objects, as: 'objects', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects::Representation
1158
1196
 
1159
1197
  collection :python_packages, as: 'pythonPackages', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage::Representation
@@ -1182,6 +1220,14 @@ module Google
1182
1220
  end
1183
1221
  end
1184
1222
 
1223
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage
1224
+ # @private
1225
+ class Representation < Google::Apis::Core::JsonRepresentation
1226
+ property :package_path, as: 'packagePath'
1227
+ property :repository, as: 'repository'
1228
+ end
1229
+ end
1230
+
1185
1231
  class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage
1186
1232
  # @private
1187
1233
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1337,6 +1383,15 @@ module Google
1337
1383
  end
1338
1384
  end
1339
1385
 
1386
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource
1387
+ # @private
1388
+ class Representation < Google::Apis::Core::JsonRepresentation
1389
+ property :dir, as: 'dir'
1390
+ property :revision, as: 'revision'
1391
+ property :url, as: 'url'
1392
+ end
1393
+ end
1394
+
1340
1395
  class ContaineranalysisGoogleDevtoolsCloudbuildV1Hash
1341
1396
  # @private
1342
1397
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1379,6 +1434,8 @@ module Google
1379
1434
 
1380
1435
  collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact::Representation
1381
1436
 
1437
+ collection :npm_packages, as: 'npmPackages', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage::Representation
1438
+
1382
1439
  property :num_artifacts, :numeric_string => true, as: 'numArtifacts'
1383
1440
  collection :python_packages, as: 'pythonPackages', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage::Representation
1384
1441
 
@@ -1414,6 +1471,8 @@ module Google
1414
1471
  class ContaineranalysisGoogleDevtoolsCloudbuildV1Source
1415
1472
  # @private
1416
1473
  class Representation < Google::Apis::Core::JsonRepresentation
1474
+ property :git_source, as: 'gitSource', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource::Representation
1475
+
1417
1476
  property :repo_source, as: 'repoSource', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource::Representation
1418
1477
 
1419
1478
  property :storage_source, as: 'storageSource', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource::Representation
@@ -1474,6 +1533,17 @@ module Google
1474
1533
  end
1475
1534
  end
1476
1535
 
1536
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage
1537
+ # @private
1538
+ class Representation < Google::Apis::Core::JsonRepresentation
1539
+ property :file_hashes, as: 'fileHashes', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes::Representation
1540
+
1541
+ property :push_timing, as: 'pushTiming', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::Representation
1542
+
1543
+ property :uri, as: 'uri'
1544
+ end
1545
+ end
1546
+
1477
1547
  class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage
1478
1548
  # @private
1479
1549
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1723,6 +1793,12 @@ module Google
1723
1793
  end
1724
1794
  end
1725
1795
 
1796
+ class GeneratePackagesSummaryRequest
1797
+ # @private
1798
+ class Representation < Google::Apis::Core::JsonRepresentation
1799
+ end
1800
+ end
1801
+
1726
1802
  class GenericSignedAttestation
1727
1803
  # @private
1728
1804
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1944,6 +2020,14 @@ module Google
1944
2020
  end
1945
2021
  end
1946
2022
 
2023
+ class LicensesSummary
2024
+ # @private
2025
+ class Representation < Google::Apis::Core::JsonRepresentation
2026
+ property :count, :numeric_string => true, as: 'count'
2027
+ property :license, as: 'license'
2028
+ end
2029
+ end
2030
+
1947
2031
  class Link
1948
2032
  # @private
1949
2033
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2158,6 +2242,15 @@ module Google
2158
2242
  end
2159
2243
  end
2160
2244
 
2245
+ class PackagesSummaryResponse
2246
+ # @private
2247
+ class Representation < Google::Apis::Core::JsonRepresentation
2248
+ collection :licenses_summary, as: 'licensesSummary', class: Google::Apis::ContaineranalysisV1beta1::LicensesSummary, decorator: Google::Apis::ContaineranalysisV1beta1::LicensesSummary::Representation
2249
+
2250
+ property :resource_url, as: 'resourceUrl'
2251
+ end
2252
+ end
2253
+
2161
2254
  class PgpSignedAttestation
2162
2255
  # @private
2163
2256
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::PackagesSummaryResponse] parsed result object
832
+ # @yieldparam err [StandardError] error object if request failed
833
+ #
834
+ # @return [Google::Apis::ContaineranalysisV1beta1::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, 'v1beta1/{+name}:generatePackagesSummary', options)
841
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::GeneratePackagesSummaryRequest::Representation
842
+ command.request_object = generate_packages_summary_request_object
843
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::PackagesSummaryResponse::Representation
844
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::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_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.0
4
+ version: 0.39.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-04-02 00:00:00.000000000 Z
11
+ date: 2023-04-30 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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.39.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []