google-apis-containeranalysis_v1beta1 0.38.0 → 0.40.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_v1beta1/classes.rb +92 -26
- data/lib/google/apis/containeranalysis_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/containeranalysis_v1beta1/representations.rb +41 -0
- data/lib/google/apis/containeranalysis_v1beta1/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: 12055a09ebfbeac91d0bc192a28d4dc99e3c7f13272fc1d1050109407ee60ebf
|
4
|
+
data.tar.gz: 4dddede41b7b45af5407398116b954f9fb073e83e49bef38767c55e89104968e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29f6af28c5b44184db5a2f5123e8aefbe84a1d81e36ac32c443d26a6fb39497804a3fb267106696908e0ea76ae549271916c321b595ecbf3d98f4e5890079b39
|
7
|
+
data.tar.gz: 6aafd2a93766019e83db8217ba3dec0938451f6bb85772962cd64069b77f506bddac02a84d2fd449249b9649cd5e5d7f6e0dd0c7975de4bc4eee803b5ea46ad1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-containeranalysis_v1beta1
|
2
2
|
|
3
|
+
### v0.40.0 (2023-05-28)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230519
|
6
|
+
|
7
|
+
### v0.39.0 (2023-04-30)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230421
|
10
|
+
|
3
11
|
### v0.38.0 (2023-04-23)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230414
|
@@ -1408,7 +1408,7 @@ module Google
|
|
1408
1408
|
# @return [String]
|
1409
1409
|
attr_accessor :log_url
|
1410
1410
|
|
1411
|
-
#
|
1411
|
+
# Cloud Storage bucket where logs should be written (see [Bucket Name
|
1412
1412
|
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
1413
1413
|
# ). Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
|
1414
1414
|
# Corresponds to the JSON property `logsBucket`
|
@@ -1654,7 +1654,7 @@ module Google
|
|
1654
1654
|
# @return [Array<String>]
|
1655
1655
|
attr_accessor :env
|
1656
1656
|
|
1657
|
-
# Option to define build log streaming behavior to
|
1657
|
+
# Option to define build log streaming behavior to Cloud Storage.
|
1658
1658
|
# Corresponds to the JSON property `logStreamingOption`
|
1659
1659
|
# @return [String]
|
1660
1660
|
attr_accessor :log_streaming_option
|
@@ -2334,14 +2334,14 @@ module Google
|
|
2334
2334
|
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource]
|
2335
2335
|
attr_accessor :repo_source
|
2336
2336
|
|
2337
|
-
# Location of the source in an archive file in
|
2337
|
+
# Location of the source in an archive file in Cloud Storage.
|
2338
2338
|
# Corresponds to the JSON property `storageSource`
|
2339
2339
|
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource]
|
2340
2340
|
attr_accessor :storage_source
|
2341
2341
|
|
2342
|
-
# Location of the source manifest in
|
2343
|
-
#
|
2344
|
-
#
|
2342
|
+
# Location of the source manifest in Cloud Storage. This feature is in Preview;
|
2343
|
+
# see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/
|
2344
|
+
# tree/master/gcs-fetcher).
|
2345
2345
|
# Corresponds to the JSON property `storageSourceManifest`
|
2346
2346
|
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest]
|
2347
2347
|
attr_accessor :storage_source_manifest
|
@@ -2380,14 +2380,14 @@ module Google
|
|
2380
2380
|
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource]
|
2381
2381
|
attr_accessor :resolved_repo_source
|
2382
2382
|
|
2383
|
-
# Location of the source in an archive file in
|
2383
|
+
# Location of the source in an archive file in Cloud Storage.
|
2384
2384
|
# Corresponds to the JSON property `resolvedStorageSource`
|
2385
2385
|
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource]
|
2386
2386
|
attr_accessor :resolved_storage_source
|
2387
2387
|
|
2388
|
-
# Location of the source manifest in
|
2389
|
-
#
|
2390
|
-
#
|
2388
|
+
# Location of the source manifest in Cloud Storage. This feature is in Preview;
|
2389
|
+
# see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/
|
2390
|
+
# tree/master/gcs-fetcher).
|
2391
2391
|
# Corresponds to the JSON property `resolvedStorageSourceManifest`
|
2392
2392
|
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest]
|
2393
2393
|
attr_accessor :resolved_storage_source_manifest
|
@@ -2405,25 +2405,24 @@ module Google
|
|
2405
2405
|
end
|
2406
2406
|
end
|
2407
2407
|
|
2408
|
-
# Location of the source in an archive file in
|
2408
|
+
# Location of the source in an archive file in Cloud Storage.
|
2409
2409
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource
|
2410
2410
|
include Google::Apis::Core::Hashable
|
2411
2411
|
|
2412
|
-
#
|
2413
|
-
#
|
2414
|
-
# ).
|
2412
|
+
# Cloud Storage bucket containing the source (see [Bucket Name Requirements](
|
2413
|
+
# https://cloud.google.com/storage/docs/bucket-naming#requirements)).
|
2415
2414
|
# Corresponds to the JSON property `bucket`
|
2416
2415
|
# @return [String]
|
2417
2416
|
attr_accessor :bucket
|
2418
2417
|
|
2419
|
-
#
|
2420
|
-
#
|
2418
|
+
# Cloud Storage generation for the object. If the generation is omitted, the
|
2419
|
+
# latest generation will be used.
|
2421
2420
|
# Corresponds to the JSON property `generation`
|
2422
2421
|
# @return [Fixnum]
|
2423
2422
|
attr_accessor :generation
|
2424
2423
|
|
2425
|
-
#
|
2426
|
-
#
|
2424
|
+
# Cloud Storage object containing the source. This object must be a zipped (`.
|
2425
|
+
# zip`) or gzipped archive file (`.tar.gz`) containing source to build.
|
2427
2426
|
# Corresponds to the JSON property `object`
|
2428
2427
|
# @return [String]
|
2429
2428
|
attr_accessor :object
|
@@ -2440,27 +2439,27 @@ module Google
|
|
2440
2439
|
end
|
2441
2440
|
end
|
2442
2441
|
|
2443
|
-
# Location of the source manifest in
|
2444
|
-
#
|
2445
|
-
#
|
2442
|
+
# Location of the source manifest in Cloud Storage. This feature is in Preview;
|
2443
|
+
# see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/
|
2444
|
+
# tree/master/gcs-fetcher).
|
2446
2445
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest
|
2447
2446
|
include Google::Apis::Core::Hashable
|
2448
2447
|
|
2449
|
-
#
|
2448
|
+
# Cloud Storage bucket containing the source manifest (see [Bucket Name
|
2450
2449
|
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
2451
2450
|
# ).
|
2452
2451
|
# Corresponds to the JSON property `bucket`
|
2453
2452
|
# @return [String]
|
2454
2453
|
attr_accessor :bucket
|
2455
2454
|
|
2456
|
-
#
|
2457
|
-
#
|
2455
|
+
# Cloud Storage generation for the object. If the generation is omitted, the
|
2456
|
+
# latest generation will be used.
|
2458
2457
|
# Corresponds to the JSON property `generation`
|
2459
2458
|
# @return [Fixnum]
|
2460
2459
|
attr_accessor :generation
|
2461
2460
|
|
2462
|
-
#
|
2463
|
-
#
|
2461
|
+
# Cloud Storage object containing the source manifest. This object must be a
|
2462
|
+
# JSON file.
|
2464
2463
|
# Corresponds to the JSON property `object`
|
2465
2464
|
# @return [String]
|
2466
2465
|
attr_accessor :object
|
@@ -3509,6 +3508,21 @@ module Google
|
|
3509
3508
|
end
|
3510
3509
|
end
|
3511
3510
|
|
3511
|
+
# GeneratePackagesSummaryRequest is the request body for the
|
3512
|
+
# GeneratePackagesSummary API method. It just takes a single name argument,
|
3513
|
+
# referring to the resource.
|
3514
|
+
class GeneratePackagesSummaryRequest
|
3515
|
+
include Google::Apis::Core::Hashable
|
3516
|
+
|
3517
|
+
def initialize(**args)
|
3518
|
+
update!(**args)
|
3519
|
+
end
|
3520
|
+
|
3521
|
+
# Update properties of this object
|
3522
|
+
def update!(**args)
|
3523
|
+
end
|
3524
|
+
end
|
3525
|
+
|
3512
3526
|
# An attestation wrapper that uses the Grafeas `Signature` message. This
|
3513
3527
|
# attestation must define the `serialized_payload` that the `signatures` verify
|
3514
3528
|
# and any metadata necessary to interpret that plaintext. The signatures should
|
@@ -4251,6 +4265,33 @@ module Google
|
|
4251
4265
|
end
|
4252
4266
|
end
|
4253
4267
|
|
4268
|
+
# Per license count
|
4269
|
+
class LicensesSummary
|
4270
|
+
include Google::Apis::Core::Hashable
|
4271
|
+
|
4272
|
+
# The number of fixable vulnerabilities associated with this resource.
|
4273
|
+
# Corresponds to the JSON property `count`
|
4274
|
+
# @return [Fixnum]
|
4275
|
+
attr_accessor :count
|
4276
|
+
|
4277
|
+
# The license of the package. Note that the format of this value is not
|
4278
|
+
# guaranteed. It may be nil, an empty string, a boolean value (A | B), a
|
4279
|
+
# differently formed boolean value (A OR B), etc...
|
4280
|
+
# Corresponds to the JSON property `license`
|
4281
|
+
# @return [String]
|
4282
|
+
attr_accessor :license
|
4283
|
+
|
4284
|
+
def initialize(**args)
|
4285
|
+
update!(**args)
|
4286
|
+
end
|
4287
|
+
|
4288
|
+
# Update properties of this object
|
4289
|
+
def update!(**args)
|
4290
|
+
@count = args[:count] if args.key?(:count)
|
4291
|
+
@license = args[:license] if args.key?(:license)
|
4292
|
+
end
|
4293
|
+
end
|
4294
|
+
|
4254
4295
|
# This corresponds to an in-toto link.
|
4255
4296
|
class Link
|
4256
4297
|
include Google::Apis::Core::Hashable
|
@@ -5084,6 +5125,31 @@ module Google
|
|
5084
5125
|
end
|
5085
5126
|
end
|
5086
5127
|
|
5128
|
+
# A summary of the packages found within the given resource.
|
5129
|
+
class PackagesSummaryResponse
|
5130
|
+
include Google::Apis::Core::Hashable
|
5131
|
+
|
5132
|
+
# A listing by license name of each of the licenses and their counts.
|
5133
|
+
# Corresponds to the JSON property `licensesSummary`
|
5134
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::LicensesSummary>]
|
5135
|
+
attr_accessor :licenses_summary
|
5136
|
+
|
5137
|
+
# The unique URL of the image or the container for which this summary applies.
|
5138
|
+
# Corresponds to the JSON property `resourceUrl`
|
5139
|
+
# @return [String]
|
5140
|
+
attr_accessor :resource_url
|
5141
|
+
|
5142
|
+
def initialize(**args)
|
5143
|
+
update!(**args)
|
5144
|
+
end
|
5145
|
+
|
5146
|
+
# Update properties of this object
|
5147
|
+
def update!(**args)
|
5148
|
+
@licenses_summary = args[:licenses_summary] if args.key?(:licenses_summary)
|
5149
|
+
@resource_url = args[:resource_url] if args.key?(:resource_url)
|
5150
|
+
end
|
5151
|
+
end
|
5152
|
+
|
5087
5153
|
# An attestation wrapper with a PGP-compatible signature. This message only
|
5088
5154
|
# supports `ATTACHED` signatures, where the payload that is signed is included
|
5089
5155
|
# 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.
|
19
|
+
GEM_VERSION = "0.40.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 = "20230519"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -490,6 +490,12 @@ module Google
|
|
490
490
|
include Google::Apis::Core::JsonObjectSupport
|
491
491
|
end
|
492
492
|
|
493
|
+
class GeneratePackagesSummaryRequest
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
|
+
|
496
|
+
include Google::Apis::Core::JsonObjectSupport
|
497
|
+
end
|
498
|
+
|
493
499
|
class GenericSignedAttestation
|
494
500
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
501
|
|
@@ -628,6 +634,12 @@ module Google
|
|
628
634
|
include Google::Apis::Core::JsonObjectSupport
|
629
635
|
end
|
630
636
|
|
637
|
+
class LicensesSummary
|
638
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
639
|
+
|
640
|
+
include Google::Apis::Core::JsonObjectSupport
|
641
|
+
end
|
642
|
+
|
631
643
|
class Link
|
632
644
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
633
645
|
|
@@ -694,6 +706,12 @@ module Google
|
|
694
706
|
include Google::Apis::Core::JsonObjectSupport
|
695
707
|
end
|
696
708
|
|
709
|
+
class PackagesSummaryResponse
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
697
715
|
class PgpSignedAttestation
|
698
716
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
699
717
|
|
@@ -1775,6 +1793,12 @@ module Google
|
|
1775
1793
|
end
|
1776
1794
|
end
|
1777
1795
|
|
1796
|
+
class GeneratePackagesSummaryRequest
|
1797
|
+
# @private
|
1798
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1799
|
+
end
|
1800
|
+
end
|
1801
|
+
|
1778
1802
|
class GenericSignedAttestation
|
1779
1803
|
# @private
|
1780
1804
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1996,6 +2020,14 @@ module Google
|
|
1996
2020
|
end
|
1997
2021
|
end
|
1998
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
|
+
|
1999
2031
|
class Link
|
2000
2032
|
# @private
|
2001
2033
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2210,6 +2242,15 @@ module Google
|
|
2210
2242
|
end
|
2211
2243
|
end
|
2212
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
|
+
|
2213
2254
|
class PgpSignedAttestation
|
2214
2255
|
# @private
|
2215
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.
|
4
|
+
version: 0.40.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
|
11
|
+
date: 2023-06-04 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.40.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: []
|