google-apis-containeranalysis_v1alpha1 0.24.0 → 0.27.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: 64a643de48af1e0eda25c22f39aba417df7f9c39c529248aae1935c55b41ddc9
4
- data.tar.gz: 8363d206d727681b8b4a47980cf3b96d2a2a9decf1f8a17894cad86739188eb8
3
+ metadata.gz: c5713e5012a380bd31901e90809024e327ec084841eb92fdc05780d73ae19e39
4
+ data.tar.gz: 666a50715d6228c18d0ebbc46e0734c92f0a6695e4b9ef56dbb76f6b741ff670
5
5
  SHA512:
6
- metadata.gz: bd9e197398862cb9cae780bbdb12e7b5464796b493de6bfe0635e47a1a7336b5d7eca20103b348f51cc183ecd498a4e152ea7b18a434d563f8e326dd03e3c6a5
7
- data.tar.gz: babb0e0392e19cda1502b3b1930e484f2eb4dde86dd9a5d0c5931d76403b74a87b3bb7f7e0540345e2d0c30d9f6bc9bb4a9fabd718969ad4ff9c06601dcfe703
6
+ metadata.gz: d110bb09efd57544f715180f4997aa2570cfa4513eb486115166861c4bfb2b8a098c042301a74a520f66896346e6489daa3b0dd30efa9693d2df3c83bc4391b7
7
+ data.tar.gz: 564735af53eca83f0e7b974d9001d497e787e04af422d9e276190790845bb3f48215ce70e62546008dba11614869be2015c876982159e9aa9ceffab005ad9fcb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-containeranalysis_v1alpha1
2
2
 
3
+ ### v0.27.0 (2022-05-26)
4
+
5
+ * Regenerated from discovery document revision 20220519
6
+
7
+ ### v0.26.0 (2022-05-18)
8
+
9
+ * Regenerated from discovery document revision 20220513
10
+
11
+ ### v0.25.0 (2022-05-11)
12
+
13
+ * Regenerated from discovery document revision 20220506
14
+
3
15
  ### v0.24.0 (2022-04-21)
4
16
 
5
17
  * Regenerated from discovery document revision 20220414
@@ -492,27 +492,32 @@ module Google
492
492
  end
493
493
  end
494
494
 
495
- # Common Vulnerability Scoring System.
495
+ # Common Vulnerability Scoring System. This message is compatible with CVSS v2
496
+ # and v3. For CVSS v2 details, see https://www.first.org/cvss/v2/guide CVSS v2
497
+ # calculator: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator For CVSS v3
498
+ # details, see https://www.first.org/cvss/specification-document CVSS v3
499
+ # calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator
496
500
  class Cvss
497
501
  include Google::Apis::Core::Hashable
498
502
 
499
- #
503
+ # Defined in CVSS v3, CVSS v2
500
504
  # Corresponds to the JSON property `attackComplexity`
501
505
  # @return [String]
502
506
  attr_accessor :attack_complexity
503
507
 
504
508
  # Base Metrics Represents the intrinsic characteristics of a vulnerability that
505
- # are constant over time and across user environments.
509
+ # are constant over time and across user environments. Defined in CVSS v3, CVSS
510
+ # v2
506
511
  # Corresponds to the JSON property `attackVector`
507
512
  # @return [String]
508
513
  attr_accessor :attack_vector
509
514
 
510
- #
515
+ # Defined in CVSS v2
511
516
  # Corresponds to the JSON property `authentication`
512
517
  # @return [String]
513
518
  attr_accessor :authentication
514
519
 
515
- #
520
+ # Defined in CVSS v3, CVSS v2
516
521
  # Corresponds to the JSON property `availabilityImpact`
517
522
  # @return [String]
518
523
  attr_accessor :availability_impact
@@ -522,7 +527,7 @@ module Google
522
527
  # @return [Float]
523
528
  attr_accessor :base_score
524
529
 
525
- #
530
+ # Defined in CVSS v3, CVSS v2
526
531
  # Corresponds to the JSON property `confidentialityImpact`
527
532
  # @return [String]
528
533
  attr_accessor :confidentiality_impact
@@ -537,22 +542,22 @@ module Google
537
542
  # @return [Float]
538
543
  attr_accessor :impact_score
539
544
 
540
- #
545
+ # Defined in CVSS v3, CVSS v2
541
546
  # Corresponds to the JSON property `integrityImpact`
542
547
  # @return [String]
543
548
  attr_accessor :integrity_impact
544
549
 
545
- #
550
+ # Defined in CVSS v3
546
551
  # Corresponds to the JSON property `privilegesRequired`
547
552
  # @return [String]
548
553
  attr_accessor :privileges_required
549
554
 
550
- #
555
+ # Defined in CVSS v3
551
556
  # Corresponds to the JSON property `scope`
552
557
  # @return [String]
553
558
  attr_accessor :scope
554
559
 
555
- #
560
+ # Defined in CVSS v3
556
561
  # Corresponds to the JSON property `userInteraction`
557
562
  # @return [String]
558
563
  attr_accessor :user_interaction
@@ -2349,6 +2354,32 @@ module Google
2349
2354
  end
2350
2355
  end
2351
2356
 
2357
+ # Digest information.
2358
+ class Digest
2359
+ include Google::Apis::Core::Hashable
2360
+
2361
+ # `SHA1`, `SHA512` etc.
2362
+ # Corresponds to the JSON property `algo`
2363
+ # @return [String]
2364
+ attr_accessor :algo
2365
+
2366
+ # Value of the digest encoded. For example: SHA512 - base64 encoding, SHA1 - hex
2367
+ # encoding.
2368
+ # Corresponds to the JSON property `digestValue`
2369
+ # @return [String]
2370
+ attr_accessor :digest_value
2371
+
2372
+ def initialize(**args)
2373
+ update!(**args)
2374
+ end
2375
+
2376
+ # Update properties of this object
2377
+ def update!(**args)
2378
+ @algo = args[:algo] if args.key?(:algo)
2379
+ @digest_value = args[:digest_value] if args.key?(:digest_value)
2380
+ end
2381
+ end
2382
+
2352
2383
  # Provides information about the scan status of a discovered resource.
