google-apis-containeranalysis_v1beta1 0.15.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/containeranalysis_v1beta1/classes.rb +310 -29
- data/lib/google/apis/containeranalysis_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/containeranalysis_v1beta1/representations.rb +92 -0
- data/lib/google/apis/containeranalysis_v1beta1/service.rb +18 -12
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67293f7d91760d56f41463e71aa70c13b77bf905a4109de8f0d17dc3ecca10e6
|
4
|
+
data.tar.gz: 71860db5bf2d86976a3ef9e3d6483a7efe36732668a47c83eb8d31bfb3fb5175
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df68f5277e82f4edf7247603c322251997567509b31ed53882242e789b41f5ac29aacdbe232aaf1b805ed8b90715155db621d0ca6f5e03ac2e185bc7bb205160
|
7
|
+
data.tar.gz: 1067b5449644687a6bdad20365591addb5101281be3a55a28449965c355c162466c86ccb24773b4372e7fbf138c5b8c4dd97d9f5ed28e4c27ebd14daa0fd1486
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-containeranalysis_v1beta1
|
2
2
|
|
3
|
+
### v0.18.0 (2022-05-11)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220506
|
6
|
+
|
7
|
+
### v0.17.0 (2022-04-21)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220414
|
10
|
+
|
11
|
+
### v0.16.0 (2022-03-23)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220318
|
14
|
+
|
3
15
|
### v0.15.0 (2022-02-10)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220204
|
@@ -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
|
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,95 @@ module Google
|
|
557
557
|
end
|
558
558
|
end
|
559
559
|
|
560
|
-
# Common Vulnerability Scoring System
|
561
|
-
#
|
560
|
+
# Common Vulnerability Scoring System. For details, see https://www.first.org/
|
561
|
+
# cvss/specification-document
|
562
|
+
class Cvss
|
563
|
+
include Google::Apis::Core::Hashable
|
564
|
+
|
565
|
+
#
|
566
|
+
# Corresponds to the JSON property `attackComplexity`
|
567
|
+
# @return [String]
|
568
|
+
attr_accessor :attack_complexity
|
569
|
+
|
570
|
+
# Base Metrics Represents the intrinsic characteristics of a vulnerability that
|
571
|
+
# are constant over time and across user environments.
|
572
|
+
# Corresponds to the JSON property `attackVector`
|
573
|
+
# @return [String]
|
574
|
+
attr_accessor :attack_vector
|
575
|
+
|
576
|
+
#
|
577
|
+
# Corresponds to the JSON property `authentication`
|
578
|
+
# @return [String]
|
579
|
+
attr_accessor :authentication
|
580
|
+
|
581
|
+
#
|
582
|
+
# Corresponds to the JSON property `availabilityImpact`
|
583
|
+
# @return [String]
|
584
|
+
attr_accessor :availability_impact
|
585
|
+
|
586
|
+
# The base score is a function of the base metric scores.
|
587
|
+
# Corresponds to the JSON property `baseScore`
|
588
|
+
# @return [Float]
|
589
|
+
attr_accessor :base_score
|
590
|
+
|
591
|
+
#
|
592
|
+
# Corresponds to the JSON property `confidentialityImpact`
|
593
|
+
# @return [String]
|
594
|
+
attr_accessor :confidentiality_impact
|
595
|
+
|
596
|
+
#
|
597
|
+
# Corresponds to the JSON property `exploitabilityScore`
|
598
|
+
# @return [Float]
|
599
|
+
attr_accessor :exploitability_score
|
600
|
+
|
601
|
+
#
|
602
|
+
# Corresponds to the JSON property `impactScore`
|
603
|
+
# @return [Float]
|
604
|
+
attr_accessor :impact_score
|
605
|
+
|
606
|
+
#
|
607
|
+
# Corresponds to the JSON property `integrityImpact`
|
608
|
+
# @return [String]
|
609
|
+
attr_accessor :integrity_impact
|
610
|
+
|
611
|
+
#
|
612
|
+
# Corresponds to the JSON property `privilegesRequired`
|
613
|
+
# @return [String]
|
614
|
+
attr_accessor :privileges_required
|
615
|
+
|
616
|
+
#
|
617
|
+
# Corresponds to the JSON property `scope`
|
618
|
+
# @return [String]
|
619
|
+
attr_accessor :scope
|
620
|
+
|
621
|
+
#
|
622
|
+
# Corresponds to the JSON property `userInteraction`
|
623
|
+
# @return [String]
|
624
|
+
attr_accessor :user_interaction
|
625
|
+
|
626
|
+
def initialize(**args)
|
627
|
+
update!(**args)
|
628
|
+
end
|
629
|
+
|
630
|
+
# Update properties of this object
|
631
|
+
def update!(**args)
|
632
|
+
@attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
|
633
|
+
@attack_vector = args[:attack_vector] if args.key?(:attack_vector)
|
634
|
+
@authentication = args[:authentication] if args.key?(:authentication)
|
635
|
+
@availability_impact = args[:availability_impact] if args.key?(:availability_impact)
|
636
|
+
@base_score = args[:base_score] if args.key?(:base_score)
|
637
|
+
@confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
|
638
|
+
@exploitability_score = args[:exploitability_score] if args.key?(:exploitability_score)
|
639
|
+
@impact_score = args[:impact_score] if args.key?(:impact_score)
|
640
|
+
@integrity_impact = args[:integrity_impact] if args.key?(:integrity_impact)
|
641
|
+
@privileges_required = args[:privileges_required] if args.key?(:privileges_required)
|
642
|
+
@scope = args[:scope] if args.key?(:scope)
|
643
|
+
@user_interaction = args[:user_interaction] if args.key?(:user_interaction)
|
644
|
+
end
|
645
|
+
end
|
646
|
+
|
647
|
+
# Deprecated. Common Vulnerability Scoring System version 3. For details, see
|
648
|
+
# https://www.first.org/cvss/specification-document
|
562
649
|
class CvsSv3
|
563
650
|
include Google::Apis::Core::Hashable
|
564
651
|
|
@@ -2192,6 +2279,32 @@ module Google
|
|
2192
2279
|
end
|
2193
2280
|
end
|
2194
2281
|
|
2282
|
+
# Digest information.
|
2283
|
+
class Digest
|
2284
|
+
include Google::Apis::Core::Hashable
|
2285
|
+
|
2286
|
+
# `SHA1`, `SHA512` etc.
|
2287
|
+
# Corresponds to the JSON property `algo`
|
2288
|
+
# @return [String]
|
2289
|
+
attr_accessor :algo
|
2290
|
+
|
2291
|
+
# Value of the digest encoded. For example: SHA512 - base64 encoding, SHA1 - hex
|
2292
|
+
# encoding.
|
2293
|
+
# Corresponds to the JSON property `digestValue`
|
2294
|
+
# @return [String]
|
2295
|
+
attr_accessor :digest_value
|
2296
|
+
|
2297
|
+
def initialize(**args)
|
2298
|
+
update!(**args)
|
2299
|
+
end
|
2300
|
+
|
2301
|
+
# Update properties of this object
|
2302
|
+
def update!(**args)
|
2303
|
+
@algo = args[:algo] if args.key?(:algo)
|
2304
|
+
@digest_value = args[:digest_value] if args.key?(:digest_value)
|
2305
|
+
end
|
2306
|
+
end
|
2307
|
+
|
2195
2308
|
# Provides information about the analysis status of a discovered resource.
|
2196
2309
|
class Discovered
|
2197
2310
|
include Google::Apis::Core::Hashable
|
@@ -2308,7 +2421,7 @@ module Google
|
|
2308
2421
|
end
|
2309
2422
|
end
|
2310
2423
|
|
2311
|
-
# DocumentNote represents an SPDX Document Creation
|
2424
|
+
# DocumentNote represents an SPDX Document Creation Information section: https://
|
2312
2425
|
# spdx.github.io/spdx-spec/2-document-creation-information/
|
2313
2426
|
class DocumentNote
|
2314
2427
|
include Google::Apis::Core::Hashable
|
@@ -2417,8 +2530,7 @@ module Google
|
|
2417
2530
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
2418
2531
|
# messages in your APIs. A typical example is to use it as the request or the
|
2419
2532
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
2420
|
-
# protobuf.Empty) returns (google.protobuf.Empty); `
|
2421
|
-
# `Empty` is empty JSON object ````.
|
2533
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
2422
2534
|
class Empty
|
2423
2535
|
include Google::Apis::Core::Hashable
|
2424
2536
|
|
@@ -2431,6 +2543,65 @@ module Google
|
|
2431
2543
|
end
|
2432
2544
|
end
|
2433
2545
|
|
2546
|
+
# MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.
|
2547
|
+
# proto. An authenticated message of arbitrary type.
|
2548
|
+
class Envelope
|
2549
|
+
include Google::Apis::Core::Hashable
|
2550
|
+
|
2551
|
+
#
|
2552
|
+
# Corresponds to the JSON property `payload`
|
2553
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2554
|
+
# @return [String]
|
2555
|
+
attr_accessor :payload
|
2556
|
+
|
2557
|
+
#
|
2558
|
+
# Corresponds to the JSON property `payloadType`
|
2559
|
+
# @return [String]
|
2560
|
+
attr_accessor :payload_type
|
2561
|
+
|
2562
|
+
#
|
2563
|
+
# Corresponds to the JSON property `signatures`
|
2564
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::EnvelopeSignature>]
|
2565
|
+
attr_accessor :signatures
|
2566
|
+
|
2567
|
+
def initialize(**args)
|
2568
|
+
update!(**args)
|
2569
|
+
end
|
2570
|
+
|
2571
|
+
# Update properties of this object
|
2572
|
+
def update!(**args)
|
2573
|
+
@payload = args[:payload] if args.key?(:payload)
|
2574
|
+
@payload_type = args[:payload_type] if args.key?(:payload_type)
|
2575
|
+
@signatures = args[:signatures] if args.key?(:signatures)
|
2576
|
+
end
|
2577
|
+
end
|
2578
|
+
|
2579
|
+
#
|
2580
|
+
class EnvelopeSignature
|
2581
|
+
include Google::Apis::Core::Hashable
|
2582
|
+
|
2583
|
+
#
|
2584
|
+
# Corresponds to the JSON property `keyid`
|
2585
|
+
# @return [String]
|
2586
|
+
attr_accessor :keyid
|
2587
|
+
|
2588
|
+
#
|
2589
|
+
# Corresponds to the JSON property `sig`
|
2590
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2591
|
+
# @return [String]
|
2592
|
+
attr_accessor :sig
|
2593
|
+
|
2594
|
+
def initialize(**args)
|
2595
|
+
update!(**args)
|
2596
|
+
end
|
2597
|
+
|
2598
|
+
# Update properties of this object
|
2599
|
+
def update!(**args)
|
2600
|
+
@keyid = args[:keyid] if args.key?(:keyid)
|
2601
|
+
@sig = args[:sig] if args.key?(:sig)
|
2602
|
+
end
|
2603
|
+
end
|
2604
|
+
|
2434
2605
|
# Defines an object for the environment field in in-toto links. The suggested
|
2435
2606
|
# fields are "variables", "filesystem", and "workdir".
|
2436
2607
|
class Environment
|
@@ -2640,8 +2811,7 @@ module Google
|
|
2640
2811
|
# @return [String]
|
2641
2812
|
attr_accessor :id
|
2642
2813
|
|
2643
|
-
# License information
|
2644
|
-
# 315-declared-license
|
2814
|
+
# License information.
|
2645
2815
|
# Corresponds to the JSON property `licenseConcluded`
|
2646
2816
|
# @return [Google::Apis::ContaineranalysisV1beta1::License]
|
2647
2817
|
attr_accessor :license_concluded
|
@@ -3289,25 +3459,59 @@ module Google
|
|
3289
3459
|
class Installation
|
3290
3460
|
include Google::Apis::Core::Hashable
|
3291
3461
|
|
3292
|
-
#
|
3293
|
-
#
|
3462
|
+
# Output only. The CPU architecture for which packages in this distribution
|
3463
|
+
# channel were built. Architecture will be blank for language packages.
|
3464
|
+
# Corresponds to the JSON property `architecture`
|
3465
|
+
# @return [String]
|
3466
|
+
attr_accessor :architecture
|
3467
|
+
|
3468
|
+
# Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
|
3469
|
+
# denoting the package manager version distributing a package. The cpe_uri will
|
3470
|
+
# be blank for language packages.
|
3471
|
+
# Corresponds to the JSON property `cpeUri`
|
3472
|
+
# @return [String]
|
3473
|
+
attr_accessor :cpe_uri
|
3474
|
+
|
3475
|
+
# License information.
|
3476
|
+
# Corresponds to the JSON property `license`
|
3477
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::License]
|
3478
|
+
attr_accessor :license
|
3479
|
+
|
3480
|
+
# All of the places within the filesystem versions of this package have been
|
3481
|
+
# found.
|
3294
3482
|
# Corresponds to the JSON property `location`
|
3295
3483
|
# @return [Array<Google::Apis::ContaineranalysisV1beta1::Location>]
|
3296
3484
|
attr_accessor :location
|
3297
3485
|
|
3298
|
-
# Output only. The name of the installed package.
|
3486
|
+
# Required. Output only. The name of the installed package.
|
3299
3487
|
# Corresponds to the JSON property `name`
|
3300
3488
|
# @return [String]
|
3301
3489
|
attr_accessor :name
|
3302
3490
|
|
3491
|
+
# Output only. The type of package; whether native or non native (e.g., ruby
|
3492
|
+
# gems, node.js packages, etc.).
|
3493
|
+
# Corresponds to the JSON property `packageType`
|
3494
|
+
# @return [String]
|
3495
|
+
attr_accessor :package_type
|
3496
|
+
|
3497
|
+
# Version contains structured information about the version of a package.
|
3498
|
+
# Corresponds to the JSON property `version`
|
3499
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::Version]
|
3500
|
+
attr_accessor :version
|
3501
|
+
|
3303
3502
|
def initialize(**args)
|
3304
3503
|
update!(**args)
|
3305
3504
|
end
|
3306
3505
|
|
3307
3506
|
# Update properties of this object
|
3308
3507
|
def update!(**args)
|
3508
|
+
@architecture = args[:architecture] if args.key?(:architecture)
|
3509
|
+
@cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
|
3510
|
+
@license = args[:license] if args.key?(:license)
|
3309
3511
|
@location = args[:location] if args.key?(:location)
|
3310
3512
|
@name = args[:name] if args.key?(:name)
|
3513
|
+
@package_type = args[:package_type] if args.key?(:package_type)
|
3514
|
+
@version = args[:version] if args.key?(:version)
|
3311
3515
|
end
|
3312
3516
|
end
|
3313
3517
|
|
@@ -3362,8 +3566,7 @@ module Google
|
|
3362
3566
|
end
|
3363
3567
|
end
|
3364
3568
|
|
3365
|
-
# License information
|
3366
|
-
# 315-declared-license
|
3569
|
+
# License information.
|
3367
3570
|
class License
|
3368
3571
|
include Google::Apis::Core::Hashable
|
3369
3572
|
|
@@ -3372,8 +3575,10 @@ module Google
|
|
3372
3575
|
# @return [String]
|
3373
3576
|
attr_accessor :comments
|
3374
3577
|
|
3375
|
-
#
|
3376
|
-
#
|
3578
|
+
# Often a single license can be used to represent the licensing terms. Sometimes
|
3579
|
+
# it is necessary to include a choice of one or more licenses or some
|
3580
|
+
# combination of license identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.
|
3581
|
+
# 1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".
|
3377
3582
|
# Corresponds to the JSON property `expression`
|
3378
3583
|
# @return [String]
|
3379
3584
|
attr_accessor :expression
|
@@ -3551,7 +3756,7 @@ module Google
|
|
3551
3756
|
class Location
|
3552
3757
|
include Google::Apis::Core::Hashable
|
3553
3758
|
|
3554
|
-
#
|
3759
|
+
# Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
|
3555
3760
|
# denoting the package manager version distributing a package.
|
3556
3761
|
# Corresponds to the JSON property `cpeUri`
|
3557
3762
|
# @return [String]
|
@@ -3654,8 +3859,7 @@ module Google
|
|
3654
3859
|
# @return [String]
|
3655
3860
|
attr_accessor :name
|
3656
3861
|
|
3657
|
-
#
|
3658
|
-
# E.g., glibc (aka libc6) is distributed by many, at various versions.
|
3862
|
+
# Package represents a particular package version.
|
3659
3863
|
# Corresponds to the JSON property `package`
|
3660
3864
|
# @return [Google::Apis::ContaineranalysisV1beta1::Package]
|
3661
3865
|
attr_accessor :package
|
@@ -3670,7 +3874,7 @@ module Google
|
|
3670
3874
|
# @return [Array<Google::Apis::ContaineranalysisV1beta1::RelatedUrl>]
|
3671
3875
|
attr_accessor :related_url
|
3672
3876
|
|
3673
|
-
# DocumentNote represents an SPDX Document Creation
|
3877
|
+
# DocumentNote represents an SPDX Document Creation Information section: https://
|
3674
3878
|
# spdx.github.io/spdx-spec/2-document-creation-information/
|
3675
3879
|
# Corresponds to the JSON property `sbom`
|
3676
3880
|
# @return [Google::Apis::ContaineranalysisV1beta1::DocumentNote]
|
@@ -3774,6 +3978,12 @@ module Google
|
|
3774
3978
|
# @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1DiscoveryDetails]
|
3775
3979
|
attr_accessor :discovered
|
3776
3980
|
|
3981
|
+
# MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.
|
3982
|
+
# proto. An authenticated message of arbitrary type.
|
3983
|
+
# Corresponds to the JSON property `envelope`
|
3984
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::Envelope]
|
3985
|
+
attr_accessor :envelope
|
3986
|
+
|
3777
3987
|
# Details of a package occurrence.
|
3778
3988
|
# Corresponds to the JSON property `installation`
|
3779
3989
|
# @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1PackageDetails]
|
@@ -3861,6 +4071,7 @@ module Google
|
|
3861
4071
|
@deployment = args[:deployment] if args.key?(:deployment)
|
3862
4072
|
@derived_image = args[:derived_image] if args.key?(:derived_image)
|
3863
4073
|
@discovered = args[:discovered] if args.key?(:discovered)
|
4074
|
+
@envelope = args[:envelope] if args.key?(:envelope)
|
3864
4075
|
@installation = args[:installation] if args.key?(:installation)
|
3865
4076
|
@intoto = args[:intoto] if args.key?(:intoto)
|
3866
4077
|
@kind = args[:kind] if args.key?(:kind)
|
@@ -3877,29 +4088,87 @@ module Google
|
|
3877
4088
|
end
|
3878
4089
|
end
|
3879
4090
|
|
3880
|
-
#
|
3881
|
-
# E.g., glibc (aka libc6) is distributed by many, at various versions.
|
4091
|
+
# Package represents a particular package version.
|
3882
4092
|
class Package
|
3883
4093
|
include Google::Apis::Core::Hashable
|
3884
4094
|
|
4095
|
+
# The CPU architecture for which packages in this distribution channel were
|
4096
|
+
# built. Architecture will be blank for language packages.
|
4097
|
+
# Corresponds to the JSON property `architecture`
|
4098
|
+
# @return [String]
|
4099
|
+
attr_accessor :architecture
|
4100
|
+
|
4101
|
+
# The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the
|
4102
|
+
# package manager version distributing a package. The cpe_uri will be blank for
|
4103
|
+
# language packages.
|
4104
|
+
# Corresponds to the JSON property `cpeUri`
|
4105
|
+
# @return [String]
|
4106
|
+
attr_accessor :cpe_uri
|
4107
|
+
|
4108
|
+
# The description of this package.
|
4109
|
+
# Corresponds to the JSON property `description`
|
4110
|
+
# @return [String]
|
4111
|
+
attr_accessor :description
|
4112
|
+
|
4113
|
+
# Hash value, typically a file digest, that allows unique identification a
|
4114
|
+
# specific package.
|
4115
|
+
# Corresponds to the JSON property `digest`
|
4116
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::Digest>]
|
4117
|
+
attr_accessor :digest
|
4118
|
+
|
3885
4119
|
# The various channels by which a package is distributed.
|
3886
4120
|
# Corresponds to the JSON property `distribution`
|
3887
4121
|
# @return [Array<Google::Apis::ContaineranalysisV1beta1::Distribution>]
|
3888
4122
|
attr_accessor :distribution
|
3889
4123
|
|
4124
|
+
# License information.
|
4125
|
+
# Corresponds to the JSON property `license`
|
4126
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::License]
|
4127
|
+
attr_accessor :license
|
4128
|
+
|
4129
|
+
# A freeform text denoting the maintainer of this package.
|
4130
|
+
# Corresponds to the JSON property `maintainer`
|
4131
|
+
# @return [String]
|
4132
|
+
attr_accessor :maintainer
|
4133
|
+
|
3890
4134
|
# Required. Immutable. The name of the package.
|
3891
4135
|
# Corresponds to the JSON property `name`
|
3892
4136
|
# @return [String]
|
3893
4137
|
attr_accessor :name
|
3894
4138
|
|
4139
|
+
# The type of package; whether native or non native (e.g., ruby gems, node.js
|
4140
|
+
# packages, etc.).
|
4141
|
+
# Corresponds to the JSON property `packageType`
|
4142
|
+
# @return [String]
|
4143
|
+
attr_accessor :package_type
|
4144
|
+
|
4145
|
+
# The homepage for this package.
|
4146
|
+
# Corresponds to the JSON property `url`
|
4147
|
+
# @return [String]
|
4148
|
+
attr_accessor :url
|
4149
|
+
|
4150
|
+
# Version contains structured information about the version of a package.
|
4151
|
+
# Corresponds to the JSON property `version`
|
4152
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::Version]
|
4153
|
+
attr_accessor :version
|
4154
|
+
|
3895
4155
|
def initialize(**args)
|
3896
4156
|
update!(**args)
|
3897
4157
|
end
|
3898
4158
|
|
3899
4159
|
# Update properties of this object
|
3900
4160
|
def update!(**args)
|
4161
|
+
@architecture = args[:architecture] if args.key?(:architecture)
|
4162
|
+
@cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
|
4163
|
+
@description = args[:description] if args.key?(:description)
|
4164
|
+
@digest = args[:digest] if args.key?(:digest)
|
3901
4165
|
@distribution = args[:distribution] if args.key?(:distribution)
|
4166
|
+
@license = args[:license] if args.key?(:license)
|
4167
|
+
@maintainer = args[:maintainer] if args.key?(:maintainer)
|
3902
4168
|
@name = args[:name] if args.key?(:name)
|
4169
|
+
@package_type = args[:package_type] if args.key?(:package_type)
|
4170
|
+
@url = args[:url] if args.key?(:url)
|
4171
|
+
@version = args[:version] if args.key?(:version)
|
3903
4172
|
end
|
3904
4173
|
end
|
3905
4174
|
|
@@ -3964,8 +4233,7 @@ module Google
|
|
3964
4233
|
# @return [String]
|
3965
4234
|
attr_accessor :home_page
|
3966
4235
|
|
3967
|
-
# License information
|
3968
|
-
# 315-declared-license
|
4236
|
+
# License information.
|
3969
4237
|
# Corresponds to the JSON property `licenseDeclared`
|
3970
4238
|
# @return [Google::Apis::ContaineranalysisV1beta1::License]
|
3971
4239
|
attr_accessor :license_declared
|
@@ -4066,8 +4334,7 @@ module Google
|
|
4066
4334
|
# @return [String]
|
4067
4335
|
attr_accessor :id
|
4068
4336
|
|
4069
|
-
# License information
|
4070
|
-
# 315-declared-license
|
4337
|
+
# License information.
|
4071
4338
|
# Corresponds to the JSON property `licenseConcluded`
|
4072
4339
|
# @return [Google::Apis::ContaineranalysisV1beta1::License]
|
4073
4340
|
attr_accessor :license_concluded
|
@@ -4181,7 +4448,7 @@ module Google
|
|
4181
4448
|
|
4182
4449
|
# The cryptographic fingerprint of the key used to generate the signature, as
|
4183
4450
|
# output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit
|
4184
|
-
# fingerprint, expressed as a 40 character
|
4451
|
+
# fingerprint, expressed as a 40 character hexadecimal string. See https://tools.
|
4185
4452
|
# ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to
|
4186
4453
|
# acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full
|
4187
4454
|
# fingerprint is guaranteed to work. In gpg, the full fingerprint can be
|
@@ -4802,7 +5069,7 @@ module Google
|
|
4802
5069
|
include Google::Apis::Core::Hashable
|
4803
5070
|
|
4804
5071
|
# The set of permissions to check for the `resource`. Permissions with wildcards
|
4805
|
-
# (such as
|
5072
|
+
# (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
4806
5073
|
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
4807
5074
|
# Corresponds to the JSON property `permissions`
|
4808
5075
|
# @return [Array<String>]
|
@@ -4895,12 +5162,24 @@ module Google
|
|
4895
5162
|
# @return [Float]
|
4896
5163
|
attr_accessor :cvss_score
|
4897
5164
|
|
4898
|
-
# Common Vulnerability Scoring System
|
4899
|
-
#
|
5165
|
+
# Common Vulnerability Scoring System. For details, see https://www.first.org/
|
5166
|
+
# cvss/specification-document
|
5167
|
+
# Corresponds to the JSON property `cvssV2`
|
5168
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::Cvss]
|
5169
|
+
attr_accessor :cvss_v2
|
5170
|
+
|
5171
|
+
# Deprecated. Common Vulnerability Scoring System version 3. For details, see
|
5172
|
+
# https://www.first.org/cvss/specification-document
|
4900
5173
|
# Corresponds to the JSON property `cvssV3`
|
4901
5174
|
# @return [Google::Apis::ContaineranalysisV1beta1::CvsSv3]
|
4902
5175
|
attr_accessor :cvss_v3
|
4903
5176
|
|
5177
|
+
# A list of CWE for this vulnerability. For details, see: https://cwe.mitre.org/
|
5178
|
+
# index.html
|
5179
|
+
# Corresponds to the JSON property `cwe`
|
5180
|
+
# @return [Array<String>]
|
5181
|
+
attr_accessor :cwe
|
5182
|
+
|
4904
5183
|
# All information about the package to specifically identify this vulnerability.
|
4905
5184
|
# One entry per (version range and cpe_uri) the package vulnerability has
|
4906
5185
|
# manifested in.
|
@@ -4935,7 +5214,9 @@ module Google
|
|
4935
5214
|
# Update properties of this object
|
4936
5215
|
def update!(**args)
|
4937
5216
|
@cvss_score = args[:cvss_score] if args.key?(:cvss_score)
|
5217
|
+
@cvss_v2 = args[:cvss_v2] if args.key?(:cvss_v2)
|
4938
5218
|
@cvss_v3 = args[:cvss_v3] if args.key?(:cvss_v3)
|
5219
|
+
@cwe = args[:cwe] if args.key?(:cwe)
|
4939
5220
|
@details = args[:details] if args.key?(:details)
|
4940
5221
|
@severity = args[:severity] if args.key?(:severity)
|
4941
5222
|
@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.
|
19
|
+
GEM_VERSION = "0.18.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 = "
|
25
|
+
REVISION = "20220506"
|
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
|
193
|
-
#
|
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
|
310
|
-
#
|
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
|
348
|
-
#
|
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
|
559
|
-
#
|
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
|
742
|
-
#
|
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
|
780
|
-
#
|
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.
|
4
|
+
version: 0.18.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-
|
11
|
+
date: 2022-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.18.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: []
|