google-apis-containeranalysis_v1beta1 0.16.0 → 0.19.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: 164a8dab841fc8c98f407759d39cb0b315be0fb41db3e121b558cea408bc8050
4
- data.tar.gz: 19cb314bf16f1e11f8c188a6275c20d0f39148bbea64d875d69427898427c76f
3
+ metadata.gz: f6eeeb98a5e5485ee742b077c1d2aec1e531624b0b272dac1a4848daaef443c1
4
+ data.tar.gz: e499896e28dee41545fc431f85746ea82e25630bef967089d631d90d39626174
5
5
  SHA512:
6
- metadata.gz: 9afe3ededcb8adf46deb8ed026e10f71d7f5ab99e9164964ef9e28e0c31f2494f24d82254c03464e381a65f06d4a70a9f62da4e613a7fc5d5e451a2f590a7708
7
- data.tar.gz: a238801ebd42ce19fc3a4386df25fc67251a1ef49fd80213826430e208fc4741f97d6d29b46cd36f785cb883f49b89b642ca0041ccab6a9547c183da103c79a8
6
+ metadata.gz: 8e9abfccb097fa164c1437d560be9af274eccc7f2cca0d92e045c43a06b1905858a459063d976239ef375bfe6addbcdba4af7d7a55e72627ebb4bfd44e23cf67
7
+ data.tar.gz: 9a0a0b94f92df6c26d2b2a99f067904f6ce68b33bc64537b097b03fd2b3a87d25457e1512167df3d9dd0eca5f9aa947b4c09e1e5f49f1778cd8339fd7cbdf39e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-containeranalysis_v1beta1
2
2
 
3
+ ### v0.19.0 (2022-05-18)
4
+
5
+ * Regenerated from discovery document revision 20220513
6
+
7
+ ### v0.18.0 (2022-05-11)
8
+
9
+ * Regenerated from discovery document revision 20220506
10
+
11
+ ### v0.17.0 (2022-04-21)
12
+
13
+ * Regenerated from discovery document revision 20220414
14
+
3
15
  ### v0.16.0 (2022-03-23)
4
16
 
5
17
  * Regenerated from discovery document revision 20220318
@@ -317,7 +317,7 @@ module Google
317
317
  # @return [Google::Apis::ContaineranalysisV1beta1::Expr]
318
318
  attr_accessor :condition
319
319
 
320
- # Specifies the principals requesting access for a Cloud Platform resource. `
320
+ # Specifies the principals requesting access for a Google Cloud resource. `
321
321
  # members` can have the following values: * `allUsers`: A special identifier
322
322
  # that represents anyone who is on the internet; with or without a Google
323
323
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -557,8 +557,99 @@ module Google
557
557
  end
558
558
  end
559
559
 
