google-apis-containeranalysis_v1beta1 0.38.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d659bddc665f19219bf522b54e6b6afe2ad650242264f93da5b5b15e40883f7a
4
- data.tar.gz: eaeba1b8a7464c622ecfb8b256a17e2f06d971543e7088f640c09ba7d38f3dc4
3
+ metadata.gz: 398e9a02627c2e08bf6e0925c8692b7d3afe2e7420e045ff4df4b81f1353aec9
4
+ data.tar.gz: b4da82a2725b68b2384254c1947964c812771297c39cdd215bebe76e30ab46b7
5
5
  SHA512:
6
- metadata.gz: 727719194b83c789c07ed277036ed1055833cb044a48a423ba25bc4a607cbb8629c8b0b2c3e6963bf5fa906bb04158fe9c6165f8dffba97bbff0b0e755e7871c
7
- data.tar.gz: 5b70e85d2fd0067e2c3beca67cb75d681146a06e077fb6cf1c3f9129e5d5b9b98aa1a5b611c7012f0e48367accb99aa409941f4ea1ab8677ecf62d530a30243c
6
+ metadata.gz: 4101241e64007727e03cf23987dcfc72dbeaa1467bcf310efb945a40efc9c23f57faaee2337cae4c8f75e0c0cdf4e09affb05e9d2c373580e40231946411ff88
7
+ data.tar.gz: e6ad8323b15581d232d2db066766cce3b2a3ca4acfa5fc73e61e20ec1a2e07fd6d167f8dc37bcafde8ca46ff2825fd69c35dc1d430a3fc3b24be6be94de6f013
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.38.0 (2023-04-23)
4
8
 
5
9
  * Regenerated from discovery document revision 20230414
@@ -3509,6 +3509,21 @@ module Google
3509
3509
  end
3510
3510
  end
3511
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
+
3512
3527
  # An attestation wrapper that uses the Grafeas `Signature` message. This
3513
3528
  # attestation must define the `serialized_payload` that the `signatures` verify
3514
3529
  # and any metadata necessary to interpret that plaintext. The signatures should
@@ -4251,6 +4266,33 @@ module Google
4251
4266
  end
4252
4267
  end
4253
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
+
4254
4296
  # This corresponds to an in-toto link.
4255
4297
  class Link
4256
4298
  include Google::Apis::Core::Hashable
@@ -5084,6 +5126,31 @@ module Google
5084
5126
  end
5085
5127
  end
5086
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
+
5087
5154
  # An attestation wrapper with a PGP-compatible signature. This message only
5088
5155
  # supports `ATTACHED` signatures, where the payload that is signed is included
5089
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.38.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 = "20230414"
25
+ REVISION = "20230421"
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.38.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-23 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.38.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: []