google-apis-containeranalysis_v1 0.30.0 → 0.31.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: bc610cb1a292b1e87146065838d081c3929f161247fd3e6cf74a06983eb2101f
4
- data.tar.gz: c54ee5a8f4498f217ffc4bb55609b6ead68e7cdfb923229dadcdb929be870737
3
+ metadata.gz: a838e9834eedab72763f2b01217b4603b7db11111bda95122a49cbe84e15edda
4
+ data.tar.gz: aec950c53390610accbc3ef7989a69ad6a5e769b6735d985ad5c478eca2654b0
5
5
  SHA512:
6
- metadata.gz: b982d9901cae8d9c9218d49412df71bd25e572c178afb6a122aab8d34618f73b709eb1c2e83cc3a95038707cbcd19af272debc2235effa848acd61aa4c441afe
7
- data.tar.gz: 891eb2feb0553b9e40e2a751a032126719a9298390ae62e9b4d62c6893994717c8be5d354f43629bec93e03a86a5a44d8298625582df201f01b209cf4622a4d5
6
+ metadata.gz: 9cb51ffcc5589fdbc63be2adc93faca90b1fffe71b7fd3a45d3eff7cb4c306aef15083f47f8e711b38fd9668922ed3e496db8813a212f6cb78a275f088613b50
7
+ data.tar.gz: 4cb0e07eb99fadb6f4e8b00c48b96dba422977592a68ade450b9fa937637d34241104c5df88912aa4abf3d1cd54f17fd17238ac8dd90d7a378083f9caa83db34
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-containeranalysis_v1
2
2
 
3
+ ### v0.31.0 (2023-03-26)
4
+
5
+ * Regenerated from discovery document revision 20230317
6
+
3
7
  ### v0.30.0 (2023-03-19)
4
8
 
5
9
  * 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
@@ -3224,6 +3292,21 @@ module Google
3224
3292
  end
3225
3293
  end
3226
3294
 
3295
+ # GeneratePackagesSummaryRequest is the request body for the
3296
+ # GeneratePackagesSummary API method. It just takes a single name argument,
3297
+ # referring to the resource.
3298
+ class GeneratePackagesSummaryRequest
3299
+ include Google::Apis::Core::Hashable
3300
+
3301
+ def initialize(**args)
3302
+ update!(**args)
3303
+ end
3304
+
3305
+ # Update properties of this object
3306
+ def update!(**args)
3307
+ end
3308
+ end
3309
+
3227
3310
  # A SourceContext referring to a Gerrit project.
3228
3311
  class GerritSourceContext
3229
3312
  include Google::Apis::Core::Hashable
@@ -3808,6 +3891,32 @@ module Google
3808
3891
  end
3809
3892
  end
3810
3893
 
3894
+ # Justification provides the justification when the state of the assessment if
3895
+ # NOT_AFFECTED.
3896
+ class Justification
3897
+ include Google::Apis::Core::Hashable
3898
+
3899
+ # Additional details on why this justification was chosen.
3900
+ # Corresponds to the JSON property `details`
3901
+ # @return [String]
3902
+ attr_accessor :details
3903
+
3904
+ # The justification type for this vulnerability.
3905
+ # Corresponds to the JSON property `justificationType`
3906
+ # @return [String]
3907
+ attr_accessor :justification_type
3908
+
3909
+ def initialize(**args)
3910
+ update!(**args)
3911
+ end
3912
+
3913
+ # Update properties of this object
3914
+ def update!(**args)
3915
+ @details = args[:details] if args.key?(:details)
3916
+ @justification_type = args[:justification_type] if args.key?(:justification_type)
3917
+ end
3918
+ end
3919
+
3811
3920
  #
3812
3921
  class Jwt
3813
3922
  include Google::Apis::Core::Hashable
@@ -3909,6 +4018,33 @@ module Google
3909
4018
  end
3910
4019
  end
3911
4020
 