560
- # Common Vulnerability Scoring System version 3. For details, see https://www.
561
- # first.org/cvss/specification-document
560
+ # Common Vulnerability Scoring System. This message is compatible with CVSS v2
561
+ # and v3. For CVSS v2 details, see https://www.first.org/cvss/v2/guide CVSS v2
562
+ # calculator: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator For CVSS v3
563
+ # details, see https://www.first.org/cvss/specification-document CVSS v3
564
+ # calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator
565
+ class Cvss
566
+ include Google::Apis::Core::Hashable
567
+
568
+ # Defined in CVSS v3, CVSS v2
569
+ # Corresponds to the JSON property `attackComplexity`
570
+ # @return [String]
571
+ attr_accessor :attack_complexity
572
+
573
+ # Base Metrics Represents the intrinsic characteristics of a vulnerability that
574
+ # are constant over time and across user environments. Defined in CVSS v3, CVSS
575
+ # v2
576
+ # Corresponds to the JSON property `attackVector`
577
+ # @return [String]
578
+ attr_accessor :attack_vector
579
+
580
+ # Defined in CVSS v2
581
+ # Corresponds to the JSON property `authentication`
582
+ # @return [String]
583
+ attr_accessor :authentication
584
+
585
+ # Defined in CVSS v3, CVSS v2
586
+ # Corresponds to the JSON property `availabilityImpact`
587
+ # @return [String]
588
+ attr_accessor :availability_impact
589
+
590
+ # The base score is a function of the base metric scores.
591
+ # Corresponds to the JSON property `baseScore`
592
+ # @return [Float]
593
+ attr_accessor :base_score
594
+
595
+ # Defined in CVSS v3, CVSS v2
596
+ # Corresponds to the JSON property `confidentialityImpact`
597
+ # @return [String]
598
+ attr_accessor :confidentiality_impact
599
+
600
+ #
601
+ # Corresponds to the JSON property `exploitabilityScore`
602
+ # @return [Float]
603
+ attr_accessor :exploitability_score
604
+
605
+ #
606
+ # Corresponds to the JSON property `impactScore`
607
+ # @return [Float]
608
+ attr_accessor :impact_score
609
+
610
+ # Defined in CVSS v3, CVSS v2
611
+ # Corresponds to the JSON property `integrityImpact`
612
+ # @return [String]
613
+ attr_accessor :integrity_impact
614
+
615
+ # Defined in CVSS v3
616
+ # Corresponds to the JSON property `privilegesRequired`
617
+ # @return [String]
618
+ attr_accessor :privileges_required
619
+
620
+ # Defined in CVSS v3
621
+ # Corresponds to the JSON property `scope`
622
+ # @return [String]
623
+ attr_accessor :scope
624
+
625
+ # Defined in CVSS v3
626
+ # Corresponds to the JSON property `userInteraction`
627
+ # @return [String]
628
+ attr_accessor :user_interaction
629
+
630
+ def initialize(**args)
631
+ update!(**args)
632
+ end
633
+
634
+ # Update properties of this object
635
+ def update!(**args)
636
+ @attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
637
+ @attack_vector = args[:attack_vector] if args.key?(:attack_vector)
638
+ @authentication = args[:authentication] if args.key?(:authentication)
639
+ @availability_impact = args[:availability_impact] if args.key?(:availability_impact)
640
+ @base_score = args[:base_score] if args.key?(:base_score)
641
+ @confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
642
+ @exploitability_score = args[:exploitability_score] if args.key?(:exploitability_score)
643
+ @impact_score = args[:impact_score] if args.key?(:impact_score)
644
+ @integrity_impact = args[:integrity_impact] if args.key?(:integrity_impact)
645
+ @privileges_required = args[:privileges_required] if args.key?(:privileges_required)
646
+ @scope = args[:scope] if args.key?(:scope)
647
+ @user_interaction = args[:user_interaction] if args.key?(:user_interaction)
648
+ end
649
+ end
650
+
651
+ # Deprecated. Common Vulnerability Scoring System version 3. For details, see
652
+ # https://www.first.org/cvss/specification-document
562
653
  class CvsSv3
563
654
  include Google::Apis::Core::Hashable
564
655
 
@@ -2192,6 +2283,32 @@ module Google
2192
2283
  end
2193
2284
  end
2194
2285
 
2286
+ # Digest information.
2287
+ class Digest
2288
+ include Google::Apis::Core::Hashable
2289
+
2290
+ # `SHA1`, `SHA512` etc.
2291
+ # Corresponds to the JSON property `algo`
2292
+ # @return [String]
2293
+ attr_accessor :algo
2294
+
2295
+ # Value of the digest encoded. For example: SHA512 - base64 encoding, SHA1 - hex
2296
+ # encoding.
2297
+ # Corresponds to the JSON property `digestValue`
2298
+ # @return [String]
2299
+ attr_accessor :digest_value
2300
+
2301
+ def initialize(**args)
2302
+ update!(**args)
2303
+ end
2304
+
2305
+ # Update properties of this object
2306
+ def update!(**args)
2307
+ @algo = args[:algo] if args.key?(:algo)
2308
+ @digest_value = args[:digest_value] if args.key?(:digest_value)
2309
+ end
2310
+ end
2311
+
2195
2312
  # Provides information about the analysis status of a discovered resource.
2196
2313
  class Discovered
2197
2314
  include Google::Apis::Core::Hashable
@@ -2308,7 +2425,7 @@ module Google
2308
2425
  end
2309
2426
  end
2310
2427
 
2311
- # DocumentNote represents an SPDX Document Creation Infromation section: https://
2428
+ # DocumentNote represents an SPDX Document Creation Information section: https://
2312
2429
  # spdx.github.io/spdx-spec/2-document-creation-information/
2313
2430
  class DocumentNote
2314
2431
  include Google::Apis::Core::Hashable
@@ -2430,6 +2547,65 @@ module Google
2430
2547
  end
2431
2548
  end
2432
2549
 