2353
2384
  class Discovered
2354
2385
  include Google::Apis::Core::Hashable
@@ -2785,6 +2816,26 @@ module Google
2785
2816
  end
2786
2817
  end
2787
2818
 
2819
+ # Indicates the location at which a package was found.
2820
+ class FileLocation
2821
+ include Google::Apis::Core::Hashable
2822
+
2823
+ # For jars that are contained inside .war files, this filepath can indicate the
2824
+ # path to war file combined with the path to jar file.
2825
+ # Corresponds to the JSON property `filePath`
2826
+ # @return [String]
2827
+ attr_accessor :file_path
2828
+
2829
+ def initialize(**args)
2830
+ update!(**args)
2831
+ end
2832
+
2833
+ # Update properties of this object
2834
+ def update!(**args)
2835
+ @file_path = args[:file_path] if args.key?(:file_path)
2836
+ end
2837
+ end
2838
+
2788
2839
  # FileNote represents an SPDX File Information section: https://spdx.github.io/
2789
2840
  # spdx-spec/4-file-information/
2790
2841
  class FileNote
@@ -2858,8 +2909,7 @@ module Google
2858
2909
  # @return [String]
2859
2910
  attr_accessor :id
2860
2911
 
2861
- # License information: https://spdx.github.io/spdx-spec/3-package-information/#
2862
- # 315-declared-license
2912
+ # License information.
2863
2913
  # Corresponds to the JSON property `licenseConcluded`
2864
2914
  # @return [Google::Apis::ContaineranalysisV1alpha1::License]
2865
2915
  attr_accessor :license_concluded
@@ -3187,6 +3237,201 @@ module Google
3187
3237
  end
3188
3238
  end
3189
3239
 
3240
+ # Identifies the entity that executed the recipe, which is trusted to have
3241
+ # correctly performed the operation and populated this provenance.
3242
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaBuilder
3243
+ include Google::Apis::Core::Hashable
3244
+
3245
+ # URI indicating the builder’s identity.
3246
+ # Corresponds to the JSON property `id`
3247
+ # @return [String]
3248
+ attr_accessor :id
3249
+
3250
+ def initialize(**args)
3251
+ update!(**args)
3252
+ end
3253
+
3254
+ # Update properties of this object
3255
+ def update!(**args)
3256
+ @id = args[:id] if args.key?(:id)
3257
+ end
3258
+ end
3259
+
3260
+ # Indicates that the builder claims certain fields in this message to be
3261
+ # complete.
3262
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaCompleteness
3263
+ include Google::Apis::Core::Hashable
3264
+
3265
+ # If true, the builder claims that invocation.environment is complete.
3266
+ # Corresponds to the JSON property `environment`
3267
+ # @return [Boolean]
3268
+ attr_accessor :environment
3269
+ alias_method :environment?, :environment
3270
+
3271
+ # If true, the builder claims that materials is complete.
3272
+ # Corresponds to the JSON property `materials`
3273
+ # @return [Boolean]
3274
+ attr_accessor :materials
3275
+ alias_method :materials?, :materials
3276
+
3277
+ # If true, the builder claims that invocation.parameters is complete.
3278
+ # Corresponds to the JSON property `parameters`
3279
+ # @return [Boolean]
3280
+ attr_accessor :parameters
3281
+ alias_method :parameters?, :parameters
3282
+
3283
+ def initialize(**args)
3284
+ update!(**args)
3285
+ end
3286
+
3287
+ # Update properties of this object
3288
+ def update!(**args)
3289
+ @environment = args[:environment] if args.key?(:environment)
3290
+ @materials = args[:materials] if args.key?(:materials)
3291
+ @parameters = args[:parameters] if args.key?(:parameters)
3292
+ end
3293
+ end
3294
+
3295
+ # Describes where the config file that kicked off the build came from. This is
3296
+ # effectively a pointer to the source where buildConfig came from.
3297
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaConfigSource
3298
+ include Google::Apis::Core::Hashable
3299
+
3300
+ # Collection of cryptographic digests for the contents of the artifact specified
3301
+ # by invocation.configSource.uri.
3302
+ # Corresponds to the JSON property `digest`
3303
+ # @return [Hash<String,String>]
3304
+ attr_accessor :digest
3305
+
3306
+ # String identifying the entry point into the build.
3307
+ # Corresponds to the JSON property `entryPoint`
3308
+ # @return [String]
3309
+ attr_accessor :entry_point
3310
+
3311
+ # URI indicating the identity of the source of the config.
3312
+ # Corresponds to the JSON property `uri`
3313
+ # @return [String]
3314
+ attr_accessor :uri
3315
+
3316
+ def initialize(**args)
3317
+ update!(**args)
3318
+ end
3319
+
3320
+ # Update properties of this object
3321
+ def update!(**args)
3322
+ @digest = args[:digest] if args.key?(:digest)
3323
+ @entry_point = args[:entry_point] if args.key?(:entry_point)
3324
+ @uri = args[:uri] if args.key?(:uri)
3325
+ end
3326
+ end
3327
+
3328
+ # Identifies the event that kicked off the build.
3329
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaInvocation
3330
+ include Google::Apis::Core::Hashable
3331
+
3332
+ # Describes where the config file that kicked off the build came from. This is
3333
+ # effectively a pointer to the source where buildConfig came from.
3334
+ # Corresponds to the JSON property `configSource`
3335
+ # @return [Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaConfigSource]
3336
+ attr_accessor :config_source
3337
+
3338
+ # Any other builder-controlled inputs necessary for correctly evaluating the
3339
+ # build.
3340
+ # Corresponds to the JSON property `environment`
3341
+ # @return [Hash<String,Object>]
3342
+ attr_accessor :environment
3343
+
3344
+ # Collection of all external inputs that influenced the build on top of
3345
+ # invocation.configSource.
3346
+ # Corresponds to the JSON property `parameters`
3347
+ # @return [Hash<String,Object>]
3348
+ attr_accessor :parameters
3349
+
3350
+ def initialize(**args)
3351
+ update!(**args)
3352
+ end
3353
+
3354
+ # Update properties of this object
3355
+ def update!(**args)
3356
+ @config_source = args[:config_source] if args.key?(:config_source)
3357
+ @environment = args[:environment] if args.key?(:environment)
3358
+ @parameters = args[:parameters] if args.key?(:parameters)
3359
+ end
3360
+ end
3361
+
3362
+ # The collection of artifacts that influenced the build including sources,
3363
+ # dependencies, build tools, base images, and so on.
3364
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterial
3365
+ include Google::Apis::Core::Hashable
3366
+
3367
+ # Collection of cryptographic digests for the contents of this artifact.
3368
+ # Corresponds to the JSON property `digest`
3369
+ # @return [Hash<String,String>]
3370
+ attr_accessor :digest
3371
+
3372
+ # The method by which this artifact was referenced during the build.
3373
+ # Corresponds to the JSON property `uri`
3374
+ # @return [String]
3375
+ attr_accessor :uri
3376
+
3377
+ def initialize(**args)
3378
+ update!(**args)
3379
+ end
3380
+
3381
+ # Update properties of this object
3382
+ def update!(**args)
3383
+ @digest = args[:digest] if args.key?(:digest)
3384
+ @uri = args[:uri] if args.key?(:uri)
3385
+ end
3386
+ end
3387
+
3388
+ # Other properties of the build.
3389
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMetadata
3390
+ include Google::Apis::Core::Hashable
3391
+
3392
+ # The timestamp of when the build completed.
3393
+ # Corresponds to the JSON property `buildFinishedOn`
3394
+ # @return [String]
3395
+ attr_accessor :build_finished_on
3396
+
3397
+ # Identifies this particular build invocation, which can be useful for finding
3398
+ # associated logs or other ad-hoc analysis.
3399
+ # Corresponds to the JSON property `buildInvocationId`
3400
+ # @return [String]
3401
+ attr_accessor :build_invocation_id
3402
+
3403
+ # The timestamp of when the build started.
3404
+ # Corresponds to the JSON property `buildStartedOn`
3405
+ # @return [String]
3406
+ attr_accessor :build_started_on
3407
+
3408
+ # Indicates that the builder claims certain fields in this message to be
3409
+ # complete.
3410
+ # Corresponds to the JSON property `completeness`
3411
+ # @return [Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaCompleteness]
3412
+ attr_accessor :completeness
3413
+
3414
+ # If true, the builder claims that running invocation on materials will produce
3415
+ # bit-for-bit identical output.
3416
+ # Corresponds to the JSON property `reproducible`
3417
+ # @return [Boolean]
3418
+ attr_accessor :reproducible
3419
+ alias_method :reproducible?, :reproducible
3420
+
3421
+ def initialize(**args)
3422
+ update!(**args)
3423
+ end
3424
+
3425
+ # Update properties of this object
3426
+ def update!(**args)
3427
+ @build_finished_on = args[:build_finished_on] if args.key?(:build_finished_on)
3428
+ @build_invocation_id = args[:build_invocation_id] if args.key?(:build_invocation_id)
3429
+ @build_started_on = args[:build_started_on] if args.key?(:build_started_on)
3430
+ @completeness = args[:completeness] if args.key?(:completeness)
3431
+ @reproducible = args[:reproducible] if args.key?(:reproducible)
3432
+ end
3433
+ end
3434
+
3190
3435
  # A SourceContext is a reference to a tree of files. A SourceContext together