4021
+ # Per license count
4022
+ class LicensesSummary
4023
+ include Google::Apis::Core::Hashable
4024
+
4025
+ # The number of fixable vulnerabilities associated with this resource.
4026
+ # Corresponds to the JSON property `count`
4027
+ # @return [Fixnum]
4028
+ attr_accessor :count
4029
+
4030
+ # The license of the package. Note that the format of this value is not
4031
+ # guaranteed. It may be nil, an empty string, a boolean value (A | B), a
4032
+ # differently formed boolean value (A OR B), etc...
4033
+ # Corresponds to the JSON property `license`
4034
+ # @return [String]
4035
+ attr_accessor :license
4036
+
4037
+ def initialize(**args)
4038
+ update!(**args)
4039
+ end
4040
+
4041
+ # Update properties of this object
4042
+ def update!(**args)
4043
+ @count = args[:count] if args.key?(:count)
4044
+ @license = args[:license] if args.key?(:license)
4045
+ end
4046
+ end
4047
+
3912
4048
  # Response for listing occurrences for a note.
3913
4049
  class ListNoteOccurrencesResponse
3914
4050
  include Google::Apis::Core::Hashable
@@ -4243,6 +4379,12 @@ module Google
4243
4379
  # @return [Google::Apis::ContaineranalysisV1::VulnerabilityNote]
4244
4380
  attr_accessor :vulnerability
4245
4381
 
4382
+ # A single VulnerabilityAssessmentNote represents one particular product's
4383
+ # vulnerability assessment for one CVE.
4384
+ # Corresponds to the JSON property `vulnerabilityAssessment`
4385
+ # @return [Google::Apis::ContaineranalysisV1::VulnerabilityAssessmentNote]
4386
+ attr_accessor :vulnerability_assessment
4387
+
4246
4388
  def initialize(**args)
4247
4389
  update!(**args)
4248
4390
  end
@@ -4268,6 +4410,7 @@ module Google
4268
4410
  @update_time = args[:update_time] if args.key?(:update_time)
4269
4411
  @upgrade = args[:upgrade] if args.key?(:upgrade)
4270
4412
  @vulnerability = args[:vulnerability] if args.key?(:vulnerability)
4413
+ @vulnerability_assessment = args[:vulnerability_assessment] if args.key?(:vulnerability_assessment)
4271
4414
  end
4272
4415
  end
4273
4416
 
@@ -4636,6 +4779,31 @@ module Google
4636
4779
  end
4637
4780
  end
4638
4781
 
4782
+ # A summary of the packages found within the given resource.
4783
+ class PackagesSummaryResponse
4784
+ include Google::Apis::Core::Hashable
4785
+
4786
+ # A listing by license name of each of the licenses and their counts.
4787
+ # Corresponds to the JSON property `licensesSummary`
4788
+ # @return [Array<Google::Apis::ContaineranalysisV1::LicensesSummary>]
4789
+ attr_accessor :licenses_summary
4790
+
4791
+ # The unique URL of the image or the container for which this summary applies.
4792
+ # Corresponds to the JSON property `resourceUrl`
4793
+ # @return [String]
4794
+ attr_accessor :resource_url
4795
+
4796
+ def initialize(**args)
4797
+ update!(**args)
4798
+ end
4799
+
4800
+ # Update properties of this object
4801
+ def update!(**args)
4802
+ @licenses_summary = args[:licenses_summary] if args.key?(:licenses_summary)
4803
+ @resource_url = args[:resource_url] if args.key?(:resource_url)
4804
+ end
4805
+ end
4806
+
4639
4807
  # An Identity and Access Management (IAM) policy, which specifies access
4640
4808
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
4641
4809
  # A `binding` binds one or more `members`, or principals, to a single `role`.
@@ -4725,6 +4893,40 @@ module Google
4725
4893
  end
4726
4894
  end
4727
4895
 