2550
+ # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.
2551
+ # proto. An authenticated message of arbitrary type.
2552
+ class Envelope
2553
+ include Google::Apis::Core::Hashable
2554
+
2555
+ #
2556
+ # Corresponds to the JSON property `payload`
2557
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2558
+ # @return [String]
2559
+ attr_accessor :payload
2560
+
2561
+ #
2562
+ # Corresponds to the JSON property `payloadType`
2563
+ # @return [String]
2564
+ attr_accessor :payload_type
2565
+
2566
+ #
2567
+ # Corresponds to the JSON property `signatures`
2568
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::EnvelopeSignature>]
2569
+ attr_accessor :signatures
2570
+
2571
+ def initialize(**args)
2572
+ update!(**args)
2573
+ end
2574
+
2575
+ # Update properties of this object
2576
+ def update!(**args)
2577
+ @payload = args[:payload] if args.key?(:payload)
2578
+ @payload_type = args[:payload_type] if args.key?(:payload_type)
2579
+ @signatures = args[:signatures] if args.key?(:signatures)
2580
+ end
2581
+ end
2582
+
2583
+ #
2584
+ class EnvelopeSignature
2585
+ include Google::Apis::Core::Hashable
2586
+
2587
+ #
2588
+ # Corresponds to the JSON property `keyid`
2589
+ # @return [String]
2590
+ attr_accessor :keyid
2591
+
2592
+ #
2593
+ # Corresponds to the JSON property `sig`
2594
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2595
+ # @return [String]
2596
+ attr_accessor :sig
2597
+
2598
+ def initialize(**args)
2599
+ update!(**args)
2600
+ end
2601
+
2602
+ # Update properties of this object
2603
+ def update!(**args)
2604
+ @keyid = args[:keyid] if args.key?(:keyid)
2605
+ @sig = args[:sig] if args.key?(:sig)
2606
+ end
2607
+ end
2608
+
2433
2609
  # Defines an object for the environment field in in-toto links. The suggested
2434
2610
  # fields are "variables", "filesystem", and "workdir".
2435
2611
  class Environment
@@ -2639,8 +2815,7 @@ module Google
2639
2815
  # @return [String]
2640
2816
  attr_accessor :id
2641
2817
 
2642
- # License information: https://spdx.github.io/spdx-spec/3-package-information/#
2643
- # 315-declared-license
2818
+ # License information.
2644
2819
  # Corresponds to the JSON property `licenseConcluded`
2645
2820
  # @return [Google::Apis::ContaineranalysisV1beta1::License]
2646
2821
  attr_accessor :license_concluded
@@ -3288,25 +3463,59 @@ module Google
3288
3463
  class Installation
3289
3464
  include Google::Apis::Core::Hashable
3290
3465
 
3291
- # Required. All of the places within the filesystem versions of this package
3292
- # have been found.
3466
+ # Output only. The CPU architecture for which packages in this distribution
3467
+ # channel were built. Architecture will be blank for language packages.
3468
+ # Corresponds to the JSON property `architecture`
3469
+ # @return [String]
3470
+ attr_accessor :architecture
3471
+
3472
+ # Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
3473
+ # denoting the package manager version distributing a package. The cpe_uri will
3474
+ # be blank for language packages.
3475
+ # Corresponds to the JSON property `cpeUri`
3476
+ # @return [String]
3477
+ attr_accessor :cpe_uri
3478
+
3479
+ # License information.
3480
+ # Corresponds to the JSON property `license`
3481
+ # @return [Google::Apis::ContaineranalysisV1beta1::License]
3482
+ attr_accessor :license
3483
+
3484
+ # All of the places within the filesystem versions of this package have been
3485
+ # found.
3293
3486
  # Corresponds to the JSON property `location`
3294
3487
  # @return [Array<Google::Apis::ContaineranalysisV1beta1::Location>]
3295
3488
  attr_accessor :location
3296
3489
 
3297
- # Output only. The name of the installed package.
3490
+ # Required. Output only. The name of the installed package.
3298
3491
  # Corresponds to the JSON property `name`
3299
3492
  # @return [String]
3300
3493
  attr_accessor :name
3301
3494
 
3495
+ # Output only. The type of package; whether native or non native (e.g., ruby
3496
+ # gems, node.js packages, etc.).
3497
+ # Corresponds to the JSON property `packageType`
3498
+ # @return [String]
3499
+ attr_accessor :package_type
3500
+
3501
+ # Version contains structured information about the version of a package.
3502
+ # Corresponds to the JSON property `version`
3503
+ # @return [Google::Apis::ContaineranalysisV1beta1::Version]
3504
+ attr_accessor :version
3505
+
3302
3506
  def initialize(**args)
3303
3507
  update!(**args)
3304
3508
  end
3305
3509
 
3306
3510
  # Update properties of this object
3307
3511
  def update!(**args)
3512
+ @architecture = args[:architecture] if args.key?(:architecture)
3513
+ @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
3514
+ @license = args[:license] if args.key?(:license)
3308
3515
  @location = args[:location] if args.key?(:location)