3191
3436
  # with a path point to a unique revision of a single file or directory.
3192
3437
  class GoogleDevtoolsContaineranalysisV1alpha1SourceContext
@@ -3310,7 +3555,7 @@ module Google
3310
3555
  # @return [String]
3311
3556
  attr_accessor :predicate_type
3312
3557
 
3313
- # provenance is a predicate of type intotoprovenance
3558
+ # Generic Grafeas provenance.
3314
3559
  # Corresponds to the JSON property `provenance`
3315
3560
  # @return [Google::Apis::ContaineranalysisV1alpha1::InTotoProvenance]
3316
3561
  attr_accessor :provenance
@@ -3320,6 +3565,12 @@ module Google
3320
3565
  # @return [Google::Apis::ContaineranalysisV1alpha1::SlsaProvenance]
3321
3566
  attr_accessor :slsa_provenance
3322
3567
 
3568
+ # SlsaProvenanceZeroTwo is the slsa provenance as defined by the slsa spec. See
3569
+ # full explanation of fields at slsa.dev/provenance/v0.2.
3570
+ # Corresponds to the JSON property `slsaProvenanceZeroTwo`
3571
+ # @return [Google::Apis::ContaineranalysisV1alpha1::SlsaProvenanceZeroTwo]
3572
+ attr_accessor :slsa_provenance_zero_two
3573
+
3323
3574
  # subject is the subjects of the intoto statement
3324
3575
  # Corresponds to the JSON property `subject`
3325
3576
  # @return [Array<Google::Apis::ContaineranalysisV1alpha1::Subject>]
@@ -3335,6 +3586,7 @@ module Google
3335
3586
  @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
3336
3587
  @provenance = args[:provenance] if args.key?(:provenance)
3337
3588
  @slsa_provenance = args[:slsa_provenance] if args.key?(:slsa_provenance)
3589
+ @slsa_provenance_zero_two = args[:slsa_provenance_zero_two] if args.key?(:slsa_provenance_zero_two)
3338
3590
  @subject = args[:subject] if args.key?(:subject)
3339
3591
  end
3340
3592
  end
@@ -3343,6 +3595,24 @@ module Google
3343
3595
  class Installation
3344
3596
  include Google::Apis::Core::Hashable
3345
3597
 
3598
+ # Output only. The CPU architecture for which packages in this distribution
3599
+ # channel were built. Architecture will be blank for language packages.
3600
+ # Corresponds to the JSON property `architecture`
3601
+ # @return [String]
3602
+ attr_accessor :architecture
3603
+
3604
+ # Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
3605
+ # denoting the package manager version distributing a package. The cpe_uri will
3606
+ # be blank for language packages.
3607
+ # Corresponds to the JSON property `cpeUri`
3608
+ # @return [String]
3609
+ attr_accessor :cpe_uri
3610
+
3611
+ # License information.
3612
+ # Corresponds to the JSON property `license`
3613
+ # @return [Google::Apis::ContaineranalysisV1alpha1::License]
3614
+ attr_accessor :license
3615
+
3346
3616
  # All of the places within the filesystem versions of this package have been