4896
+ # Product contains information about a product and how to uniquely identify it.
4897
+ class Product
4898
+ include Google::Apis::Core::Hashable
4899
+
4900
+ # Contains a URI which is vendor-specific. Example: The artifact repository URL
4901
+ # of an image.
4902
+ # Corresponds to the JSON property `genericUri`
4903
+ # @return [String]
4904
+ attr_accessor :generic_uri
4905
+
4906
+ # Token that identifies a product so that it can be referred to from other parts
4907
+ # in the document. There is no predefined format as long as it uniquely
4908
+ # identifies a group in the context of the current document.
4909
+ # Corresponds to the JSON property `id`
4910
+ # @return [String]
4911
+ attr_accessor :id
4912
+
4913
+ # Name of the product.
4914
+ # Corresponds to the JSON property `name`
4915
+ # @return [String]
4916
+ attr_accessor :name
4917
+
4918
+ def initialize(**args)
4919
+ update!(**args)
4920
+ end
4921
+
4922
+ # Update properties of this object
4923
+ def update!(**args)
4924
+ @generic_uri = args[:generic_uri] if args.key?(:generic_uri)
4925
+ @id = args[:id] if args.key?(:id)
4926
+ @name = args[:name] if args.key?(:name)
4927
+ end
4928
+ end
4929
+
4728
4930
  # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31)
4729
4931
  # and a repo name within that project.
4730
4932
  class ProjectRepoId
@@ -4751,6 +4953,41 @@ module Google
4751
4953
  end
4752
4954
  end
4753
4955
 
4956
+ # Publisher contains information about the publisher of this Note.
4957
+ class Publisher
4958
+ include Google::Apis::Core::Hashable
4959
+
4960
+ # Provides information about the authority of the issuing party to release the
4961
+ # document, in particular, the party's constituency and responsibilities or
4962
+ # other obligations.
4963
+ # Corresponds to the JSON property `issuingAuthority`
4964
+ # @return [String]
4965
+ attr_accessor :issuing_authority
4966
+
4967
+ # Name of the publisher. Examples: 'Google', 'Google Cloud Platform'.
4968
+ # Corresponds to the JSON property `name`
4969
+ # @return [String]
4970
+ attr_accessor :name
4971
+
4972
+ # The context or namespace. Contains a URL which is under control of the issuing
4973
+ # party and can be used as a globally unique identifier for that issuing party.
4974
+ # Example: https://csaf.io
4975
+ # Corresponds to the JSON property `publisherNamespace`
4976
+ # @return [String]
4977
+ attr_accessor :publisher_namespace
4978
+
4979
+ def initialize(**args)
4980
+ update!(**args)
4981
+ end
4982
+
4983
+ # Update properties of this object
4984
+ def update!(**args)
4985
+ @issuing_authority = args[:issuing_authority] if args.key?(:issuing_authority)
4986
+ @name = args[:name] if args.key?(:name)
4987
+ @publisher_namespace = args[:publisher_namespace] if args.key?(:publisher_namespace)
4988
+ end
4989
+ end
4990
+
4754
4991
  # Steps taken to build the artifact. For a TaskRun, typically each container
4755
4992
  # corresponds to one step in the recipe.
4756
4993
  class Recipe
@@ -4837,6 +5074,37 @@ module Google
4837
5074
  end
4838
5075
  end
4839
5076
 
5077
+ # Specifies details on how to handle (and presumably, fix) a vulnerability.
5078
+ class Remediation
5079
+ include Google::Apis::Core::Hashable
5080
+
5081
+ # Contains a comprehensive human-readable discussion of the remediation.
5082
+ # Corresponds to the JSON property `details`
5083
+ # @return [String]
5084
+ attr_accessor :details
5085
+
5086
+ # The type of remediation that can be applied.
5087
+ # Corresponds to the JSON property `remediationType`
5088
+ # @return [String]
5089
+ attr_accessor :remediation_type
5090
+
5091
+ # Metadata for any related URL information.
5092
+ # Corresponds to the JSON property `remediationUri`
5093
+ # @return [Google::Apis::ContaineranalysisV1::RelatedUrl]
5094
+ attr_accessor :remediation_uri
5095
+
5096
+ def initialize(**args)
5097
+ update!(**args)
5098
+ end
5099
+
5100
+ # Update properties of this object
5101
+ def update!(**args)
5102
+ @details = args[:details] if args.key?(:details)
5103
+ @remediation_type = args[:remediation_type] if args.key?(:remediation_type)
5104
+ @remediation_uri = args[:remediation_uri] if args.key?(:remediation_uri)
5105
+ end
5106
+ end
5107
+
4840
5108
  # A unique identifier for a Cloud Repo.