3309
3516
  @name = args[:name] if args.key?(:name)
3517
+ @package_type = args[:package_type] if args.key?(:package_type)
3518
+ @version = args[:version] if args.key?(:version)
3310
3519
  end
3311
3520
  end
3312
3521
 
@@ -3361,8 +3570,7 @@ module Google
3361
3570
  end
3362
3571
  end
3363
3572
 
3364
- # License information: https://spdx.github.io/spdx-spec/3-package-information/#
3365
- # 315-declared-license
3573
+ # License information.
3366
3574
  class License
3367
3575
  include Google::Apis::Core::Hashable
3368
3576
 
@@ -3371,8 +3579,10 @@ module Google
3371
3579
  # @return [String]
3372
3580
  attr_accessor :comments
3373
3581
 
3374
- # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-
3375
- # expressions/
3582
+ # Often a single license can be used to represent the licensing terms. Sometimes
3583
+ # it is necessary to include a choice of one or more licenses or some
3584
+ # combination of license identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.
3585
+ # 1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".
3376
3586
  # Corresponds to the JSON property `expression`
3377
3587
  # @return [String]
3378
3588
  attr_accessor :expression
@@ -3550,7 +3760,7 @@ module Google
3550
3760
  class Location
3551
3761
  include Google::Apis::Core::Hashable
3552
3762
 
3553
- # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
3763
+ # Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
3554
3764
  # denoting the package manager version distributing a package.
3555
3765
  # Corresponds to the JSON property `cpeUri`
3556
3766
  # @return [String]
@@ -3653,8 +3863,7 @@ module Google
3653
3863
  # @return [String]
3654
3864
  attr_accessor :name
3655
3865
 
3656
- # This represents a particular package that is distributed over various channels.
3657
- # E.g., glibc (aka libc6) is distributed by many, at various versions.
3866
+ # Package represents a particular package version.
3658
3867
  # Corresponds to the JSON property `package`
3659
3868
  # @return [Google::Apis::ContaineranalysisV1beta1::Package]
3660
3869
  attr_accessor :package
@@ -3669,7 +3878,7 @@ module Google
3669
3878
  # @return [Array<Google::Apis::ContaineranalysisV1beta1::RelatedUrl>]
3670
3879
  attr_accessor :related_url
3671
3880
 
3672
- # DocumentNote represents an SPDX Document Creation Infromation section: https://
3881
+ # DocumentNote represents an SPDX Document Creation Information section: https://
3673
3882
  # spdx.github.io/spdx-spec/2-document-creation-information/
3674
3883
  # Corresponds to the JSON property `sbom`
3675
3884
  # @return [Google::Apis::ContaineranalysisV1beta1::DocumentNote]
@@ -3773,6 +3982,12 @@ module Google
3773
3982
  # @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1DiscoveryDetails]
3774
3983
  attr_accessor :discovered
3775
3984
 
3985
+ # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.
3986
+ # proto. An authenticated message of arbitrary type.
3987
+ # Corresponds to the JSON property `envelope`
3988
+ # @return [Google::Apis::ContaineranalysisV1beta1::Envelope]
3989
+ attr_accessor :envelope
3990
+
3776
3991
  # Details of a package occurrence.
3777
3992
  # Corresponds to the JSON property `installation`
3778
3993
  # @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1PackageDetails]
@@ -3860,6 +4075,7 @@ module Google
3860
4075
  @deployment = args[:deployment] if args.key?(:deployment)
3861
4076
  @derived_image = args[:derived_image] if args.key?(:derived_image)
3862
4077
  @discovered = args[:discovered] if args.key?(:discovered)
4078
+ @envelope = args[:envelope] if args.key?(:envelope)
3863
4079
  @installation = args[:installation] if args.key?(:installation)
3864
4080
  @intoto = args[:intoto] if args.key?(:intoto)
3865
4081
  @kind = args[:kind] if args.key?(:kind)
@@ -3876,29 +4092,87 @@ module Google
3876
4092
  end
3877
4093
  end
3878
4094
 
3879
- # This represents a particular package that is distributed over various channels.
3880
- # E.g., glibc (aka libc6) is distributed by many, at various versions.
4095
+ # Package represents a particular package version.
3881
4096
  class Package
3882
4097
  include Google::Apis::Core::Hashable
3883
4098
 