3347
3617
  # found.
3348
3618
  # Corresponds to the JSON property `location`
@@ -3354,14 +3624,33 @@ module Google
3354
3624
  # @return [String]
3355
3625
  attr_accessor :name
3356
3626
 
3627
+ # Output only. The type of package; whether native or non native (e.g., ruby
3628
+ # gems, node.js packages, etc.).
3629
+ # Corresponds to the JSON property `packageType`
3630
+ # @return [String]
3631
+ attr_accessor :package_type
3632
+
3633
+ # Version contains structured information about the version of the package. For
3634
+ # a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/
3635
+ # debian-packages-version-convention For a discussion of this in Redhat/Fedora/
3636
+ # Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3637
+ # Corresponds to the JSON property `version`
3638
+ # @return [Google::Apis::ContaineranalysisV1alpha1::Version]
3639
+ attr_accessor :version
3640
+
3357
3641
  def initialize(**args)
3358
3642
  update!(**args)
3359
3643
  end
3360
3644
 
3361
3645
  # Update properties of this object
3362
3646
  def update!(**args)
3647
+ @architecture = args[:architecture] if args.key?(:architecture)
3648
+ @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
3649
+ @license = args[:license] if args.key?(:license)
3363
3650
  @location = args[:location] if args.key?(:location)
3364
3651
  @name = args[:name] if args.key?(:name)
3652
+ @package_type = args[:package_type] if args.key?(:package_type)
3653
+ @version = args[:version] if args.key?(:version)
3365
3654
  end
3366
3655
  end
3367
3656
 
@@ -3390,8 +3679,7 @@ module Google
3390
3679
  end
3391
3680
  end
3392
3681
 
3393
- # License information: https://spdx.github.io/spdx-spec/3-package-information/#
3394
- # 315-declared-license
3682
+ # License information.
3395
3683
  class License
3396
3684
  include Google::Apis::Core::Hashable
3397
3685
 
@@ -3400,8 +3688,10 @@ module Google
3400
3688
  # @return [String]
3401
3689
  attr_accessor :comments
3402
3690
 
3403
- # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-
3404
- # expressions/
3691
+ # Often a single license can be used to represent the licensing terms. Sometimes
3692
+ # it is necessary to include a choice of one or more licenses or some
3693
+ # combination of license identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.
3694
+ # 1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".
3405
3695
  # Corresponds to the JSON property `expression`
3406
3696
  # @return [String]
3407
3697
  attr_accessor :expression
@@ -3524,8 +3814,8 @@ module Google
3524
3814
  class Location
3525
3815
  include Google::Apis::Core::Hashable
3526
3816
 
3527
- # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the
3528
- # package manager version distributing a package.
3817
+ # Deprecated. The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
3818
+ # denoting the package manager version distributing a package.
3529
3819
  # Corresponds to the JSON property `cpeUri`
3530
3820
  # @return [String]
3531
3821
  attr_accessor :cpe_uri
@@ -4073,24 +4363,86 @@ module Google
4073
4363
  class Package
4074
4364
  include Google::Apis::Core::Hashable
4075
4365
 
4366
+ # The CPU architecture for which packages in this distribution channel were
4367
+ # built. Architecture will be blank for language packages.
4368
+ # Corresponds to the JSON property `architecture`
4369
+ # @return [String]
4370
+ attr_accessor :architecture
4371
+
4372
+ # The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the
4373
+ # package manager version distributing a package. The cpe_uri will be blank for
4374
+ # language packages.
4375
+ # Corresponds to the JSON property `cpeUri`
4376
+ # @return [String]
4377
+ attr_accessor :cpe_uri
4378
+
4379
+ # The description of this package.
4380
+ # Corresponds to the JSON property `description`
4381
+ # @return [String]
4382
+ attr_accessor :description
4383
+
4384
+ # Hash value, typically a file digest, that allows unique identification a
4385
+ # specific package.
4386
+ # Corresponds to the JSON property `digest`
4387
+ # @return [Array<Google::Apis::ContaineranalysisV1alpha1::Digest>]
4388
+ attr_accessor :digest
4389
+
4076
4390
  # The various channels by which a package is distributed.
4077
4391
  # Corresponds to the JSON property `distribution`
4078
4392
  # @return [Array<Google::Apis::ContaineranalysisV1alpha1::Distribution>]
4079
4393
  attr_accessor :distribution
4080
4394
 
4395
+ # License information.
4396
+ # Corresponds to the JSON property `license`
4397
+ # @return [Google::Apis::ContaineranalysisV1alpha1::License]
4398
+ attr_accessor :license
4399
+
4400
+ # A freeform text denoting the maintainer of this package.
4401
+ # Corresponds to the JSON property `maintainer`
4402
+ # @return [String]
4403
+ attr_accessor :maintainer
4404
+
4081
4405
  # The name of the package.
4082
4406
  # Corresponds to the JSON property `name`
4083
4407
  # @return [String]
4084
4408
  attr_accessor :name
4085
4409
 
4410
+ # The type of package; whether native or non native (e.g., ruby gems, node.js
4411
+ # packages, etc.).
4412
+ # Corresponds to the JSON property `packageType`
4413
+ # @return [String]
4414
+ attr_accessor :package_type
4415
+
4416
+ # The homepage for this package.
4417
+ # Corresponds to the JSON property `url`
4418
+ # @return [String]
4419
+ attr_accessor :url
4420
+
4421
+ # Version contains structured information about the version of the package. For
4422
+ # a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/
4423
+ # debian-packages-version-convention For a discussion of this in Redhat/Fedora/
4424
+ # Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
4425
+ # Corresponds to the JSON property `version`
4426
+ # @return [Google::Apis::ContaineranalysisV1alpha1::Version]
4427
+ attr_accessor :version
4428
+
4086
4429
  def initialize(**args)
4087
4430
  update!(**args)
4088
4431
  end
4089
4432
 
4090
4433
  # Update properties of this object
4091
4434
  def update!(**args)