4841
5109
  class RepoId
4842
5110
  include Google::Apis::Core::Hashable
@@ -5620,6 +5888,67 @@ module Google
5620
5888
  end
5621
5889
  end
5622
5890
 
5891
+ # VexAssessment provides all publisher provided Vex information that is related
5892
+ # to this vulnerability.
5893
+ class VexAssessment
5894
+ include Google::Apis::Core::Hashable
5895
+
5896
+ # Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking
5897
+ # number for the vulnerability.
5898
+ # Corresponds to the JSON property `cve`
5899
+ # @return [String]
5900
+ attr_accessor :cve
5901
+
5902
+ # Contains information about the impact of this vulnerability, this will change
5903
+ # with time.
5904
+ # Corresponds to the JSON property `impacts`
5905
+ # @return [Array<String>]
5906
+ attr_accessor :impacts
5907
+
5908
+ # Justification provides the justification when the state of the assessment if
5909
+ # NOT_AFFECTED.
5910
+ # Corresponds to the JSON property `justification`
5911
+ # @return [Google::Apis::ContaineranalysisV1::Justification]
5912
+ attr_accessor :justification
5913
+
5914
+ # The VulnerabilityAssessment note from which this VexAssessment was generated.
5915
+ # This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`.
5916
+ # Corresponds to the JSON property `noteName`
5917
+ # @return [String]
5918
+ attr_accessor :note_name
5919
+
5920
+ # Holds a list of references associated with this vulnerability item and
5921
+ # assessment.
5922
+ # Corresponds to the JSON property `relatedUris`
5923
+ # @return [Array<Google::Apis::ContaineranalysisV1::RelatedUrl>]
5924
+ attr_accessor :related_uris
5925
+
5926
+ # Specifies details on how to handle (and presumably, fix) a vulnerability.
5927
+ # Corresponds to the JSON property `remediations`
5928
+ # @return [Array<Google::Apis::ContaineranalysisV1::Remediation>]
5929
+ attr_accessor :remediations
5930
+
5931
+ # Provides the state of this Vulnerability assessment.
5932
+ # Corresponds to the JSON property `state`
5933
+ # @return [String]
5934
+ attr_accessor :state
5935
+
5936
+ def initialize(**args)
5937
+ update!(**args)
5938
+ end
5939
+
5940
+ # Update properties of this object
5941
+ def update!(**args)
5942
+ @cve = args[:cve] if args.key?(:cve)
5943
+ @impacts = args[:impacts] if args.key?(:impacts)
5944
+ @justification = args[:justification] if args.key?(:justification)
5945
+ @note_name = args[:note_name] if args.key?(:note_name)
5946
+ @related_uris = args[:related_uris] if args.key?(:related_uris)
5947
+ @remediations = args[:remediations] if args.key?(:remediations)
5948
+ @state = args[:state] if args.key?(:state)
5949
+ end
5950
+ end
5951
+
5623
5952
  # Volume describes a Docker container volume which is mounted into build steps
5624
5953
  # in order to persist files across build step execution. Next ID: 3
5625
5954
  class Volume
@@ -5650,6 +5979,64 @@ module Google
5650
5979
  end
5651
5980
  end
5652
5981
 