4099
+ # The CPU architecture for which packages in this distribution channel were
4100
+ # built. Architecture will be blank for language packages.
4101
+ # Corresponds to the JSON property `architecture`
4102
+ # @return [String]
4103
+ attr_accessor :architecture
4104
+
4105
+ # The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the
4106
+ # package manager version distributing a package. The cpe_uri will be blank for
4107
+ # language packages.
4108
+ # Corresponds to the JSON property `cpeUri`
4109
+ # @return [String]
4110
+ attr_accessor :cpe_uri
4111
+
4112
+ # The description of this package.
4113
+ # Corresponds to the JSON property `description`
4114
+ # @return [String]
4115
+ attr_accessor :description
4116
+
4117
+ # Hash value, typically a file digest, that allows unique identification a
4118
+ # specific package.
4119
+ # Corresponds to the JSON property `digest`
4120
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::Digest>]
4121
+ attr_accessor :digest
4122
+
3884
4123
  # The various channels by which a package is distributed.
3885
4124
  # Corresponds to the JSON property `distribution`
3886
4125
  # @return [Array<Google::Apis::ContaineranalysisV1beta1::Distribution>]
3887
4126
  attr_accessor :distribution
3888
4127
 
4128
+ # License information.
4129
+ # Corresponds to the JSON property `license`
4130
+ # @return [Google::Apis::ContaineranalysisV1beta1::License]
4131
+ attr_accessor :license
4132
+
4133
+ # A freeform text denoting the maintainer of this package.
4134
+ # Corresponds to the JSON property `maintainer`
4135
+ # @return [String]
4136
+ attr_accessor :maintainer
4137
+
3889
4138
  # Required. Immutable. The name of the package.
3890
4139
  # Corresponds to the JSON property `name`
3891
4140
  # @return [String]
3892
4141
  attr_accessor :name
3893
4142
 
4143
+ # The type of package; whether native or non native (e.g., ruby gems, node.js
4144
+ # packages, etc.).
4145
+ # Corresponds to the JSON property `packageType`
4146
+ # @return [String]
4147
+ attr_accessor :package_type
4148
+
4149
+ # The homepage for this package.
4150
+ # Corresponds to the JSON property `url`
4151
+ # @return [String]
4152
+ attr_accessor :url
4153
+
4154
+ # Version contains structured information about the version of a package.
4155
+ # Corresponds to the JSON property `version`
4156
+ # @return [Google::Apis::ContaineranalysisV1beta1::Version]
4157
+ attr_accessor :version
4158
+
3894
4159
  def initialize(**args)
3895
4160
  update!(**args)
3896
4161
  end
3897
4162
 
3898
4163
  # Update properties of this object
3899
4164
  def update!(**args)
4165
+ @architecture = args[:architecture] if args.key?(:architecture)
4166
+ @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
4167
+ @description = args[:description] if args.key?(:description)
4168
+ @digest = args[:digest] if args.key?(:digest)
3900
4169
  @distribution = args[:distribution] if args.key?(:distribution)
4170
+ @license = args[:license] if args.key?(:license)
4171
+ @maintainer = args[:maintainer] if args.key?(:maintainer)
3901
4172
  @name = args[:name] if args.key?(:name)
4173
+ @package_type = args[:package_type] if args.key?(:package_type)
4174
+ @url = args[:url] if args.key?(:url)
4175
+ @version = args[:version] if args.key?(:version)
3902
4176
  end
3903
4177
  end
3904
4178
 
@@ -3963,8 +4237,7 @@ module Google
3963
4237
  # @return [String]
3964
4238
  attr_accessor :home_page
3965
4239
 
3966
- # License information: https://spdx.github.io/spdx-spec/3-package-information/#
3967
- # 315-declared-license
4240
+ # License information.
3968
4241
  # Corresponds to the JSON property `licenseDeclared`
3969
4242
  # @return [Google::Apis::ContaineranalysisV1beta1::License]
3970
4243
  attr_accessor :license_declared
@@ -4065,8 +4338,7 @@ module Google
4065
4338
  # @return [String]
4066
4339
  attr_accessor :id
4067
4340
 
4068
- # License information: https://spdx.github.io/spdx-spec/3-package-information/#
4069
- # 315-declared-license
4341
+ # License information.
4070
4342
  # Corresponds to the JSON property `licenseConcluded`
4071
4343
  # @return [Google::Apis::ContaineranalysisV1beta1::License]
4072
4344
  attr_accessor :license_concluded
@@ -4180,7 +4452,7 @@ module Google
4180
4452
 
4181
4453
  # The cryptographic fingerprint of the key used to generate the signature, as
4182
4454
  # output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit
4183
- # fingerprint, expressed as a 40 character hexidecimal string. See https://tools.
4455
+ # fingerprint, expressed as a 40 character hexadecimal string. See https://tools.
4184
4456
  # ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to