4435
+ @architecture = args[:architecture] if args.key?(:architecture)
4436
+ @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
4437
+ @description = args[:description] if args.key?(:description)
4438
+ @digest = args[:digest] if args.key?(:digest)
4092
4439
  @distribution = args[:distribution] if args.key?(:distribution)
4440
+ @license = args[:license] if args.key?(:license)
4441
+ @maintainer = args[:maintainer] if args.key?(:maintainer)
4093
4442
  @name = args[:name] if args.key?(:name)
4443
+ @package_type = args[:package_type] if args.key?(:package_type)
4444
+ @url = args[:url] if args.key?(:url)
4445
+ @version = args[:version] if args.key?(:version)
4094
4446
  end
4095
4447
  end
4096
4448
 
@@ -4155,8 +4507,7 @@ module Google
4155
4507
  # @return [String]
4156
4508
  attr_accessor :home_page
4157
4509
 
4158
- # License information: https://spdx.github.io/spdx-spec/3-package-information/#
4159
- # 315-declared-license
4510
+ # License information.
4160
4511
  # Corresponds to the JSON property `licenseDeclared`
4161
4512
  # @return [Google::Apis::ContaineranalysisV1alpha1::License]
4162
4513
  attr_accessor :license_declared
@@ -4257,8 +4608,7 @@ module Google
4257
4608
  # @return [String]
4258
4609
  attr_accessor :id
4259
4610
 
4260
- # License information: https://spdx.github.io/spdx-spec/3-package-information/#
4261
- # 315-declared-license
4611
+ # License information.
4262
4612
  # Corresponds to the JSON property `licenseConcluded`
4263
4613
  # @return [Google::Apis::ContaineranalysisV1alpha1::License]
4264
4614
  attr_accessor :license_concluded
@@ -4981,6 +5331,58 @@ module Google
4981
5331
  end
4982
5332
  end
4983
5333
 
5334
+ # SlsaProvenanceZeroTwo is the slsa provenance as defined by the slsa spec. See
5335
+ # full explanation of fields at slsa.dev/provenance/v0.2.
5336
+ class SlsaProvenanceZeroTwo
5337
+ include Google::Apis::Core::Hashable
5338
+
5339
+ # Lists the steps in the build.
5340
+ # Corresponds to the JSON property `buildConfig`
5341
+ # @return [Hash<String,Object>]
5342
+ attr_accessor :build_config
5343
+
5344
+ # URI indicating what type of build was performed.
5345
+ # Corresponds to the JSON property `buildType`
5346
+ # @return [String]
5347
+ attr_accessor :build_type
5348
+
5349
+ # Identifies the entity that executed the recipe, which is trusted to have
5350
+ # correctly performed the operation and populated this provenance.
5351
+ # Corresponds to the JSON property `builder`
5352
+ # @return [Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaBuilder]
5353
+ attr_accessor :builder
5354
+
5355
+ # Identifies the event that kicked off the build.
5356
+ # Corresponds to the JSON property `invocation`
5357
+ # @return [Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaInvocation]
5358
+ attr_accessor :invocation
5359
+
5360
+ # The collection of artifacts that influenced the build including sources,
5361
+ # dependencies, build tools, base images, and so on.
5362
+ # Corresponds to the JSON property `materials`
5363
+ # @return [Array<Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterial>]
5364
+ attr_accessor :materials
5365
+
5366
+ # Other properties of the build.
5367
+ # Corresponds to the JSON property `metadata`
5368
+ # @return [Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMetadata]
5369
+ attr_accessor :metadata
5370
+
5371
+ def initialize(**args)
5372
+ update!(**args)
5373
+ end
5374
+
5375
+ # Update properties of this object
5376
+ def update!(**args)
5377
+ @build_config = args[:build_config] if args.key?(:build_config)
5378
+ @build_type = args[:build_type] if args.key?(:build_type)
5379
+ @builder = args[:builder] if args.key?(:builder)
5380
+ @invocation = args[:invocation] if args.key?(:invocation)
5381
+ @materials = args[:materials] if args.key?(:materials)
5382
+ @metadata = args[:metadata] if args.key?(:metadata)
5383
+ end
5384
+ end
5385
+
4984
5386
  # Steps taken to build the artifact. For a TaskRun, typically each container
4985
5387
  # corresponds to one step in the recipe.
4986
5388
  class SlsaRecipe
@@ -5440,7 +5842,11 @@ module Google
5440
5842
  # @return [Float]
5441
5843
  attr_accessor :cvss_score
5442
5844
 
5443
- # Common Vulnerability Scoring System.
5845
+ # Common Vulnerability Scoring System. This message is compatible with CVSS v2
5846
+ # and v3. For CVSS v2 details, see https://www.first.org/cvss/v2/guide CVSS v2
5847
+ # calculator: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator For CVSS v3
5848
+ # details, see https://www.first.org/cvss/specification-document CVSS v3
5849
+ # calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator
5444
5850
  # Corresponds to the JSON property `cvssV3`
5445
5851
  # @return [Google::Apis::ContaineranalysisV1alpha1::Cvss]
5446
5852
  attr_accessor :cvss_v3
@@ -5503,6 +5909,11 @@ module Google
5503
5909
  # @return [String]
5504
5910
  attr_accessor :cpe_uri
5505
5911
 
5912
+ # The file location at which this package was found.
5913
+ # Corresponds to the JSON property `fileLocation`
5914
+ # @return [Array<Google::Apis::ContaineranalysisV1alpha1::FileLocation>]
5915
+ attr_accessor :file_location
5916
+
5506
5917
  # The package being described.
5507
5918
  # Corresponds to the JSON property `package`
5508
5919
  # @return [String]
@@ -5523,6 +5934,7 @@ module Google
5523
5934
  # Update properties of this object
5524
5935
  def update!(**args)
5525
5936
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
5937
+ @file_location = args[:file_location] if args.key?(:file_location)
5526
5938
  @package = args[:package] if args.key?(:package)
5527
5939
  @version = args[:version] if args.key?(:version)
5528
5940
  end
@@ -5537,6 +5949,21 @@ module Google
5537
5949
  # @return [Float]
5538
5950
  attr_accessor :cvss_score