5982
+ # A single VulnerabilityAssessmentNote represents one particular product's
5983
+ # vulnerability assessment for one CVE.
5984
+ class VulnerabilityAssessmentNote
5985
+ include Google::Apis::Core::Hashable
5986
+
5987
+ # Assessment provides all information that is related to a single vulnerability
5988
+ # for this product.
5989
+ # Corresponds to the JSON property `assessment`
5990
+ # @return [Google::Apis::ContaineranalysisV1::Assessment]
5991
+ attr_accessor :assessment
5992
+
5993
+ # Identifies the language used by this document, corresponding to IETF BCP 47 /
5994
+ # RFC 5646.
5995
+ # Corresponds to the JSON property `languageCode`
5996
+ # @return [String]
5997
+ attr_accessor :language_code
5998
+
5999
+ # A detailed description of this Vex.
6000
+ # Corresponds to the JSON property `longDescription`
6001
+ # @return [String]
6002
+ attr_accessor :long_description
6003
+
6004
+ # Product contains information about a product and how to uniquely identify it.
6005
+ # Corresponds to the JSON property `product`
6006
+ # @return [Google::Apis::ContaineranalysisV1::Product]
6007
+ attr_accessor :product
6008
+
6009
+ # Publisher contains information about the publisher of this Note.
6010
+ # Corresponds to the JSON property `publisher`
6011
+ # @return [Google::Apis::ContaineranalysisV1::Publisher]
6012
+ attr_accessor :publisher
6013
+
6014
+ # A one sentence description of this Vex.
6015
+ # Corresponds to the JSON property `shortDescription`
6016
+ # @return [String]
6017
+ attr_accessor :short_description
6018
+
6019
+ # The title of the note. E.g. `Vex-Debian-11.4`
6020
+ # Corresponds to the JSON property `title`
6021
+ # @return [String]
6022
+ attr_accessor :title
6023
+
6024
+ def initialize(**args)
6025
+ update!(**args)
6026
+ end
6027
+
6028
+ # Update properties of this object
6029
+ def update!(**args)
6030
+ @assessment = args[:assessment] if args.key?(:assessment)
6031
+ @language_code = args[:language_code] if args.key?(:language_code)
6032
+ @long_description = args[:long_description] if args.key?(:long_description)
6033
+ @product = args[:product] if args.key?(:product)
6034
+ @publisher = args[:publisher] if args.key?(:publisher)
6035
+ @short_description = args[:short_description] if args.key?(:short_description)
6036
+ @title = args[:title] if args.key?(:title)
6037
+ end
6038
+ end
6039
+
5653
6040
  # A security vulnerability that can be found in resources.
5654
6041
  class VulnerabilityNote
5655
6042
  include Google::Apis::Core::Hashable
@@ -5802,6 +6189,12 @@ module Google
5802
6189
  # @return [String]
5803
6190
  attr_accessor :type
5804
6191
 
6192
+ # VexAssessment provides all publisher provided Vex information that is related
6193
+ # to this vulnerability.
6194
+ # Corresponds to the JSON property `vexAssessment`
6195
+ # @return [Google::Apis::ContaineranalysisV1::VexAssessment]
6196
+ attr_accessor :vex_assessment
6197
+
5805
6198
  def initialize(**args)
5806
6199
  update!(**args)
5807
6200
  end
@@ -5820,6 +6213,7 @@ module Google
5820
6213
  @severity = args[:severity] if args.key?(:severity)
5821
6214
  @short_description = args[:short_description] if args.key?(:short_description)
5822
6215
  @type = args[:type] if args.key?(:type)
6216
+ @vex_assessment = args[:vex_assessment] if args.key?(:vex_assessment)
5823
6217
  end
5824
6218
  end
5825
6219
 
@@ -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.30.0"
19
+ GEM_VERSION = "0.31.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 = "20230310"
25
+ REVISION = "20230317"
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
 
@@ -454,6 +460,12 @@ module Google
454
460
  include Google::Apis::Core::JsonObjectSupport
455
461
  end
456
462
 
463
+ class GeneratePackagesSummaryRequest
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
457
469
  class GerritSourceContext
458
470
  class Representation < Google::Apis::Core::JsonRepresentation; end
459
471
 
@@ -568,6 +580,12 @@ module Google
568
580
  include Google::Apis::Core::JsonObjectSupport
569
581
  end
570
582
 