4185
4457
  # acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full
4186
4458
  # fingerprint is guaranteed to work. In gpg, the full fingerprint can be
@@ -4801,7 +5073,7 @@ module Google
4801
5073
  include Google::Apis::Core::Hashable
4802
5074
 
4803
5075
  # The set of permissions to check for the `resource`. Permissions with wildcards
4804
- # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
5076
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
4805
5077
  # Overview](https://cloud.google.com/iam/docs/overview#permissions).
4806
5078
  # Corresponds to the JSON property `permissions`
4807
5079
  # @return [Array<String>]
@@ -4894,12 +5166,27 @@ module Google
4894
5166
  # @return [Float]
4895
5167
  attr_accessor :cvss_score
4896
5168
 
4897
- # Common Vulnerability Scoring System version 3. For details, see https://www.
4898
- # first.org/cvss/specification-document
5169
+ # Common Vulnerability Scoring System. This message is compatible with CVSS v2
5170
+ # and v3. For CVSS v2 details, see https://www.first.org/cvss/v2/guide CVSS v2
5171
+ # calculator: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator For CVSS v3
5172
+ # details, see https://www.first.org/cvss/specification-document CVSS v3
5173
+ # calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator
5174
+ # Corresponds to the JSON property `cvssV2`
5175
+ # @return [Google::Apis::ContaineranalysisV1beta1::Cvss]
5176
+ attr_accessor :cvss_v2
5177
+
5178
+ # Deprecated. Common Vulnerability Scoring System version 3. For details, see
5179
+ # https://www.first.org/cvss/specification-document
4899
5180
  # Corresponds to the JSON property `cvssV3`
4900
5181
  # @return [Google::Apis::ContaineranalysisV1beta1::CvsSv3]
4901
5182
  attr_accessor :cvss_v3
4902
5183
 
5184
+ # A list of CWE for this vulnerability. For details, see: https://cwe.mitre.org/
5185
+ # index.html
5186
+ # Corresponds to the JSON property `cwe`
5187
+ # @return [Array<String>]
5188
+ attr_accessor :cwe
5189
+
4903
5190
  # All information about the package to specifically identify this vulnerability.
4904
5191
  # One entry per (version range and cpe_uri) the package vulnerability has
4905
5192
  # manifested in.
@@ -4934,7 +5221,9 @@ module Google
4934
5221
  # Update properties of this object
4935
5222
  def update!(**args)
4936
5223
  @cvss_score = args[:cvss_score] if args.key?(:cvss_score)
5224
+ @cvss_v2 = args[:cvss_v2] if args.key?(:cvss_v2)
4937
5225
  @cvss_v3 = args[:cvss_v3] if args.key?(:cvss_v3)
5226
+ @cwe = args[:cwe] if args.key?(:cwe)
4938
5227
  @details = args[:details] if args.key?(:details)
4939
5228
  @severity = args[:severity] if args.key?(:severity)
4940
5229
  @source_update_time = args[:source_update_time] if args.key?(:source_update_time)
@@ -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.16.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220318"
25
+ REVISION = "20220513"
26
26
  end
27
27
  end
28
28
  end
@@ -118,6 +118,12 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class Cvss
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
121
127
  class CvsSv3
122
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
129
 
@@ -322,6 +328,12 @@ module Google
322
328
  include Google::Apis::Core::JsonObjectSupport
323
329
  end
324
330
 
331
+ class Digest
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
325
337
  class Discovered
326
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
339
 
@@ -358,6 +370,18 @@ module Google
358
370
  include Google::Apis::Core::JsonObjectSupport
359
371
  end
360
372
 
373
+ class Envelope
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
379
+ class EnvelopeSignature
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
361
385
  class Environment
362
386
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
387
 
@@ -890,6 +914,24 @@ module Google
890
914
  end
891
915
  end
892
916
 
917
+ class Cvss
918
+ # @private
919
+ class Representation < Google::Apis::Core::JsonRepresentation
920
+ property :attack_complexity, as: 'attackComplexity'
921
+ property :attack_vector, as: 'attackVector'
922
+ property :authentication, as: 'authentication'
923
+ property :availability_impact, as: 'availabilityImpact'
924
+ property :base_score, as: 'baseScore'
925
+ property :confidentiality_impact, as: 'confidentialityImpact'
926
+ property :exploitability_score, as: 'exploitabilityScore'
927
+ property :impact_score, as: 'impactScore'
928
+ property :integrity_impact, as: 'integrityImpact'
929
+ property :privileges_required, as: 'privilegesRequired'
930
+ property :scope, as: 'scope'
931
+ property :user_interaction, as: 'userInteraction'
932
+ end
933
+ end
934
+
893
935
  class CvsSv3