5539
5951
 
5952
+ # Common Vulnerability Scoring System. This message is compatible with CVSS v2
5953
+ # and v3. For CVSS v2 details, see https://www.first.org/cvss/v2/guide CVSS v2
5954
+ # calculator: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator For CVSS v3
5955
+ # details, see https://www.first.org/cvss/specification-document CVSS v3
5956
+ # calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator
5957
+ # Corresponds to the JSON property `cvssV2`
5958
+ # @return [Google::Apis::ContaineranalysisV1alpha1::Cvss]
5959
+ attr_accessor :cvss_v2
5960
+
5961
+ # A list of CWE for this vulnerability. For details, see: https://cwe.mitre.org/
5962
+ # index.html
5963
+ # Corresponds to the JSON property `cwe`
5964
+ # @return [Array<String>]
5965
+ attr_accessor :cwe
5966
+
5540
5967
  # All information about the package to specifically identify this vulnerability.
5541
5968
  # One entry per (version range and cpe_uri) the package vulnerability has
5542
5969
  # manifested in.
@@ -5556,6 +5983,8 @@ module Google
5556
5983
  # Update properties of this object
5557
5984
  def update!(**args)
5558
5985
  @cvss_score = args[:cvss_score] if args.key?(:cvss_score)
5986
+ @cvss_v2 = args[:cvss_v2] if args.key?(:cvss_v2)
5987
+ @cwe = args[:cwe] if args.key?(:cwe)
5559
5988
  @details = args[:details] if args.key?(:details)
5560
5989
  @severity = args[:severity] if args.key?(:severity)
5561
5990
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContaineranalysisV1alpha1
18
18
  # Version of the google-apis-containeranalysis_v1alpha1 gem
19
- GEM_VERSION = "0.24.0"
19
+ GEM_VERSION = "0.27.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 = "20220414"
25
+ REVISION = "20220519"
26
26
  end
27
27
  end
28
28
  end
@@ -334,6 +334,12 @@ module Google
334
334
  include Google::Apis::Core::JsonObjectSupport
335
335
  end
336
336
 
337
+ class Digest
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
337
343
  class Discovered
338
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
339
345
 
@@ -400,6 +406,12 @@ module Google
400
406
  include Google::Apis::Core::JsonObjectSupport
401
407
  end
402
408
 
409
+ class FileLocation
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
403
415
  class FileNote
404
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
405
417
 
@@ -478,6 +490,42 @@ module Google
478
490
  include Google::Apis::Core::JsonObjectSupport
479
491
  end
480
492
 
493
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaBuilder
494
+ class Representation < Google::Apis::Core::JsonRepresentation; end
495
+
496
+ include Google::Apis::Core::JsonObjectSupport
497
+ end
498
+
499
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaCompleteness
500
+ class Representation < Google::Apis::Core::JsonRepresentation; end
501
+
502
+ include Google::Apis::Core::JsonObjectSupport
503
+ end
504
+
505
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaConfigSource
506
+ class Representation < Google::Apis::Core::JsonRepresentation; end
507
+
508
+ include Google::Apis::Core::JsonObjectSupport
509
+ end
510
+
511
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaInvocation
512
+ class Representation < Google::Apis::Core::JsonRepresentation; end
513
+
514
+ include Google::Apis::Core::JsonObjectSupport
515
+ end
516
+
517
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterial
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
523
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMetadata
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
481
529
  class GoogleDevtoolsContaineranalysisV1alpha1SourceContext
482
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
483
531
 
@@ -700,6 +748,12 @@ module Google
700
748
  include Google::Apis::Core::JsonObjectSupport
701
749
  end
702
750
 
751
+ class SlsaProvenanceZeroTwo
752
+ class Representation < Google::Apis::Core::JsonRepresentation; end
753
+
754
+ include Google::Apis::Core::JsonObjectSupport
755
+ end
756
+
703
757
  class SlsaRecipe
704
758
  class Representation < Google::Apis::Core::JsonRepresentation; end
705
759
 
@@ -1378,6 +1432,14 @@ module Google
1378
1432
  end
1379
1433
  end
1380
1434
 
1435
+ class Digest
1436
+ # @private
1437
+ class Representation < Google::Apis::Core::JsonRepresentation
1438
+ property :algo, as: 'algo'
1439
+ property :digest_value, as: 'digestValue'
1440
+ end
1441
+ end
1442
+
1381
1443
  class Discovered
1382
1444
  # @private
1383
1445
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1488,6 +1550,13 @@ module Google
1488
1550
  end
1489
1551
  end
1490
1552
 
1553
+ class FileLocation
1554
+ # @private
1555
+ class Representation < Google::Apis::Core::JsonRepresentation
1556
+ property :file_path, as: 'filePath'
1557
+ end
1558
+ end
1559
+
1491
1560
  class FileNote
1492
1561
  # @private
1493
1562
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1607,6 +1676,61 @@ module Google
1607
1676
  end
1608
1677
  end
1609
1678
 
1679
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaBuilder
1680
+ # @private
1681
+ class Representation < Google::Apis::Core::JsonRepresentation
1682
+ property :id, as: 'id'
1683
+ end
1684
+ end
1685
+
1686
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaCompleteness
1687
+ # @private
1688
+ class Representation < Google::Apis::Core::JsonRepresentation
1689
+ property :environment, as: 'environment'
1690
+ property :materials, as: 'materials'
1691
+ property :parameters, as: 'parameters'
1692
+ end
1693
+ end
1694
+
1695
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaConfigSource
1696
+ # @private
1697
+ class Representation < Google::Apis::Core::JsonRepresentation
1698
+ hash :digest, as: 'digest'
1699
+ property :entry_point, as: 'entryPoint'
1700
+ property :uri, as: 'uri'
1701
+ end
1702
+ end
1703
+
1704
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaInvocation
1705
+ # @private
1706
+ class Representation < Google::Apis::Core::JsonRepresentation
1707
+ property :config_source, as: 'configSource', class: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaConfigSource, decorator: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaConfigSource::Representation
1708
+
1709
+ hash :environment, as: 'environment'
1710
+ hash :parameters, as: 'parameters'
1711
+ end
1712
+ end
1713
+
1714
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterial
1715
+ # @private
1716
+ class Representation < Google::Apis::Core::JsonRepresentation
1717
+ hash :digest, as: 'digest'
1718
+ property :uri, as: 'uri'
1719
+ end
1720
+ end
1721
+
1722
+ class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMetadata
1723
+ # @private
1724
+ class Representation < Google::Apis::Core::JsonRepresentation
1725
+ property :build_finished_on, as: 'buildFinishedOn'
1726
+ property :build_invocation_id, as: 'buildInvocationId'
1727
+ property :build_started_on, as: 'buildStartedOn'
1728
+ property :completeness, as: 'completeness', class: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaCompleteness, decorator: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaCompleteness::Representation
1729
+
1730
+ property :reproducible, as: 'reproducible'
1731
+ end
1732
+ end
1733
+
1610
1734
  class GoogleDevtoolsContaineranalysisV1alpha1SourceContext