583
+ class Justification
584
+ class Representation < Google::Apis::Core::JsonRepresentation; end
585
+
586
+ include Google::Apis::Core::JsonObjectSupport
587
+ end
588
+
571
589
  class Jwt
572
590
  class Representation < Google::Apis::Core::JsonRepresentation; end
573
591
 
@@ -592,6 +610,12 @@ module Google
592
610
  include Google::Apis::Core::JsonObjectSupport
593
611
  end
594
612
 
613
+ class LicensesSummary
614
+ class Representation < Google::Apis::Core::JsonRepresentation; end
615
+
616
+ include Google::Apis::Core::JsonObjectSupport
617
+ end
618
+
595
619
  class ListNoteOccurrencesResponse
596
620
  class Representation < Google::Apis::Core::JsonRepresentation; end
597
621
 
@@ -664,18 +688,36 @@ module Google
664
688
  include Google::Apis::Core::JsonObjectSupport
665
689
  end
666
690
 
691
+ class PackagesSummaryResponse
692
+ class Representation < Google::Apis::Core::JsonRepresentation; end
693
+
694
+ include Google::Apis::Core::JsonObjectSupport
695
+ end
696
+
667
697
  class Policy
668
698
  class Representation < Google::Apis::Core::JsonRepresentation; end
669
699
 
670
700
  include Google::Apis::Core::JsonObjectSupport
671
701
  end
672
702
 
703
+ class Product
704
+ class Representation < Google::Apis::Core::JsonRepresentation; end
705
+
706
+ include Google::Apis::Core::JsonObjectSupport
707
+ end
708
+
673
709
  class ProjectRepoId
674
710
  class Representation < Google::Apis::Core::JsonRepresentation; end
675
711
 
676
712
  include Google::Apis::Core::JsonObjectSupport
677
713
  end
678
714
 
715
+ class Publisher
716
+ class Representation < Google::Apis::Core::JsonRepresentation; end
717
+
718
+ include Google::Apis::Core::JsonObjectSupport
719
+ end
720
+
679
721
  class Recipe
680
722
  class Representation < Google::Apis::Core::JsonRepresentation; end
681
723
 
@@ -688,6 +730,12 @@ module Google
688
730
  include Google::Apis::Core::JsonObjectSupport
689
731
  end
690
732
 
733
+ class Remediation
734
+ class Representation < Google::Apis::Core::JsonRepresentation; end
735
+
736
+ include Google::Apis::Core::JsonObjectSupport
737
+ end
738
+
691
739
  class RepoId
692
740
  class Representation < Google::Apis::Core::JsonRepresentation; end
693
741
 
@@ -808,12 +856,24 @@ module Google
808
856
  include Google::Apis::Core::JsonObjectSupport
809
857
  end
810
858
 
859
+ class VexAssessment
860
+ class Representation < Google::Apis::Core::JsonRepresentation; end
861
+
862
+ include Google::Apis::Core::JsonObjectSupport
863
+ end
864
+
811
865
  class Volume
812
866
  class Representation < Google::Apis::Core::JsonRepresentation; end
813
867
 
814
868
  include Google::Apis::Core::JsonObjectSupport
815
869
  end
816
870
 
871
+ class VulnerabilityAssessmentNote
872
+ class Representation < Google::Apis::Core::JsonRepresentation; end
873
+
874
+ include Google::Apis::Core::JsonObjectSupport
875
+ end
876
+
817
877
  class VulnerabilityNote
818
878
  class Representation < Google::Apis::Core::JsonRepresentation; end
819
879
 
@@ -868,6 +928,23 @@ module Google
868
928
  end
869
929
  end
870
930
 