894
936
  # @private
895
937
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1301,6 +1343,14 @@ module Google
1301
1343
  end
1302
1344
  end
1303
1345
 
1346
+ class Digest
1347
+ # @private
1348
+ class Representation < Google::Apis::Core::JsonRepresentation
1349
+ property :algo, as: 'algo'
1350
+ property :digest_value, as: 'digestValue'
1351
+ end
1352
+ end
1353
+
1304
1354
  class Discovered
1305
1355
  # @private
1306
1356
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1361,6 +1411,24 @@ module Google
1361
1411
  end
1362
1412
  end
1363
1413
 
1414
+ class Envelope
1415
+ # @private
1416
+ class Representation < Google::Apis::Core::JsonRepresentation
1417
+ property :payload, :base64 => true, as: 'payload'
1418
+ property :payload_type, as: 'payloadType'
1419
+ collection :signatures, as: 'signatures', class: Google::Apis::ContaineranalysisV1beta1::EnvelopeSignature, decorator: Google::Apis::ContaineranalysisV1beta1::EnvelopeSignature::Representation
1420
+
1421
+ end
1422
+ end
1423
+
1424
+ class EnvelopeSignature
1425
+ # @private
1426
+ class Representation < Google::Apis::Core::JsonRepresentation
1427
+ property :keyid, as: 'keyid'
1428
+ property :sig, :base64 => true, as: 'sig'
1429
+ end
1430
+ end
1431
+
1364
1432
  class Environment
1365
1433
  # @private
1366
1434
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1609,9 +1677,16 @@ module Google
1609
1677
  class Installation
1610
1678
  # @private
1611
1679
  class Representation < Google::Apis::Core::JsonRepresentation
1680
+ property :architecture, as: 'architecture'
1681
+ property :cpe_uri, as: 'cpeUri'
1682
+ property :license, as: 'license', class: Google::Apis::ContaineranalysisV1beta1::License, decorator: Google::Apis::ContaineranalysisV1beta1::License::Representation
1683
+
1612
1684
  collection :location, as: 'location', class: Google::Apis::ContaineranalysisV1beta1::Location, decorator: Google::Apis::ContaineranalysisV1beta1::Location::Representation
1613
1685
 
1614
1686
  property :name, as: 'name'
1687
+ property :package_type, as: 'packageType'
1688
+ property :version, as: 'version', class: Google::Apis::ContaineranalysisV1beta1::Version, decorator: Google::Apis::ContaineranalysisV1beta1::Version::Representation
1689
+
1615
1690
  end
1616
1691
  end
1617
1692
 
@@ -1754,6 +1829,8 @@ module Google
1754
1829
 
1755
1830
  property :discovered, as: 'discovered', class: Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1DiscoveryDetails, decorator: Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1DiscoveryDetails::Representation
1756
1831
 
1832
+ property :envelope, as: 'envelope', class: Google::Apis::ContaineranalysisV1beta1::Envelope, decorator: Google::Apis::ContaineranalysisV1beta1::Envelope::Representation
1833
+
1757
1834
  property :installation, as: 'installation', class: Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1PackageDetails, decorator: Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1PackageDetails::Representation
1758
1835
 
1759
1836
  property :intoto, as: 'intoto', class: Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1IntotoDetails, decorator: Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1IntotoDetails::Representation
@@ -1781,9 +1858,21 @@ module Google
1781
1858
  class Package
1782
1859
  # @private
1783
1860
  class Representation < Google::Apis::Core::JsonRepresentation
1861
+ property :architecture, as: 'architecture'
1862
+ property :cpe_uri, as: 'cpeUri'
1863
+ property :description, as: 'description'
1864
+ collection :digest, as: 'digest', class: Google::Apis::ContaineranalysisV1beta1::Digest, decorator: Google::Apis::ContaineranalysisV1beta1::Digest::Representation
1865
+
1784
1866
  collection :distribution, as: 'distribution', class: Google::Apis::ContaineranalysisV1beta1::Distribution, decorator: Google::Apis::ContaineranalysisV1beta1::Distribution::Representation
1785
1867
 
1868
+ property :license, as: 'license', class: Google::Apis::ContaineranalysisV1beta1::License, decorator: Google::Apis::ContaineranalysisV1beta1::License::Representation
1869
+
1870
+ property :maintainer, as: 'maintainer'
1786
1871
  property :name, as: 'name'