1611
1735
  # @private
1612
1736
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1650,6 +1774,8 @@ module Google
1650
1774
 
1651
1775
  property :slsa_provenance, as: 'slsaProvenance', class: Google::Apis::ContaineranalysisV1alpha1::SlsaProvenance, decorator: Google::Apis::ContaineranalysisV1alpha1::SlsaProvenance::Representation
1652
1776
 
1777
+ property :slsa_provenance_zero_two, as: 'slsaProvenanceZeroTwo', class: Google::Apis::ContaineranalysisV1alpha1::SlsaProvenanceZeroTwo, decorator: Google::Apis::ContaineranalysisV1alpha1::SlsaProvenanceZeroTwo::Representation
1778
+
1653
1779
  collection :subject, as: 'subject', class: Google::Apis::ContaineranalysisV1alpha1::Subject, decorator: Google::Apis::ContaineranalysisV1alpha1::Subject::Representation
1654
1780
 
1655
1781
  end
@@ -1658,9 +1784,16 @@ module Google
1658
1784
  class Installation
1659
1785
  # @private
1660
1786
  class Representation < Google::Apis::Core::JsonRepresentation
1787
+ property :architecture, as: 'architecture'
1788
+ property :cpe_uri, as: 'cpeUri'
1789
+ property :license, as: 'license', class: Google::Apis::ContaineranalysisV1alpha1::License, decorator: Google::Apis::ContaineranalysisV1alpha1::License::Representation
1790
+
1661
1791
  collection :location, as: 'location', class: Google::Apis::ContaineranalysisV1alpha1::Location, decorator: Google::Apis::ContaineranalysisV1alpha1::Location::Representation
1662
1792
 
1663
1793
  property :name, as: 'name'
1794
+ property :package_type, as: 'packageType'
1795
+ property :version, as: 'version', class: Google::Apis::ContaineranalysisV1alpha1::Version, decorator: Google::Apis::ContaineranalysisV1alpha1::Version::Representation
1796
+
1664
1797
  end
1665
1798
  end
1666
1799
 
@@ -1858,9 +1991,21 @@ module Google
1858
1991
  class Package
1859
1992
  # @private
1860
1993
  class Representation < Google::Apis::Core::JsonRepresentation
1994
+ property :architecture, as: 'architecture'
1995
+ property :cpe_uri, as: 'cpeUri'
1996
+ property :description, as: 'description'
1997
+ collection :digest, as: 'digest', class: Google::Apis::ContaineranalysisV1alpha1::Digest, decorator: Google::Apis::ContaineranalysisV1alpha1::Digest::Representation
1998
+
1861
1999
  collection :distribution, as: 'distribution', class: Google::Apis::ContaineranalysisV1alpha1::Distribution, decorator: Google::Apis::ContaineranalysisV1alpha1::Distribution::Representation
1862
2000
 
2001
+ property :license, as: 'license', class: Google::Apis::ContaineranalysisV1alpha1::License, decorator: Google::Apis::ContaineranalysisV1alpha1::License::Representation
2002
+
2003
+ property :maintainer, as: 'maintainer'
1863
2004
  property :name, as: 'name'
2005
+ property :package_type, as: 'packageType'
2006
+ property :url, as: 'url'
2007
+ property :version, as: 'version', class: Google::Apis::ContaineranalysisV1alpha1::Version, decorator: Google::Apis::ContaineranalysisV1alpha1::Version::Representation
2008
+
1864
2009
  end
1865
2010
  end
1866
2011
 
@@ -2064,6 +2209,22 @@ module Google
2064
2209
  end
2065
2210
  end
2066
2211
 
2212
+ class SlsaProvenanceZeroTwo
2213
+ # @private
2214
+ class Representation < Google::Apis::Core::JsonRepresentation
2215
+ hash :build_config, as: 'buildConfig'
2216
+ property :build_type, as: 'buildType'
2217
+ property :builder, as: 'builder', class: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaBuilder, decorator: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaBuilder::Representation
2218
+
2219
+ property :invocation, as: 'invocation', class: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaInvocation, decorator: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaInvocation::Representation
2220
+
2221
+ collection :materials, as: 'materials', class: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterial, decorator: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterial::Representation
2222
+
2223
+ property :metadata, as: 'metadata', class: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMetadata, decorator: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMetadata::Representation
2224
+
2225
+ end
2226
+ end
2227
+
2067
2228
  class SlsaRecipe
2068
2229
  # @private
2069
2230
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2203,6 +2364,8 @@ module Google
2203
2364
  # @private
2204
2365
  class Representation < Google::Apis::Core::JsonRepresentation
2205
2366
  property :cpe_uri, as: 'cpeUri'
2367
+ collection :file_location, as: 'fileLocation', class: Google::Apis::ContaineranalysisV1alpha1::FileLocation, decorator: Google::Apis::ContaineranalysisV1alpha1::FileLocation::Representation
2368
+
2206
2369
  property :package, as: 'package'
2207
2370
  property :version, as: 'version', class: Google::Apis::ContaineranalysisV1alpha1::Version, decorator: Google::Apis::ContaineranalysisV1alpha1::Version::Representation
2208
2371
 
@@ -2213,6 +2376,9 @@ module Google
2213
2376
  # @private