931
+ class Assessment
932
+ # @private
933
+ class Representation < Google::Apis::Core::JsonRepresentation
934
+ property :cve, as: 'cve'
935
+ collection :impacts, as: 'impacts'
936
+ property :justification, as: 'justification', class: Google::Apis::ContaineranalysisV1::Justification, decorator: Google::Apis::ContaineranalysisV1::Justification::Representation
937
+
938
+ property :long_description, as: 'longDescription'
939
+ collection :related_uris, as: 'relatedUris', class: Google::Apis::ContaineranalysisV1::RelatedUrl, decorator: Google::Apis::ContaineranalysisV1::RelatedUrl::Representation
940
+
941
+ collection :remediations, as: 'remediations', class: Google::Apis::ContaineranalysisV1::Remediation, decorator: Google::Apis::ContaineranalysisV1::Remediation::Representation
942
+
943
+ property :short_description, as: 'shortDescription'
944
+ property :state, as: 'state'
945
+ end
946
+ end
947
+
871
948
  class AttestationNote
872
949
  # @private
873
950
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1657,6 +1734,12 @@ module Google
1657
1734
  end
1658
1735
  end
1659
1736
 
1737
+ class GeneratePackagesSummaryRequest
1738
+ # @private
1739
+ class Representation < Google::Apis::Core::JsonRepresentation
1740
+ end
1741
+ end
1742
+
1660
1743
  class GerritSourceContext
1661
1744
  # @private
1662
1745
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1834,6 +1917,14 @@ module Google
1834
1917
  end
1835
1918
  end
1836
1919
 
1920
+ class Justification
1921
+ # @private
1922
+ class Representation < Google::Apis::Core::JsonRepresentation
1923
+ property :details, as: 'details'
1924
+ property :justification_type, as: 'justificationType'
1925
+ end
1926
+ end
1927
+
1837
1928
  class Jwt
1838
1929
  # @private
1839
1930
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1865,6 +1956,14 @@ module Google
1865
1956
  end
1866
1957
  end
1867
1958
 
1959
+ class LicensesSummary
1960
+ # @private
1961
+ class Representation < Google::Apis::Core::JsonRepresentation
1962
+ property :count, :numeric_string => true, as: 'count'
1963
+ property :license, as: 'license'
1964
+ end
1965
+ end
1966
+
1868
1967
  class ListNoteOccurrencesResponse
1869
1968
  # @private
1870
1969
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1964,6 +2063,8 @@ module Google
1964
2063
 
1965
2064
  property :vulnerability, as: 'vulnerability', class: Google::Apis::ContaineranalysisV1::VulnerabilityNote, decorator: Google::Apis::ContaineranalysisV1::VulnerabilityNote::Representation
1966
2065
 
2066
+ property :vulnerability_assessment, as: 'vulnerabilityAssessment', class: Google::Apis::ContaineranalysisV1::VulnerabilityAssessmentNote, decorator: Google::Apis::ContaineranalysisV1::VulnerabilityAssessmentNote::Representation
2067
+
1967
2068
  end
1968
2069
  end
1969
2070
 
@@ -2058,6 +2159,15 @@ module Google
2058
2159
  end
2059
2160
  end
2060
2161
 
2162
+ class PackagesSummaryResponse
2163
+ # @private
2164
+ class Representation < Google::Apis::Core::JsonRepresentation
2165
+ collection :licenses_summary, as: 'licensesSummary', class: Google::Apis::ContaineranalysisV1::LicensesSummary, decorator: Google::Apis::ContaineranalysisV1::LicensesSummary::Representation
2166
+
2167
+ property :resource_url, as: 'resourceUrl'
2168
+ end
2169
+ end
2170
+
2061
2171
  class Policy
2062
2172
  # @private
2063
2173
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2068,6 +2178,15 @@ module Google
2068
2178
  end
2069
2179
  end
2070
2180
 
2181
+ class Product
2182
+ # @private
2183
+ class Representation < Google::Apis::Core::JsonRepresentation
2184
+ property :generic_uri, as: 'genericUri'
2185
+ property :id, as: 'id'
2186
+ property :name, as: 'name'
2187
+ end
2188
+ end
2189
+
2071
2190
  class ProjectRepoId
2072
2191
  # @private
2073
2192
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2076,6 +2195,15 @@ module Google
2076
2195
  end
2077
2196
  end
2078
2197
 