1872
+ property :package_type, as: 'packageType'
1873
+ property :url, as: 'url'
1874
+ property :version, as: 'version', class: Google::Apis::ContaineranalysisV1beta1::Version, decorator: Google::Apis::ContaineranalysisV1beta1::Version::Representation
1875
+
1787
1876
  end
1788
1877
  end
1789
1878
 
@@ -2014,8 +2103,11 @@ module Google
2014
2103
  # @private
2015
2104
  class Representation < Google::Apis::Core::JsonRepresentation
2016
2105
  property :cvss_score, as: 'cvssScore'
2106
+ property :cvss_v2, as: 'cvssV2', class: Google::Apis::ContaineranalysisV1beta1::Cvss, decorator: Google::Apis::ContaineranalysisV1beta1::Cvss::Representation
2107
+
2017
2108
  property :cvss_v3, as: 'cvssV3', class: Google::Apis::ContaineranalysisV1beta1::CvsSv3, decorator: Google::Apis::ContaineranalysisV1beta1::CvsSv3::Representation
2018
2109
 
2110
+ collection :cwe, as: 'cwe'
2019
2111
  collection :details, as: 'details', class: Google::Apis::ContaineranalysisV1beta1::Detail, decorator: Google::Apis::ContaineranalysisV1beta1::Detail::Representation
2020
2112
 
2021
2113
  property :severity, as: 'severity'
@@ -189,8 +189,9 @@ module Google
189
189
  # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
190
190
  # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
191
191
  # @param [String] resource
192
- # REQUIRED: The resource for which the policy is being requested. See the
193
- # operation documentation for the appropriate value for this field.
192
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
193
+ # names](https://cloud.google.com/apis/design/resource_names) for the
194
+ # appropriate value for this field.
194
195
  # @param [Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
195
196
  # @param [String] fields
196
197
  # Selector specifying which fields to include in a partial response.
@@ -306,8 +307,9 @@ module Google
306
307
  # NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`
307
308
  # for occurrences.
308
309
  # @param [String] resource
309
- # REQUIRED: The resource for which the policy is being specified. See the
310
- # operation documentation for the appropriate value for this field.
310
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
311
+ # names](https://cloud.google.com/apis/design/resource_names) for the
312
+ # appropriate value for this field.
311
313
  # @param [Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
312
314
  # @param [String] fields
313
315
  # Selector specifying which fields to include in a partial response.
@@ -344,8 +346,9 @@ module Google
344
346
  # for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
345
347
  # occurrences.
346
348
  # @param [String] resource
347
- # REQUIRED: The resource for which the policy detail is being requested. See the
348
- # operation documentation for the appropriate value for this field.
349
+ # REQUIRED: The resource for which the policy detail is being requested. See [
350
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
351
+ # appropriate value for this field.
349
352
  # @param [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
350
353
  # @param [String] fields
351
354
  # Selector specifying which fields to include in a partial response.
@@ -555,8 +558,9 @@ module Google
555
558
  # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
556
559
  # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
557
560
  # @param [String] resource
558
- # REQUIRED: The resource for which the policy is being requested. See the
559
- # operation documentation for the appropriate value for this field.
561
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
562
+ # names](https://cloud.google.com/apis/design/resource_names) for the
563
+ # appropriate value for this field.
560
564
  # @param [Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
561
565
  # @param [String] fields
562
566
  # Selector specifying which fields to include in a partial response.
@@ -738,8 +742,9 @@ module Google
738
742
  # NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`
739
743
  # for occurrences.
740
744
  # @param [String] resource
741
- # REQUIRED: The resource for which the policy is being specified. See the
742
- # operation documentation for the appropriate value for this field.
745
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
746
+ # names](https://cloud.google.com/apis/design/resource_names) for the
747
+ # appropriate value for this field.
743
748
  # @param [Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
744
749
  # @param [String] fields
745
750
  # Selector specifying which fields to include in a partial response.
@@ -776,8 +781,9 @@ module Google
776
781
  # for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
777
782
  # occurrences.
778
783
  # @param [String] resource
779
- # REQUIRED: The resource for which the policy detail is being requested. See the
780
- # operation documentation for the appropriate value for this field.
784
+ # REQUIRED: The resource for which the policy detail is being requested. See [
785
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
786
+ # appropriate value for this field.
781
787
  # @param [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
782
788
  # @param [String] fields
783
789
  # Selector specifying which fields to include in a partial response.
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.16.0
4
+ version: 0.19.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: 2022-03-28 00:00:00.000000000 Z
11
+ date: 2022-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.19.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: []