2214
2377
  class Representation < Google::Apis::Core::JsonRepresentation
2215
2378
  property :cvss_score, as: 'cvssScore'
2379
+ property :cvss_v2, as: 'cvssV2', class: Google::Apis::ContaineranalysisV1alpha1::Cvss, decorator: Google::Apis::ContaineranalysisV1alpha1::Cvss::Representation
2380
+
2381
+ collection :cwe, as: 'cwe'
2216
2382
  collection :details, as: 'details', class: Google::Apis::ContaineranalysisV1alpha1::Detail, decorator: Google::Apis::ContaineranalysisV1alpha1::Detail::Representation
2217
2383
 
2218
2384
  property :severity, as: 'severity'
@@ -161,8 +161,9 @@ module Google
161
161
  # occurrences/`OCCURRENCE_ID`` for occurrences and projects/`PROJECT_ID`/notes/`
162
162
  # NOTE_ID` for notes
163
163
  # @param [String] resource
164
- # REQUIRED: The resource for which the policy is being requested. See the
165
- # operation documentation for the appropriate value for this field.
164
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
165
+ # names](https://cloud.google.com/apis/design/resource_names) for the
166
+ # appropriate value for this field.
166
167
  # @param [Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest] get_iam_policy_request_object
167
168
  # @param [String] fields
168
169
  # Selector specifying which fields to include in a partial response.
@@ -285,8 +286,9 @@ module Google
285
286
  # projects/`projectid`/occurrences/`occurrenceid`` for occurrences and projects/`
286
287
  # projectid`/notes/`noteid` for notes
287
288
  # @param [String] resource
288
- # REQUIRED: The resource for which the policy is being specified. See the
289
- # operation documentation for the appropriate value for this field.
289
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
290
+ # names](https://cloud.google.com/apis/design/resource_names) for the
291
+ # appropriate value for this field.
290
292
  # @param [Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
291
293
  # @param [String] fields
292
294
  # Selector specifying which fields to include in a partial response.
@@ -326,8 +328,9 @@ module Google
326
328
  # projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for `Occurrences` and `
327
329
  # projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes`
328
330
  # @param [String] resource
329
- # REQUIRED: The resource for which the policy detail is being requested. See the
330
- # operation documentation for the appropriate value for this field.
331
+ # REQUIRED: The resource for which the policy detail is being requested. See [
332
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
333
+ # appropriate value for this field.
331
334
  # @param [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
332
335
  # @param [String] fields
333
336
  # Selector specifying which fields to include in a partial response.
@@ -511,8 +514,9 @@ module Google
511
514
  # occurrences/`OCCURRENCE_ID`` for occurrences and projects/`PROJECT_ID`/notes/`
512
515
  # NOTE_ID` for notes
513
516
  # @param [String] resource
514
- # REQUIRED: The resource for which the policy is being requested. See the
515
- # operation documentation for the appropriate value for this field.
517
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
518
+ # names](https://cloud.google.com/apis/design/resource_names) for the
519
+ # appropriate value for this field.
516
520
  # @param [Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest] get_iam_policy_request_object
517
521
  # @param [String] fields
518
522
  # Selector specifying which fields to include in a partial response.
@@ -702,8 +706,9 @@ module Google
702
706
  # projects/`projectid`/occurrences/`occurrenceid`` for occurrences and projects/`
703
707
  # projectid`/notes/`noteid` for notes
704
708
  # @param [String] resource
705
- # REQUIRED: The resource for which the policy is being specified. See the
706
- # operation documentation for the appropriate value for this field.
709
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
710
+ # names](https://cloud.google.com/apis/design/resource_names) for the
711
+ # appropriate value for this field.
707
712
  # @param [Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
708
713
  # @param [String] fields
709
714
  # Selector specifying which fields to include in a partial response.
@@ -743,8 +748,9 @@ module Google
743
748
  # projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for `Occurrences` and `
744
749
  # projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes`
745
750
  # @param [String] resource
746
- # REQUIRED: The resource for which the policy detail is being requested. See the
747
- # operation documentation for the appropriate value for this field.
751
+ # REQUIRED: The resource for which the policy detail is being requested. See [
752
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
753
+ # appropriate value for this field.
748
754
  # @param [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
749
755
  # @param [String] fields
750
756
  # Selector specifying which fields to include in a partial response.
@@ -1061,8 +1067,9 @@ module Google
1061
1067
  # occurrences/`OCCURRENCE_ID`` for occurrences and projects/`PROJECT_ID`/notes/`
1062
1068
  # NOTE_ID` for notes
1063
1069
  # @param [String] resource
1064
- # REQUIRED: The resource for which the policy is being requested. See the
1065
- # operation documentation for the appropriate value for this field.
1070
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1071
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1072
+ # appropriate value for this field.
1066
1073
  # @param [Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest] get_iam_policy_request_object
1067
1074
  # @param [String] fields
1068
1075
  # Selector specifying which fields to include in a partial response.
@@ -1185,8 +1192,9 @@ module Google
1185
1192
  # projects/`projectid`/occurrences/`occurrenceid`` for occurrences and projects/`
1186
1193
  # projectid`/notes/`noteid` for notes
1187
1194
  # @param [String] resource
1188
- # REQUIRED: The resource for which the policy is being specified. See the
1189
- # operation documentation for the appropriate value for this field.
1195
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1196
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1197
+ # appropriate value for this field.
1190
1198
  # @param [Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
1191
1199
  # @param [String] fields
1192
1200
  # Selector specifying which fields to include in a partial response.
@@ -1226,8 +1234,9 @@ module Google
1226
1234
  # projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for `Occurrences` and `
1227
1235
  # projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes`
1228
1236
  # @param [String] resource
1229
- # REQUIRED: The resource for which the policy detail is being requested. See the
1230
- # operation documentation for the appropriate value for this field.
1237
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1238
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1239
+ # appropriate value for this field.
1231
1240
  # @param [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
1232
1241
  # @param [String] fields
1233
1242
  # 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_v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.27.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-04-25 00:00:00.000000000 Z
11
+ date: 2022-05-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_v1alpha1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1alpha1/v0.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1alpha1/v0.27.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1alpha1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Container Analysis API V1alpha1