2198
+ class Publisher
2199
+ # @private
2200
+ class Representation < Google::Apis::Core::JsonRepresentation
2201
+ property :issuing_authority, as: 'issuingAuthority'
2202
+ property :name, as: 'name'
2203
+ property :publisher_namespace, as: 'publisherNamespace'
2204
+ end
2205
+ end
2206
+
2079
2207
  class Recipe
2080
2208
  # @private
2081
2209
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2095,6 +2223,16 @@ module Google
2095
2223
  end
2096
2224
  end
2097
2225
 
2226
+ class Remediation
2227
+ # @private
2228
+ class Representation < Google::Apis::Core::JsonRepresentation
2229
+ property :details, as: 'details'
2230
+ property :remediation_type, as: 'remediationType'
2231
+ property :remediation_uri, as: 'remediationUri', class: Google::Apis::ContaineranalysisV1::RelatedUrl, decorator: Google::Apis::ContaineranalysisV1::RelatedUrl::Representation
2232
+
2233
+ end
2234
+ end
2235
+
2098
2236
  class RepoId
2099
2237
  # @private
2100
2238
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2302,6 +2440,22 @@ module Google
2302
2440
  end
2303
2441
  end
2304
2442
 
2443
+ class VexAssessment
2444
+ # @private
2445
+ class Representation < Google::Apis::Core::JsonRepresentation
2446
+ property :cve, as: 'cve'
2447
+ collection :impacts, as: 'impacts'
2448
+ property :justification, as: 'justification', class: Google::Apis::ContaineranalysisV1::Justification, decorator: Google::Apis::ContaineranalysisV1::Justification::Representation
2449
+
2450
+ property :note_name, as: 'noteName'
2451
+ collection :related_uris, as: 'relatedUris', class: Google::Apis::ContaineranalysisV1::RelatedUrl, decorator: Google::Apis::ContaineranalysisV1::RelatedUrl::Representation
2452
+
2453
+ collection :remediations, as: 'remediations', class: Google::Apis::ContaineranalysisV1::Remediation, decorator: Google::Apis::ContaineranalysisV1::Remediation::Representation
2454
+
2455
+ property :state, as: 'state'
2456
+ end
2457
+ end
2458
+
2305
2459
  class Volume
2306
2460
  # @private
2307
2461
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2310,6 +2464,22 @@ module Google
2310
2464
  end
2311
2465
  end
2312
2466
 
2467
+ class VulnerabilityAssessmentNote
2468
+ # @private
2469
+ class Representation < Google::Apis::Core::JsonRepresentation
2470
+ property :assessment, as: 'assessment', class: Google::Apis::ContaineranalysisV1::Assessment, decorator: Google::Apis::ContaineranalysisV1::Assessment::Representation
2471
+
2472
+ property :language_code, as: 'languageCode'
2473
+ property :long_description, as: 'longDescription'
2474
+ property :product, as: 'product', class: Google::Apis::ContaineranalysisV1::Product, decorator: Google::Apis::ContaineranalysisV1::Product::Representation
2475
+
2476
+ property :publisher, as: 'publisher', class: Google::Apis::ContaineranalysisV1::Publisher, decorator: Google::Apis::ContaineranalysisV1::Publisher::Representation
2477
+
2478
+ property :short_description, as: 'shortDescription'
2479
+ property :title, as: 'title'
2480
+ end
2481
+ end
2482
+
2313
2483
  class VulnerabilityNote
2314
2484
  # @private
2315
2485
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2347,6 +2517,8 @@ module Google
2347
2517
  property :severity, as: 'severity'
2348
2518
  property :short_description, as: 'shortDescription'
2349
2519
  property :type, as: 'type'
2520
+ property :vex_assessment, as: 'vexAssessment', class: Google::Apis::ContaineranalysisV1::VexAssessment, decorator: Google::Apis::ContaineranalysisV1::VexAssessment::Representation
2521
+
2350
2522
  end
2351
2523
  end
2352
2524
 
@@ -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.30.0
4
+ version: 0.31.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-03-19 00:00:00.000000000 Z
11
+ date: 2023-03-26 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.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.31.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: []